Re: How to get trigger oid by trigger name - Mailing list pgsql-hackers

From Satoshi Nagayasu
Subject Re: How to get trigger oid by trigger name
Date
Msg-id 42637309.6030908@nttdata.co.jp
Whole thread Raw
In response to How to get trigger oid by trigger name  (rafaqat ali <rafaqat.ali@gmail.com>)
List pgsql-hackers
I'm using systable_beginscan() with TriggerConstrNameIndex
and systable_getnext().

BTW, which value are you using as the cacheId
when you call SearchSysCache() for pg_trigger?

I couldn't find a suitable value in syscache.h.

rafaqat ali wrote:
> Hello All
>          Can any one tell me how can I get triggerOid from triggerName
> in c code. I first tried to use SearchSysCache Function but it does
> not search o the basis of triggername.
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo@postgresql.org so that your
>       message can get through to the mailing list cleanly
> 


-- 
NAGAYASU Satoshi <nagayasus@nttdata.co.jp>
OpenSource Development Center,
NTT DATA Corp. http://www.nttdata.co.jp/


pgsql-hackers by date:

Previous
From: Ali Baba
Date:
Subject: Adding column in pg_proc
Next
From: Rafaqat Ali
Date:
Subject: