aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/json.c
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2020-03-19 08:11:45 +0530
committerAmit Kapila <akapila@postgresql.org>2020-03-19 08:11:45 +0530
commit72e78d831ab5550c39f2dcc7cc5d44c406ec3dc2 (patch)
tree78d8528b569a834c79478d8d3acf4f20aaeb1913 /src/backend/utils/adt/json.c
parent6312c08a291fc34068571ec64ee439f2674d739a (diff)
downloadpostgresql-72e78d831ab5550c39f2dcc7cc5d44c406ec3dc2.tar.gz
postgresql-72e78d831ab5550c39f2dcc7cc5d44c406ec3dc2.zip
Add assert to ensure that page locks don't participate in deadlock cycle.
Assert that we don't acquire any other heavyweight lock while holding the page lock except for relation extension. However, these locks are never taken in reverse order which implies that page locks will never participate in the deadlock cycle. Similar to relation extension, page locks are also held for a short duration, so imposing such a restriction won't hurt. Author: Dilip Kumar, with few changes by Amit Kapila Reviewed-by: Amit Kapila, Kuntal Ghosh and Sawada Masahiko Discussion: https://postgr.es/m/CAD21AoCmT3cFQUN4aVvzy5chw7DuzXrJCbrjTU05B+Ss=Gn1LA@mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/json.c')
0 files changed, 0 insertions, 0 deletions