]> granicus.if.org Git - postgresql/commit
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:23:23 +0000 (23:23 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 8 Nov 2007 23:23:23 +0000 (23:23 +0000)
commitfcc3ac19fdb76e2975cc39a5cf5ca5c5c23751f3
tree8c55c654732dad32be70bc4c1f5740a4d4db2528
parentebec2bac886062d6288be25109605bb2b316a43d
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