From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Dimitri Fontaine <dimitri(at)2ndquadrant(dot)fr> |
Cc: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Andres Freund <andres(at)2ndquadrant(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, Stephen Frost <sfrost(at)snowman(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: ALTER SYSTEM SET command to change postgresql.conf parameters (RE: Proposal for Allow postgresql.conf values to be changed via SQL [review]) |
Date: | 2013-08-08 13:33:07 |
Message-ID: | CA+TgmoYiGjfOoyNtTod_wOxrGGHWkkMyrfziOMJDDSKDJ-yhbQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Sun, Aug 4, 2013 at 4:26 PM, Dimitri Fontaine <dimitri(at)2ndquadrant(dot)fr> wrote:
> Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> writes:
>> I remind you that event triggers are not fired for global objects
>> such as databases and roles. Do you intend to lift that restriction?
>
> That's not on my TODO list for 9.4. My understanding about implementing
> that is:
>
> - we agree that it would be nice to have,
> - it requires a separate *shared* catalog for event triggers.
>
> What I'm yet unsure about is that there's a consensus that the use cases
> are worthy of a new shared catalog in the system. Also I didn't look how
> hard it is to actually provide for it.
A new shared catalog wouldn't actually help, because the actual
procedure to be run has to live in pg_proc, which is not shared. And
that has references to all sorts of other things (like pg_language)
that aren't shared either.
I think the question isn't really a technical one so much as one of
policy. We could quite easily allow event triggers on shared objects.
The reason I suggested that we NOT allow that is because then
operations on those objects would behave differently depending on
which database you've attached. If you've attached a database with an
event trigger, you get the special behavior; otherwise, you don't. I
feared creating user confusion, there, and the use cases seemed
marginal anyway. But if there's a sufficient consensus that such a
thing is useful and non-confusing, I'll give way.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2013-08-08 13:35:29 | Re: Patch for reserved connections for replication users |
Previous Message | Robert Haas | 2013-08-08 13:27:24 | Re: mvcc catalo gsnapshots and TopTransactionContext |