Re: [HACKERS] drop before create in pg_dump

Поиск
Список
Период
Сортировка
От Brook Milligan
Тема Re: [HACKERS] drop before create in pg_dump
Дата
Msg-id 199901172211.PAA05434@trillium.nmsu.edu
обсуждение исходный текст
Ответ на Re: [HACKERS] drop before create in pg_dump  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [HACKERS] drop before create in pg_dump  (Bruce Momjian <maillist@candle.pha.pa.us>)
Список 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'tget 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.
 

A switch is fine.  Is there any concensus as to what it should be,
since the two that come to mind (-D and -d) are both used?

Cheers,
Brook


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] some patches for 6.4.2
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: EXCEPT/INTERSECT for v6.4