aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2018-12-27 10:17:26 +0900
committerMichael Paquier <michael@paquier.xyz>2018-12-27 10:17:26 +0900
commit0a323ae6769968408d00ec1a9d1790706d5540fc (patch)
tree4ab59086f628d0af25953f12761e0ec450574b7e /src/tutorial
parentb8fa4c1626190142d2e98155f9df99f80fe01cef (diff)
downloadpostgresql-0a323ae6769968408d00ec1a9d1790706d5540fc.tar.gz
postgresql-0a323ae6769968408d00ec1a9d1790706d5540fc.zip
Ignore inherited temp relations from other sessions when truncating
Inheritance trees can include temporary tables if the parent is permanent, which makes possible the presence of multiple temporary children from different sessions. Trying to issue a TRUNCATE on the parent in this scenario causes a failure, so similarly to any other queries just ignore such cases, which makes TRUNCATE work transparently. This makes truncation behave similarly to any other DML query working on the parent table with queries which need to be issues on children. A set of isolation tests is added to cover basic cases. Reported-by: Zhou Digoal Author: Amit Langote, Michael Paquier Discussion: https://postgr.es/m/15565-ce67a48d0244436a@postgresql.org Backpatch-through: 9.4
Diffstat (limited to 'src/tutorial')
0 files changed, 0 insertions, 0 deletions