public inbox for [email protected]  
help / color / mirror / Atom feed
From: Zwettler Markus (OIZ) <[email protected]>
To: PG-General Mailing List <[email protected]>
Subject: WG: question on plain pg_dump file usage
Date: Tue, 17 Sep 2024 13:27:42 +0000
Message-ID: <GV0P278MB00996F003F2A695EFAF823948B612@GV0P278MB0099.CHEP278.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <GV0P278MB009945F8EA0D8D6B2CF9D91D8B612@GV0P278MB0099.CHEP278.PROD.OUTLOOK.COM>
References: <GV0P278MB009945F8EA0D8D6B2CF9D91D8B612@GV0P278MB0099.CHEP278.PROD.OUTLOOK.COM>


Von: Zwettler Markus (OIZ) <[email protected]>
Gesendet: Dienstag, 17. September 2024 14:22
An: PG-General Mailing List <[email protected]>
Betreff: question on plain pg_dump file usage

I have to do an out-of-place Postgres migration from PG12 to PG16 using:

pg_dump -F p -f dump.sql ...
sed -i "s/old_name/new_name/g"
psql -f dump.sql ...

Both databases are on UTF-8.

I wonder if there could be character set conversion errors here, as the data is temporarily written to a plain text file.

Thanks, Markus




I found that the tempory plain text file is also encoded in UTF-8.

There should not be any problem so. Agreed?

$ file -bi dump.sql
text/plain; charset=utf-8



view thread (3+ messages)

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: [email protected]
  Cc: [email protected]
  Subject: Re: WG: question on plain pg_dump file usage
  In-Reply-To: <GV0P278MB00996F003F2A695EFAF823948B612@GV0P278MB0099.CHEP278.PROD.OUTLOOK.COM>

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

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox