Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit978de9d

Browse files
committed
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 surethat 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 nopositions. That makes the storage of tsvectors without positionsslightly more compact.- added some #include "miscadmin.h" lines I missed in the earlier when Iadded calls to check_stack_depth().- Reimplement the send/recv functions, and added a commentabove them describing the on-wire format. The CRC is now recalculated intsquery as well per previous discussion.
1 parent8983852 commit978de9d

File tree

9 files changed

+286
-219
lines changed

9 files changed

+286
-219
lines changed

‎src/backend/utils/adt/tsginidx.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/backend/utils/adt/tsginidx.c,v 1.2 2007/09/0715:09:56 teodor Exp $
10+
* $PostgreSQL: pgsql/src/backend/utils/adt/tsginidx.c,v 1.3 2007/09/0716:03:40 teodor Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -22,7 +22,7 @@ Datum
2222
gin_extract_tsvector(PG_FUNCTION_ARGS)
2323
{
2424
TSVectorvector=PG_GETARG_TSVECTOR(0);
25-
uint32*nentries= (uint32*)PG_GETARG_POINTER(1);
25+
int32*nentries= (int32*)PG_GETARG_POINTER(1);
2626
Datum*entries=NULL;
2727

2828
*nentries=0;
@@ -55,7 +55,7 @@ Datum
5555
gin_extract_query(PG_FUNCTION_ARGS)
5656
{
5757
TSQueryquery=PG_GETARG_TSQUERY(0);
58-
uint32*nentries= (uint32*)PG_GETARG_POINTER(1);
58+
int32*nentries= (int32*)PG_GETARG_POINTER(1);
5959
StrategyNumberstrategy=PG_GETARG_UINT16(2);
6060
Datum*entries=NULL;
6161

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp