automatically ignore known forwarded addresses, fixes #64
This commit is contained in:
11
vendor/go.mau.fi/util/dbutil/samples/output/01-postgres.sql
vendored
Normal file
11
vendor/go.mau.fi/util/dbutil/samples/output/01-postgres.sql
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
CREATE TABLE foo (
|
||||
key BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY,
|
||||
|
||||
data JSONB NOT NULL
|
||||
);
|
||||
|
||||
CREATE FUNCTION delete_data() RETURNS TRIGGER LANGUAGE plpgsql AS $$ BEGIN
|
||||
DELETE FROM test WHERE key <= NEW.data->>'index';
|
||||
RETURN NEW;
|
||||
END $$;
|
||||
-- end only postgres
|
||||
Reference in New Issue
Block a user