Обсуждение: pgsql: Speed up printing of INSERT statements in pg_dump.

Поиск
Список
Период
Сортировка

pgsql: Speed up printing of INSERT statements in pg_dump.

От
Tom Lane
Дата:
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(-)