From: Luca Pireddu <luca@cs.ualberta.ca>
To: pgsql-general@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: lost in system tables
Date: Tue, 6 Dec 2005 09:34:59 -0700
Message-ID: <200512060934.59140.luca@cs.ualberta.ca> (raw)
In-Reply-To: <20051206154755.86057.qmail@web54314.mail.yahoo.com>
References: <20051206154755.86057.qmail@web54314.mail.yahoo.com>
On Tuesday 06 December 2005 08:47, Emil Rachovsky wrote:
> I am trying to find the equivalent of these two
> Sybase system columns :
>
> check_on_commit (Y/N) - Indicates whether INSERT and
> UPDATE commands should wait until the next COMMIT
> command to check if foreign keys are valid. A foreign
> key is valid if, for each row in the foreign table,
> the values in the columns of the foreign key either
> contain the NULL value or match the primary key values
> in some row of the primary table.
>
> nulls (Y/N) - Indicates whether the columns in the
> foreign key are allowed to contain the NULL value.
> Note that this setting is independent of the nulls
> setting in the columns contained in the foreign key.
>
> Maybe pg_constaint.condeferrable is appropriate for
> check_on_commit? I'll appreciate any help
>
> Thanks in advance,
> Emil
Those parameters are specified when you declare the foreign key. Look here,
in the section describing "references":
http://www.postgresql.org/docs/8.1/interactive/sql-createtable.html
Luca
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: luca@cs.ualberta.ca, pgsql-general@postgresql.org
Subject: Re: lost in system tables
In-Reply-To: <200512060934.59140.luca@cs.ualberta.ca>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox