OSDN Git Service

If an index depends on no columns of its table, give it a dependency on the
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 8 Nov 2007 23:22:54 +0000 (23:22 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 8 Nov 2007 23:22:54 +0000 (23:22 +0000)
commitc293ba9effba68f17fec74d3ca0e8f900f3c8a53
treeba2d15d4460edc85b20c9ef31eb497ef55086576
parentf55e6c07c37aa4e995ee9445e484a52ac77670a9
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.
src/backend/catalog/index.c