How to dynamically use TG_TABLE_NAME in PostgreSQL 8.2?

前端 未结 2 496
青春惊慌失措
青春惊慌失措 2020-12-03 15:49

I am trying to write a trigger function in PostgreSQL 8.2 that will dynamically use TG_TABLE_NAME to generate and execute a SQL statement. I can find all kinds of examples

2条回答
  •  余生分开走
    2020-12-03 16:16

    I also asked a similar question a couple of years ago.

    Have a look at that question and see if it gives you any useful ideas:

    Inserting NEW.* from a generic trigger using EXECUTE in PL/pgsql

提交回复
热议问题