aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistutil.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-11-02 17:15:19 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2010-11-02 17:15:19 -0400
commit5ab15b521f42833875a53b885ff7ab8cf0a655a3 (patch)
tree80a95547b4f601454436e1c835ae75211d80d270 /src/backend/access/gist/gistutil.c
parentf44b6fc9f1334e3f52ed3c5430e008637af59a12 (diff)
downloadpostgresql-5ab15b521f42833875a53b885ff7ab8cf0a655a3.tar.gz
postgresql-5ab15b521f42833875a53b885ff7ab8cf0a655a3.zip
Ensure an index that uses a whole-row Var still depends on its table.
We failed to record any dependency on the underlying table for an index declared like "create index i on t (foo(t.*))". This would create trouble if the table were dropped without previously dropping the index. To fix, simplify some overly-cute code in index_create(), accepting the possibility that sometimes the whole-table dependency will be redundant. Also document this hazard in dependency.c. Per report from Kevin Grittner. In passing, prevent a core dump in pg_get_indexdef() if the index's table can't be found. I came across this while experimenting with Kevin's example. Not sure it's a real issue when the catalogs aren't corrupt, but might as well be cautious. Back-patch to all supported versions.
Diffstat (limited to 'src/backend/access/gist/gistutil.c')
0 files changed, 0 insertions, 0 deletions