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

Re: Feature request: drop rules

From: Thom Brown <thombrown(at)gmail(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Guillaume Lelarge <guillaume(at)lelarge(dot)info>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Feature request: drop rules
Date: 2010-07-21 13:44:09
Message-ID: AANLkTinM2YeJEGCKOk4qa59lhgoCHjP3WgDbAug7TS8T@mail.gmail.com (view raw or flat)
Thread:
Lists: pgadmin-hackers
On 21 July 2010 14:32, Dave Page <dpage(at)pgadmin(dot)org> wrote:
> On Wed, Jul 21, 2010 at 2:26 PM, Guillaume Lelarge
> <guillaume(at)lelarge(dot)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

In response to

Responses

pgadmin-hackers by date

Next:From: Dave PageDate: 2010-07-21 14:46:49
Subject: Re: Feature request: drop rules
Previous:From: Dave PageDate: 2010-07-21 13:32:39
Subject: Re: Feature request: drop rules

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