Re: Deleting a rule?

From: Michael Glaesemann <grzm(at)myrealbox(dot)com>
To: lists(at)benjamindsmith(dot)com
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Deleting a rule?
Date: 2005-06-18 01:58:11
Message-ID: E946C4E2-D0A9-4514-9818-15C30C588DB8@myrealbox.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Jun 18, 2005, at 7:27 AM, Benjamin Smith 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?

http://www.postgresql.org/docs/8.0/interactive/sql-droprule.html

> DELETE FROM pg_rules WHERE rulename='foo';
>
> doesn't seem to cut it...

In general, you don't probably want to be mucking around in the
system catalog (the pg_* tables) unless you know what you're doing.
Most of the things that need to be done have specific commands so you
don't have to work with the system tables directly.

You'll also probably find the SQL Command Reference page helpful.

http://www.postgresql.org/docs/8.0/interactive/sql-commands.html

Hope this helps.

Michael Glaesemann
grzm myrealbox com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2005-06-18 04:15:11 Re: Deleting a rule?
Previous Message Jim C. Nasby 2005-06-18 00:04:36 Re: Autovacuum in the backend