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) -- http://mail.python.org/mailman/listinfo/python-list