Database connection using libpq:
So, generally speaking, I need:
- send multiple queries using PQsendQuery() (or what else)
- bind some data (void*) to each qeury
- obtain results using PQgetResult() (or what else) and to know which data
is bound to each result (correspondence between queries and
2011/1/5 Вячеслав Блинников slav...@gmail.com:
Database connection using libpq:
So, generally speaking, I need:
- send multiple queries using PQsendQuery() (or what else)
- bind some data (void*) to each qeury
- obtain results using PQgetResult() (or what else) and to know which data
is
The whole thing is:
- server connect to the database and wait for incoming connections
- when incoming connection occurs, server request the database for some data
about connected client - server must do it asynchronously and without
creating any threads just for connected client (there can be
2011/1/5 Вячеслав Блинников slav...@gmail.com:
The whole thing is:
- server connect to the database and wait for incoming connections
- when incoming connection occurs, server request the database for some data
about connected client - server must do it asynchronously and without
creating any
1: Didn't figured out what it does mean - can you explain it better?
2: Operation system will refuse me to create thousand threads and, anyway,
database will return responds averagely just when all of them will be
accomplished.
3: I never close a connection once it was created, so any pool will
2011/1/6 Вячеслав Блинников slav...@gmail.com:
1: Didn't figured out what it does mean - can you explain it better?
http://ru.wikipedia.org/wiki/%D0%A1%D0%B5%D0%BC%D0%B0%D1%84%D0%BE%D1%80_(%D0%B8%D0%BD%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%82%D0%B8%D0%BA%D0%B0)
2: Operation system will refuse me to
2: Operation system will refuse me to create thousand threads and,
anyway,
database will return responds averagely just when all of them will be
accomplished.
I don't know how I can help you, since you haven't explained the
architecture of your application very well.
It does not make