pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrien Nayrat <adrien.nayrat@dalibo.com>
To: pgsql-docs@postgreSQL.org
Subject: Fix for pg_replication_origin_session_is_setup
Date: Thu, 24 Dec 2015 14:51:23 +0100
Message-ID: <567BF85B.6090901@dalibo.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>

Hello,

I think there is a mistake in
http://www.postgresql.org/docs/9.5/static/functions-admin.html#PG-REPLICATION-ORIGIN-SESSION-SETUP

pg_replication_session_is_setup() should be
pg_replication_origin_session_is_setup()

According to :
src/backend/replication/logical/origin.c
/*
 * Has a replication origin been setup for this session.
 */
Datum
pg_replication_origin_session_is_setup(PG_FUNCTION_ARGS)
{
        replorigin_check_prerequisites(false, false);

        PG_RETURN_BOOL(replorigin_session_origin != InvalidRepOriginId);
}

A patch is attached to this email.


Regards,

--
Adrien NAYRAT

http://dalibo.com - http://dalibo.org

-- 
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs

Attachments:

fix_typo_pg_replication_origin_is_setup.patch (text/x-patch, 819B) download diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml new file mode 100644 index 60b9a09..e08bf60 *** a/doc/src/sgml/func.sgml --- b/doc/src/sgml/func.sgml *************** postgres=# SELECT * FROM pg_xlogfile_nam *** 17478,17486 **** <row> <entry> <indexterm> ! <primary>pg_replication_session_is_setup</primary> </indexterm> ! <literal><function>pg_replication_session_is_setup()</function></literal> </entry> <entry> bool --- 17478,17486 ---- <row> <entry> <indexterm> ! <primary>pg_replication_origin_session_is_setup</primary> </indexterm> ! <literal><function>pg_replication_origin_session_is_setup()</function></literal> </entry> <entry> bool

view thread (2+ messages)  latest in thread

Message-ID: <567BF85B.6090901@dalibo.com>
Permalink:  ../567BF85B.6090901@dalibo.com/
Also on:    postgresql.org/message-id/567BF85B.6090901@dalibo.com

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: adrien.nayrat@dalibo.com
  Subject: Re: Fix for pg_replication_origin_session_is_setup
  In-Reply-To: <567BF85B.6090901@dalibo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox