'pg_dump --create' forgets database encoding

Started by Nicolaus Erichsenover 23 years ago2 messagesbugs
Jump to latest
#1Nicolaus Erichsen
nico.erichsen@hsh-berlin.com

Hello everybody,

pg_dump forgets to include the 'with encoding ....' statement in its ouput.

To reproduce:

----------------- snip ----------------------------

nico@nico:~> psql -Upostgres -dtemplate1
Welcome to psql, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help on internal slash commands
\g or terminate with semicolon to execute query
\q to quit

template1=# create database enctest with encoding='latin1';
CREATE DATABASE
template1=# \q
nico@nico:~> pg_dump --create enctest
--
-- Selected TOC Entries:
--
\connect - postgres

--
-- TOC Entry ID 1 (OID 0)
--
-- Name: enctest Type: DATABASE Owner: postgres
--

Create Database "enctest";

\connect enctest postgres

nico@nico:~> pg_dump --version
pg_dump (PostgreSQL) 7.2

----------- snap ---------------

Thanks in advance for your efforts.

Btw: PostgreSQL is still one of the greatest programs I have ever seen. :-))

N.Erichsen

--
HSH Soft-und Hardware Vertriebs GmbH
Rudolf-Diesel-Straᅵe 2 - 16321 Lindenberg
Tel. (030) 94004 - 509 Fax (030) 94004 - 400

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Nicolaus Erichsen (#1)
Re: 'pg_dump --create' forgets database encoding

Nicolaus Erichsen <nico.erichsen@hsh-berlin.com> writes:

pg_dump forgets to include the 'with encoding ....' statement in its ouput.

Fixed since 7.2.1.

regards, tom lane