I have a table called test with the columns id, data in a PostgreSQL database.
I have created a trigger AFTER INSERT called insert_test that launches a function of the same name.
The insert SQL from PHP is this:
insert into test (data) values ('try') returning 'variables' as temp;
How can I access resulting values in temp inside the PL/pgSQL function?
 
     
    