X-Original-To: pgsql-admin@postgresql.org Received: from smtp.radiumsystems.com.br (unknown [200.158.100.251]) by postgresql.org (Postfix) with ESMTP id D7171476342 for ; Mon, 10 Mar 2003 15:27:27 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by smtp.radiumsystems.com.br (Postfix) with ESMTP id B84F76C31F; Mon, 10 Mar 2003 17:27:27 -0300 (BRT) Received: from smtp.radiumsystems.com.br (localhost [127.0.0.1]) by localhost (VaMailArmor-2.0.0.2) id 06631-39B42054; Mon, 10 Mar 2003 17:27:27 -0300 Received: from money.radiumsystems.com.br (money.radiumsystems.com.br [192.168.1.136]) by smtp.radiumsystems.com.br (Postfix) with ESMTP id C6FB46C31F; Mon, 10 Mar 2003 17:27:13 -0300 (BRT) Received: by money.radiumsystems.com.br (Postfix, from userid 4000) id 19AD517FE6; Mon, 10 Mar 2003 17:27:12 -0300 (BRT) To: Artur Pietruk Subject: Re: Miss of global directory Cc: pgsql-admin@postgresql.org From: gborges@radiumsystems.com.br X-Client-IP: 192.168.1.1 MIME-Version: 1.0 X-AntiVirus: OK! Vexira MailArmor Version 2.0.0.2 at matrix.radiumsystems.com.br has not found any known virus in this email. Message-Id: <20030310202727.B84F76C31F@smtp.radiumsystems.com.br> Date: Mon, 10 Mar 2003 17:27:27 -0300 (BRT) Content-Type: text/plain; Charset=iso-8859-1 X-Archive-Number: 200303/113 X-Sequence-Number: 7754 I mean that I lost /var/lib/pgsql/data/global Do you know some tool that helps me to recover/rebuild this directory? Thnks Gustavo No dia Mon, 10 Mar 2003 21:05:31 +0100, Artur Pietruk escreveu: > 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 >