Re: Patch: doc for pg_logical_emit_message() - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Patch: doc for pg_logical_emit_message()
Date
Msg-id CAHGQGwH9Qv=pdyZV4vXjy72940Hpkea3SPiQg1Mxaytfw03RmQ@mail.gmail.com
Whole thread Raw
In response to Patch: doc for pg_logical_emit_message()  ("Matsumura, Ryo" <matsumura.ryo@jp.fujitsu.com>)
Responses RE: Patch: doc for pg_logical_emit_message()
List pgsql-hackers
On Fri, Apr 19, 2019 at 3:21 PM Matsumura, Ryo
<matsumura.ryo@jp.fujitsu.com> wrote:
>
> Hi, Hackers
>
> pg_logical_emit_message() can be used by any user,
> but the following document says that it can be used by only superuser.
>
> > Table 9.88. Replication SQL Functions
> > Use of these functions is restricted to superusers.
>
> I think that pg_logicl_emit_message() should be used by any user.
> Therefore, I attach the document patch.

Thanks for the patch!

Use of not only pg_logical_emit_message() but also other replication
functions in Table 9.88 is not restricted to superuser. For example,
replication role can execute pg_create_physical_replication_slot().
So I think that the patch should fix also the description for those
replication functions. Thought?

Regards,

-- 
Fujii Masao



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: clean up docs for v12
Next
From: Stephen Frost
Date:
Subject: Re: block-level incremental backup