Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 0FC581E62E85 for ; Wed, 25 Apr 2012 16:34:27 -0300 (ADT) Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SN7yr-0005Zw-Bh for pgsql-bugs@postgresql.org; Wed, 25 Apr 2012 19:34:26 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SN7ye-0002JH-Ib for pgsql-bugs@postgresql.org; Wed, 25 Apr 2012 19:34:12 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1SN7yd-0002f9-V3 for pgsql-bugs@postgresql.org; Wed, 25 Apr 2012 19:34:11 +0000 Date: Wed, 25 Apr 2012 19:34:11 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6613: tablespace data ignored after reinstalling windows To: pgsql-bugs@postgresql.org From: ghircoiascamil@yahoo.com X-Pg-Spam-Score: 0.6 (/) X-Archive-Number: 201204/150 X-Sequence-Number: 32901 The following bug has been logged on the website: Bug reference: 6613 Logged by: Camil Ghircoias Email address: ghircoiascamil@yahoo.com PostgreSQL version: 9.1.3 Operating system: Windows 7 Description: = Had this scenario: OS:Windows 7 Install postgresql 9.1 in Program Files Postgresql data directory was set in d:\mydata\postgresql. Created table space called data in d:\mydata\data. Had 2 databases created in the data tablespace. Reinstalled windows (formatted disk c). Reinstalled postgresql (the same kit) with the data directory set to the old one d:\mydata\postgresql Open pgadmin, connected succesfully to the server, the 2 databases were there but when trying to connect get a message that the folder \pg_tblspc\an oid\pg version..\the database oid was not found. Succeded to make it to work by copying the oid databases folder from d:\mydata\data into d:\mydata\postgresql = Even pgadmin shows the tablespace data in d:\mydata\data and the 2 databases had the tablespace data not pg_default postgresql it uses the pg_default tablespace for storing the data, the d:\mydata\data folder I could delete it's files without any problems and postgresql worked.