diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-08-07 14:36:02 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-08-07 14:36:02 -0400 |
commit | 07a601eedab7c5fa4d62055fa3efacef2f38e446 (patch) | |
tree | a7cff4ff9db946e5f061b99e3c00cfce2f9dba4b /src/backend/utils/adt/jsonb_util.c | |
parent | bcbecbce2fde3c6dfa9080db11663877808a007d (diff) | |
download | postgresql-07a601eedab7c5fa4d62055fa3efacef2f38e446.tar.gz postgresql-07a601eedab7c5fa4d62055fa3efacef2f38e446.zip |
Avoid crashing in GetOldestSnapshot() if there are no known snapshots.
The sole caller expects NULL to be returned in such a case, so make
it so and document it.
Per reports from Andreas Seltenreich and Regina Obe. This doesn't
really fix their problem, as now their RETURNING queries will say
"ERROR: no known snapshots", but in any case this function should
not dump core in a reasonably-foreseeable situation.
Report: <87vazemeda.fsf@credativ.de>
Report: <20160807051854.1427.32414@wrigleys.postgresql.org>
Diffstat (limited to 'src/backend/utils/adt/jsonb_util.c')
0 files changed, 0 insertions, 0 deletions