RE: How to see a RULE definition?

From: Joel Burton <jburton(at)scw(dot)org>
To: "Trewern, Ben" <Ben(dot)Trewern(at)mowlem(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: RE: How to see a RULE definition?
Date: 2001-01-11 17:09:57
Message-ID: Pine.LNX.4.21.0101111203500.14673-100000@olympus.scw.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 11 Jan 2001, Trewern, Ben wrote:

> You can use:
> pgdump -s > outfile
>
> which will dump all the schema for the database.
> It should be in there somewhere ;)

Or, for 7.1, use the new features of pg_dump to dump to the non-text-file
formats, which will allow you instantly and selectively look at particular
parts of your db dump, rather than worming your way through yourself.

Better still:

You can also SELECT * FROM pg_rules WHERE rulename='my_rule';

(at least in 7.1 betas; don't remember about 7.0.x)

--
Joel Burton <jburton(at)scw(dot)org>
Director of Information Systems, Support Center of Washington

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rosa Maria Carro Salas 2001-01-11 17:11:20 RecordSets, getString and charSets
Previous Message Tamsin 2001-01-11 17:03:28 RE: How to see a RULE definition?