pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Change pg_restore -f- to dump to stdout instead of to ./- 5+ messages / 1 participants [nested] [flat]
* pgsql: Change pg_restore -f- to dump to stdout instead of to ./- @ 2019-11-05 13:11 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 5+ messages in thread From: Alvaro Herrera @ 2019-11-05 13:11 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Change pg_restore -f- to dump to stdout instead of to ./- Starting with PostgreSQL 12, pg_restore refuses to run when neither -d nor -f are specified (c.f. commit 413ccaa74d9a), and it also makes "-f -" mean the old implicit behavior of dumping to stdout. However, older branches write to a file called ./- when invoked like that, making it impossible to write pg_restore scripts that work across versions. This is a partial backpatch of the aforementioned commit to all older supported branches, providing an upgrade path. Discussion: https://postgr.es/m/20191006190839.GE18030@telsasoft.com Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d38635725cad3fb0a980e02440f5691c9ba00f3f Modified Files -------------- doc/src/sgml/ref/pg_restore.sgml | 4 ++-- src/bin/pg_dump/pg_backup_archiver.c | 7 ++++++- src/bin/pg_dump/pg_restore.c | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Change pg_restore -f- to dump to stdout instead of to ./- @ 2019-11-05 13:11 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 5+ messages in thread From: Alvaro Herrera @ 2019-11-05 13:11 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Change pg_restore -f- to dump to stdout instead of to ./- Starting with PostgreSQL 12, pg_restore refuses to run when neither -d nor -f are specified (c.f. commit 413ccaa74d9a), and it also makes "-f -" mean the old implicit behavior of dumping to stdout. However, older branches write to a file called ./- when invoked like that, making it impossible to write pg_restore scripts that work across versions. This is a partial backpatch of the aforementioned commit to all older supported branches, providing an upgrade path. Discussion: https://postgr.es/m/20191006190839.GE18030@telsasoft.com Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/12a51e2ebea7c90eb5a676f761f81f0ec7f68a50 Modified Files -------------- doc/src/sgml/ref/pg_restore.sgml | 4 ++-- src/bin/pg_dump/pg_backup_archiver.c | 7 ++++++- src/bin/pg_dump/pg_restore.c | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Change pg_restore -f- to dump to stdout instead of to ./- @ 2019-11-05 13:11 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 5+ messages in thread From: Alvaro Herrera @ 2019-11-05 13:11 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Change pg_restore -f- to dump to stdout instead of to ./- Starting with PostgreSQL 12, pg_restore refuses to run when neither -d nor -f are specified (c.f. commit 413ccaa74d9a), and it also makes "-f -" mean the old implicit behavior of dumping to stdout. However, older branches write to a file called ./- when invoked like that, making it impossible to write pg_restore scripts that work across versions. This is a partial backpatch of the aforementioned commit to all older supported branches, providing an upgrade path. Discussion: https://postgr.es/m/20191006190839.GE18030@telsasoft.com Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/9fb25fda6d56524562fb32316335133b6ba0e544 Modified Files -------------- doc/src/sgml/ref/pg_restore.sgml | 4 ++-- src/bin/pg_dump/pg_backup_archiver.c | 7 ++++++- src/bin/pg_dump/pg_restore.c | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Change pg_restore -f- to dump to stdout instead of to ./- @ 2019-11-05 13:11 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 5+ messages in thread From: Alvaro Herrera @ 2019-11-05 13:11 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Change pg_restore -f- to dump to stdout instead of to ./- Starting with PostgreSQL 12, pg_restore refuses to run when neither -d nor -f are specified (c.f. commit 413ccaa74d9a), and it also makes "-f -" mean the old implicit behavior of dumping to stdout. However, older branches write to a file called ./- when invoked like that, making it impossible to write pg_restore scripts that work across versions. This is a partial backpatch of the aforementioned commit to all older supported branches, providing an upgrade path. Discussion: https://postgr.es/m/20191006190839.GE18030@telsasoft.com Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/3574c0ac0509df2a70fa225f379541ef22c5756d Modified Files -------------- doc/src/sgml/ref/pg_restore.sgml | 4 ++-- src/bin/pg_dump/pg_backup_archiver.c | 7 ++++++- src/bin/pg_dump/pg_restore.c | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Change pg_restore -f- to dump to stdout instead of to ./- @ 2019-11-05 13:11 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 5+ messages in thread From: Alvaro Herrera @ 2019-11-05 13:11 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Change pg_restore -f- to dump to stdout instead of to ./- Starting with PostgreSQL 12, pg_restore refuses to run when neither -d nor -f are specified (c.f. commit 413ccaa74d9a), and it also makes "-f -" mean the old implicit behavior of dumping to stdout. However, older branches write to a file called ./- when invoked like that, making it impossible to write pg_restore scripts that work across versions. This is a partial backpatch of the aforementioned commit to all older supported branches, providing an upgrade path. Discussion: https://postgr.es/m/20191006190839.GE18030@telsasoft.com Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/5ee8f0fe13b42e6a7711496676385a4ce02e9c5a Modified Files -------------- doc/src/sgml/ref/pg_restore.sgml | 4 ++-- src/bin/pg_dump/pg_backup_archiver.c | 7 ++++++- src/bin/pg_dump/pg_restore.c | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2019-11-05 13:11 UTC | newest] Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-11-05 13:11 pgsql: Change pg_restore -f- to dump to stdout instead of to ./- Alvaro Herrera <alvherre@alvh.no-ip.org> 2019-11-05 13:11 pgsql: Change pg_restore -f- to dump to stdout instead of to ./- Alvaro Herrera <alvherre@alvh.no-ip.org> 2019-11-05 13:11 pgsql: Change pg_restore -f- to dump to stdout instead of to ./- Alvaro Herrera <alvherre@alvh.no-ip.org> 2019-11-05 13:11 pgsql: Change pg_restore -f- to dump to stdout instead of to ./- Alvaro Herrera <alvherre@alvh.no-ip.org> 2019-11-05 13:11 pgsql: Change pg_restore -f- to dump to stdout instead of to ./- 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