Skip to content

Instantly share code, notes, and snippets.

@meanother
Created October 14, 2021 19:24
Show Gist options
  • Save meanother/f05116d8cb5d51c1e9c8fb9b207f479c to your computer and use it in GitHub Desktop.
Save meanother/f05116d8cb5d51c1e9c8fb9b207f479c to your computer and use it in GitHub Desktop.
CREATE OR REPLACE FUNCTION home.banki_hist_insert()
RETURNS trigger
LANGUAGE plpgsql AS
$function$
BEGIN
INSERT INTO home.dth_banki_responses
(id, link, ... action, valid_from)
VALUES
(NEW.id, NEW.link, ... 'I', current_timestamp);
RETURN NEW;
END;
$function$;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment