pg-dump

pg_dump & pg_restore password using python module subprocess

pg_dump & pg_restore password using python module subprocess Question: Problem: Use the PSQL pg_dump and pg_restore in a Python script and using the subprocess module. Background: I am using the following python 2.7 script from the localhost (i.e. Ubuntu 14.04.5 LTS) to create a backup of a table in a PSQL server (i.e. PostgreSQL 9.4.11) …

Total answers: 4