From 8855262313b6d5ecc282a21644dc0d1884fca39c Mon Sep 17 00:00:00 2001 From: Dave Cramer Date: Mon, 6 Jul 2020 19:53:33 -0400 Subject: [PATCH 2/4] document new binary option for CREATE SUBSCRIPTION document addition of binary column to pg_subscription Add note to documentation that transferring a type using binary protocol requires that the type have a send and recieve function --- doc/src/sgml/catalogs.sgml | 7 +++++++ doc/src/sgml/ref/alter_subscription.sgml | 4 ++-- doc/src/sgml/ref/create_subscription.sgml | 16 ++++++++++++++++ 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/doc/src/sgml/catalogs.sgml b/doc/src/sgml/catalogs.sgml index 003d278370..27b2de6fc7 100644 --- a/doc/src/sgml/catalogs.sgml +++ b/doc/src/sgml/catalogs.sgml @@ -7503,6 +7503,13 @@ SCRAM-SHA-256$<iteration count>:&l + + subbinary + bool + + If true, the subscription will request that the publisher send base types in binary format. + + subconninfo text diff --git a/doc/src/sgml/ref/alter_subscription.sgml b/doc/src/sgml/ref/alter_subscription.sgml index c24ace14d1..ab712910b2 100644 --- a/doc/src/sgml/ref/alter_subscription.sgml +++ b/doc/src/sgml/ref/alter_subscription.sgml @@ -163,8 +163,8 @@ ALTER SUBSCRIPTION name RENAME TO < This clause alters parameters originally set by . See there for more - information. The allowed options are slot_name and - synchronous_commit + information. The allowed options are slot_name, + synchronous_commit and binary diff --git a/doc/src/sgml/ref/create_subscription.sgml b/doc/src/sgml/ref/create_subscription.sgml index 5bbc165f70..35dfaf017f 100644 --- a/doc/src/sgml/ref/create_subscription.sgml +++ b/doc/src/sgml/ref/create_subscription.sgml @@ -128,6 +128,22 @@ CREATE SUBSCRIPTION subscription_name + + binary (boolean) + + + Specifies whether the subscription will request the publisher send + the base types in binary or not. The default + is false. + + + + Note: Only types that have send and receive functions will be transferred + in binary + + + + slot_name (string) -- 2.20.1 (Apple Git-117)