Re: NOTICE: CREATE TABLE will create implicit trigger(s) for FOREIGN KEY check(s) ?

From: "Gregory Wood" <gregw(at)com-stock(dot)com>
To: "Christian Marschalek" <cm(at)chello(dot)at>
Cc: "PostgreSQL-General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: NOTICE: CREATE TABLE will create implicit trigger(s) for FOREIGN KEY check(s) ?
Date: 2001-04-26 17:58:35
Message-ID: 00bb01c0ce7a$848dc770$7889ffcc@comstock.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Can anyone tell me what this notice means?
>
> NOTICE: CREATE TABLE will create implicit trigger(s) for FOREIGN KEY
> check(s) ?

It means that PostgreSQL will automatically create triggers to perform your
foreign key checks :)

Seriously though, PostgreSQL has to have some mechanism to check that your
foreign key values exist (or not), and it does that by using a feature
already built into PostgreSQL: triggers. Nothing you really need to worry
about unless you are doing something fancy (for instance, disabling all
triggers on either table to accomplish some action... in such a case your
foreign key relationship might be broken).

Greg

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Christian Marschalek 2001-04-26 18:04:37 RE: NOTICE: CREATE TABLE will create implicit trigger(s) for FOREIGN KEY check(s) ?
Previous Message Stephan Szabo 2001-04-26 17:58:26 Re: NOTICE: CREATE TABLE will create implicit trigger(s) for FOREIGN KEY check(s) ?