Re:

From: Devrim GUNDUZ <devrim(at)tr(dot)net>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: PostgreSQL - Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re:
Date: 2003-01-16 08:15:27
Message-ID: 1042704927.916.17.camel@madness.tr.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Hi,

On Thu, 2003-01-16 at 10:13, Christopher Kings-Lynne wrote:

> In postgresql 7.3.1, if I do pg_dumpall -c, at the top of the dump file is
> this:
>
> DROP DATABASE au_shipping
> ;CREATE DATABASE au_shipping WITH OWNER = auadmin TEMPLATE = template0
> ENCODING = 'SQL_ASCII';
> DROP DATABASE au_test
> ;CREATE DATABASE au_test WITH OWNER = chriskl TEMPLATE = template0 ENCODING
> = 'SQL_ASCII';
> DROP DATABASE australia
> ;CREATE DATABASE australia WITH OWNER = auadmin TEMPLATE = template0
> ENCODING = 'SQL_ASCII';
> DROP DATABASE geeklog
> ;CREATE DATABASE geeklog WITH OWNER = chriskl TEMPLATE = template0 ENCODING
> = 'SQL_ASCII';
> DROP DATABASE keystone
> ;CREATE DATABASE keystone WITH OWNER = chriskl TEMPLATE = template0 ENCODING
> = 'SQL_ASCII';
>
> Why are all the CREATE DATABASE statements commented out? Surely that will
> make the restore fail?

Just guessing:

The first line does not have a ; at the end; so the first semicolon (at
the beginning of second line) will end the first line; will not comment
the CREATE DATABASE line...

I mean, it might work as below:
DROP DATABASE au_shipping;

CREATE DATABASE au_shipping WITH OWNER = auadmin TEMPLATE = template0
ENCODING = 'SQL_ASCII';

?

Best regards,
--
Devrim GUNDUZ
TR.NET Sistem Destek Uzmani

Tel : (312) 295 93 18 Fax : (312) 295 94 94 Tel : (216) 542 90 00

In response to

  • at 2003-01-16 08:13:36 from Christopher Kings-Lynne

Responses

  • Re: at 2003-01-16 08:43:12 from Christopher Kings-Lynne

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2003-01-16 08:43:12 Re:
Previous Message Christopher Kings-Lynne 2003-01-16 08:13:36

Browse pgsql-patches by date

  From Date Subject
Next Message Christopher Kings-Lynne 2003-01-16 08:43:12 Re:
Previous Message Christopher Kings-Lynne 2003-01-16 08:13:36