diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2021-07-31 11:50:14 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2021-07-31 11:50:14 -0400 |
commit | 93f99693f9c2a8e0662d847c4ba2abed1628c1d8 (patch) | |
tree | 1986a9a9e28e2f34cfb0e225cb711a9deb7d7603 /contrib/postgres_fdw/postgres_fdw.c | |
parent | 053ec4e0c4e8027bc084d25a846e35ba84ae966c (diff) | |
download | postgresql-93f99693f9c2a8e0662d847c4ba2abed1628c1d8.tar.gz postgresql-93f99693f9c2a8e0662d847c4ba2abed1628c1d8.zip |
Use elog, not Assert, to report failure to provide an outer snapshot.
As of commit 84f5c2908, executing SQL commands (via SPI or otherwise)
requires having either an active Portal, or a caller-established
active snapshot. We were simply Assert'ing that that's the case.
But we've now had a couple different reports of people testing
extensions that didn't meet this requirement, and were confused by
the resulting crash. Let's convert the Assert to a test-and-elog,
in hopes of making the issue clearer for extension authors.
Per gripes from Liu Huailing and RekGRpth. Back-patch to v11,
like the prior commit.
Discussion: https://postgr.es/m/OSZPR01MB6215671E3C5956A034A080DFBEEC9@OSZPR01MB6215.jpnprd01.prod.outlook.com
Discussion: https://postgr.es/m/17035-14607d308ac8643c@postgresql.org
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions