Обсуждение: Documenting that queries can be run over replication protocol

Поиск
Список
Период
Сортировка

Documenting that queries can be run over replication protocol

От
Chris Travers
Дата:
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

Вложения

Re: Documenting that queries can be run over replication protocol

От
Peter Eisentraut
Дата:
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