Commit 1b4f1505 authored by Tom Lane's avatar Tom Lane

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.
parent 6a4fa7ec
...@@ -6,7 +6,7 @@ ...@@ -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) ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment