Just a thought... Is it possible to create a trigger for a system table?
Successful "CREATE TABLE..." statement creates a row inside the information_schema.tables
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных