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

pgsql: If an index depends on no columns of its table, give it a

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: If an index depends on no columns of its table, give it a
Date: 2007-11-08 23:23:00
Message-ID: 20071108232300.F1E76754156@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
If an index depends on no columns of its table, give it a dependency on the
whole table instead, to ensure that it goes away when the table is dropped.
Per bug #3723 from Sam Mason.

Backpatch as far as 7.4; AFAICT 7.3 does not have the issue, because it doesn't
have general-purpose expression indexes and so there must be at least one
column referenced by an index.

Tags:
----
REL8_2_STABLE

Modified Files:
--------------
    pgsql/src/backend/catalog:
        index.c (r1.274 -> r1.274.2.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/catalog/index.c?r1=1.274&r2=1.274.2.1)

pgsql-committers by date

Next:From: Tom LaneDate: 2007-11-08 23:23:07
Subject: pgsql: If an index depends on no columns of its table, give it a
Previous:From: Tom LaneDate: 2007-11-08 23:22:54
Subject: pgsql: If an index depends on no columns of its table, give it a

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