pg_contraint: 'action code' ?

Started by fkater@googlemail.comalmost 19 years ago3 messagesgeneral
Jump to latest
#1fkater@googlemail.com
fkater@googlemail.com

Hi,

where are the 'action code' (type char) of foreign keys defined for ON
DELETE resp. ON UPDATE for the actions NO ACTION, RESTRICT, CASCADE, SET
NULL, SET DEFAULT in pg_contraint?

In the manual (8.2) it is mentioned but not explained.

Thank You
Felix

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: fkater@googlemail.com (#1)
Re: pg_contraint: 'action code' ?

Felix Kater <fkater@googlemail.com> writes:

where are the 'action code' (type char) of foreign keys defined for ON
DELETE resp. ON UPDATE for the actions NO ACTION, RESTRICT, CASCADE, SET
NULL, SET DEFAULT in pg_contraint?

Per the comment in pg_constraint.h:

/*
* Valid values for confupdtype and confdeltype are the FKCONSTR_ACTION_xxx
* constants defined in parsenodes.h. Valid values for confmatchtype are
* the FKCONSTR_MATCH_xxx constants defined in parsenodes.h.
*/

regards, tom lane

#3fkater@googlemail.com
fkater@googlemail.com
In reply to: Tom Lane (#2)
Re: pg_contraint: 'action code' ?

On Tue, 08 May 2007 10:03:24 -0400
Tom Lane <tgl@sss.pgh.pa.us> wrote:

* the FKCONSTR_MATCH_xxx constants defined in parsenodes.h.

True! ;-)
Thank you so much.

Felix