Skip to content

Commit

Permalink
Expand README
Browse files Browse the repository at this point in the history
  • Loading branch information
rieske committed Nov 1, 2023
1 parent 69ef001 commit 51ed000
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
ORG_GRADLE_PROJECT_mavenPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
uses: burrunan/gradle-cache-action@v1
with:
arguments: publish --no-configuration-cache
arguments: publish --no-configuration-cache
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,36 @@ pattern.

## Prerequisites

### PostgreSQL

PostgreSQL version 13.12 or later.
Note 13.12 is the earliest one that this library is tested against at the time of writing.
In theory, it may work with PostgreSQL 9.5 and above.

### Logical replication enabled

Logical replication must be [configured](https://www.postgresql.org/docs/current/logical-replication-config.html#LOGICAL-REPLICATION-CONFIG-PUBLISHER)
on the PostgreSQL server.

If you are using AWS Aurora, see [here](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Replication.Logical.html#AuroraPostgreSQL.Replication.Logical.Configure)
for instructions to enable logical replication.

### [wal2json](https://github.com/eulerto/wal2json) plugin installed

This library relies on the [wal2json](https://github.com/eulerto/wal2json) PostgreSQL output plugin to convert the
WAL data to JSON.

The `wal2json` plugin should be available in AWS Aurora databases by default.

To install the plugin on a self-hosted instance, refer to the plugin's documentation.

## Usage


## Testing

In order to write integration tests for code that uses the `postgres-cdc` library, the test database
must have logical replication enabled and have the `wal2json` plugin installed.

Refer to the [test Dockerfiles](lib/src/test/resources/postgres/) in this repository that produce configured PostgreSQL images.

0 comments on commit 51ed000

Please sign in to comment.