postgresql notify not return anything when insert or update
问题 i'm newbie for postgresql, now i try to get notification from db when that table (my table name is foo2) have insert or update but not have anything return from db to my code with c# project This is my code // -------------- create table --------------- CREATE TABLE foo2 (id serial primary key, name varchar); // -------------- create function ------------ CREATE OR REPLACE FUNCTION nf() RETURNS TRIGGER AS $$ BEGIN PERFORM pg_notify('notifytest', format('INSERT %s %s', NEW.id, NEW.name));