public inbox for [email protected]  
help / color / mirror / Atom feed
From: Grzegorz Szpetkowski <[email protected]>
To: [email protected]
Subject: Re: ALTER TABLE doc small thing
Date: Mon, 9 May 2011 20:12:13 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

"NOTE 30 — If MATCH FULL or MATCH PARTIAL is specified for a
referential constraint and if the referencing table has only one
column specified in <referential constraint definition> for that
referential constraint, or if the referencing table has more than one
specified column for that <referential constraint definition>, but
none of those columns is nullable, then the effect is the same as if
no
<match type> were specified."

I found that in SQL:2003 draft, so in above case MATCH FULL is
syntactically ok, but rather confusing and effectively do nothing
(maybe just impression purpose).

Regards,
G. Sz.

2011/5/9 Grzegorz Szpetkowski <[email protected]>:
> http://www.postgresql.org/docs/9.0/static/sql-altertable.html
>
> "To add a foreign key constraint to a table:
>
> ALTER TABLE distributors ADD CONSTRAINT distfk FOREIGN KEY (address)
> REFERENCES addresses (address) MATCH FULL;"
>
> This looks confusing to me. Is "MATCH FULL" works with non-composite
> (one adress column) foreign keys at all ?
>
> Regards,
> G. Sz.
>



view thread (4+ messages)  latest in thread

reply

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: [email protected]
  Cc: [email protected]
  Subject: Re: ALTER TABLE doc small thing
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox