pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix buffile.c error handling.
7+ messages / 1 participants
[nested] [flat]

* pgsql: Fix buffile.c error handling.
@ 2020-06-16 05:28 Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Thomas Munro @ 2020-06-16 05:28 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix buffile.c error handling.

Convert buffile.c error handling to use ereport.  This fixes cases where
I/O errors were indistinguishable from EOF or not reported.  Also remove
"%m" from error messages where errno would be bogus.  While we're
modifying those strings, add block numbers and short read byte counts
where appropriate.

Back-patch to all supported releases.

Reported-by: Amit Khandekar <amitdkhan.pg@gmail.com>
Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com>
Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Reviewed-by: Ibrar Ahmed <ibrar.ahmad@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CA%2BhUKGJE04G%3D8TLK0DLypT_27D9dR8F1RQgNp0jK6qR0tZGWOw%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7897e3bb902c557412645b82120f4d95f7474906

Modified Files
--------------
src/backend/access/gist/gistbuildbuffers.c | 24 +++++--------
src/backend/executor/nodeHashjoin.c        | 24 +++++--------
src/backend/replication/backup_manifest.c  |  9 ++---
src/backend/storage/file/buffile.c         | 45 ++++++++++++------------
src/backend/utils/sort/logtape.c           | 19 ++++++----
src/backend/utils/sort/sharedtuplestore.c  | 21 +++++------
src/backend/utils/sort/tuplestore.c        | 56 +++++++++++++-----------------
7 files changed, 88 insertions(+), 110 deletions(-)



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

* pgsql: Fix buffile.c error handling.
@ 2020-06-16 05:28 Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Thomas Munro @ 2020-06-16 05:28 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix buffile.c error handling.

Convert buffile.c error handling to use ereport.  This fixes cases where
I/O errors were indistinguishable from EOF or not reported.  Also remove
"%m" from error messages where errno would be bogus.  While we're
modifying those strings, add block numbers and short read byte counts
where appropriate.

Back-patch to all supported releases.

Reported-by: Amit Khandekar <amitdkhan.pg@gmail.com>
Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com>
Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Reviewed-by: Ibrar Ahmed <ibrar.ahmad@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CA%2BhUKGJE04G%3D8TLK0DLypT_27D9dR8F1RQgNp0jK6qR0tZGWOw%40mail.gmail.com

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3e0b08c404b2a7d799db78eb942a01534ac7926b

Modified Files
--------------
src/backend/access/gist/gistbuildbuffers.c | 24 +++++--------
src/backend/executor/nodeHashjoin.c        | 24 +++++--------
src/backend/replication/backup_manifest.c  |  9 ++---
src/backend/storage/file/buffile.c         | 45 ++++++++++++------------
src/backend/utils/sort/logtape.c           | 19 ++++++----
src/backend/utils/sort/sharedtuplestore.c  | 21 +++++------
src/backend/utils/sort/tuplestore.c        | 56 +++++++++++++-----------------
7 files changed, 88 insertions(+), 110 deletions(-)



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

* pgsql: Fix buffile.c error handling.
@ 2020-06-16 05:28 Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Thomas Munro @ 2020-06-16 05:28 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix buffile.c error handling.

Convert buffile.c error handling to use ereport.  This fixes cases where
I/O errors were indistinguishable from EOF or not reported.  Also remove
"%m" from error messages where errno would be bogus.  While we're
modifying those strings, add block numbers and short read byte counts
where appropriate.

Back-patch to all supported releases.

Reported-by: Amit Khandekar <amitdkhan.pg@gmail.com>
Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com>
Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Reviewed-by: Ibrar Ahmed <ibrar.ahmad@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CA%2BhUKGJE04G%3D8TLK0DLypT_27D9dR8F1RQgNp0jK6qR0tZGWOw%40mail.gmail.com

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/28ee126699446e5eb9ef4d83a9d195203e944a18

Modified Files
--------------
src/backend/access/gist/gistbuildbuffers.c | 24 +++++--------
src/backend/executor/nodeHashjoin.c        | 24 +++++--------
src/backend/storage/file/buffile.c         | 45 ++++++++++++------------
src/backend/utils/sort/logtape.c           | 19 ++++++----
src/backend/utils/sort/sharedtuplestore.c  | 21 +++++------
src/backend/utils/sort/tuplestore.c        | 56 +++++++++++++-----------------
6 files changed, 86 insertions(+), 103 deletions(-)



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

* pgsql: Fix buffile.c error handling.
@ 2020-06-16 05:29 Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Thomas Munro @ 2020-06-16 05:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix buffile.c error handling.

Convert buffile.c error handling to use ereport.  This fixes cases where
I/O errors were indistinguishable from EOF or not reported.  Also remove
"%m" from error messages where errno would be bogus.  While we're
modifying those strings, add block numbers and short read byte counts
where appropriate.

Back-patch to all supported releases.

Reported-by: Amit Khandekar <amitdkhan.pg@gmail.com>
Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com>
Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Reviewed-by: Ibrar Ahmed <ibrar.ahmad@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CA%2BhUKGJE04G%3D8TLK0DLypT_27D9dR8F1RQgNp0jK6qR0tZGWOw%40mail.gmail.com

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/9c14d602436543067f1a5403cff2f8c2e6f13403

