pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Make walsender always initialize the buffers.
6+ messages / 3 participants
[nested] [flat]
* pgsql: Make walsender always initialize the buffers.
@ 2017-02-21 18:15 Fujii Masao <fujii@postgresql.org>
2017-02-21 19:04 ` Re: pgsql: Make walsender always initialize the buffers. Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 6+ messages in thread
From: Fujii Masao @ 2017-02-21 18:15 UTC (permalink / raw)
To: pgsql-committers
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
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/1d04a59be31bf004b880226be0e3fe84acff2815
Modified Files
--------------
src/backend/replication/walsender.c | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pgsql: Make walsender always initialize the buffers.
2017-02-21 18:15 pgsql: Make walsender always initialize the buffers. Fujii Masao <fujii@postgresql.org>
@ 2017-02-21 19:04 ` Tom Lane <tgl@sss.pgh.pa.us>
2017-02-21 23:31 ` Re: pgsql: Make walsender always initialize the buffers. Fujii Masao <masao.fujii@gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Tom Lane @ 2017-02-21 19:04 UTC (permalink / raw)
To: Fujii Masao <fujii@postgresql.org>; +Cc: pgsql-committers
Fujii Masao <fujii@postgresql.org> writes:
> Make walsender always initialize the buffers.
> ...
> Back-patch to 9.4 where replication slot was introduced.
Doesn't look like you actually pushed the back-patch? I only see
this in HEAD.
regards, tom lane
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pgsql: Make walsender always initialize the buffers.
2017-02-21 18:15 pgsql: Make walsender always initialize the buffers. Fujii Masao <fujii@postgresql.org>
2017-02-21 19:04 ` Re: pgsql: Make walsender always initialize the buffers. Tom Lane <tgl@sss.pgh.pa.us>
@ 2017-02-21 23:31 ` Fujii Masao <masao.fujii@gmail.com>
0 siblings, 0 replies; 6+ messages in thread
From: Fujii Masao @ 2017-02-21 23:31 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Fujii Masao <fujii@postgresql.org>; pgsql-committers
On Wed, Feb 22, 2017 at 4:04 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Fujii Masao <fujii@postgresql.org> writes:
>> Make walsender always initialize the buffers.
>> ...
>> Back-patch to 9.4 where replication slot was introduced.
>
> Doesn't look like you actually pushed the back-patch? I only see
> this in HEAD.
Oh, sorry... I pushed the back-patch.
Regards,
--
Fujii Masao
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Make walsender always initialize the buffers.
@ 2017-02-21 23:30 Fujii Masao <fujii@postgresql.org>
0 siblings, 0 replies; 6+ messages in thread
From: Fujii Masao @ 2017-02-21 23:30 UTC (permalink / raw)
To: pgsql-committers
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
Branch
------
REL9_4_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/a3eb715a36bdd28d809d3dd859f169489352882b
Modified Files
--------------
src/backend/replication/walsender.c | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Make walsender always initialize the buffers.
@ 2017-02-21 23:30 Fujii Masao <fujii@postgresql.org>
0 siblings, 0 replies; 6+ messages in thread
From: Fujii Masao @ 2017-02-21 23:30 UTC (permalink / raw)
To: pgsql-committers
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
Branch
------
REL9_5_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/feb659cced9755966190bbabfcead54fcfcddf0e
Modified Files
--------------
src/backend/replication/walsender.c | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Make walsender always initialize the buffers.
@ 2017-02-21 23:30 Fujii Masao <fujii@postgresql.org>
0 siblings, 0 replies; 6+ messages in thread
From: Fujii Masao @ 2017-02-21 23:30 UTC (permalink / raw)
To: pgsql-committers
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
Branch
------
REL9_6_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/9fab155c68a4e2164c39f61bc849ad669ad54f2c
Modified Files
--------------
src/backend/replication/walsender.c | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2017-02-21 23:31 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-02-21 18:15 pgsql: Make walsender always initialize the buffers. Fujii Masao <fujii@postgresql.org>
2017-02-21 19:04 ` Tom Lane <tgl@sss.pgh.pa.us>
2017-02-21 23:31 ` Fujii Masao <masao.fujii@gmail.com>
2017-02-21 23:30 pgsql: Make walsender always initialize the buffers. Fujii Masao <fujii@postgresql.org>
2017-02-21 23:30 pgsql: Make walsender always initialize the buffers. Fujii Masao <fujii@postgresql.org>
2017-02-21 23:30 pgsql: Make walsender always initialize the buffers. Fujii Masao <fujii@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox