Re: How to watch for schema changes

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Igor Korot <ikorot01(at)gmail(dot)com>
Cc: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to watch for schema changes
Date: 2018-07-09 21:11:31
Message-ID: CAKFQuwaDE1omczs_Sd5aiGeqROiTR5JeCERZzbL6PZTWJnUcQw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Jul 9, 2018 at 1:49 PM, Igor Korot <ikorot01(at)gmail(dot)com> wrote:

> Just a thought...
> Is it possible to create a trigger for a system table?
>
Not sure, and doesn't seem documented either way, but seems easy enough to
try on a test cluster...
​[...]​

> Successful "CREATE TABLE..." statement creates a row inside the
> information_schema.tables
>

​Given that information_schema.tables is a view, not a table, it doesn't
make a valid hook point for the trigger regardless of the previous point.

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2018-07-09 21:38:05 Re: How to watch for schema changes
Previous Message Igor Korot 2018-07-09 20:49:19 Re: How to watch for schema changes