postgresql/src/backend
Fujii Masao 1d04a59be3 Make walsender always initialize the buffers.
Walsender uses the local buffers for each outgoing and incoming message.
Previously when creating replication slot, walsender forgot to initialize
one of them and which can cause the segmentation fault error. To fix this
issue, this commit changes walsender so that it always initialize them
before it executes the requested replication command.

Back-patch to 9.4 where replication slot was introduced.

Problem report and initial patch by Stas Kelvich, modified by me.
Report: https://www.postgresql.org/message-id/A1E9CB90-1FAC-4CAD-8DBA-9AA62A6E97C5@postgrespro.ru
2017-02-22 03:11:58 +09:00
..
access Add optimizer and executor support for parallel index scans. 2017-02-15 13:53:24 -05:00
bootstrap Remove dead code in bootstrap 2017-01-17 16:54:40 -03:00
catalog Optimize query for information_schema.constraint_column_usage 2017-02-17 19:32:15 -05:00
commands Make more use of castNode() 2017-02-21 11:59:09 -05:00
executor Add optimizer and executor support for parallel index-only scans. 2017-02-19 15:57:55 +05:30
foreign Generate fmgr prototypes automatically 2017-01-17 14:06:07 -05:00
lib Fix overflow check in StringInfo; add missing casts 2017-01-10 11:41:13 -03:00
libpq Fix typos in comments. 2017-02-06 11:33:58 +02:00
main Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
nodes Make more use of castNode() 2017-02-21 11:59:09 -05:00
optimizer Make more use of castNode() 2017-02-21 11:59:09 -05:00
parser Make more use of castNode() 2017-02-21 11:59:09 -05:00
po Translation updates 2016-08-08 11:08:00 -04:00
port Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
postmaster btree: Support parallel index scans. 2017-02-15 07:41:14 -05:00
regex Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
replication Make walsender always initialize the buffers. 2017-02-22 03:11:58 +09:00
rewrite Make more use of castNode() 2017-02-21 11:59:09 -05:00
snowball Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
storage Fix race condition in ConditionVariablePrepareToSleep. 2017-02-09 14:42:32 -05:00
tcop Add CREATE COLLATION IF NOT EXISTS clause 2017-02-15 10:01:28 -05:00
tsearch Fix typos in comments. 2017-02-06 11:33:58 +02:00
utils Make more use of castNode() 2017-02-21 11:59:09 -05:00
.gitignore
common.mk
Makefile Fix parallel make issue with new fmgrprotos.h 2017-01-23 15:36:27 -05:00
nls.mk