aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2022-07-04 15:48:52 +0900
committerMichael Paquier <michael@paquier.xyz>2022-07-04 15:48:52 +0900
commit55f4802785f66a584c05dca40e5d9b25491674b2 (patch)
tree418789eea818f7cb717227062db2e7feac63e3d8 /src/backend/access/gist
parent8ba3cb2f1863e3243aa40d73633bd88f774f74ce (diff)
downloadpostgresql-55f4802785f66a584c05dca40e5d9b25491674b2.tar.gz
postgresql-55f4802785f66a584c05dca40e5d9b25491674b2.zip
Prevent write operations on large objects in read-only transactions
Attempting such an operation would already fail, but in various and confusing ways. For example, while in recovery, some elog() messages would be reported, but these should never be user-facing. This commit restricts any write operations done on large objects in a read-only context, so as the errors generated are more user-friendly. This is per the discussion done with Tom Lane and Robert Haas. Some regression tests are added to check the case of all the SQL functions working on large objects (including an update of the test's alternate output). Author: Yugo Nagata Discussion: https://postgr.es/m/20220527153028.61a4608f66abcd026fd3806f@sraoss.co.jp
Diffstat (limited to 'src/backend/access/gist')
0 files changed, 0 insertions, 0 deletions