Re: Deleting a rule?

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Benjamin Smith <lists(at)benjamindsmith(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Deleting a rule?
Date: 2005-06-18 04:15:11
Message-ID: 20050618041511.GA4989@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Jun 17, 2005 at 15:27:30 -0700,
Benjamin Smith <lists(at)benjamindsmith(dot)com> wrote:
> I wrote a rule a while back that, due to the software being extended, now
> needs to be deleted.
>
> How do I drop a rule?
>
> DELETE FROM pg_rules WHERE rulename='foo';
>
> doesn't seem to cut it...

DROP RULE name ON relation [ CASCADE | RESTRICT ]

In response to

Browse pgsql-general by date

  From Date Subject
Next Message mojoscoobydoo 2005-06-18 05:44:50 Replication
Previous Message Michael Glaesemann 2005-06-18 01:58:11 Re: Deleting a rule?