postgresql12是使用源码安装的 具体信息如下
[postgres@localhost pglogical-REL2_2_0]$ pg_config
BINDIR = /home/postgres/postgresql/bin
DOCDIR = /home/postgres/postgresql/share/doc
HTMLDIR = /home/postgres/postgresql/share/doc
INCLUDEDIR = /home/postgres/postgresql/include
PKGINCLUDEDIR = /home/postgres/postgresql/include
INCLUDEDIR-SERVER = /home/postgres/postgresql/include/server
LIBDIR = /home/postgres/postgresql/lib
PKGLIBDIR = /home/postgres/postgresql/lib
LOCALEDIR = /home/postgres/postgresql/share/locale
MANDIR = /home/postgres/postgresql/share/man
SHAREDIR = /home/postgres/postgresql/share
SYSCONFDIR = /home/postgres/postgresql/etc
PGXS = /home/postgres/postgresql/lib/pgxs/src/makefiles/pgxs.mk
CONFIGURE = '--prefix=/home/postgres/postgresql'
CC = gcc -std=gnu99
CPPFLAGS = -D_GNU_SOURCE
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2
CFLAGS_SL = -fPIC
LDFLAGS = -Wl,--as-needed -Wl,-rpath,'/home/postgres/postgresql/lib',--enable-new-dtags
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgcommon -lpgport -lpthread -lz -lreadline -lrt -lcrypt -ldl -lm
VERSION = PostgreSQL 12.3
安装pglogical的时候报错如下
下载地址 可以直接wget
https://github.com/2ndQuadrant/pglogical/archive/REL2_2_0.tar.gz
-D_GNU_SOURCE -c -o pglogical_apply.o pglogical_apply.c
In file included from pglogical_proto_native.h:20:0,
from pglogical_conflict.h:22,
from pglogical_apply.c:62:
pglogical_output_plugin.h:20:30: fatal error: pglogical_compat.h: No such file or directory
#include "pglogical_compat.h"
^
compilation terminated.
make: *** [pglogical_apply.o] Error 1
可以看出 是缺少pglogical_compat.h
但是压缩包里确实没有 真是尴尬 去GitHub看了下 给出了每个版本缺少的文件 如下
把compat12里边的文件 wget到解压后的目录 再次执行 以为已经可以了 但是 出现了更多报错 尴尬 如下
pglogical_compat.h:1184:70: error: stray ‘#’ in program
<td id="LC93" class="blob-code blob-code-inner js-file-line">#define CreateTemplateTupleDesc(natts, hasoid) \
^
pglogical_compat.h:1184:9: error: stray ‘\’ in program
<td id="LC93" class="blob-code blob-code-inner js-file-line">#define CreateTemplateTupleDesc(natts, hasoid) \
^
pglogical_compat.h:1197:70: error: stray ‘#’ in program
<td id="LC96" class="blob-code blob-code-inner js-file-line">#endif
^
pglogical_compat.h:1233:12: warning: missing terminating ' character [enabled by default]
" accept-charset="UTF-8" method="get">
^
pglogical_compat.h:1255:39: error: expected identifier or ‘(’ before numeric constant
">© 2020 GitHub, Inc.
^
In file included from pglogical.h:27:0,
from pglogical_worker.h:18,
from pglogical_apply.c:70:
pglogical_compat.h:1288:5: error: stray ‘\342’ in program
You can’t perform that action at this time.
^
pglogical_compat.h:1288:5: error: stray ‘\200’ in program
pglogical_compat.h:1288:5: error: stray ‘\231’ in program
pglogical_apply.c: In function ‘handle_begin’:
pglogical_apply.c:309:3: warning: implicit declaration of function ‘GetCurrentIntegerTimestamp’ [-Wimplicit-function-declaration]
current = GetCurrentIntegerTimestamp();
^
pglogical_apply.c: In function ‘handle_commit’:
pglogical_apply.c:410:3: warning: implicit declaration of function ‘heap_open’ [-Wimplicit-function-declaration]
replorigin_rel = heap_open(ReplicationOriginRelationId, RowExclusiveLock);
^
pglogical_apply.c:410:18: warning: assignment makes pointer from integer without a cast [enabled by default]
replorigin_rel = heap_open(ReplicationOriginRelationId, RowExclusiveLock);
^
pglogical_apply.c:415:3: warning: implicit declaration of function ‘heap_close’ [-Wimplicit-function-declaration]
heap_close(replorigin_rel, RowExclusiveLock);
^
pglogical_apply.c: In function ‘handle_insert’:
pglogical_apply.c:596:8: warning: assignment makes pointer from integer without a cast [enabled by default]
qrel = heap_open(QueueRelid, RowExclusiveLock);
^
pglogical_apply.c: In function ‘apply_work’:
pglogical_apply.c:1335:11: error: too few arguments to function ‘WaitLatchOrSocket’
fd, 1000L);
^
In file included from /home/postgres/postgresql/include/server/storage/proc.h:20:0,
from /home/postgres/postgresql/include/server/pgstat.h:20,
from pglogical_apply.c:17:
/home/postgres/postgresql/include/server/storage/latch.h:177:12: note: declared here
extern int WaitLatchOrSocket(Latch *latch, int wakeEvents,
^
pglogical_apply.c: In function ‘pglogical_execute_sql_command’:
pglogical_apply.c:1549:3: warning: passing argument 1 of ‘CreateCommandTag’ from incompatible pointer type [enabled by default]
commandTag = CreateCommandTag(command);
^
In file included from pglogical_apply.c:53:0:
/home/postgres/postgresql/include/server/tcop/utility.h:51:20: note: expected ‘struct Node *’ but argument is of type ‘struct RawStmt *’
extern const char *CreateCommandTag(Node *parsetree);
^
pglogical_apply.c:1554:4: error: too few arguments to function ‘pg_analyze_and_rewrite’
NULL, 0);
^
In file included from /home/postgres/postgresql/include/server/tcop/utility.h:17:0,
from pglogical_apply.c:53:
/home/postgres/postgresql/include/server/tcop/tcopprot.h:46:14: note: declared here
extern List *pg_analyze_and_rewrite(RawStmt *parsetree,
^
pglogical_apply.c:1573:8: error: too few arguments to function ‘PortalRun’
NULL);
^
In file included from pglogical_apply.c:52:0:
/home/postgres/postgresql/include/server/tcop/pquery.h:36:13: note: declared here
extern bool PortalRun(Portal portal, long count, bool isTopLevel,
^
pglogical_apply.c: In function ‘pglogical_apply_main’:
pglogical_apply.c:1878:6: error: ‘pglogical_synchronous_commit’ undeclared (first use in this function)
pglogical_synchronous_commit ? "local" : "off",
^
pglogical_apply.c:1878:6: note: each undeclared identifier is reported only once for each function it appears in
make: *** [pglogical_apply.o] Error 1
感觉不对劲 不能使用下载的tar包 有问题 直接克隆GitHub代码 直接编译安装 如下 ok了
[root@localhost ~]# su - postgres
上一次登录:四 8月 6 19:01:24 CST 2020pts/0 上
[postgres@localhost ~]# git clone https://github.com/2ndQuadrant/pglogical.git
[postgres@localhost ~]$ cd pglogical
[postgres@localhost pglogical]$ USE_PGXS=1 make clean
rm -f pglogical.so libpglogical.a libpglogical.pc
rm -f pglogical_output.so pglogical_output.o \
pglogical_output.bc
rm -f pglogical_create_subscriber
rm -f pglogical_apply.o pglogical_conflict.o pglogical_manager.o pglogical.o pglogical_node.o pglogical_relcache.o pglogical_repset.o pglogical_rpc.o pglogical_functions.o pglogical_queue.o pglogical_fe.o pglogical_worker.o pglogical_sync.o pglogical_sequences.o pglogical_executor.o pglogical_dependency.o pglogical_apply_heap.o pglogical_apply_spi.o pglogical_output_config.o pglogical_output_plugin.o pglogical_output_proto.o pglogical_proto_json.o pglogical_proto_native.o pglogical_monitoring.o .//compat12/pglogical_compat.o pglogical_apply.bc pglogical_conflict.bc pglogical_manager.bc pglogical.bc pglogical_node.bc pglogical_relcache.bc pglogical_repset.bc pglogical_rpc.bc pglogical_functions.bc pglogical_queue.bc pglogical_fe.bc pglogical_worker.bc pglogical_sync.bc pglogical_sequences.bc pglogical_executor.bc pglogical_dependency.bc pglogical_apply_heap.bc pglogical_apply_spi.bc pglogical_output_config.bc pglogical_output_plugin.bc pglogical_output_proto.bc pglogical_proto_json.bc pglogical_proto_native.bc pglogical_monitoring.bc .//compat12/pglogical_compat.bc
rm -rf compat94/pglogical_compat.o compat95/pglogical_compat.o compat96/pglogical_compat.o compat10/pglogical_compat.o pglogical_create_subscriber.o /home/postgres/pglogical/pglogical.control
rm -rf results/ regression.diffs regression.out tmp_check/ tmp_check_iso/ log/ output_iso/
[postgres@localhost pglogical]$ USE_PGXS=1 make
sed 's/__PGLOGICAL_VERSION__/2.3.2/;s/__REQUIRES__//' /home/postgres/pglogical/pglogical.control.in > /home/postgres/pglogical/pglogical.control
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_apply.o pglogical_apply.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_conflict.o pglogical_conflict.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_manager.o pglogical_manager.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical.o pglogical.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_node.o pglogical_node.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_relcache.o pglogical_relcache.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_repset.o pglogical_repset.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_rpc.o pglogical_rpc.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_functions.o pglogical_functions.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_queue.o pglogical_queue.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_fe.o pglogical_fe.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_worker.o pglogical_worker.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_sync.o pglogical_sync.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_sequences.o pglogical_sequences.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_executor.o pglogical_executor.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_dependency.o pglogical_dependency.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_apply_heap.o pglogical_apply_heap.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_apply_spi.o pglogical_apply_spi.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_output_config.o pglogical_output_config.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_output_plugin.o pglogical_output_plugin.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_output_proto.o pglogical_output_proto.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_proto_json.o pglogical_proto_json.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_proto_native.o pglogical_proto_native.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_monitoring.o pglogical_monitoring.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o compat12/pglogical_compat.o compat12/pglogical_compat.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -shared -o pglogical.so pglogical_apply.o pglogical_conflict.o pglogical_manager.o pglogical.o pglogical_node.o pglogical_relcache.o pglogical_repset.o pglogical_rpc.o pglogical_functions.o pglogical_queue.o pglogical_fe.o pglogical_worker.o pglogical_sync.o pglogical_sequences.o pglogical_executor.o pglogical_dependency.o pglogical_apply_heap.o pglogical_apply_spi.o pglogical_output_config.o pglogical_output_plugin.o pglogical_output_proto.o pglogical_proto_json.o pglogical_proto_native.o pglogical_monitoring.o .//compat12/pglogical_compat.o -L/home/postgres/postgresql/lib -Wl,--as-needed -Wl,-rpath,'/home/postgres/postgresql/lib',--enable-new-dtags -L/home/postgres/postgresql/lib -lpq
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_create_subscriber.o pglogical_create_subscriber.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC pglogical_create_subscriber.o pglogical_fe.o -L/home/postgres/postgresql/lib -Wl,--as-needed -Wl,-rpath,'/home/postgres/postgresql/lib',--enable-new-dtags -L/home/postgres/postgresql/lib -lpgcommon -lpgport -L/home/postgres/postgresql/lib -lpq -lpgcommon -lpgport -lpthread -lz -lreadline -lrt -lcrypt -ldl -lm -o pglogical_create_subscriber
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC -I/home/postgres/postgresql/include -I/home/postgres/pglogical/compat12 -Werror=implicit-function-declaration -I. -I./ -I/home/postgres/postgresql/include/server -I/home/postgres/postgresql/include/internal -D_GNU_SOURCE -c -o pglogical_output.o pglogical_output.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -fPIC pglogical_output.o -L/home/postgres/postgresql/lib -Wl,--as-needed -Wl,-rpath,'/home/postgres/postgresql/lib',--enable-new-dtags -shared -o pglogical_output.so
[postgres@localhost pglogical]$ USE_PGXS=1 make install
sed 's/__PGLOGICAL_VERSION__/2.3.2/;s/__REQUIRES__//' /home/postgres/pglogical/pglogical.control.in > /home/postgres/pglogical/pglogical.control
/bin/mkdir -p '/home/postgres/postgresql/lib'
/bin/mkdir -p '/home/postgres/postgresql/share/extension'
/bin/mkdir -p '/home/postgres/postgresql/share/extension'
/bin/mkdir -p '/home/postgres/postgresql/lib'
/bin/mkdir -p '/home/postgres/postgresql/bin'
/bin/install -c -m 755 pglogical.so '/home/postgres/postgresql/lib/pglogical.so'
/bin/install -c -m 644 .//pglogical.control '/home/postgres/postgresql/share/extension/'
/bin/install -c -m 644 .//pglogical--1.0.0.sql .//pglogical--1.0.0--1.0.1.sql .//pglogical--1.0.1--1.1.0.sql .//pglogical--1.1.0--1.1.1.sql .//pglogical--1.1.1--1.1.2.sql .//pglogical--1.1.2--1.2.0.sql .//pglogical--1.2.0--1.2.1.sql .//pglogical--1.2.1--1.2.2.sql .//pglogical--1.2.2--2.0.0.sql .//pglogical--2.0.0--2.0.1.sql .//pglogical--2.0.0--2.1.0.sql .//pglogical--2.0.1--2.1.0.sql .//pglogical--2.1.0--2.1.1.sql .//pglogical--2.1.1--2.2.0.sql .//pglogical--2.2.0.sql .//pglogical--2.2.0--2.2.1.sql .//pglogical--2.2.1.sql .//pglogical--2.2.1--2.2.2.sql .//pglogical--2.2.2.sql .//pglogical--2.2.2--2.3.0.sql .//pglogical--2.2.2--2.3.1.sql .//pglogical--2.3.0.sql .//pglogical--2.3.0--2.3.1.sql .//pglogical--2.3.1.sql .//pglogical--2.3.1--2.3.2.sql .//pglogical--2.3.2.sql .//pglogical_origin.control .//pglogical_origin--1.0.0.sql '/home/postgres/postgresql/share/extension/'
/bin/install -c -m 755 pglogical_output.so '/home/postgres/postgresql/lib/'
/bin/install -c -m 755 pglogical_create_subscriber '/home/postgres/postgresql/bin/'