Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e9ee3a4

Browse files
author
Vladimir Ershov
committed
untested
1 parent ced1d58 commit e9ee3a4

13 files changed

+1876
-126
lines changed

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,28 @@ MODULE_big = pgpro_scheduler
22
OBJS = src/pgpro_scheduler.o src/cron_string.o src/sched_manager_poll.o \
33
src/char_array.o src/scheduler_spi_utils.o src/scheduler_manager.o \
44
src/bit_array.o src/scheduler_job.o src/memutils.o \
5-
src/scheduler_executor.o \
5+
src/scheduler_executor.o src/scheduler_mtm.o \
66
$(WIN32RES)
77
EXTENSION = pgpro_scheduler
88
DATA = pgpro_scheduler--2.0.sql pgpro_scheduler--2.0--2.1.sql \
9-
pgpro_scheduler--2.1.sql
9+
pgpro_scheduler--2.1.sql pgpro_scheduler--2.1--2.2.sql \
10+
pgpro_scheduler--2.2.sql
1011
REGRESS = install_pgpro_scheduler cron_string
1112
#REGRESS_OPTS = --user=postgres
1213
EXTRA_REGRESS_OPTS=--temp-config=$(top_srcdir)/$(subdir)/conf.add
1314

15+
1416
ifdef USE_PGXS
1517
PG_CONFIG = pg_config
1618
PGXS := $(shell $(PG_CONFIG) --pgxs)
19+
ifdef WITH_MTM
20+
PG_CPPFLAGS = -D_WITH_MTM -I$(WITH_MTM) -I$(libpq_srcdir)
21+
endif
1722
include $(PGXS)
1823
else
1924
subdir = contrib/pgpro_scheduler
2025
top_builddir = ../..
26+
PG_CPPFLAGS = -D_WITH_MTM -I$(top_srcdir)/contrib/mmts -I$(libpq_srcdir)
2127
include $(top_builddir)/src/Makefile.global
2228
include $(top_srcdir)/contrib/contrib-global.mk
2329
endif

pgpro_scheduler--2.1--2.2.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CREATE TABLE mtm_nodes(
2+
node_id int primary key,
3+
node_name text,
4+
status_set timestamp with time zone
5+
);
6+

0 commit comments

Comments
 (0)