File: set_origin_subscriber_log_id.sql

package info (click to toggle)
pgl-ddl-deploy 2.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,780 kB
  • sloc: sql: 47,586; ansic: 364; python: 282; sh: 72; makefile: 63
file content (10 lines) | stat: -rw-r--r-- 196 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
CREATE OR REPLACE FUNCTION pgl_ddl_deploy.set_origin_subscriber_log_id()
 RETURNS trigger
 LANGUAGE plpgsql
AS $function$
BEGIN
NEW.origin_subscriber_log_id = NEW.id;
RETURN NEW;
END;
$function$
;