Copy database with python..
Bruno Desthuilliers
bdesth.quelquechose at free.quelquepart.fr
Sun Nov 4 16:51:14 EST 2007
Abandoned a écrit :
> Hi.
> I want to copy my database but python give me error when i use this
> command.
> cursor.execute("pg_dump mydata > old.dump")
> What is the problem ?
Could it have to do with the fact that cursor.execute expects a valid
SQL query - not a bash command line ?
> And how can i copy the database with python ?
import os
help(os.system)
More information about the Python-list
mailing list