Azlin Rahim <azlin.rahim@gmail.com> writes:
> I tried to do another SELECT on pg_database with the OID and here's
> what I get. Seems like there is no OID for the weird database. I'm
> stumped.
You didn't absorb the point about funny formatting. This makes it
look even more probable that the database name contains a carriage
return. See Alvaro's reply for one way to look closer.
regards, tom lane