Re: Extraneous Files

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Extraneous Files
Date: 2011-10-20 19:24:40
Message-ID: 4EA07578.2060106@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ian Harding 2011-10-20 19:32:18 Re: Extraneous Files
Previous Message Gauthier, Dave 2011-10-20 19:22:07 Reading PG data from MySQL stored procedure