pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: sachinthana.anuradha@yahoo.com
To: pgsql-bugs@postgresql.org
Subject: BUG #8182: Database name duplicate in one postgres instance
Date: Tue, 28 May 2013 05:10:08 +0000
Message-ID: <E1UhCAi-0003J8-T0@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      8182
Logged by:          Sachinthana Rajapaksha
Email address:      sachinthana.anuradha@yahoo.com
PostgreSQL version: Unsupported/Unknown
Operating system:   redhat
Description:        

Hi,

We are having a problem with postgres database version 8.0.14. This is a
production data base and suddenly it has created a database under the same
name in one postgres instance.

            List of databases
        Name        |  Owner   | Encoding 
--------------------+----------+----------
 monitor_cacti      | Monitor  | UNICODE
 template0          | postgres | UNICODE
 template1          | postgres | UNICODE
 *_live 	    | xxx      | UNICODE
 *_live 	    | xxx      | UNICODE
(5 rows)

once we checked the datfrozenxid and datvacuumxid it show like this. 

    oid    |      datname       | datdba | encoding | datistemplate |
datallowconn | datlastsysoid | datvacuumxid | datfrozenxid | dattablespace |
datconfig |         datacl         
-----------+--------------------+--------+----------+---------------+--------------+---------------+--------------+--------------+---------------+-----------+------------------------
  18580764 | *_live 	    |    100 	 |        6 | f             | t          
 |         17228 |          482 |          482 |          1663 |           |

  95000657 | monitor_cacti      |    101 |        6 | f             | t     
      |         17228 |          482 |          482 |          1663 |       
   | 
         1 | template1          |      1 |        6 | t             | t     
      |         17228 |          482 |     482 |          1663 |           |
{postgres=CT/postgres}
     17229 | template0          |      1 |        6 | t             | f     
      |         17228 |          482 |          482 |          1663 |       
   | {postgres=CT/postgres}
 116382901 |*_live 	    |        100 |        6 | f             | t         
  |         17228 |   3261314675 |   3261314675 |          1663 |          
| 
(5 rows)
 

one of the duplicated database show very large value and other shoe 482.

We cannot take the backups since it duplicate the databases.

I need to know about these.

1. If I get the data folder copied and paste that to a other postgres
instance  can I restore the database?

2. why this kind of duplicate happens and is there workaround to solve this
issue?

3. why datfrozenxid and datvacuumxid shows large valuse?

Since this is a production database appriciate early feedback.

Thanks
Sachinthana



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



Message-ID: <E1UhCAi-0003J8-T0@wrigleys.postgresql.org>
Permalink:  ../E1UhCAi-0003J8-T0@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1UhCAi-0003J8-T0@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: sachinthana.anuradha@yahoo.com
  Subject: Re: BUG #8182: Database name duplicate in one postgres instance
  In-Reply-To: <E1UhCAi-0003J8-T0@wrigleys.postgresql.org>
  References: <E1UhCAi-0003J8-T0@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox