mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-25 16:03:13 +00:00
Updated FAQ (markdown)
parent
aaa45dfd1e
commit
64c3332bf8
4
FAQ.md
4
FAQ.md
@ -193,4 +193,6 @@ pg.connect(): It takes time to reconnect ?
|
||||
|
||||
### 16. (New Question) Are queries asynchronous, or do they block? Can this behavior be overridden if desired?
|
||||
|
||||
### 17. (New Question) What happens if I ask for a connection and the pool is already empty? will it throw an error or wait until a connection becomes available?
|
||||
### 17. What happens if I ask for a connection and the pool is already empty? will it throw an error or wait until a connection becomes available?
|
||||
|
||||
It will wait, and call your callback with a connection after one becomes available. This package uses the [generic-pool](https://github.com/coopernurse/node-pool) package to provide this behavior.
|
||||
Loading…
x
Reference in New Issue
Block a user