-
- Downloads
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.
Showing
- src/backend/utils/adt/tsginidx.c 3 additions, 3 deletionssrc/backend/utils/adt/tsginidx.c
- src/backend/utils/adt/tsquery.c 120 additions, 129 deletionssrc/backend/utils/adt/tsquery.c
- src/backend/utils/adt/tsquery_cleanup.c 2 additions, 1 deletionsrc/backend/utils/adt/tsquery_cleanup.c
- src/backend/utils/adt/tsquery_rewrite.c 2 additions, 1 deletionsrc/backend/utils/adt/tsquery_rewrite.c
- src/backend/utils/adt/tsquery_util.c 2 additions, 1 deletionsrc/backend/utils/adt/tsquery_util.c
- src/backend/utils/adt/tsrank.c 4 additions, 5 deletionssrc/backend/utils/adt/tsrank.c
- src/backend/utils/adt/tsvector.c 106 additions, 56 deletionssrc/backend/utils/adt/tsvector.c
- src/backend/utils/adt/tsvector_op.c 27 additions, 10 deletionssrc/backend/utils/adt/tsvector_op.c
- src/include/tsearch/ts_type.h 20 additions, 13 deletionssrc/include/tsearch/ts_type.h
Loading
Please register or sign in to comment