CREATE GLOBAL TEMPORARY TABLE a_gtt_table ( id integer PRIMARY KEY, lbl text NOT NULL, creation_date timestamp CHECK (creation_date > '2021-01-01') ) ON COMMIT PRESERVE ROWS;