pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix build on zlib-less environments 4+ messages / 1 participants [nested] [flat]
* pgsql: Fix build on zlib-less environments @ 2017-08-03 19:08 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 4+ messages in thread From: Alvaro Herrera @ 2017-08-03 19:08 UTC (permalink / raw) To: pgsql-committers Fix build on zlib-less environments Commit 4d57e8381677 added support for getting I/O errors out of zlib, but it introduced a portability problem for systems without zlib. Repair by wrapping the zlib call inside #ifdef and restore the original code in the other branch. This serves to illustrate the inadequacy of the zlib abstraction in pg_backup_archiver: there is no way to call gzerror() in that abstraction. This means that the several places that call GZREAD and GZWRITE are currently doing error reporting wrongly, but ENOTIME to get it fixed before next week's release set. Backpatch to 9.4, like the commit that introduced the problem. Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/9a3b5d3ad0f1c19c47e2ee65b372344cb0616c9a Modified Files -------------- src/bin/pg_dump/pg_backup_tar.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 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] 4+ messages in thread
* pgsql: Fix build on zlib-less environments @ 2017-08-03 19:08 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 4+ messages in thread From: Alvaro Herrera @ 2017-08-03 19:08 UTC (permalink / raw) To: pgsql-committers Fix build on zlib-less environments Commit 4d57e8381677 added support for getting I/O errors out of zlib, but it introduced a portability problem for systems without zlib. Repair by wrapping the zlib call inside #ifdef and restore the original code in the other branch. This serves to illustrate the inadequacy of the zlib abstraction in pg_backup_archiver: there is no way to call gzerror() in that abstraction. This means that the several places that call GZREAD and GZWRITE are currently doing error reporting wrongly, but ENOTIME to get it fixed before next week's release set. Backpatch to 9.4, like the commit that introduced the problem. Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/611840074a9a7f3348ed419e31fc47063228e4b8 Modified Files -------------- src/bin/pg_dump/pg_backup_tar.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 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] 4+ messages in thread
* pgsql: Fix build on zlib-less environments @ 2017-08-03 19:08 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 4+ messages in thread From: Alvaro Herrera @ 2017-08-03 19:08 UTC (permalink / raw) To: pgsql-committers Fix build on zlib-less environments Commit 4d57e8381677 added support for getting I/O errors out of zlib, but it introduced a portability problem for systems without zlib. Repair by wrapping the zlib call inside #ifdef and restore the original code in the other branch. This serves to illustrate the inadequacy of the zlib abstraction in pg_backup_archiver: there is no way to call gzerror() in that abstraction. This means that the several places that call GZREAD and GZWRITE are currently doing error reporting wrongly, but ENOTIME to get it fixed before next week's release set. Backpatch to 9.4, like the commit that introduced the problem. Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/12f1e523ad15480e60e8cc20fe5f768b360001d8 Modified Files -------------- src/bin/pg_dump/pg_backup_tar.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 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] 4+ messages in thread
* pgsql: Fix build on zlib-less environments @ 2017-08-03 19:08 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 4+ messages in thread From: Alvaro Herrera @ 2017-08-03 19:08 UTC (permalink / raw) To: pgsql-committers Fix build on zlib-less environments Commit 4d57e8381677 added support for getting I/O errors out of zlib, but it introduced a portability problem for systems without zlib. Repair by wrapping the zlib call inside #ifdef and restore the original code in the other branch. This serves to illustrate the inadequacy of the zlib abstraction in pg_backup_archiver: there is no way to call gzerror() in that abstraction. This means that the several places that call GZREAD and GZWRITE are currently doing error reporting wrongly, but ENOTIME to get it fixed before next week's release set. Backpatch to 9.4, like the commit that introduced the problem. Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/69ad12b589e61fd2790ef402532955acef95f7f4 Modified Files -------------- src/bin/pg_dump/pg_backup_tar.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 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] 4+ messages in thread
end of thread, other threads:[~2017-08-03 19:08 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2017-08-03 19:08 pgsql: Fix build on zlib-less environments Alvaro Herrera <alvherre@alvh.no-ip.org> 2017-08-03 19:08 pgsql: Fix build on zlib-less environments Alvaro Herrera <alvherre@alvh.no-ip.org> 2017-08-03 19:08 pgsql: Fix build on zlib-less environments Alvaro Herrera <alvherre@alvh.no-ip.org> 2017-08-03 19:08 pgsql: Fix build on zlib-less environments Alvaro Herrera <alvherre@alvh.no-ip.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