> -----Original Message-----
> From: Gail Zacharias [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, October 22, 2003 12:42 PM
> To: [EMAIL PROTECTED]
> Subject: [GENERAL] database files
> 
> 
> I am investigating the possibility of using pgsql as the 
> database in an application.  I have some unusual requirements 
> that I'd like to ask you all about.  I apologize in advance 
> if my terminology is a little "off", I'm not familiar with 
> pgsql (yet).
> 
> I need to be able to move the database files, as normal 
> user-visible files, between machines. I.e. given a database 
> on machine A, I want to be able to copy either a single file 
> (ideally) or a single directory (less ideal but still ok) to, 
> say, a zip drive, bring it over to another machine (with 
> pgsql also installed), start up my application and have it 
> access the copied database through pgsql.
> 
> Is this sort of thing possible?  Is a database stored in a 
> single file or multiple files?  Can the location of the 
> file(s) be controlled?  Are the files accessible and 
> consistent while pgsql is running? I assume not all the time, 
> but is there a reliable way to make them accessible (i.e. 
> copyable) and consistent short of shutting down pgsql?
> 
> Is the file format of the pgsql database files compatible 
> between OS's?  E.g. could I take some database files from 
> Linux and use them on Windows?

The generic way to accomplish what you want is with the COPY command.
http://developer.postgresql.org/docs/postgres/sql-copy.html

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
      joining column's datatypes do not match

Reply via email to