PostgreSQL Asynchronous Message practice — real-time feed system monitoring and response like

$$ declare begin -- 规则定义,实际使用时,可以联合规则定义表 -- c2大于1000时,发异步消息 perform pg_notify('channel_1', ' function tg2() returns trigger as $$ declare begin -- 规则定义,实际使用时,可以联合规则定义表 -- c2大于9999时,发异步消息 ...
From: Community > blog Author: digoal Page View:20 Reply:0