Re: [GENERAL] python api to backup/restore data

2007-08-04 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/04/07 10:58, Tom Lane wrote: > Acm <[EMAIL PROTECTED]> writes: >> I would like to know whether an API for accessing Postgresql from >> Python exists and whether or not it supports commands for backing up a >> database (or schema) and restoring a

Re: [GENERAL] python api to backup/restore data

2007-08-04 Thread Tom Lane
Acm <[EMAIL PROTECTED]> writes: > I would like to know whether an API for accessing Postgresql from > Python exists and whether or not it supports commands for backing up a > database (or schema) and restoring a backup file. Run pg_dump or pg_restore as a subprocess. regar

[GENERAL] python api to backup/restore data

2007-08-04 Thread Acm
I am working with Postgresql 8.2.4 and Python 2.5. I would like to know whether an API for accessing Postgresql from Python exists and whether or not it supports commands for backing up a database (or schema) and restoring a backup file. I heard about psycopg and psycopg2 but have no idea of how