2011-02-14 09:06:41 +08:00
|
|
|
/* contrib/spi/refint--1.0.sql */
|
2000-06-16 03:05:22 +08:00
|
|
|
|
2011-10-13 03:45:03 +08: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 10:24:14 +08:00
|
|
|
CREATE FUNCTION check_primary_key()
|
2002-10-19 02:41:22 +08:00
|
|
|
RETURNS trigger
|
|
|
|
AS 'MODULE_PATHNAME'
|
2006-02-28 00:09:50 +08:00
|
|
|
LANGUAGE C;
|
2002-10-19 02:41:22 +08:00
|
|
|
|
2011-02-14 10:24:14 +08:00
|
|
|
CREATE FUNCTION check_foreign_key()
|
2002-10-19 02:41:22 +08:00
|
|
|
RETURNS trigger
|
|
|
|
AS 'MODULE_PATHNAME'
|
2006-02-28 00:09:50 +08:00
|
|
|
LANGUAGE C;
|