aboutsummaryrefslogtreecommitdiff
path: root/src/test/modules/commit_ts/sql/commit_timestamp.sql
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2021-10-19 19:08:45 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2021-10-19 19:08:45 -0300
commitc2c618ff1137f9ef58827f57e4ec0f97453e454e (patch)
treee71676a745105e9ffb6c5ba483608e1678eb308a /src/test/modules/commit_ts/sql/commit_timestamp.sql
parent4438eb4a495c977d8ac485dd6e544c2b6e077deb (diff)
downloadpostgresql-c2c618ff1137f9ef58827f57e4ec0f97453e454e.tar.gz
postgresql-c2c618ff1137f9ef58827f57e4ec0f97453e454e.zip
Ensure correct lock level is used in ALTER ... RENAME
Commit 1b5d797cd4f7 intended to relax the lock level used to rename indexes, but inadvertently allowed *any* relation to be renamed with a lowered lock level, as long as the command is spelled ALTER INDEX. That's undesirable for other relation types, so retry the operation with the higher lock if the relation turns out not to be an index. After this fix, ALTER INDEX <sometable> RENAME will require access exclusive lock, which it didn't before. Author: Nathan Bossart <bossartn@amazon.com> Author: Álvaro Herrera <alvherre@alvh.no-ip.org> Reported-by: Onder Kalaci <onderk@microsoft.com> Discussion: https://postgr.es/m/PH0PR21MB1328189E2821CDEC646F8178D8AE9@PH0PR21MB1328.namprd21.prod.outlook.com
Diffstat (limited to 'src/test/modules/commit_ts/sql/commit_timestamp.sql')
0 files changed, 0 insertions, 0 deletions