2011-02-14 04:06:41 +03:00
|
|
|
/* contrib/spi/refint--1.0.sql */
|
2000-06-15 23:05:22 +04:00
|
|
|
|
2011-10-12 23:45:03 +04:00
|
|
|
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
|
|
|
|
\echo Use "CREATE EXTENSION refint" to load this file. \quit
|
|
|
|
|
2011-02-14 05:24:14 +03:00
|
|
|
CREATE FUNCTION check_primary_key()
|
2002-10-18 22:41:22 +04:00
|
|
|
RETURNS trigger
|
|
|
|
AS 'MODULE_PATHNAME'
|
2006-02-27 19:09:50 +03:00
|
|
|
LANGUAGE C;
|
2002-10-18 22:41:22 +04:00
|
|
|
|
2011-02-14 05:24:14 +03:00
|
|
|
CREATE FUNCTION check_foreign_key()
|
2002-10-18 22:41:22 +04:00
|
|
|
RETURNS trigger
|
|
|
|
AS 'MODULE_PATHNAME'
|
2006-02-27 19:09:50 +03:00
|
|
|
LANGUAGE C;
|