Thanks Tom, Alvaro. It was indeed caused by the carriage return. I've
renamed the weird db and the problem is resolved.
On Wed, May 26, 2010 at 7:14 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 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
>
--
Azlin