Search Postgresql Archives

PGPASSWORD - More than one in a bash script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi guys,

I'm writing a bash script to dump and restore (pg_dump + pg_restore) a test database.

However, the username to access the pg_dump server is different of the one to access pg_restore.

I'm using the PGPASSWORD parameter on the script, but can I put two of that?

like:
PGPASSWORD
PGPASSWORD2 

If not, do you guys have any idea how I could do this?

I'm using PostgreSQL 9.5

cheers


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux