mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
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.
This commit is contained in:
parent
6a4fa7eccb
commit
1b4f150541
@ -6,7 +6,7 @@
|
|||||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.114 2000/04/12 17:15:16 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.115 2000/04/26 23:39:10 tgl Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* Every (plan) node in POSTGRES has an associated "out" routine which
|
* Every (plan) node in POSTGRES has an associated "out" routine which
|
||||||
@ -598,15 +598,19 @@ _outGroup(StringInfo str, Group *node)
|
|||||||
static void
|
static void
|
||||||
_outUnique(StringInfo str, Unique *node)
|
_outUnique(StringInfo str, Unique *node)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
|
|
||||||
appendStringInfo(str, " UNIQUE ");
|
appendStringInfo(str, " UNIQUE ");
|
||||||
_outPlanInfo(str, (Plan *) node);
|
_outPlanInfo(str, (Plan *) node);
|
||||||
|
|
||||||
appendStringInfo(str, " :nonameid %u :keycount %d :numCols %d ",
|
appendStringInfo(str, " :nonameid %u :keycount %d :numCols %d :uniqColIdx ",
|
||||||
node->nonameid,
|
node->nonameid,
|
||||||
node->keycount,
|
node->keycount,
|
||||||
node->numCols);
|
node->numCols);
|
||||||
}
|
|
||||||
|
|
||||||
|
for (i = 0; i < node->numCols; i++)
|
||||||
|
appendStringInfo(str, "%d ", (int) node->uniqColIdx[i]);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Hash is a subclass of Noname
|
* Hash is a subclass of Noname
|
||||||
|
Loading…
x
Reference in New Issue
Block a user