mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
General trigger functions for time-travel
This commit is contained in:
18
contrib/spi/timetravel.source
Normal file
18
contrib/spi/timetravel.source
Normal file
@ -0,0 +1,18 @@
|
||||
DROP FUNCTION currabstime();
|
||||
DROP FUNCTION timetravel();
|
||||
DROP FUNCTION set_timetravel(name, int4);
|
||||
|
||||
CREATE FUNCTION currabstime()
|
||||
RETURNS abstime
|
||||
AS '_OBJWD_/timetravel_DLSUFFIX_'
|
||||
LANGUAGE 'c';
|
||||
|
||||
CREATE FUNCTION timetravel()
|
||||
RETURNS opaque
|
||||
AS '_OBJWD_/timetravel_DLSUFFIX_'
|
||||
LANGUAGE 'c';
|
||||
|
||||
CREATE FUNCTION set_timetravel(name, int4)
|
||||
RETURNS int4
|
||||
AS '_OBJWD_/timetravel_DLSUFFIX_'
|
||||
LANGUAGE 'c';
|
Reference in New Issue
Block a user