Documenting that queries can be run over replication protocol

Started by Chris Traversabout 8 years ago2 messageshackers
Beta feature

Hackorum builds and tests every patch posted to the lists, not only commitfest submissions. This is Hackorum's own CI rather than the PostgreSQL project's, and it is still under testing - please report anything that looks wrong.

won't retrysuccessCI history

You can run a PostgreSQL built from this patch straight from Docker, with no checkout and no build:

docker run --rm -p 5432:5432 ghcr.io/hackorum-dev/postgres-patch:t39102
psql -h localhost -U postgres

Built from patchset v1 (message #1), July 28, 2026 at 05:26 AM.

Every patchset is also pushed to a branch of our PostgreSQL fork, so you can check out the same tree CI built. Without a PostgreSQL checkout:

git clone --branch t39102_1 https://github.com/hackorum-dev/postgres.git

In a checkout you already have, add the fork once:

git remote add hackorum https://github.com/hackorum-dev/postgres.git

then, for this patchset and every later one:

git fetch hackorum t39102_1 && git checkout t39102_1

Patchset v1 (message #1) is on t39102_1

Jump to latest
#1Chris Travers
chris.travers@adjust.com

Hi;

In the process of building some tooling based on replication we discovered
that PostgreSQL 10 uses COPY to populate the initial table on logical
replication, see commit 7c4f52409a8c7d85ed169bbbc1f6092274d03920

This is not currently documented. Attached is a patch which adds that
documentation to the logical replication part of the protocol section.

--
Best Regards,
Chris Travers
Database Administrator

Tel: +49 162 9037 210 | Skype: einhverfr | www.adjust.com
Saarbrücker Straße 37a, 10405 Berlin

Attachments:

t39102_1
logical_replication_sql_doc.diffapplication/octet-stream; name=logical_replication_sql_doc.diffDownload+7-0
#2Peter Eisentraut
peter_e@gmx.net
In reply to: Chris Travers (#1)
Re: Documenting that queries can be run over replication protocol

On 24/07/2018 09:54, Chris Travers wrote:

In the process of building some tooling based on replication we
discovered that PostgreSQL 10 uses COPY to populate the initial table on
logical replication, see commit 7c4f52409a8c7d85ed169bbbc1f6092274d03920

This is not currently documented.  Attached is a patch which adds that
documentation to the logical replication part of the protocol section.

It already says earlier in that same section:

"In logical replication walsender mode, the replication commands shown
below as well as normal SQL commands can be issued."

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services