pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Japin Li <japinli@hotmail.com>
Subject: [PATCH v1] Use TEXT_DUMP_HEADER instead of hard-coded dump header
Date: Wed, 3 Jun 2026 15:18:20 +0800

---
 src/bin/pg_dump/pg_backup_archiver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

inline patch 1: src/bin/pg_dump/pg_backup_archiver.c (+1/-1 lines) download inline-1.patchdiff --git a/src/bin/pg_dump/pg_backup_archiver.c b/src/bin/pg_dump/pg_backup_archiver.c index 2fd773ad84f..f2f4cd1bef0 100644 --- a/src/bin/pg_dump/pg_backup_archiver.c +++ b/src/bin/pg_dump/pg_backup_archiver.c @@ -466,7 +466,7 @@ RestoreArchive(Archive *AHX, bool append_data) if (ropt->filename || ropt->compression_spec.algorithm != PG_COMPRESSION_NONE) SetOutput(AH, ropt->filename, ropt->compression_spec, append_data); - ahprintf(AH, "--\n-- PostgreSQL database dump\n--\n\n"); + ahprintf(AH, TEXT_DUMP_HEADER); /* * If generating plain-text output, enter restricted mode to block any -- 2.53.0
--=-=-=--

Message-ID: <no-message-id-479133@localhost>
Permalink:  ../no-message-id-479133@localhost/
Also on:    postgresql.org/message-id/no-message-id-479133@localhost

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: japinli@hotmail.com
  Subject: Re: [PATCH v1] Use TEXT_DUMP_HEADER instead of hard-coded dump header
  In-Reply-To: <no-message-id-479133@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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