pgsql: Merge the Constraint and FkConstraint node types into a single

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Merge the Constraint and FkConstraint node types into a single
Date: 2009-07-30 02:45:38
Message-ID: 20090730024538.33A4A75331E@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Merge the Constraint and FkConstraint node types into a single type.

This was foreseen to be a good idea long ago, but nobody had got round
to doing it. The recent patch for deferred unique constraints made
transformConstraintAttrs() ugly enough that I decided it was time.
This change will also greatly simplify parsing of deferred CHECK constraints,
if anyone ever gets around to implementing that.

While at it, add a location field to Constraint, and use that to provide
an error cursor for some of the constraint-related error messages.

Modified Files:
--------------
pgsql/src/backend/catalog:
heap.c (r1.355 -> r1.356)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/catalog/heap.c?r1=1.355&r2=1.356)
pgsql/src/backend/commands:
tablecmds.c (r1.293 -> r1.294)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/tablecmds.c?r1=1.293&r2=1.294)
trigger.c (r1.250 -> r1.251)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/trigger.c?r1=1.250&r2=1.251)
typecmds.c (r1.136 -> r1.137)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/typecmds.c?r1=1.136&r2=1.137)
pgsql/src/backend/nodes:
copyfuncs.c (r1.436 -> r1.437)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/nodes/copyfuncs.c?r1=1.436&r2=1.437)
equalfuncs.c (r1.359 -> r1.360)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/nodes/equalfuncs.c?r1=1.359&r2=1.360)
nodeFuncs.c (r1.41 -> r1.42)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/nodes/nodeFuncs.c?r1=1.41&r2=1.42)
outfuncs.c (r1.362 -> r1.363)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/nodes/outfuncs.c?r1=1.362&r2=1.363)
pgsql/src/backend/parser:
gram.y (r2.674 -> r2.675)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/gram.y?r1=2.674&r2=2.675)
parse_utilcmd.c (r2.24 -> r2.25)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/parse_utilcmd.c?r1=2.24&r2=2.25)
pgsql/src/include/nodes:
nodes.h (r1.223 -> r1.224)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/nodes/nodes.h?r1=1.223&r2=1.224)
parsenodes.h (r1.399 -> r1.400)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/nodes/parsenodes.h?r1=1.399&r2=1.400)

Browse pgsql-committers by date

  From Date Subject
Next Message Magnus Hagander 2009-07-30 09:28:01 pgsql: Make sure FD_SETSIZE is set before we include any Windows header
Previous Message User Decibel 2009-07-29 22:36:39 deny-updates - trunk: Remove errant -'s