diff options
author | Tom Lane | 2016-08-07 18:36:02 +0000 |
---|---|---|
committer | Tom Lane | 2016-08-07 18:36:02 +0000 |
commit | 07a601eedab7c5fa4d62055fa3efacef2f38e446 (patch) | |
tree | a7cff4ff9db946e5f061b99e3c00cfce2f9dba4b /src/backend/commands/portalcmds.c | |
parent | bcbecbce2fde3c6dfa9080db11663877808a007d (diff) |
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: <[email protected]>
Report: <[email protected]>
Diffstat (limited to 'src/backend/commands/portalcmds.c')
0 files changed, 0 insertions, 0 deletions