Skip to content

concurrent queries in a connection #516

@yaronn

Description

@yaronn

Hi

What happens when I submit two sequential queries:

client.query("SELECT ...", function() {} )
client.query("SELECT ...", function() {} )

I understand there is a queue and second query will execute only after first is complete. But what does it mean "complete" - will pg send the second query to the server only after all results from the first query came back? Is it the driver behavior or does postgres mandate that only one query should be sent to the server by the client at a given moment?

Thanks,
Yaron

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