Skip site navigation (1) Skip section navigation (2)

Ticket 256: add INSTEAD OF support for triggers

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: Ticket 256: add INSTEAD OF support for triggers
Date: 2010-10-23 14:00:37
Message-ID: 4CC2EA85.3040606@lelarge.info (view raw or flat)
Thread:
Lists: pgadmin-hackers
Hi,

It was much easier than I previously thought. This patch adds a Triggers
node in the each view object node if you're connected to a 9.1
PostgreSQL server. You can add and see triggers on views.

It's not ready to be commited. I still have a bug to fix. I tried since
two days, and I can't make it work. My issue is with the Triggers node.
I should have the "Create a new object..." button enabled in the toolbar
and a "New trigger" (or whatever it's labelled) item in the contextual
menu. But I don't have them. I really don't understand why. View objects
seem to be treated differently than others but, despite many tests, I
can't make it work.

You can still test the patch because you have the capacity to create a
trigger on a view with a contextual menu available on the view object node.

If someone has a pointer to help me fix this patch, I would really
appreciate it.


-- 
Guillaume
 http://www.postgresql.fr
 http://dalibo.com

Attachment: 0001-New-kind-of-trigger-INSTEAD-OF.patch
Description: text/x-diff (0 bytes)

Responses

pgadmin-hackers by date

Next:From: Dave PageDate: 2010-10-23 21:03:45
Subject: Re: Ticket 256: add INSTEAD OF support for triggers
Previous:From: pgAdmin TracDate: 2010-10-23 10:11:01
Subject: [pgAdmin III] #266: Unable to backup table when quotation marks used in the name

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group