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

Commit1b4f150

Browse files
committed
Tweak outUnique to include uniqColIdx[] field in the printout. This does
not cause any compatibility problems because stored rules don't containplan nodes --- in fact, we don't even have a readfunc for Unique nodes.
1 parent6a4fa7e commit1b4f150

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

‎src/backend/nodes/outfuncs.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
*$Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.114 2000/04/12 17:15:16 momjian Exp $
9+
*$Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.115 2000/04/26 23:39:10 tgl Exp $
1010
*
1111
* NOTES
1212
* Every (plan) node in POSTGRES has an associated "out" routine which
@@ -598,15 +598,19 @@ _outGroup(StringInfo str, Group *node)
598598
staticvoid
599599
_outUnique(StringInfostr,Unique*node)
600600
{
601+
inti;
602+
601603
appendStringInfo(str," UNIQUE ");
602604
_outPlanInfo(str, (Plan*)node);
603605

604-
appendStringInfo(str," :nonameid %u :keycount %d :numCols %d ",
606+
appendStringInfo(str," :nonameid %u :keycount %d :numCols %d:uniqColIdx",
605607
node->nonameid,
606608
node->keycount,
607609
node->numCols);
608-
}
609610

611+
for (i=0;i<node->numCols;i++)
612+
appendStringInfo(str,"%d ", (int)node->uniqColIdx[i]);
613+
}
610614

611615
/*
612616
*Hash is a subclass of Noname

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp