0

I had a problem entering the password directly through the python program

When I do something in PostgreSQL, it asks for a database password and here

How can I enter the database password through python so that it is entered in the requested field

pg_dump.exe -U dbuser -h localhost dbname >> s.sql
>>>Password: 

I know that there is a .pgpass file, but there is a possibility of frequent password changes

0 Answers0