Re: Trigger (or something similar) on table rename?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ken Tanzer <ken(dot)tanzer(at)gmail(dot)com>
Cc: PG-General Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Trigger (or something similar) on table rename?
Date: 2018-02-15 19:01:53
Message-ID: 28694.1518721313@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ken Tanzer <ken(dot)tanzer(at)gmail(dot)com> writes:
> Something like a trigger on the table rename would be ideal for my
> purposes. Anything like that possible? Thanks!

Recent PG versions have "event triggers" which would serve the purpose.
However, the infrastructure for them isn't very fully built out yet.
I'm not sure if you could identify a table rename without resorting to
writing some C code.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Paul Jungwirth 2018-02-15 19:08:43 Re: Trigger (or something similar) on table rename?
Previous Message Adrian Klaver 2018-02-15 19:01:07 Re: Trigger (or something similar) on table rename?