Re: Is there a way to be notified on the CREATE TABLE execution?

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Igor Korot <ikorot01(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Is there a way to be notified on the CREATE TABLE execution?
Date: 2018-06-19 22:13:59
Message-ID: CAKFQuwb2zFDMr7pN7wKoVgxwefdEbE3g4pNqpu8vv9-EajM_Tw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tuesday, June 19, 2018, Igor Korot <ikorot01(at)gmail(dot)com> wrote:

> Hi, ALL,
> Consider a scenario:
>
> 1. A software that uses libpq is executing.
> 2. Someone opens up a terminal and creates a table.
> 3. A software needs to know about this new table.
>

I'd start here:

https://www.postgresql.org/docs/10/static/sql-createeventtrigger.html

Your scenario suggests you may wish to avail yourself of the Listen and
Notify commands as well.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2018-06-19 22:16:27 Re: Load data from a csv file without using COPY
Previous Message Asif Ali 2018-06-19 22:13:49 Re: Load data from a csv file without using COPY