NAMES SET NAMES value is an alias for SET client_encoding TO value. it should be: SET NAMES 'value' is an alias for SET client_encoding TO value.
https://www.postgresql.org/docs/current/sql-set.html
NAMES SET NAMES value is an alias for SET client_encoding TO value. it should be: SET NAMES 'value' is an alias for SET client_encoding TO value.
https://www.postgresql.org/docs/current/sql-set.html