Re: Finding tables dropped by DROP TABLE CASCADE

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Finding tables dropped by DROP TABLE CASCADE
Дата
Msg-id CA+Tgmoa8-nwdOwuhEKLWK7hZwp3_SO-GHLdatw1v96JFtvY+Uw@mail.gmail.com
обсуждение исходный текст
Ответ на Finding tables dropped by DROP TABLE CASCADE  (Tatsuo Ishii <ishii@postgresql.org>)
Ответы Re: Finding tables dropped by DROP TABLE CASCADE  (Tatsuo Ishii <ishii@postgresql.org>)
Список 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 по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: synchronized snapshots
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: Re: Finding tables dropped by DROP TABLE CASCADE