Re: postgreSQL : duplicate DB names

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: postgreSQL : duplicate DB names
Date: 2014-05-26 07:41:46
Message-ID: llur7r$d32$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Khangelani Gama, 26.05.2014 09:20:
> Hi
>
> Something wrong happened in our server, for some strange and unknown reason (s) the server created another DB,
> there is two same DB names in one server.
>
> Name | Owner | Encoding
> ---------+----------+----------
> a9004 | postgres | UNICODE
> a9004 | postgres | UNICODE
>

Maybe there are some trailing spaces at one of the names.

What do you see when you run this:

select '"'||datname||'"' as name
from pg_database

By adding the quotes, you can see if there are any trailing (or leading) in the name.

Regards
Thomas

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Khangelani Gama 2014-05-26 08:09:48 Re: postgreSQL : duplicate DB names
Previous Message Andres Freund 2014-05-26 07:24:47 Re: Shared memory changes in 9.4?