Re: Special role for subscriptions - Mailing list pgsql-hackers

From Evgeniy Efimkin
Subject Re: Special role for subscriptions
Date
Msg-id 2244061541664697@iva5-815ce03d682b.qloud-c.yandex.net
Whole thread Raw
In response to Re: Special role for subscriptions  (Stephen Frost <sfrost@snowman.net>)
List pgsql-hackers
Hi!
I think we can add FOR TABLES clause for create/refresh subscription, for example: CREATE SUBSCRIPTION my_sub
CONNECTION... PUBLICATION my_pub [WITH ...] [ FOR TABLES t1, t2 | ALL TABLES ]. ALL TABLES is avalibale only for
superuser.FOR TABLES t1, t2 is available to owner of tables and superuser.
 

07.11.2018, 00:52, "Stephen Frost" <sfrost@snowman.net>:
> Greetings,
>
> * Evgeniy Efimkin (efimkin@yandex-team.ru) wrote:
>>  As a first step I suggest we allow CREATE SUBSCRIPTION for table owner only.
>
> That's a nice idea but seems like we would want to have a way to filter
> what tables a subscription follows then..? Just failing if the
> publication publishes tables that we don't have access to or are not the
> owner of seems like a poor solution..
>
> Thanks!
>
> Stephen

-------- 
Ефимкин Евгений




pgsql-hackers by date:

Previous
From: Konstantin Knizhnik
Date:
Subject: Re: [HACKERS] Surjective functional indexes
Next
From: Haribabu Kommi
Date:
Subject: Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query