From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | Steve Chavez <steve(at)supabase(dot)io> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Aleksander Alekseev <aleksander(at)timescale(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Allow database owners to CREATE EVENT TRIGGER |
Date: | 2025-04-23 01:18:27 |
Message-ID: | CAKFQuwYBzLVFgweF20LEfO=cfNXrxsxwLU9XLMrAAs9TD5gjKg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tuesday, April 22, 2025, David G. Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
wrote:
> On Tuesday, April 22, 2025, David G. Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
> wrote:
>
>> On Tuesday, April 22, 2025, Steve Chavez <steve(at)supabase(dot)io> wrote:
>>
>>> > alter event trigger command which doesn’t need to be exercised here
>>>
>>> That part does need to be tested, I modified
>>> `AlterEventTriggerOwner_internal` to allow altering owners to regular
>>> users. Before it was only restricted to superusers.
>>>
>>
> Ok. I missed this.
>
Sorry for the self-reply but this nagged at me.
It’s probably not a big deal either way, but the prior test existed to
ensure that a superuser couldn’t do something they are otherwise are always
permitted to do - assign object to whomever they wish. So
event_trigger.sql had a test that errored showing this anomaly. You moved
the test and now are proving it doesn’t error. But it is not expected to
error; and immediately above you already show that a non-superuser can be
an owner. We don’t need a test to show a superuser demonstrating their
normal abilities.
IOW, select test cases around the feature as it is implemented now, not its
history. A personal one-off test to ensure that no super-user prohibitions
remained will suffice to make sure all such code that needed to be removed
is gone.
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Smith | 2025-04-23 03:11:29 | Re: Proposal: Filter irrelevant change before reassemble transactions during logical decoding |
Previous Message | Tatsuo Ishii | 2025-04-23 01:07:29 | Re: Row pattern recognition |