On Tue, 2020-08-18 at 16:00 -0400, marcelo mendoza wrote:
> I have the following list of databases, but in record 3 you can see that the COLLATE has a space in the definition
I cannot see a space in the image, but it looks certainly weird.
What do you get for
SELECT d.datname,
c.collname,
c.oid AS coll_oid
FROM pg_database AS d
LEFT JOIN pg_collation AS c ON d.datcollate = c.collname;
Did you directly manipulate "pg_database" at some point?
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com