[DOCS] Fix for pg_replication_origin_session_is_setup

2015-12-24 Thread Adrien Nayrat
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
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 

 
  
!  pg_replication_session_is_setup
  
! pg_replication_session_is_setup()
 
 
  bool
--- 17478,17486 

 
  
!  pg_replication_origin_session_is_setup
  
! pg_replication_origin_session_is_setup()
 
 
  bool

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


Re: [DOCS] Fix for pg_replication_origin_session_is_setup

2015-12-24 Thread Tom Lane
Adrien Nayrat  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