Skip to content

Commit 83a51cb

Browse files
committed
port tsdtm
1 parent d83d922 commit 83a51cb

File tree

6 files changed

+1505
-0
lines changed

6 files changed

+1505
-0
lines changed

contrib/pg_tsdtm/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
MODULE_big = pg_tsdtm
2+
OBJS = pg_tsdtm.o
3+
4+
EXTENSION = pg_tsdtm
5+
DATA = pg_tsdtm--1.0.sql
6+
7+
ifdef USE_PGXS
8+
PG_CONFIG = pg_config
9+
PGXS := $(shell $(PG_CONFIG) --pgxs)
10+
include $(PGXS)
11+
else
12+
subdir = contrib/pg_tsdtm
13+
top_builddir = ../..
14+
include $(top_builddir)/src/Makefile.global
15+
include $(top_srcdir)/contrib/contrib-global.mk
16+
endif
17+
18+
check:
19+
env DESTDIR='$(abs_top_builddir)'/tmp_install make install
20+
$(prove_check)

contrib/pg_tsdtm/pg_tsdtm--1.0.sql

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
2+
\echo Use "CREATE EXTENSION pg_dtm" to load this file. \quit
3+
4+
CREATE FUNCTION dtm_extend(gtid cstring default null) RETURNS bigint
5+
AS 'MODULE_PATHNAME','dtm_extend'
6+
LANGUAGE C;
7+
8+
CREATE FUNCTION dtm_access(snapshot bigint, gtid cstring default null) RETURNS bigint
9+
AS 'MODULE_PATHNAME','dtm_access'
10+
LANGUAGE C;
11+
12+
CREATE FUNCTION dtm_begin_prepare(gtid cstring) RETURNS void
13+
AS 'MODULE_PATHNAME','dtm_begin_prepare'
14+
LANGUAGE C;
15+
16+
CREATE FUNCTION dtm_prepare(gtid cstring, csn bigint) RETURNS bigint
17+
AS 'MODULE_PATHNAME','dtm_prepare'
18+
LANGUAGE C;
19+
20+
CREATE FUNCTION dtm_end_prepare(gtid cstring, csn bigint) RETURNS void
21+
AS 'MODULE_PATHNAME','dtm_end_prepare'
22+
LANGUAGE C;
23+
24+
CREATE FUNCTION dtm_get_csn(xid integer) RETURNS bigint
25+
AS 'MODULE_PATHNAME','dtm_get_csn'
26+
LANGUAGE C;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy