PostgreSQL, case sensitive EXECUTE
The EXECUTE statement does not recognize upper case letters on the database name. Running the below query on a database named "ABcdeFG" DO $c$ BEGIN EXECUTE 'ALTER DATABASE ' || current_database() || ' SET client_encoding = $$LATIN1$$'; END; $c$; returns…