pgsql: Initialize replication_slot_catalog_xmin in procarray

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Initialize replication_slot_catalog_xmin in procarray
Date: 2017-08-16 01:14:37
Message-ID: E1dhmur-00056U-FY@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Initialize replication_slot_catalog_xmin in procarray

Although not confirmed and probably rare, if the newly allocated memory
is not already zero, this could possibly have caused some problems.

Also reorder the initializations slightly so they match the order of the
struct definition.

Author: Wong, Yi Wen <yiwong(at)amazon(dot)com>
Reviewed-by: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d01fc51c003ce6e7b0ac96204a1d82f1ba505b70

Modified Files
--------------
src/backend/storage/ipc/procarray.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2017-08-16 03:38:26 pgsql: Fix up some misusage of appendStringInfo() and friends
Previous Message Peter Eisentraut 2017-08-16 00:27:41 pgsql: doc: Document pg_receivewal exit behavior and status