Skip to content

Cannot close connection with native pg #320

@chaoran

Description

@chaoran

Node.js won't exit with this piece of code. I assume it's because the connection somehow is not closed.

var pg = require('pg')
var client = new pg.native.Client(conStr)
client.connect()
client.end()

Node.js exits if I remove the .native.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions