pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Clean up some minor inefficiencies in parallel dump/restore. 4+ messages / 1 participants [nested] [flat]
* pgsql: Clean up some minor inefficiencies in parallel dump/restore. @ 2016-06-01 20:14 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2016-06-01 20:14 UTC (permalink / raw) To: pgsql-committers Clean up some minor inefficiencies in parallel dump/restore. Parallel dump did a totally pointless query to find out the name of each table to be dumped, which it already knows. Parallel restore runs issued lots of redundant SET commands because _doSetFixedOutputState() was invoked once per TOC item rather than just once at connection start. While the extra queries are insignificant if you're dumping or restoring large tables, it still seems worth getting rid of them. Also, give the responsibility for selecting the right client_encoding for a parallel dump worker to setup_connection() where it naturally belongs, instead of having ad-hoc code for that in CloneArchive(). And fix some minor bugs like use of strdup() where pg_strdup() would be safer. Back-patch to 9.3, mostly to keep the branches in sync in an area that we're still finding bugs in. Discussion: <5086.1464793073@sss.pgh.pa.us> Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/c2df9ccd97e88f9a353f8f8023383a23ebced27b Modified Files -------------- src/bin/pg_dump/parallel.c | 26 +------------------------- src/bin/pg_dump/pg_backup_archiver.c | 18 +++++++----------- src/bin/pg_dump/pg_dump.c | 32 +++++++++++++++++++++----------- 3 files changed, 29 insertions(+), 47 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] 4+ messages in thread
* pgsql: Clean up some minor inefficiencies in parallel dump/restore. @ 2016-06-01 20:14 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2016-06-01 20:14 UTC (permalink / raw) To: pgsql-committers Clean up some minor inefficiencies in parallel dump/restore. Parallel dump did a totally pointless query to find out the name of each table to be dumped, which it already knows. Parallel restore runs issued lots of redundant SET commands because _doSetFixedOutputState() was invoked once per TOC item rather than just once at connection start. While the extra queries are insignificant if you're dumping or restoring large tables, it still seems worth getting rid of them. Also, give the responsibility for selecting the right client_encoding for a parallel dump worker to setup_connection() where it naturally belongs, instead of having ad-hoc code for that in CloneArchive(). And fix some minor bugs like use of strdup() where pg_strdup() would be safer. Back-patch to 9.3, mostly to keep the branches in sync in an area that we're still finding bugs in. Discussion: <5086.1464793073@sss.pgh.pa.us> Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/763eec6b6d64767f5b2dd1a1fe314923bbc17968 Modified Files -------------- src/bin/pg_dump/parallel.c | 26 +---------------------- src/bin/pg_dump/pg_backup_archiver.c | 18 +++++++--------- src/bin/pg_dump/pg_dump.c | 40 +++++++++++++++++++++++------------- 3 files changed, 34 insertions(+), 50 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] 4+ messages in thread
* pgsql: Clean up some minor inefficiencies in parallel dump/restore. @ 2016-06-01 20:14 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2016-06-01 20:14 UTC (permalink / raw) To: pgsql-committers Clean up some minor inefficiencies in parallel dump/restore. Parallel dump did a totally pointless query to find out the name of each table to be dumped, which it already knows. Parallel restore runs issued lots of redundant SET commands because _doSetFixedOutputState() was invoked once per TOC item rather than just once at connection start. While the extra queries are insignificant if you're dumping or restoring large tables, it still seems worth getting rid of them. Also, give the responsibility for selecting the right client_encoding for a parallel dump worker to setup_connection() where it naturally belongs, instead of having ad-hoc code for that in CloneArchive(). And fix some minor bugs like use of strdup() where pg_strdup() would be safer. Back-patch to 9.3, mostly to keep the branches in sync in an area that we're still finding bugs in. Discussion: <5086.1464793073@sss.pgh.pa.us> Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/0a1485f1c0e50796b3fec97229756035a6cf91c1 Modified Files -------------- src/bin/pg_dump/parallel.c | 26 +------------------------- src/bin/pg_dump/pg_backup_archiver.c | 18 +++++++----------- src/bin/pg_dump/pg_dump.c | 32 +++++++++++++++++++++----------- 3 files changed, 29 insertions(+), 47 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] 4+ messages in thread
* pgsql: Clean up some minor inefficiencies in parallel dump/restore. @ 2016-06-01 20:14 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2016-06-01 20:14 UTC (permalink / raw) To: pgsql-committers Clean up some minor inefficiencies in parallel dump/restore. Parallel dump did a totally pointless query to find out the name of each table to be dumped, which it already knows. Parallel restore runs issued lots of redundant SET commands because _doSetFixedOutputState() was invoked once per TOC item rather than just once at connection start. While the extra queries are insignificant if you're dumping or restoring large tables, it still seems worth getting rid of them. Also, give the responsibility for selecting the right client_encoding for a parallel dump worker to setup_connection() where it naturally belongs, instead of having ad-hoc code for that in CloneArchive(). And fix some minor bugs like use of strdup() where pg_strdup() would be safer. Back-patch to 9.3, mostly to keep the branches in sync in an area that we're still finding bugs in. Discussion: <5086.1464793073@sss.pgh.pa.us> Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/43d3fbe369088f089afd55847dde0f34b339b5f2 Modified Files -------------- src/bin/pg_dump/parallel.c | 26 +---------------------- src/bin/pg_dump/pg_backup_archiver.c | 18 +++++++--------- src/bin/pg_dump/pg_dump.c | 40 +++++++++++++++++++++++------------- 3 files changed, 34 insertions(+), 50 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] 4+ messages in thread
end of thread, other threads:[~2016-06-01 20:14 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2016-06-01 20:14 pgsql: Clean up some minor inefficiencies in parallel dump/restore. Tom Lane <tgl@sss.pgh.pa.us> 2016-06-01 20:14 pgsql: Clean up some minor inefficiencies in parallel dump/restore. Tom Lane <tgl@sss.pgh.pa.us> 2016-06-01 20:14 pgsql: Clean up some minor inefficiencies in parallel dump/restore. Tom Lane <tgl@sss.pgh.pa.us> 2016-06-01 20:14 pgsql: Clean up some minor inefficiencies in parallel dump/restore. Tom Lane <tgl@sss.pgh.pa.us>
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