2011-02-14 09:06:41 +08:00
|
|
|
/* contrib/spi/timetravel--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 timetravel" to load this file. \quit
|
|
|
|
|
2011-02-14 10:24:14 +08:00
|
|
|
CREATE FUNCTION timetravel()
|
2010-11-24 04:27:50 +08:00
|
|
|
RETURNS trigger
|
2002-10-19 02:41:22 +08:00
|
|
|
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 set_timetravel(name, int4)
|
2010-11-24 04:27:50 +08:00
|
|
|
RETURNS int4
|
2002-10-19 02:41:22 +08:00
|
|
|
AS 'MODULE_PATHNAME'
|
2006-02-28 00:09:50 +08:00
|
|
|
LANGUAGE C RETURNS NULL ON NULL INPUT;
|
2003-07-27 12:51:45 +08:00
|
|
|
|
2011-02-14 10:24:14 +08:00
|
|
|
CREATE FUNCTION get_timetravel(name)
|
2010-11-24 04:27:50 +08:00
|
|
|
RETURNS int4
|
2003-07-27 12:51:45 +08:00
|
|
|
AS 'MODULE_PATHNAME'
|
2006-02-28 00:09:50 +08:00
|
|
|
LANGUAGE C RETURNS NULL ON NULL INPUT;
|