Re: Triggers on system catalog

From: Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com>
To: Shridhar Polas <shridharpolas(at)gmail(dot)com>
Cc: PGSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Triggers on system catalog
Date: 2011-03-29 17:41:41
Message-ID: AANLkTim5nH6R5i2WQEayPi2jgv1Nqfvpy2YY+5O94FYj@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Yes, you'd need to hack Postgres to add that capabilty, but that's too
darned difficult since Postgres internally does not use SQL to perform the
DML operations on system catalog. I'd suggest searching for past discussions
on -hackers around this topic.

Regards,

On Tue, Mar 29, 2011 at 5:37 AM, Shridhar Polas <shridharpolas(at)gmail(dot)com>wrote:

> Thanks Gurjeet.
>
> You got it absolutely correct what I am trying to do.
>
> It is clear to me that we can not write trigger on system catalog.
>
> Can we hack postgres somehow to have triggers create on system catalog?
>
> I am using postgres 9.0 version.
>
> Thanks,
> Shridhar
>
>
>
> On Mon, Mar 28, 2011 at 8:03 PM, Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com>wrote:
>
>> On Mon, Mar 28, 2011 at 10:19 AM, Shridhar Polas <shridharpolas(at)gmail(dot)com
>> > wrote:
>>
>>> Hi,
>>>
>>> Is there a way to create triggers on system catalog tables like
>>> pg_class, pg_attribute etc...?
>>>
>>
>> No, Postgres does not support triggers on system catalogs; we do not have
>> DDL triggers either, if that's what you were trying to achieve.
>>
>>

--
Gurjeet Singh
EnterpriseDB Corporation
The Enterprise PostgreSQL Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Browne 2011-03-29 18:17:36 Re: Triggers on system catalog
Previous Message Kevin Grittner 2011-03-29 17:20:00 SHMEM_INDEX_SIZE exceeded on startup