Node-postgres: Application name for connection

Created on 18 Feb 2017  Â·  2Comments  Â·  Source: brianc/node-postgres

Hello,

Is there a way to pass application name parameter when opening connection?
Have not found it in connection parameters.

Thanks

question

Most helpful comment

The property is application_name:

const pool = new pg.Pool({
    â‹®
    application_name: 'a name',
});

All 2 comments

The property is application_name:

const pool = new pg.Pool({
    â‹®
    application_name: 'a name',
});

Thanks, I have committed update to typing's definition.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jessedpate picture jessedpate  Â·  33Comments

emilioplatzer picture emilioplatzer  Â·  26Comments

CnApTaK picture CnApTaK  Â·  40Comments

vitaly-t picture vitaly-t  Â·  31Comments

aahoughton picture aahoughton  Â·  38Comments