Skip site navigation (1) Skip section navigation (2)

Re: postgres database file location

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: Ramon Orticio <rporticio(at)yahoo(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: postgres database file location
Date: 2005-11-29 09:41:36
Message-ID: 1133257296.10517.25.camel@linda.lfix.co.uk (view raw or flat)
Thread:
Lists: pgsql-novice
On Tue, 2005-11-29 at 00:46 -0800, Ramon Orticio wrote:
> dear friends,
> 
> i created a bedrock sample database and put an
> employee table in it. i just can't find the file for
> the database so that i can transfer it to another
> computer.  where is the file of bedrock located?

You cannot transfer the file or database directory alone and expect to
be able to recover data from it; there are global files involved as
well.  To transfer data to another computer you should use pg_dump to
dump the database or table and then you should import the dump file on
the other machine.

-- 
Oliver Elphick                                          olly(at)lfix(dot)co(dot)uk
Isle of Wight                              http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
                 ========================================
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html


In response to

pgsql-novice by date

Next:From: meDate: 2005-11-29 11:19:35
Subject: Re: PostgreSQL 8.0.1-2 WinXP Services
Previous:From: A. KretschmerDate: 2005-11-29 09:35:07
Subject: Re: postgres database file location

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group