aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/basics.source
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2020-05-06 12:29:41 -0400
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2020-05-06 12:29:41 -0400
commit2eea49471fbaeed050eea4fe0e28cdb8de61d0ac (patch)
tree7a537d02116ddec4cbfd3becc77fde5d69880b39 /src/tutorial/basics.source
parent8c0939dadab0e7c26e303efbbb2245b0aebf97c2 (diff)
downloadpostgresql-2eea49471fbaeed050eea4fe0e28cdb8de61d0ac.tar.gz
postgresql-2eea49471fbaeed050eea4fe0e28cdb8de61d0ac.zip
Heed lock protocol in DROP OWNED BY
We were acquiring object locks then deleting objects one by one, instead of acquiring all object locks first, ignoring those that did not exist, and then deleting all objects together. The latter is the correct protocol to use, and what this commits changes to code to do. Failing to follow that leads to "cache lookup failed for relation XYZ" error reports when DROP OWNED runs concurrently with other DDL -- for example, a session termination that removes some temp tables. Author: Álvaro Herrera Reported-by: Mithun Chicklore Yogendra (Mithun CY) Reviewed-by: Ahsan Hadi, Tom Lane Discussion: https://postgr.es/m/CADq3xVZTbzK4ZLKq+dn_vB4QafXXbmMgDP3trY-GuLnib2Ai1w@mail.gmail.com
Diffstat (limited to 'src/tutorial/basics.source')
0 files changed, 0 insertions, 0 deletions