diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2015-03-30 16:01:44 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2015-03-30 16:01:44 -0300 |
commit | 0853630159944bb3652336602ff5f7f62cd27a5a (patch) | |
tree | 681c237f0aaf19c867cb61ad5861785a3c86a144 /src/backend/utils/adt/array_userfuncs.c | |
parent | 542320c2bd0b3796a8a9a4617cdb23fbad473390 (diff) | |
download | postgresql-0853630159944bb3652336602ff5f7f62cd27a5a.tar.gz postgresql-0853630159944bb3652336602ff5f7f62cd27a5a.zip |
Fix lost persistence setting during REINDEX INDEX
ReindexIndex() trusts a parser-built RangeVar with the persistence to
use for the new copy of the index; but the parser naturally does not
know what's the persistence of the original index. To find out the
correct persistence, grab it from relcache.
This bug was introduced by commit 85b506bbfc2937c9, and therefore no
backpatch is necessary.
Bug reported by Thom Brown, analysis and patch by Michael Paquier; test
case provided by FabrÃzio de Royes Mello.
Diffstat (limited to 'src/backend/utils/adt/array_userfuncs.c')
0 files changed, 0 insertions, 0 deletions