pg.ddx.io pgsql-docs@postgresql.org mailing list archive
help / color / mirror / Atom feedFix for pg_replication_origin_session_is_setup
2+ messages / 2 participants
[nested] [flat]
* Fix for pg_replication_origin_session_is_setup
@ 2015-12-24 13:51 Adrien Nayrat <adrien.nayrat@dalibo.com>
2015-12-24 15:50 ` Re: Fix for pg_replication_origin_session_is_setup Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: Adrien Nayrat @ 2015-12-24 13:51 UTC (permalink / raw)
To: pgsql-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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Fix for pg_replication_origin_session_is_setup
2015-12-24 13:51 Fix for pg_replication_origin_session_is_setup Adrien Nayrat <adrien.nayrat@dalibo.com>
@ 2015-12-24 15:50 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2015-12-24 15:50 UTC (permalink / raw)
To: Adrien Nayrat <adrien.nayrat@dalibo.com>; +Cc: pgsql-docs
Adrien Nayrat <adrien.nayrat@dalibo.com> writes:
> 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()
I think you're right. Pushed, thanks.
regards, tom lane
--
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2015-12-24 15:50 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-12-24 13:51 Fix for pg_replication_origin_session_is_setup Adrien Nayrat <adrien.nayrat@dalibo.com>
2015-12-24 15:50 ` Tom Lane <tgl@sss.pgh.pa.us>
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