Search Postgresql Archives

WG: question on plain pg_dump file usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 

Von: Zwettler Markus (OIZ) <Markus.Zwettler@xxxxxxxxxx>
Gesendet: Dienstag, 17. September 2024 14:22
An: PG-General Mailing List <pgsql-general@xxxxxxxxxxxxxx>
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

 


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux