Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1b4f150

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

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/backend/nodes/outfuncs.c

+7-3
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
static void
599599
_outUnique(StringInfo str, Unique *node)
600600
{
601+
int i;
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)