summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistutil.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2016-08-17 13:15:03 -0700
committerAndres Freund <andres@anarazel.de>2016-08-17 13:15:03 -0700
commit2d7e591007a6f44e5e27e2b6c1098483105c0d10 (patch)
tree8539581696520ed15c3f5b581d9bb49c3bdbfb2c /src/backend/access/gist/gistutil.c
parent6657acc0100ec79304b868a6346db4d8eb2f6b83 (diff)
downloadpostgresql-2d7e591007a6f44e5e27e2b6c1098483105c0d10.tar.gz
Properly re-initialize replication slot shared memory upon creation.
Slot creation did not clear all fields upon creation. After start the memory is zeroed, but when a physical replication slot was created in the shared memory of a previously existing logical slot, catalog_xmin would not be cleared. That in turn would prevent vacuum from doing its duties. To fix initialize all the fields. To make similar future bugs less likely, zero all of ReplicationSlotPersistentData, and re-order the rest of the initialization to be in struct member order. Analysis: Andrew Gierth Reported-By: md@chewy.com Author: Michael Paquier Discussion: <20160705173502.1398.70934@wrigleys.postgresql.org> Backpatch: 9.4, where replication slots were introduced
Diffstat (limited to 'src/backend/access/gist/gistutil.c')
0 files changed, 0 insertions, 0 deletions