How can I execute pl/pgsql code without creating a function? March 24, 2023 by Tarik Postgres 9 DO $$ -- declare BEGIN /* pl/pgsql here */ END $$;