aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/int.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-06-11 15:49:28 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-06-11 15:49:28 +0000
commitbf64a37909cd25e2e14c47de922a51d205795d17 (patch)
tree9c1f09b19f36033f6da8bc4ada1d6c6485ab3b94 /src/backend/utils/adt/int.c
parent807bfa581c1ed9bf44efcdf501e2c92e5d29ed40 (diff)
downloadpostgresql-bf64a37909cd25e2e14c47de922a51d205795d17.tar.gz
postgresql-bf64a37909cd25e2e14c47de922a51d205795d17.zip
Fix Assert failure when a fastpath function call is attempted inside an
already-aborted transaction block. GetSnapshotData throws an Assert if not in a valid transaction; hence we mustn't attempt to set a snapshot for the function until after checking for aborted transaction. This is harmless AFAICT if Asserts aren't enabled (GetSnapshotData will compute a bogus snapshot, but it doesn't matter since HandleFunctionRequest will throw an error shortly anywy). Hence, not a major bug. Along the way, add some ability to log fastpath calls when statement logging is turned on. This could probably stand to be improved further, but not logging anything is clearly undesirable. Backpatched as far as 8.0; bug doesn't exist before that.
Diffstat (limited to 'src/backend/utils/adt/int.c')
0 files changed, 0 insertions, 0 deletions