Re: pg_dump: Sorted output, referential integrity

Поиск
Список
Период
Сортировка
От Jan Wieck
Тема Re: pg_dump: Sorted output, referential integrity
Дата
Msg-id 200112111534.fBBFYjH01833@saturn.jw.home
обсуждение исходный текст
Ответ на Re: pg_dump: Sorted output, referential integrity  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Ответы Re: pg_dump: Sorted output, referential integrity  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Re: pg_dump: Sorted output, referential integrity  (Philip Warner <pjw@rhyme.com.au>)
Re: pg_dump: Sorted output, referential integrity  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Stephan Szabo wrote:
>
> On Tue, 11 Dec 2001, Philip Warner wrote:
>
> > At 13:34 7/12/01 -0800, Stephan Szabo wrote:
> > >
> > >Well, the biggest thing I see on using alter table add constraint for
> > >foreign keys is the expense involved if you do it after the tables are
> > >populated.
> >
> > Is it really worse than loading the tables with the constraint in place?
>
> I'd say its better than while loading, but currently the check isn't
> performed at all I think, because the create constraint trigger
> statements are after data load and they don't check the data at all.
> At least that's how I remember it, I could be wrong.
   You're  not.  This  discussion came up a couple of times, and   the answer is allways the same.
   We don't want to define  the  constraints  with  ALTER  TABLE   because this means checking data on restore that
doesn'tneed   to be checked at all (in theory).  If he has  a  crash  of  a   critical system and restores from a dump,
Ibet the farm that   he wants it FAST.
 


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



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

Предыдущее
От: Marko Kreen
Дата:
Сообщение: Restoring large tables with COPY
Следующее
От: Lee Kindness
Дата:
Сообщение: Bulkloading using COPY - ignore duplicates?