'pg_dump --create' forgets database encoding - Mailing list pgsql-bugs

From Nicolaus Erichsen
Subject 'pg_dump --create' forgets database encoding
Date
Msg-id 200210171645.07547.nico.erichsen@hsh-berlin.com
Whole thread Raw
Responses Re: 'pg_dump --create' forgets database encoding
List pgsql-bugs
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

pgsql-bugs by date:

Previous
From: Nicolaus Erichsen
Date:
Subject: Issues with german 'Umlaute'
Next
From: "geva"
Date:
Subject: vacuum bug