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

KeynesYouDigIt picture KeynesYouDigIt  Â·  3Comments

wrod7 picture wrod7  Â·  4Comments

dipakdas99 picture dipakdas99  Â·  3Comments

tonylukasavage picture tonylukasavage  Â·  4Comments

lucasmrl picture lucasmrl  Â·  3Comments