@@ -22,10 +22,11 @@ This code depends on the following libraries and requires them for compilation:
22
22
23
23
## Building
24
24
25
- To build you will need to install PostgreSQL (for pg_config), PostgreSQL server development packages, protobuf-c for the
26
- Protocol Buffer support and some PostGIS development packages
25
+ ` postgres-decoderbufs ` has to be built from source after installing required dependencies. The required dependencies are first PostgreSQL
26
+ (for pg_config), PostgreSQL server development packages, protobuf-c for the Protocol Buffer support and some PostGIS development packages.
27
27
28
- ### Debian
28
+ ### Installing Dependencies
29
+ #### Debian
29
30
30
31
# Core build utilities
31
32
apt-get update && apt-get install -f -y software-properties-common build-essential pkg-config git postgresql-server-dev-9.6
@@ -39,14 +40,23 @@ Protocol Buffer support and some PostGIS development packages
39
40
40
41
The above are taken from the Debezium [ docker images] ( https://github.com/debezium/docker-images ) .
41
42
42
- ### Other Linux distributions
43
+ #### Other Linux distributions
43
44
44
45
You just need to make sure the above software packages (_ or some flavour thereof_ ) are installed for your distro.
45
46
Note that the last step from the above sequence is only required for Debian to be able to install ` libprotobuf-c-dev:1.2.1 `
46
47
47
- If you have all of the prerequisites installed you should be able to just:
48
+ ### Building and installing decoderbufs
48
49
49
- make && make install
50
+ If you have all of the above prerequisites installed, clone this git repo to build from source. If you have multiple
51
+ postgres versions installed, you can select which version to install by altering your ` $PATH ` to point to the right version.
52
+ Then ` make ` and ` make install ` for each version. Here is an example:
53
+
54
+ git clone https://github.com/debezium/postgres-decoderbufs.git
55
+ cd postgres-decoderbufs
56
+ # Install for Postgres 9.6 if I have multiple local versions
57
+ export PATH=/usr/lib/postgresql/9.6/bin:$PATH
58
+ make
59
+ make install
50
60
51
61
Once the extension has been installed you just need to enable it and logical replication in postgresql.conf:
52
62
0 commit comments