Skip to content

Conversation

@olirice
Copy link
Contributor

@olirice olirice commented Jul 9, 2021

What kind of change does this PR introduce?

Adds the wal2json extension to the docker and ansible builds.

Purpose

Adding a logical decoding output plugin is a prerequisite to moving logical decoding from realtime to the postgres server and for developing an RLS strategy on the output stream.

Stability

The extension is 7 years old, actively maintained, 700+ GH stars and preinstalled on:

Compatibility

Install targets exist for postgres 9.5, 9.6, 10, 11, 12, and 13.

Example Output

select pg_create_logical_replication_slot('slot1', 'wal2json') create table account(id int primary key); insert into account(id) values (1); select * from pg_logical_slot_get_changes('slot1', null, null)
{ "change":[ { "kind":"insert", "schema":"public", "table":"account", "columnnames":[ "id" ], "columntypes":[ "integer" ], "columnvalues":[ 1 ] } ] }
@olirice olirice requested review from dragarcia and inian July 9, 2021 23:54
Copy link
Contributor

@dragarcia dragarcia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! Merging it in.

@dragarcia dragarcia merged commit 905fa5b into supabase:develop Jul 10, 2021
@dragarcia
Copy link
Contributor

dragarcia commented Jul 10, 2021

Sidenote: I'll make sure this is part of the next release (13.3.0) (ref -#44)

@olirice olirice deleted the wal2json branch July 10, 2021 11:58
damonrand pushed a commit to cepro/postgres that referenced this pull request Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants