Re: Unhappy thoughts about pg_dump and objects inherited from template1

Поиск
Список
Период
Сортировка
От Philip Warner
Тема Re: Unhappy thoughts about pg_dump and objects inherited from template1
Дата
Msg-id 3.0.5.32.20001109024850.02f0a6d0@mail.rhyme.com.au
обсуждение исходный текст
Ответ на Re: Unhappy thoughts about pg_dump and objects inherited from template1  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Unhappy thoughts about pg_dump and objects inherited from template1
Re: Unhappy thoughts about pg_dump and objects inherited from template1
Список pgsql-hackers
At 10:15 8/11/00 -0500, Tom Lane wrote:
>I like
>
>    CREATE DATABASE foo WITH TEMPLATE 'template0'
>
>better than a SET command.

Just seems like we'd be forcing non-standard syntax on ourselves when/if
CREATE DATABASE becomes CREATE SCHEMA; I would assume that the two
statements would become synonymous? Since this code is only for pg_dump,
polluting CREATE DATABASE even further seems like a bad idea. No big deal,
though. 

[Minor aside: would 'FROM TEMPLATE' be better?]

Question: if I issue a "CREATE DATABASE foo WITH TEMPLATE 'my-favorite-db'"
will I just get a copy of the specified database, including data?


----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 008 659 498)          |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 0500 83 82 82         |                 ___________ |
Http://www.rhyme.com.au          |                /           \|                                |    --________--
PGP key available upon request,  |  /
and from pgp5.ai.mit.edu:11371   |/


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Unhappy thoughts about pg_dump and objects inherited from template1
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Unhappy thoughts about pg_dump and objects inherited from template1