pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
backup/restore APIs
3+ messages / 3 participants
[nested] [flat]

* backup/restore APIs
@ 2005-10-28 13:57 Sean Song <seanpssong@yahoo.com>
  2005-10-28 21:01 ` Re: backup/restore APIs David Stanaway <david@stanaway.net>
  2005-10-29 00:07 ` Re: backup/restore APIs Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 2 replies; 3+ messages in thread

From: Sean Song @ 2005-10-28 13:57 UTC (permalink / raw)
  To: pgsql-interfaces

Hi,
 
I want to do backup/restore Postgresql database from my program, but I don't want to rely on pg_dump/pg_restore or psql front end tools. Is there backup/restore functions in the interface libs for this purpose?
 
Thanks,
 
 
pcsps

		
---------------------------------
 Yahoo! FareChase - Search multiple travel sites in one click.  

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: backup/restore APIs
  2005-10-28 13:57 backup/restore APIs Sean Song <seanpssong@yahoo.com>
@ 2005-10-28 21:01 ` David Stanaway <david@stanaway.net>
  1 sibling, 0 replies; 3+ messages in thread

From: David Stanaway @ 2005-10-28 21:01 UTC (permalink / raw)
  To: Sean Song <seanpssong@yahoo.com>; +Cc: pgsql-interfaces

If your schema is static (Never a safe assumption) you can use the
"COPY ... TO ..." SQL using your preferred client library.

If you want to keep the state of sequences, and changes to the schema
etc, you might be better off using pg_dump. If you want to use that in
your app, it probably wouldn't be too hard to link in the code from
pg_dump. Keep in mind though, that probably has version dependent code
in it as it looks at the system tables, and may be subject to change.

On Fri, 2005-10-28 at 06:57 -0700, Sean Song wrote:
> Hi,
>  
> I want to do backup/restore Postgresql database from my program, but I
> don't want to rely on pg_dump/pg_restore or psql front end tools. Is
> there backup/restore functions in the interface libs for this purpose?
>  
> Thanks,
>  
>  
> pcsps
> 
> ______________________________________________________________________
> Yahoo! FareChase - Search multiple travel sites in one click. 




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: backup/restore APIs
  2005-10-28 13:57 backup/restore APIs Sean Song <seanpssong@yahoo.com>
@ 2005-10-29 00:07 ` Peter Eisentraut <peter_e@gmx.net>
  1 sibling, 0 replies; 3+ messages in thread

From: Peter Eisentraut @ 2005-10-29 00:07 UTC (permalink / raw)
  To: Sean Song <seanpssong@yahoo.com>; +Cc: pgsql-interfaces

Am Freitag, 28. Oktober 2005 15:57 schrieb Sean Song:
> I want to do backup/restore Postgresql database from my program, but I
> don't want to rely on pg_dump/pg_restore or psql front end tools. Is there
> backup/restore functions in the interface libs for this purpose?

No.



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2005-10-29 00:07 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-10-28 13:57 backup/restore APIs Sean Song <seanpssong@yahoo.com>
2005-10-28 21:01 ` David Stanaway <david@stanaway.net>
2005-10-29 00:07 ` Peter Eisentraut <peter_e@gmx.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox