pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #17377: only superusers can query or manipulate replication origins
2+ messages / 2 participants
[nested] [flat]

* BUG #17377: only superusers can query or manipulate replication origins
@ 2022-01-22 09:12 PG Bug reporting form <noreply@postgresql.org>
  2022-02-04 04:54 ` Re: BUG #17377: only superusers can query or manipulate replication origins Masahiko Sawada <sawada.mshk@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: PG Bug reporting form @ 2022-01-22 09:12 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: chaolpan@cisco.com

The following bug has been logged on the website:

Bug reference:      17377
Logged by:          James Pang
Email address:      chaolpan@cisco.com
PostgreSQL version: 13.4
Operating system:   RHEL8.4
Description:        

PG 13.4 on RHEL8.4 ,
  we have a user with REPLICATION for logical replication , try to handle
"replication change loop back" by set replication origin, 

 select pg_replication_origin_create('test');
ERROR:  only superusers can query or manipulate replication origins

 Is it possible to "remove superuser() check" for pg_replication related
functions and view query, we expect any role with replication can
create/drop origin, and roles with pg_monitor can query the progress. 

we tested that PG 14.1 works if we grant execution privileges ,  is it
possible to merge the similar enhancement to Postgresql 13.5 or next minor
version ? so we can use that in pg13 version. 

Thanks,

James



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #17377: only superusers can query or manipulate replication origins
  2022-01-22 09:12 BUG #17377: only superusers can query or manipulate replication origins PG Bug reporting form <noreply@postgresql.org>
@ 2022-02-04 04:54 ` Masahiko Sawada <sawada.mshk@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Masahiko Sawada @ 2022-02-04 04:54 UTC (permalink / raw)
  To: chaolpan@cisco.com; pgsql-bugs@lists.postgresql.org

On Sat, Jan 22, 2022 at 10:09 PM PG Bug reporting form
<noreply@postgresql.org> wrote:
>
> The following bug has been logged on the website:
>
> Bug reference:      17377
> Logged by:          James Pang
> Email address:      chaolpan@cisco.com
> PostgreSQL version: 13.4
> Operating system:   RHEL8.4
> Description:
>
> PG 13.4 on RHEL8.4 ,
>   we have a user with REPLICATION for logical replication , try to handle
> "replication change loop back" by set replication origin,
>
>  select pg_replication_origin_create('test');
> ERROR:  only superusers can query or manipulate replication origins
>
>  Is it possible to "remove superuser() check" for pg_replication related
> functions and view query, we expect any role with replication can
> create/drop origin, and roles with pg_monitor can query the progress.
>
> we tested that PG 14.1 works if we grant execution privileges ,

Yeah, we removed superuser checks from replication origin functions in PG14.

> is it
> possible to merge the similar enhancement to Postgresql 13.5 or next minor
> version ? so we can use that in pg13 version.

Hmm, I don't think this change will be back-patched since it's not a bug fix.

Regards,

-- 
Masahiko Sawada
EDB:  https://www.enterprisedb.com/





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2022-02-04 04:54 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-01-22 09:12 BUG #17377: only superusers can query or manipulate replication origins PG Bug reporting form <noreply@postgresql.org>
2022-02-04 04:54 ` Masahiko Sawada <sawada.mshk@gmail.com>

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