Re: Finding tables dropped by DROP TABLE CASCADE - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Finding tables dropped by DROP TABLE CASCADE
Date
Msg-id CA+Tgmoa8-nwdOwuhEKLWK7hZwp3_SO-GHLdatw1v96JFtvY+Uw@mail.gmail.com
Whole thread Raw
In response to Finding tables dropped by DROP TABLE CASCADE  (Tatsuo Ishii <ishii@postgresql.org>)
Responses Re: Finding tables dropped by DROP TABLE CASCADE
List pgsql-hackers
On Tue, Aug 16, 2011 at 8:10 PM, Tatsuo Ishii <ishii@postgresql.org> wrote:
> I'm working on implemeting query cache for pgpool-II. The query cache
> must be deleted if related tables are dropped. Finding tables oids
> from DROP TABLE t1, t2, t3... is easy. Problem is DROP TABLE
> CASCADE. It seems there's no easy way to find table oids which will be
> deleted by DROP TABLE CASCADE. Any idea?

Presumably it would also need to invalidated if someone did ALTER
TABLE (which might recurse into unspecified children).

It sort of seems like what you want to do is snoop the sinval traffic...

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: synchronized snapshots
Next
From: Tatsuo Ishii
Date:
Subject: Re: Finding tables dropped by DROP TABLE CASCADE