aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/array_userfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-03-30 13:05:27 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2015-03-30 13:05:27 -0400
commit701dcc983eb4d08dd36bb3a0ddba255819797760 (patch)
treeef96b146b2876c3e3d3ed0e51c090ad030e9ef34 /src/backend/utils/adt/array_userfuncs.c
parent0633a60f4d2a2677db45d9261c94be9287e36d7c (diff)
downloadpostgresql-701dcc983eb4d08dd36bb3a0ddba255819797760.tar.gz
postgresql-701dcc983eb4d08dd36bb3a0ddba255819797760.zip
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 'src/backend/utils/adt/array_userfuncs.c')
0 files changed, 0 insertions, 0 deletions