- DBC265A63C34C6B682694C8776AA4640C83BA92DCA5400F0BD393F6A9EB5D3672011C234C3D04A7AD074F3FCE560D71D78201F4BBCB506C12ED6CC90D3C59017
+ 83BD0BA610A945CA03644BB5EA7304AC61D04622920C42DEA741EAE7AD22C10F6A2B00994832898F6706D2B1608A23ACC26FC2AF1CAE17837EE7739EAE36797E
logbot/logbot.sql
(28 . 7)(28 . 7)
89 create trigger log_insert_notify_trigger
90 after insert on log
91 for each row execute procedure log_insert_notify ();
92
93
94 create table outbox (
95 id serial primary key,
96 target text not null,
(38 . 7)(38 . 7)
98
99 create or replace function outbox_insert_notify () returns trigger as $$
100 begin
101 perform pg_notify('outbox_new_message', NEW.id::text);
102 perform pg_notify('outbox_new_message', NEW.target::text);
103 return NEW;
104 end;
105 $$ language plpgsql;