Re: How to watch for schema changes - Mailing list pgsql-general

From David G. Johnston
Subject Re: How to watch for schema changes
Date
Msg-id CAKFQuwaDE1omczs_Sd5aiGeqROiTR5JeCERZzbL6PZTWJnUcQw@mail.gmail.com
Whole thread Raw
In response to Re: How to watch for schema changes  (Igor Korot <ikorot01@gmail.com>)
List pgsql-general
On Mon, Jul 9, 2018 at 1:49 PM, Igor Korot <ikorot01@gmail.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.

pgsql-general by date:

Previous
From: Igor Korot
Date:
Subject: Re: How to watch for schema changes
Next
From: Adrian Klaver
Date:
Subject: Re: How to watch for schema changes