mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-25 09:00:37 +00:00
As a DBaaS provider, Neon needs to provide a stable platform for customers to build applications upon. At the same time however, we also need to enable customers to use the latest and greatest technology, so they can prototype their work, and we can solicit feedback. If all extensions are treated the same in terms of stability, it is hard to meet that goal. There are now two new GUCs created by the Neon extension: neon.allow_unstable_extensions: This is a session GUC which allows a session to install and load unstable extensions. neon.unstable_extensions: This is a comma-separated list of extension names. We can check if a CREATE EXTENSION statement is attempting to install an unstable extension, and if so, deny the request if neon.allow_unstable_extensions is not set to true. Signed-off-by: Tristan Partin <tristan@neon.tech> Co-authored-by: Konstantin Knizhnik <knizhnik@neon.tech>
76 lines
1.6 KiB
Makefile
76 lines
1.6 KiB
Makefile
# pgxs/neon/Makefile
|
|
|
|
|
|
MODULE_big = neon
|
|
OBJS = \
|
|
$(WIN32RES) \
|
|
extension_server.o \
|
|
file_cache.o \
|
|
hll.o \
|
|
libpagestore.o \
|
|
logical_replication_monitor.o \
|
|
neon.o \
|
|
neon_pgversioncompat.o \
|
|
neon_perf_counters.o \
|
|
neon_utils.o \
|
|
neon_walreader.o \
|
|
pagestore_smgr.o \
|
|
relsize_cache.o \
|
|
unstable_extensions.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.4.sql \
|
|
neon--1.4--1.5.sql \
|
|
neon--1.5--1.4.sql \
|
|
neon--1.4--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) $@
|
|
$(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)
|