X-Original-To: pgsql-admin@postgresql.org Received: from yoda.plukwa.net (yoda.plukwa.net [213.146.36.61]) by postgresql.org (Postfix) with ESMTP id 1CB444760E3 for ; Mon, 10 Mar 2003 15:05:57 -0500 (EST) Received: from arturp by yoda.plukwa.net with local (Exim 3.35 #1 (Debian)) id 18sTWe-0003dJ-00; Mon, 10 Mar 2003 21:05:32 +0100 Date: Mon, 10 Mar 2003 21:05:31 +0100 To: gborges@radiumsystems.com.br Cc: pgsql-admin@postgresql.org Subject: Re: Miss of global directory Message-ID: <20030310200531.GK1941@plukwa.net> References: <20030306020225.3A2136C31F@smtp.radiumsystems.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030306020225.3A2136C31F@smtp.radiumsystems.com.br> User-Agent: Mutt/1.5.3i From: Artur Pietruk X-Archive-Number: 200303/129 X-Sequence-Number: 7770 On Wed, Mar 05, 2003 at 11:02:25PM -0300, gborges@radiumsystems.com.br wrote: > Hi! > > I lost the global directory wich contains some archives which are needed to use postgres correctly. I'm not sure what you mean by "global directory". You mean you've lost binaries, etc. related to pgsql? > Is there some way to rebuild this directory? The data directory which contains all my database information is safe. But, as long as you have $PGDATA, you should be safe. (But remember to backup everything, and make sure you know what you are doing, to not loose your DB by simple mistake/rm - be careful). Here is short overview of what you could try: Backup your current $PGDATA directory. Then, reinstall postgresql (remember - exactly the same version of PGSQL as before!). When done, new $PGDATA dir will be created. Take postgresql down, and remove new $PGDATA. Then, copy to that place your old, backuped $PGDATA. Hope it works, -- --- Artur Pietruk, arturp@plukwa.net