From: | Satoshi Nagayasu <nagayasus(at)nttdata(dot)co(dot)jp> |
---|---|
To: | pgsql-patches(at)postgresql(dot)org |
Subject: | enable/disable trigger (Re: Fwd: [HACKERS] Open items) |
Date: | 2005-07-01 07:15:50 |
Message-ID: | 42C4EDA6.8000407@nttdata.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Hi all,
Here is a first patch to allow these commands.
> ALTER TABLE <table> ENABLE TRIGGER <trigname>
> ALTER TABLE <table> DISABLE TRIGGER <trigname>
Bruce said to allow them only super-user,
but currently this patch allows also the table owner.
If we need to restrict these operations,
we have to add more user checks.
> From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
> Date: 2005/06/29 20:49
> Subject: Re: [HACKERS] Open items
> To: Satoshi Nagayasu <nagayasus(at)nttdata(dot)co(dot)jp>
> Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
>
>
> Satoshi Nagayasu wrote:
>
>>How about enable/disable triggers?
>>
>>>From TODO:
>>
>>>Allow triggers to be disabled.
>>
>>http://momjian.postgresql.org/cgi-bin/pgtodo?trigger
>>
>>I think this is good for COPY performance improvement.
>>
>>Now I have user functions to enable/disable triggers, not DDL.
>>It modifies system tables.
>>But I can rewrite this as a DDL. (ALTER TABLE?)
>
>
> Yea, it is a TODO item, and should be pretty straight-forward to code,
> so sure, go ahead.
>
> It has to be something that is super-user-only.
>
> --
> Bruce Momjian | http://candle.pha.pa.us
> pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
> + If your life is a hard drive, | 13 Roberts Road
> + Christ can be your backup. | Newtown Square, Pennsylvania 19073
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
--
NAGAYASU Satoshi <nagayasus(at)nttdata(dot)co(dot)jp>
Attachment | Content-Type | Size |
---|---|---|
trig.diff | text/plain | 6.6 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2005-07-01 07:23:25 | Re: [PATCHES] Dbsize backend integration |
Previous Message | Heikki Linnakangas | 2005-07-01 06:43:11 | Re: 2PC transaction id |
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Kings-Lynne | 2005-07-01 07:29:23 | Re: enable/disable trigger (Re: Fwd: [HACKERS] Open items) |
Previous Message | Heikki Linnakangas | 2005-07-01 06:43:11 | Re: 2PC transaction id |