diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-03-30 13:05:27 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-03-30 13:05:35 -0400 |
commit | 2897e069c1f4309a237a1fa4bf5d2fcd9c4b9868 (patch) | |
tree | fb62eadf0eef89ae972de7a90555730393aa9020 /contrib/postgres_fdw/deparse.c | |
parent | f444de5e34f673043b948e14ad3f76a30f698ecb (diff) |
Fix rare core dump in BackendIdGetTransactionIds().
BackendIdGetTransactionIds() neglected the possibility that the PROC
pointer in a ProcState array entry is null. In current usage, this could
only crash if the other backend had exited since pgstat_read_current_status
saw it as active, which is a pretty narrow window. But it's reachable in
the field, per bug #12918 from Vladimir Borodin.
Back-patch to 9.4 where the faulty code was introduced.
Diffstat (limited to 'contrib/postgres_fdw/deparse.c')
0 files changed, 0 insertions, 0 deletions