Re: How to temporarily disable a table's FK constraints?

Поиск
Список
Период
Сортировка
От Kynn Jones
Тема Re: How to temporarily disable a table's FK constraints?
Дата
Msg-id c2350ba40711060503y12685325g93691d4e17455778@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to temporarily disable a table's FK constraints?  (andy <andy@squeakycode.net>)
Список pgsql-general
On 11/5/07, andy <andy@squeakycode.net> wrote:
> Hey, I was just thinking about this... instead of disabling the FK's,
> what about adding a temp table where you could COPY into, then fire off
> a bunch of update's to setup the id fields, etc, etc, then do an Insert
> into realtable select * from temptable?

I like this idea.  It's very straightforward.  Thanks!

kj

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

Предыдущее
От: Reg Me Please
Дата:
Сообщение: Re: generic crosstab
Следующее
От: "Albe Laurenz"
Дата:
Сообщение: Re: How to create primary key