diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-08-10 19:02:46 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-08-10 19:02:46 +0000 |
commit | e9ec4bbffe1102bd1818a69ac9abf942bc17498f (patch) | |
tree | 9f13d6a5c3b3b03c3feb786f181524e9ece54bb7 /src/backend/access/gist/gistget.c | |
parent | 5e2ff20edf4bba7b1015abf18874f65192936901 (diff) | |
download | postgresql-e9ec4bbffe1102bd1818a69ac9abf942bc17498f.tar.gz postgresql-e9ec4bbffe1102bd1818a69ac9abf942bc17498f.zip |
Fix corner-case bug introduced with HOT: if REINDEX TABLE pg_class (or a
REINDEX DATABASE including same) is done before a session has done any other
update on pg_class, the pg_class relcache entry was left with an incorrect
setting of rd_indexattr, because the indexed-attributes set would be first
demanded at a time when we'd forced a partial list of indexes into the
pg_class entry, and it would remain cached after that. This could result
in incorrect decisions about HOT-update safety later in the same session.
In practice, since only pg_class_relname_nsp_index would be missed out,
only ALTER TABLE RENAME and ALTER TABLE SET SCHEMA could trigger a problem.
Per report and test case from Ondrej Jirman.
Diffstat (limited to 'src/backend/access/gist/gistget.c')
0 files changed, 0 insertions, 0 deletions