Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UhLA3-0003lw-K0 for pgsql-bugs@arkaria.postgresql.org; Tue, 28 May 2013 14:46:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UhLA3-0002y1-4l for pgsql-bugs@arkaria.postgresql.org; Tue, 28 May 2013 14:46:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UhCB0-0002vP-1A for pgsql-bugs@postgresql.org; Tue, 28 May 2013 05:10:26 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UhCAo-0001pl-S6 for pgsql-bugs@postgresql.org; Tue, 28 May 2013 05:10:25 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UhCAo-0003nN-36 for pgsql-bugs@postgresql.org; Tue, 28 May 2013 05:10:14 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1UhCAi-0003J8-T0 for pgsql-bugs@postgresql.org; Tue, 28 May 2013 05:10:08 +0000 Date: Tue, 28 May 2013 05:10:08 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #8182: Database name duplicate in one postgres instance To: pgsql-bugs@postgresql.org From: sachinthana.anuradha@yahoo.com X-Pg-Spam-Score: -0.4 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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:=20=20=20=20=20=20=20=20 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=20 --------------------+----------+---------- 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.=20 oid | datname | datdba | encoding | datistemplate | datallowconn | datlastsysoid | datvacuumxid | datfrozenxid | dattablespace | datconfig | datacl=20=20=20=20=20=20=20=20=20 -----------+--------------------+--------+----------+---------------+------= --------+---------------+--------------+--------------+---------------+----= -------+------------------------ 18580764 | *_live | 100 | 6 | f | t=20=20=20= =20=20=20=20=20=20=20 | 17228 | 482 | 482 | 1663 | | 95000657 | monitor_cacti | 101 | 6 | f | t=20= =20=20=20=20 | 17228 | 482 | 482 | 1663 |=20=20= =20=20=20=20=20 |=20 1 | template1 | 1 | 6 | t | t=20= =20=20=20=20 | 17228 | 482 | 482 | 1663 | | {postgres=3DCT/postgres} 17229 | template0 | 1 | 6 | t | f=20= =20=20=20=20 | 17228 | 482 | 482 | 1663 |=20=20= =20=20=20=20=20 | {postgres=3DCT/postgres} 116382901 |*_live | 100 | 6 | f | t=20=20= =20=20=20=20=20=20=20 | 17228 | 3261314675 | 3261314675 | 1663 |=20=20=20= =20=20=20=20=20=20=20 |=20 (5 rows) =20 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 --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs