aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/tsvector_parser.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2021-06-05 07:16:34 +0200
committerPeter Eisentraut <peter@eisentraut.org>2021-06-17 09:01:22 +0200
commit3989f8fb9dd84afda7e27de04bf83e31903d46ba (patch)
treebf1391d92f46643a5d51ffad36274e795ea8da22 /src/backend/utils/adt/tsvector_parser.c
parent9f7bba2629cf3413638936d0376bb50403144332 (diff)
downloadpostgresql-3989f8fb9dd84afda7e27de04bf83e31903d46ba.tar.gz
postgresql-3989f8fb9dd84afda7e27de04bf83e31903d46ba.zip
Fix subtransaction test for Python 3.10
Starting with Python 3.10, the stacktrace looks differently: - PL/Python function "subtransaction_exit_subtransaction_in_with", line 3, in <module> - s.__exit__(None, None, None) + PL/Python function "subtransaction_exit_subtransaction_in_with", line 2, in <module> + with plpy.subtransaction() as s: Using try/except specifically makes the error look always the same. (See https://github.com/python/cpython/pull/25719 for the discussion of this change in Python.) Author: Honza Horak <hhorak@redhat.com> Discussion: https://www.postgresql.org/message-id/flat/853083.1620749597%40sss.pgh.pa.us RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1959080
Diffstat (limited to 'src/backend/utils/adt/tsvector_parser.c')
0 files changed, 0 insertions, 0 deletions