Re: Finding tables dropped by DROP TABLE CASCADE

From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: robertmhaas(at)gmail(dot)com
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Finding tables dropped by DROP TABLE CASCADE
Date: 2011-08-17 00:52:37
Message-ID: 20110817.095237.826129732210052519.t-ishii@sraoss.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Good point. For DROP TABLE/ALTER TABLE, I need to take care of its chidren.

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

It's hard for pgpool-II since there's no API in PostgreSQL for
that. Maybe I will look into the system catalog to find out
children. I'm not sure if I can deal with CASCADE by the same method
though.
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2011-08-17 00:53:34 Re: synchronized snapshots
Previous Message Robert Haas 2011-08-17 00:45:28 Re: Finding tables dropped by DROP TABLE CASCADE