Hi, I've been able to use pg_trigger.tgargs to get relationships between foreign keys. Now I want to get the update, delete etc. rules. Any idea how? If possible could you tell me what each of the columns in pg_trigger are for, because I have no idea, and I can't find it in the docs. Thankyou for your help, Jason ===== Jason Davies, _ _ _|_ _ _ _ _| _ | www.netspade.com | |(/_ | _\|_)(_|(_|(/_ | programming tutorials | | programming community ----------------------- | programming news __________________________________________________ Do You Yahoo!? Yahoo! Calendar - Get organized for the holidays! http://calendar.yahoo.com/