Re: Feature request: drop rules - Mailing list pgadmin-hackers

From Thom Brown
Subject Re: Feature request: drop rules
Date
Msg-id AANLkTinM2YeJEGCKOk4qa59lhgoCHjP3WgDbAug7TS8T@mail.gmail.com
Whole thread Raw
In response to Re: Feature request: drop rules  (Dave Page <dpage@pgadmin.org>)
Responses Re: Feature request: drop rules  (Dave Page <dpage@pgadmin.org>)
List pgadmin-hackers
On 21 July 2010 14:32, Dave Page <dpage@pgadmin.org> wrote:
> On Wed, Jul 21, 2010 at 2:26 PM, Guillaume Lelarge
> <guillaume@lelarge.info> wrote:
>>
>> Tried it. Still works for me. I'm on Linux, but I don't think it is the
>> issue :)
>
> Actually, it might be. pgRule::CanDrop() is calling schema->CanDrop(),
> however schema actually contains the table object. I think this is
> because rules can exist under tables and views, so originally deriving
> them from pgTableObject seemed wrong.
>
>
> --

I create a rule on a view, it comes up with the "Drop/Delete" and
"Drop Cascaded" options.

Thom

pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: Re: Feature request: drop rules
Next
From: Dave Page
Date:
Subject: Re: Feature request: drop rules