From: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
---|---|
To: | Melvin Davidson <melvin6925(at)gmail(dot)com> |
Cc: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, "hamann(dot)w(at)t-online(dot)de" <hamann(dot)w(at)t-online(dot)de>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Table create time |
Date: | 2017-08-31 15:26:37 |
Message-ID: | CAB7nPqSkYwGuBa9jV5r_MF0LBabhEG6CqZdcP=4MfmKDty-XEg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Fri, Sep 1, 2017 at 12:20 AM, Melvin Davidson <melvin6925(at)gmail(dot)com> wrote:
> >you could just create an event trigger looking for CREATE TABLE as filter_value:
>
> I have tried that. Unfortunately, I have been unable to extract the table name from the event because TG_TABLE_NAME is not
> available during an event trigger, albeit perhaps I am missing something?
The function pg_event_trigger_ddl_commands() returns classid and
objid, which should map to respectively pg_class and the relation
created for a CREATE TABLE query, no?
--
Michael
From | Date | Subject | |
---|---|---|---|
Next Message | Achilleas Mantzios | 2017-08-31 15:26:56 | Re: Table create time |
Previous Message | Melvin Davidson | 2017-08-31 15:20:38 | Re: Table create time |