]> 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:14 +0000 (23:23 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 8 Nov 2007 23:23:14 +0000 (23:23 +0000)
commita084d1f48f9bc0d9830678ddcfcc56b4968008e7
tree9d59448da5094f985ea9706cae68e535d03a00e8
parent7e002a6f5621d56260d8f9688afb85a797862241
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