Modified Files
--------------
src/backend/access/gist/gistbuildbuffers.c | 24 +++++--------
src/backend/executor/nodeHashjoin.c        | 24 +++++--------
src/backend/storage/file/buffile.c         | 56 +++++++++++++++++-------------
src/backend/utils/sort/logtape.c           | 19 ++++++----
src/backend/utils/sort/sharedtuplestore.c  | 21 +++++------
src/backend/utils/sort/tuplestore.c        | 56 +++++++++++++-----------------
6 files changed, 95 insertions(+), 105 deletions(-)



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

* pgsql: Fix buffile.c error handling.
@ 2020-06-16 05:29 Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Thomas Munro @ 2020-06-16 05:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix buffile.c error handling.

Convert buffile.c error handling to use ereport.  This fixes cases where
I/O errors were indistinguishable from EOF or not reported.  Also remove
"%m" from error messages where errno would be bogus.  While we're
modifying those strings, add block numbers and short read byte counts
where appropriate.

Back-patch to all supported releases.

Reported-by: Amit Khandekar <amitdkhan.pg@gmail.com>
Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com>
Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Reviewed-by: Ibrar Ahmed <ibrar.ahmad@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CA%2BhUKGJE04G%3D8TLK0DLypT_27D9dR8F1RQgNp0jK6qR0tZGWOw%40mail.gmail.com

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/95647a1c7d291043374332f72388543846e370a7

Modified Files
--------------
src/backend/access/gist/gistbuildbuffers.c | 24 +++++--------
src/backend/executor/nodeHashjoin.c        | 24 +++++--------
src/backend/storage/file/buffile.c         | 57 ++++++++++++++++--------------
src/backend/utils/sort/logtape.c           | 19 ++++++----
src/backend/utils/sort/tuplestore.c        | 56 +++++++++++++----------------
5 files changed, 86 insertions(+), 94 deletions(-)



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

* pgsql: Fix buffile.c error handling.
@ 2020-06-16 05:29 Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Thomas Munro @ 2020-06-16 05:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix buffile.c error handling.

Convert buffile.c error handling to use ereport.  This fixes cases where
I/O errors were indistinguishable from EOF or not reported.  Also remove
"%m" from error messages where errno would be bogus.  While we're
modifying those strings, add block numbers and short read byte counts
where appropriate.

Back-patch to all supported releases.

Reported-by: Amit Khandekar <amitdkhan.pg@gmail.com>
Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com>
Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Reviewed-by: Ibrar Ahmed <ibrar.ahmad@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CA%2BhUKGJE04G%3D8TLK0DLypT_27D9dR8F1RQgNp0jK6qR0tZGWOw%40mail.gmail.com

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/02b71f06be751ff9809f48742f15e1905a1a6d83

Modified Files
--------------
src/backend/access/gist/gistbuildbuffers.c | 24 +++++--------
src/backend/executor/nodeHashjoin.c        | 24 +++++--------
src/backend/storage/file/buffile.c         | 57 ++++++++++++++++--------------
src/backend/utils/sort/logtape.c           | 19 ++++++----
src/backend/utils/sort/tuplestore.c        | 56 +++++++++++++----------------
5 files changed, 86 insertions(+), 94 deletions(-)



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

* pgsql: Fix buffile.c error handling.
@ 2020-06-16 05:29 Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Thomas Munro @ 2020-06-16 05:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix buffile.c error handling.

Convert buffile.c error handling to use ereport.  This fixes cases where
I/O errors were indistinguishable from EOF or not reported.  Also remove
"%m" from error messages where errno would be bogus.  While we're
modifying those strings, add block numbers and short read byte counts
where appropriate.

Back-patch to all supported releases.

Reported-by: Amit Khandekar <amitdkhan.pg@gmail.com>
Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com>
Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Reviewed-by: Ibrar Ahmed <ibrar.ahmad@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CA%2BhUKGJE04G%3D8TLK0DLypT_27D9dR8F1RQgNp0jK6qR0tZGWOw%40mail.gmail.com

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/89020a92fb62fe09cd40d651ecbd4cd9912fd9d8

Modified Files
--------------
src/backend/access/gist/gistbuildbuffers.c | 24 +++++--------
src/backend/executor/nodeHashjoin.c        | 24 +++++--------
src/backend/storage/file/buffile.c         | 57 ++++++++++++++++--------------
src/backend/utils/sort/logtape.c           | 19 ++++++----
src/backend/utils/sort/tuplestore.c        | 56 +++++++++++++----------------
5 files changed, 86 insertions(+), 94 deletions(-)



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


end of thread, other threads:[~2020-06-16 05:29 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-06-16 05:28 pgsql: Fix buffile.c error handling. Thomas Munro <tmunro@postgresql.org>
2020-06-16 05:28 pgsql: Fix buffile.c error handling. Thomas Munro <tmunro@postgresql.org>
2020-06-16 05:28 pgsql: Fix buffile.c error handling. Thomas Munro <tmunro@postgresql.org>
2020-06-16 05:29 pgsql: Fix buffile.c error handling. Thomas Munro <tmunro@postgresql.org>
2020-06-16 05:29 pgsql: Fix buffile.c error handling. Thomas Munro <tmunro@postgresql.org>
2020-06-16 05:29 pgsql: Fix buffile.c error handling. Thomas Munro <tmunro@postgresql.org>
2020-06-16 05:29 pgsql: Fix buffile.c error handling. Thomas Munro <tmunro@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