Skip site navigation (1) Skip section navigation (2)

pgsql: Add system catalog columns pg_constraint.conindid and

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add system catalog columns pg_constraint.conindid and
Date: 2009-07-28 02:56:31
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committers
Log Message:
Add system catalog columns pg_constraint.conindid and pg_trigger.tgconstrindid.

conindid is the index supporting a constraint.  We can use this not only for
unique/primary-key constraints, but also foreign-key constraints, which
depend on the unique index that constrains the referenced columns.
tgconstrindid is just copied from the constraint's conindid field, or is
zero for triggers not associated with constraints.

This is mainly intended as infrastructure for upcoming patches, but it has
some virtue in itself, since it exposes a relationship that you formerly
had to grovel in pg_depend to determine.  I simplified one information_schema
view accordingly.  (There is a pg_dump query that could also use conindid,
but I left it alone because it wasn't clear it'd get any faster.)

Modified Files:
        catalogs.sgml (r2.201 -> r2.202)
        trigger.sgml (r1.56 -> r1.57)
        heap.c (r1.354 -> r1.355)
        index.c (r1.318 -> r1.319)
        information_schema.sql (r1.57 -> r1.58)
        pg_constraint.c (r1.46 -> r1.47)
        tablecmds.c (r1.291 -> r1.292)
        trigger.c (r1.248 -> r1.249)
        typecmds.c (r1.135 -> r1.136)
        utility.c (r1.311 -> r1.312)
        catversion.h (r1.532 -> r1.533)
        pg_constraint.h (r1.31 -> r1.32)
        pg_trigger.h (r1.33 -> r1.34)
        trigger.h (r1.73 -> r1.74)
        rel.h (r1.114 -> r1.115)

pgsql-committers by date

Next:From: User KasaharaDate: 2009-07-28 08:25:06
Subject: pgstatsinfo - pg_statsinfo: - Move all tables/views/functions on
Previous:From: Tom LaneDate: 2009-07-27 14:14:52
Subject: Re: Re: [COMMITTERS] pgsql: Reserve the shared memory region during backend startup on

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group