Re: Extraneous Files - Mailing list pgsql-general

From John R Pierce
Subject Re: Extraneous Files
Date
Msg-id 4EA07578.2060106@hogranch.com
Whole thread Raw
In response to Re: Extraneous Files  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Responses Re: Extraneous Files  (Ian Harding <harding.ian@gmail.com>)
List pgsql-general
On 10/20/11 12:14 PM, Karsten Hilbert wrote:
> Well, Ian isn't talking about removing data. What he was
> asking (I believe) is how to remove from the data directory
> files which got nothing to do with the database in question
> (but probably look like database files because, say, someone
> copied*another*  database into the directory ;-)

pg_dumpall
stop postgres
save the .conf files
wipe $PGDATA
initdb
restore the .conf files
restart postgres
restore the dumpall

--
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast


pgsql-general by date:

Previous
From: "Gauthier, Dave"
Date:
Subject: Reading PG data from MySQL stored procedure
Next
From: Ian Harding
Date:
Subject: Re: Extraneous Files