mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 17:32:56 +00:00
## Problem There's allegedly a bug where if we connect a subscriber before WAL is downloaded from the safekeeper, it creates an error. ## Summary of changes Adds support for pausing safekeepers from sending WAL to computes, and then creates a compute and attaches a subscriber while it's in this paused state. Fails to reproduce the issue, but probably a good test to have --------- Co-authored-by: Arseny Sher <sher-ars@yandex.ru>
60 lines
1.4 KiB
Makefile
60 lines
1.4 KiB
Makefile
# pgxs/neon/Makefile
|
|
|
|
|
|
MODULE_big = neon
|
|
OBJS = \
|
|
$(WIN32RES) \
|
|
extension_server.o \
|
|
file_cache.o \
|
|
libpagestore.o \
|
|
neon.o \
|
|
neon_utils.o \
|
|
neon_walreader.o \
|
|
pagestore_smgr.o \
|
|
relsize_cache.o \
|
|
walproposer.o \
|
|
walproposer_pg.o \
|
|
control_plane_connector.o \
|
|
walsender_hooks.o
|
|
|
|
PG_CPPFLAGS = -I$(libpq_srcdir)
|
|
SHLIB_LINK_INTERNAL = $(libpq)
|
|
SHLIB_LINK = -lcurl
|
|
|
|
EXTENSION = neon
|
|
DATA = neon--1.0.sql neon--1.0--1.1.sql neon--1.1--1.2.sql neon--1.2--1.3.sql neon--1.3--1.2.sql neon--1.2--1.1.sql neon--1.1--1.0.sql
|
|
PGFILEDESC = "neon - cloud storage for PostgreSQL"
|
|
|
|
EXTRA_CLEAN = \
|
|
libwalproposer.a
|
|
|
|
WALPROP_OBJS = \
|
|
$(WIN32RES) \
|
|
walproposer.o \
|
|
neon_utils.o \
|
|
walproposer_compat.o
|
|
|
|
.PHONY: walproposer-lib
|
|
walproposer-lib: CPPFLAGS += -DWALPROPOSER_LIB
|
|
walproposer-lib: libwalproposer.a;
|
|
|
|
.PHONY: libwalproposer.a
|
|
libwalproposer.a: $(WALPROP_OBJS)
|
|
rm -f $@
|
|
$(AR) $(AROPT) $@ $^
|
|
|
|
# needs vars:
|
|
# FIND_TYPEDEF pointing to find_typedef
|
|
# INDENT pointing to pg_bsd_indent
|
|
# PGINDENT_SCRIPT pointing to pgindent (be careful with PGINDENT var name:
|
|
# pgindent will pick it up as pg_bsd_indent path).
|
|
.PHONY: pgindent
|
|
pgindent:
|
|
+@ echo top_srcdir=$(top_srcdir) top_builddir=$(top_builddir) srcdir=$(srcdir)
|
|
$(FIND_TYPEDEF) . > neon.typedefs
|
|
INDENT=$(INDENT) $(PGINDENT_SCRIPT) --typedefs neon.typedefs $(srcdir)/*.c $(srcdir)/*.h
|
|
|
|
PG_CONFIG = pg_config
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
include $(PGXS)
|