diff options
author | Teodor Sigaev <teodor@sigaev.ru> | 2007-09-07 16:03:40 +0000 |
---|---|---|
committer | Teodor Sigaev <teodor@sigaev.ru> | 2007-09-07 16:03:40 +0000 |
commit | 978de9d06d54de07547049e49ad5ed500e64edf0 (patch) | |
tree | 2b954143c9058cc6e8349663c368ce43c6fdedde /src/backend/utils/adt/tsquery_rewrite.c | |
parent | 8983852e343d04696256d576d5009dd7c5e94272 (diff) | |
download | postgresql-978de9d06d54de07547049e49ad5ed500e64edf0.tar.gz postgresql-978de9d06d54de07547049e49ad5ed500e64edf0.zip |
Improvements from Heikki Linnakangas <heikki@enterprisedb.com>
- change the alignment requirement of lexemes in TSVector slightly.
Lexeme strings were always padded to 2-byte aligned length to make sure
that if there's position array (uint16[]) it has the right alignment.
The patch changes that so that the padding is not done when there's no
positions. That makes the storage of tsvectors without positions
slightly more compact.
- added some #include "miscadmin.h" lines I missed in the earlier when I
added calls to check_stack_depth().
- Reimplement the send/recv functions, and added a comment
above them describing the on-wire format. The CRC is now recalculated in
tsquery as well per previous discussion.
Diffstat (limited to 'src/backend/utils/adt/tsquery_rewrite.c')
-rw-r--r-- | src/backend/utils/adt/tsquery_rewrite.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/utils/adt/tsquery_rewrite.c b/src/backend/utils/adt/tsquery_rewrite.c index d733a51d8e3..77e3a8b173b 100644 --- a/src/backend/utils/adt/tsquery_rewrite.c +++ b/src/backend/utils/adt/tsquery_rewrite.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/adt/tsquery_rewrite.c,v 1.3 2007/09/07 15:35:10 teodor Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/tsquery_rewrite.c,v 1.4 2007/09/07 16:03:40 teodor Exp $ * *------------------------------------------------------------------------- */ @@ -17,6 +17,7 @@ #include "executor/spi.h" #include "tsearch/ts_type.h" #include "tsearch/ts_utils.h" +#include "miscadmin.h" static int |