Closed garywong-bc closed 4 years ago
@WadeBarnes I think this worked in the past when the port # was unspecified so ${_portArg}
was null and didn't impact the psql commands.
That's what this line does; https://github.com/BCDevOps/backup-container/blob/master/docker/backup.postgres.plugin#L58.
If the port number is specified, 5432 for example, the value of ${_portArg}
becomes -p 5432
. Otherwise ${_portArg}
is blank, which tells psql
to use the default port.
Ah.. I missed that.. please ignore.
Noticed that these commands (in the current version of psql) returned errors such as:
Example 1:
Example 2:
So this PR explicitly denotes the 'port' parameter in the
psql
commands.