1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-20 05:03:10 +03:00
Files
postgres/src/backend/utils/adt
Tom Lane e84bf65121 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.
2010-11-02 17:15:13 -04:00
..
2010-02-26 02:01:40 +00:00
2010-02-26 02:01:40 +00:00
2010-01-02 16:58:17 +00:00
2010-01-02 16:58:17 +00:00
2010-01-02 16:58:17 +00:00
2010-02-26 02:01:40 +00:00
2010-01-02 16:58:17 +00:00
2010-02-26 02:01:40 +00:00
2010-02-26 02:01:40 +00:00
2010-01-02 16:58:17 +00:00
2010-02-26 02:01:40 +00:00
2010-07-06 19:19:02 +00:00
2010-01-05 01:29:36 +00:00
2010-02-26 02:01:40 +00:00
2010-02-26 02:01:40 +00:00
2010-02-26 02:01:40 +00:00
2010-07-06 19:19:02 +00:00
2010-01-02 16:58:17 +00:00
2010-02-26 02:01:40 +00:00
2010-02-26 02:01:40 +00:00
2010-01-02 16:58:17 +00:00
2010-02-26 02:01:40 +00:00
2010-01-02 16:58:17 +00:00
2010-07-06 19:19:02 +00:00
2010-07-06 19:19:02 +00:00
2010-02-26 02:01:40 +00:00
2010-01-02 16:58:17 +00:00
2010-02-26 02:01:40 +00:00
2010-02-26 02:01:40 +00:00
2010-01-02 16:58:17 +00:00
2010-02-26 02:01:40 +00:00
2010-01-02 16:58:17 +00:00
2010-01-02 16:58:17 +00:00
2010-01-02 16:58:17 +00:00
2010-01-02 16:58:17 +00:00
2010-02-26 02:01:40 +00:00
2010-01-02 16:58:17 +00:00
2010-02-26 02:01:40 +00:00
2010-01-02 16:58:17 +00:00
2010-01-02 16:58:17 +00:00
2010-01-02 16:58:17 +00:00
2010-07-06 19:19:02 +00:00