Re: Working with foreign key constraints

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Working with foreign key constraints
Дата
Msg-id 20021021082349.G71250-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Working with foreign key constraints  (Steve Lane <slane@moyergroup.com>)
Список pgsql-general
On Sat, 19 Oct 2002, Steve Lane wrote:

> All:
>
> A couple of quick questions about foreign key constraints.
>
> Any good way to view them in pgsql? A simple \dt will show me indexes, but
> no constraints.
>
> I understand that they're implemented with triggers. I've seen varying
> accounts of how many. Two? Or three? I'm trying to drop some FK constraints,
> with no luck. Dropping the two likely-looking triggers didn't do it -- still
> got integrity violations on certain operations.
>
> Any good source of data for this online? Did not find much at
> techdocs.postgresql.org, or at least I looked in the wrong place.

The foreign key tutorials at techdocs should go into details, but there
are currently three triggers created per constraint, two on the referenced
table and one on the referencing table.  You'll need to drop all three
before the constraint is really gone.


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

Предыдущее
От: "shey sewani"
Дата:
Сообщение: Re: : Errors when compiling with Postgres 7.2.3 Libraries on RedHat 8
Следующее
От: "Gregory Wood"
Дата:
Сообщение: Re: transactions