Add pg_dump --on-conflict-do-nothing option

Enterprise / PostgreSQL - Thomas Munro [postgresql.org] - 13 July 2018 01:57 EDT

When dumping INSERT statements, optionally add ON CONFLICT DO NOTHING.

Author: Surafel Temesgen

387a5cfb94 Add pg_dump --on-conflict-do-nothing option.
doc/src/sgml/ref/pg_dump.sgml | 12 ++++++++++++
doc/src/sgml/ref/pg_dumpall.sgml | 12 ++++++++++++
src/bin/pg_dump/pg_backup.h | 1 +
src/bin/pg_dump/pg_dump.c | 11 ++++++++++-
src/bin/pg_dump/pg_dumpall.c | 5 +++++
src/bin/pg_dump/t/001_basic.pl | 7 ++++++-
6 files changed, 46 insertions(+), 2 deletions(-)

Upstream: git.postgresql.org


  • Share