Use the db_batch_port for copy
This commit is contained in:
parent
b88a45889f
commit
763134437b
@ -8,7 +8,10 @@ const ACTION_FROM = 'from';
|
|||||||
|
|
||||||
module.exports = class StreamCopy {
|
module.exports = class StreamCopy {
|
||||||
constructor(sql, userDbParams) {
|
constructor(sql, userDbParams) {
|
||||||
this.pg = new PSQL(userDbParams);
|
const dbParams = Object.assign({}, userDbParams, {
|
||||||
|
port: global.settings.db_batch_port || userDbParams.port
|
||||||
|
});
|
||||||
|
this.pg = new PSQL(dbParams);
|
||||||
this.sql = sql;
|
this.sql = sql;
|
||||||
this.stream = null;
|
this.stream = null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user