2ndQuadrant / pglogical

Logical Replication extension for PostgreSQL 17, 16, 15, 14, 13, 12, 11, 10, 9.6, 9.5, 9.4 (Postgres), providing much faster replication than Slony, Bucardo or Londiste, as well as cross-version upgrades.
http://2ndquadrant.com/en/resources/pglogical/
Other
1.01k stars 153 forks source link

Can't compile source code #1

Closed trourance closed 8 years ago

trourance commented 8 years ago

Hi,

I would like to try the pglogical and pglogical-output extensions, but I can't compile the source code with the tarballs provided and PostgreSQL 9.4.7 and I can't find any documentation on how to do it.

Makefile:41: ../../src/Makefile.global: No such file or directory Makefile:42: /contrib/contrib-global.mk: No such file or directory make: *** No rule to make target '/contrib/contrib-global.mk'. Stop.

ringerc commented 8 years ago

Right, we used to distribute it as a patch against the PostgreSQL source tree so that wasn't required.

It's compiled like most PostgreSQL extensions, using PGXS:

Make sure your PostgreSQL's pg_config is on your PATH then pass USE_PGXS=1 to make, e.g.

PATH=/usr/pgsql-9.4/bin:$PATH make USE_PGXS=1 clean all

I'll add a note to the docs.

ringerc commented 8 years ago

Added to README

trourance commented 8 years ago

Thanks, I didn't know PGXS.