pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Reset properly errno before calling write()
7+ messages / 1 participants
[nested] [flat]

* pgsql: Reset properly errno before calling write()
@ 2018-08-04 20:34  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 7+ messages in thread

From: Michael Paquier @ 2018-08-04 20:34 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Reset properly errno before calling write()

6cb3372 enforces errno to ENOSPC when less bytes than what is expected
have been written when it is unset, though it forgot to properly reset
errno before doing a system call to write(), causing errno to
potentially come from a previous system call.

Reported-by: Tom Lane
Author: Michael Paquier
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/31797.1533326676@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5a23c74b63ec9f63c648f79b13a900c37332ee55

Modified Files
--------------
src/backend/access/heap/rewriteheap.c           | 1 +
src/backend/access/transam/twophase.c           | 1 +
src/backend/replication/logical/origin.c        | 3 +++
src/backend/replication/logical/reorderbuffer.c | 1 +
src/backend/replication/logical/snapbuild.c     | 1 +
src/backend/replication/slot.c                  | 1 +
src/bin/pg_basebackup/walmethods.c              | 6 ++++++
7 files changed, 14 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Reset properly errno before calling write()
@ 2018-08-04 20:34  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 7+ messages in thread

From: Michael Paquier @ 2018-08-04 20:34 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Reset properly errno before calling write()

6cb3372 enforces errno to ENOSPC when less bytes than what is expected
have been written when it is unset, though it forgot to properly reset
errno before doing a system call to write(), causing errno to
potentially come from a previous system call.

Reported-by: Tom Lane
Author: Michael Paquier
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/31797.1533326676@sss.pgh.pa.us

Branch
------
REL9_5_STABLE

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

Modified Files
--------------
src/backend/access/heap/rewriteheap.c           | 1 +
src/backend/access/transam/twophase.c           | 1 +
src/backend/replication/logical/origin.c        | 3 +++
src/backend/replication/logical/reorderbuffer.c | 1 +
src/backend/replication/logical/snapbuild.c     | 1 +
src/backend/replication/slot.c                  | 1 +
src/bin/pg_basebackup/receivelog.c              | 2 ++
7 files changed, 10 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Reset properly errno before calling write()
@ 2018-08-04 20:34  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 7+ messages in thread

From: Michael Paquier @ 2018-08-04 20:34 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Reset properly errno before calling write()

6cb3372 enforces errno to ENOSPC when less bytes than what is expected
have been written when it is unset, though it forgot to properly reset
errno before doing a system call to write(), causing errno to
potentially come from a previous system call.

Reported-by: Tom Lane
Author: Michael Paquier
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/31797.1533326676@sss.pgh.pa.us

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7124e64520834cd238c9f0efcfe429c28696b11d

Modified Files
--------------
src/backend/access/heap/rewriteheap.c           | 1 +
src/backend/access/transam/twophase.c           | 1 +
src/backend/replication/logical/origin.c        | 3 +++
src/backend/replication/logical/reorderbuffer.c | 1 +
src/backend/replication/logical/snapbuild.c     | 1 +
src/backend/replication/slot.c                  | 1 +
src/bin/pg_basebackup/walmethods.c              | 6 ++++++
7 files changed, 14 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Reset properly errno before calling write()
@ 2018-08-04 20:34  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 7+ messages in thread

From: Michael Paquier @ 2018-08-04 20:34 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Reset properly errno before calling write()

6cb3372 enforces errno to ENOSPC when less bytes than what is expected
have been written when it is unset, though it forgot to properly reset
errno before doing a system call to write(), causing errno to
potentially come from a previous system call.

Reported-by: Tom Lane
Author: Michael Paquier
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/31797.1533326676@sss.pgh.pa.us

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/58673b4a5fdff4d0d327c2d07e0cf8743f86f44c

Modified Files
--------------
src/backend/access/heap/rewriteheap.c           | 1 +
src/backend/access/transam/twophase.c           | 1 +
src/backend/replication/logical/origin.c        | 3 +++
src/backend/replication/logical/reorderbuffer.c | 1 +
src/backend/replication/logical/snapbuild.c     | 1 +
src/backend/replication/slot.c                  | 1 +
src/bin/pg_basebackup/walmethods.c              | 6 ++++++
7 files changed, 14 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Reset properly errno before calling write()
@ 2018-08-04 20:34  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 7+ messages in thread

From: Michael Paquier @ 2018-08-04 20:34 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Reset properly errno before calling write()

6cb3372 enforces errno to ENOSPC when less bytes than what is expected
have been written when it is unset, though it forgot to properly reset
errno before doing a system call to write(), causing errno to
potentially come from a previous system call.

Reported-by: Tom Lane
Author: Michael Paquier
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/31797.1533326676@sss.pgh.pa.us

Branch
------
REL9_3_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/69599cc49e7cc48f180e49322aea00c1ec634388

Modified Files
--------------
src/backend/access/transam/twophase.c | 1 +
src/bin/pg_basebackup/receivelog.c    | 2 ++
2 files changed, 3 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Reset properly errno before calling write()
@ 2018-08-04 20:34  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 7+ messages in thread

From: Michael Paquier @ 2018-08-04 20:34 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Reset properly errno before calling write()

6cb3372 enforces errno to ENOSPC when less bytes than what is expected
have been written when it is unset, though it forgot to properly reset
errno before doing a system call to write(), causing errno to
potentially come from a previous system call.

Reported-by: Tom Lane
Author: Michael Paquier
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/31797.1533326676@sss.pgh.pa.us

Branch
------
REL9_6_STABLE

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

Modified Files
--------------
src/backend/access/heap/rewriteheap.c           | 1 +
src/backend/access/transam/twophase.c           | 1 +
src/backend/replication/logical/origin.c        | 3 +++
src/backend/replication/logical/reorderbuffer.c | 1 +
src/backend/replication/logical/snapbuild.c     | 1 +
src/backend/replication/slot.c                  | 1 +
src/bin/pg_basebackup/receivelog.c              | 2 ++
7 files changed, 10 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Reset properly errno before calling write()
@ 2018-08-04 20:34  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 7+ messages in thread

From: Michael Paquier @ 2018-08-04 20:34 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Reset properly errno before calling write()

6cb3372 enforces errno to ENOSPC when less bytes than what is expected
have been written when it is unset, though it forgot to properly reset
errno before doing a system call to write(), causing errno to
potentially come from a previous system call.

Reported-by: Tom Lane
Author: Michael Paquier
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/31797.1533326676@sss.pgh.pa.us

Branch
------
REL9_4_STABLE

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

Modified Files
--------------
src/backend/access/heap/rewriteheap.c           | 1 +
src/backend/access/transam/twophase.c           | 1 +
src/backend/replication/logical/reorderbuffer.c | 1 +
src/backend/replication/logical/snapbuild.c     | 1 +
src/backend/replication/slot.c                  | 1 +
src/bin/pg_basebackup/receivelog.c              | 2 ++
6 files changed, 7 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2018-08-04 20:34 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-08-04 20:34 pgsql: Reset properly errno before calling write() Michael Paquier <michael@paquier.xyz>
2018-08-04 20:34 pgsql: Reset properly errno before calling write() Michael Paquier <michael@paquier.xyz>
2018-08-04 20:34 pgsql: Reset properly errno before calling write() Michael Paquier <michael@paquier.xyz>
2018-08-04 20:34 pgsql: Reset properly errno before calling write() Michael Paquier <michael@paquier.xyz>
2018-08-04 20:34 pgsql: Reset properly errno before calling write() Michael Paquier <michael@paquier.xyz>
2018-08-04 20:34 pgsql: Reset properly errno before calling write() Michael Paquier <michael@paquier.xyz>
2018-08-04 20:34 pgsql: Reset properly errno before calling write() Michael Paquier <michael@paquier.xyz>

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