]> git.ipfire.org Git - thirdparty/postgresql.git/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:07 +0000 (23:23 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 8 Nov 2007 23:23:07 +0000 (23:23 +0000)
commitb4b939e455be304a164b89665a754b142dd58d31
treee86144d2133233a65a1ff5a0900cf5b4dc7a412e
parente4a46db10f33e751351264a21d9bda45ea6ca6bb
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