0002-document-new-binary-option-for-CREATE-SUBSCRIPTION.patch
application/octet-stream
Filename: 0002-document-new-binary-option-for-CREATE-SUBSCRIPTION.patch
Type: application/octet-stream
Part: 1
Patch
Format: format-patch
Series: patch 0002
Subject: document new binary option for CREATE SUBSCRIPTION document addition of binary column to pg_subscription
| File | + | − |
|---|---|---|
| doc/src/sgml/catalogs.sgml | 7 | 0 |
| doc/src/sgml/ref/alter_subscription.sgml | 2 | 2 |
| doc/src/sgml/ref/create_subscription.sgml | 16 | 0 |
From 8855262313b6d5ecc282a21644dc0d1884fca39c Mon Sep 17 00:00:00 2001
From: Dave Cramer <davecramer@gmail.com>
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$<replaceable><iteration count></replaceable>:<replaceable>&l
</para></entry>
</row>
+ <row>
+ <entry><structfield>subbinary</structfield></entry>
+ <entry><type>bool</type></entry>
+ <entry></entry>
+ <entry>If true, the subscription will request that the publisher send base types in binary format.</entry>
+ </row>
+
<row>
<entry role="catalog_table_entry"><para role="column_definition">
<structfield>subconninfo</structfield> <type>text</type>
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 <replaceable class="parameter">name</replaceable> RENAME TO <
<para>
This clause alters parameters originally set by
<xref linkend="sql-createsubscription"/>. See there for more
- information. The allowed options are <literal>slot_name</literal> and
- <literal>synchronous_commit</literal>
+ information. The allowed options are <literal>slot_name</literal>,
+ <literal>synchronous_commit</literal> and <literal>binary</literal>
</para>
</listitem>
</varlistentry>
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 <replaceable class="parameter">subscription_name</replaceabl
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><literal>binary</literal> (<type>boolean</type>)</term>
+ <listitem>
+ <para>
+ Specifies whether the subscription will request the publisher send
+ the base types in binary or not. The default
+ is <literal>false</literal>.
+ </para>
+
+ <para>
+ Note: Only types that have send and receive functions will be transferred
+ in binary
+ </para>
+ </listitem>
+ </varlistentry>
+
<varlistentry>
<term><literal>slot_name</literal> (<type>string</type>)</term>
<listitem>
--
2.20.1 (Apple Git-117)