2007-11-13 12:24:29 +08:00
|
|
|
/* $PostgreSQL: pgsql/contrib/spi/timetravel.sql.in,v 1.8 2007/11/13 04:24:28 momjian Exp $ */
|
|
|
|
|
2002-10-19 02:41:22 +08:00
|
|
|
-- Adjust this setting to control where the objects get created.
|
|
|
|
SET search_path = public;
|
2000-06-16 03:05:22 +08:00
|
|
|
|
2002-10-19 02:41:22 +08:00
|
|
|
CREATE OR REPLACE FUNCTION timetravel()
|
|
|
|
RETURNS trigger
|
|
|
|
AS 'MODULE_PATHNAME'
|
2006-02-28 00:09:50 +08:00
|
|
|
LANGUAGE C;
|
2002-10-19 02:41:22 +08:00
|
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION set_timetravel(name, int4)
|
|
|
|
RETURNS int4
|
|
|
|
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
|
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION get_timetravel(name)
|
|
|
|
RETURNS int4
|
|
|
|
AS 'MODULE_PATHNAME'
|
2006-02-28 00:09:50 +08:00
|
|
|
LANGUAGE C RETURNS NULL ON NULL INPUT;
|