pgsql: Speed up printing of INSERT statements in pg_dump. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Speed up printing of INSERT statements in pg_dump.
Date
Msg-id E1VhSOy-0005LW-DB@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Speed up printing of INSERT statements in pg_dump.

In --inserts and especially --column-inserts mode, we can get a useful
speedup by generating the common prefix of all a table's INSERT commands
just once, and then printing the prebuilt string for each row.  This avoids
multiple invocations of fmtId() and other minor fooling around.

David Rowley

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/97e1ec467099f1e581f491c8a57b7d56d0b9c539

Modified Files
--------------
src/bin/pg_dump/pg_dump.c |   73 +++++++++++++++++++++++++++++++--------------
1 file changed, 50 insertions(+), 23 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Clean up password prompting logic in streamutil.c.
Next
From: Tom Lane
Date:
Subject: pgsql: Fix incorrect loop counts in tidbitmap.c.