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

pgsql: Simplify a couple of pg_dump and psql \d queries about index

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Simplify a couple of pg_dump and psql \d queries about index
Date: 2010-03-11 04:36:43
Message-ID: 20100311043643.9790C7541D0@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Simplify a couple of pg_dump and psql \d queries about index constraints
by joining to pg_constraint.conindid, instead of the former technique of
joining indirectly through pg_depend.  This is much more straightforward
and probably faster as well.  I had originally desisted from changing these
queries when conindid was added because I was worried about losing
performance, but if we join on conrelid as well as conindid then the index
on conrelid can be used when pg_constraint is large.

Modified Files:
--------------
    pgsql/src/bin/pg_dump:
        pg_dump.c (r1.577 -> r1.578)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_dump/pg_dump.c?r1=1.577&r2=1.578)
    pgsql/src/bin/psql:
        describe.c (r1.239 -> r1.240)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/describe.c?r1=1.239&r2=1.240)

pgsql-committers by date

Next:From: Heikki LinnakangasDate: 2010-03-11 09:10:25
Subject: pgsql: Fix comment which was apparently copy-pasted from another
Previous:From: Tom LaneDate: 2010-03-11 03:36:22
Subject: pgsql: Update comment for pg_constraint.conindid to mention that it's

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