Re: [HACKERS] drop before create in pg_dump

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] drop before create in pg_dump
Дата
Msg-id 24649.916443872@sss.pgh.pa.us
обсуждение исходный текст
Ответ на drop before create in pg_dump  (Brook Milligan <brook@trillium.NMSU.Edu>)
Ответы Re: [HACKERS] drop before create in pg_dump  (Bruce Momjian <maillist@candle.pha.pa.us>)
Re: [HACKERS] drop before create in pg_dump  (Brook Milligan <brook@trillium.NMSU.Edu>)
Список pgsql-hackers
Brook Milligan <brook@trillium.NMSU.Edu> writes:
> pg_dump won't drop stuff before trying to create it; this makes
> dropping a single table (say) and recreating it difficult to automate
> since it is subject to error if all the stuff doesn't get dropped
> properly.  The following patch causes pg_dump to emit DROP ...
> statements prior to emitting CREATE ... statements.

I think that ought to be driven by a switch to pg_dump ...
much of the time, I would *want* pg_dump's script to fail
if there's already an existing item of the given name.

I see your concern, I just don't think it's the only scenario.
        regards, tom lane


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

Предыдущее
От: Brook Milligan
Дата:
Сообщение: drop before create in pg_dump
Следующее
От: Vince Vielhaber
Дата:
Сообщение: Time Zones