Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bj1vj-0005CO-87 for pgsql-docs@arkaria.postgresql.org; Sun, 11 Sep 2016 10:24:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bj1vh-000268-Ma for pgsql-docs@arkaria.postgresql.org; Sun, 11 Sep 2016 10:24:05 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bj1vK-0001iC-LE for pgsql-docs@postgresql.org; Sun, 11 Sep 2016 10:23:42 +0000 Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bj1vD-0005ws-Kc for pgsql-docs@postgresql.org; Sun, 11 Sep 2016 10:23:41 +0000 Received: by mail-lf0-x22f.google.com with SMTP id h127so70249335lfh.0 for ; Sun, 11 Sep 2016 03:23:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joh-to.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version; bh=NkbFDA/U0innnbv+cl6hyQwinG8gKqqEDe4DEntjRgo=; b=iqy0XTjUA+Nbna7RfhTHZmFn2+FTId/59nMPwcfvWLE+aifxXWMKU4JLAMydpi0zxY vPgpjXgMrxy+Gs/BeJtIReQpPQDl92s2pTx2DOr3UpvdLWoBTMC7NBaqtjfU+6pRES9r YwyWzdfN8rlcUenhPxMomO2JjYTSJfedsKMt4U6x5kYhv1DT+tvmCPqLbGxatZQ1Ixw2 MheVllrK280srsq7zweE3l2FUB0ySUxuGEtNwVjtv5N/eYuAQtu9OXaSpVJFV8MahqiS RQPs+pStcV2AxqEZ8S5rzx245Ng7l0+/8rvy5tV8G9zUIOJQBWnpSO63I5B1AVFuhXCR kciA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version; bh=NkbFDA/U0innnbv+cl6hyQwinG8gKqqEDe4DEntjRgo=; b=IQdQD/A1gf/R8Q9y9lb4wTBlYuyH72Pa/J0pBPfLDuEX4VEasCwmAecpWRsPVqranb 1XOvqMfZFTtY9mo2RUd4YWc2pgIqDA9rN2KzqkJRP0UJ7/G0QubR21al5gvt2m1bAFgo kLPuWERBsrbESDAj6Bl6vHB51+fQWAfiemJhYs041zL9ze5AyOMjsFpQPTF5P5+V1m1v pfZGzKTTMvh+RBPk9CMr/9KvI+FbAgMB3ovG2Efv+ovInLTQwEtu5ukWcrrZCyc+qKro 7M/KDGKN6xmNmCsyLbrb1PDvZsCOR/pbsydshgr86IJSmgHnXvg4p0TCiu3WLVmrWEYw gfiA== X-Gm-Message-State: AE9vXwOVGR2g8EdSpZfoSaOL6CGG9eI331IhH7MJnLYp4y2Yc58fZAS/5dBF3wds1SPa5g== X-Received: by 10.25.150.141 with SMTP id y135mr3880896lfd.66.1473589412438; Sun, 11 Sep 2016 03:23:32 -0700 (PDT) Received: from [172.20.10.2] (c-5eea23c3-74736162.cust.telenor.se. [94.234.35.195]) by smtp.googlemail.com with ESMTPSA id 73sm2203510ljf.9.2016.09.11.03.23.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Sep 2016 03:23:31 -0700 (PDT) To: pgsql-docs@postgresql.org From: Marko Tiikkaja Subject: CREATE_REPLICATION_SLOT exported snapshot Message-ID: <61101e39-d789-bf88-6bbd-32f2166df349@joh.to> Date: Sun, 11 Sep 2016 12:23:30 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------9870E2E4E5541CA9031019CF" X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org This is a multi-part message in MIME format. --------------9870E2E4E5541CA9031019CF Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi, There's a brief mention of CREATE_REPLICATION_SLOT exporting a snapshot here: https://www.postgresql.org/docs/devel/static/logicaldecoding-explanation.html#AEN71570 but how to access the snapshot identifier is not documented anywhere. So I came up with the attached patch (against master). Please have a looksie. .m --------------9870E2E4E5541CA9031019CF Content-Type: text/x-patch; name="create_replication_slot_result.v1.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="create_replication_slot_result.v1.patch" diff --git a/doc/src/sgml/protocol.sgml b/doc/src/sgml/protocol.sgml index 68b0941..6bf8354 100644 --- a/doc/src/sgml/protocol.sgml +++ b/doc/src/sgml/protocol.sgml @@ -1475,6 +1475,49 @@ The commands accepted in walsender mode are: + + In response to this command, the server will send a one-row result set + containing the following fields: + + + slot_name (text) + + + The name of the newly-created replication slot. + + + + + consistent_point (text) + + + The WAL position at which the slot became consistent. This is the + earliest location from which streaming can start on this replication + slot. + + + + + snapshot_name (text) + + + The identifier of the snapshot exported by the command. The snapshot + is valid until a new command is executed or the replication connection is + closed. NULL if the created slot is physical. + + + + + output_plugin (text) + + + The name of the output plugin used by the newly-created replication + slot. NULL if the created slot is physical. + + + + + --------------9870E2E4E5541CA9031019CF Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs --------------9870E2E4E5541CA9031019CF--