C++ interfaces
| От | Randy Jonasz |
|---|---|
| Тема | C++ interfaces |
| Дата | |
| Msg-id | Pine.BSF.4.21.0010061808320.64271-100000@nietzsche.jaded.net обсуждение исходный текст |
| Ответы |
Re: C++ interfaces
|
| Список | pgsql-interfaces |
ok, I think I have sufficient reason to go ahead with a complete rewrite of the libpq++ libs. First the connection functions in libpq are defined as static which makes them unsafe in a threaded environment. In addition, I think a complete rewrite will allow us to implement the ability to manage multiple concurrent sql commands more effectively than with relying on the libpq lib. I'm currently looking at the packet structures that the back-end and clients must use. I've found that many packets are terminated with 0x5A. The docs don't mention this so I was wondering if anyone could suggest why. An example is the packet which sends the backend key data. Every time I have psql connect to postmaster, the postmaster sends a packet with the secret key upon validation with 0x5A as the final byte. Any ideas? As far as maintaining both libpq and libpq++, the latter could use some of the header files in libpq, such as pqcomm.h, to maintain consistency of protocol defs across the backend and frontends. That's where I am at right now. Anyone have advice/suggestions? Cheers, Randy Jonasz Software Engineer Click2net Inc. Web: http://www.click2net.com Phone: (905) 271-3550 "You cannot possibly pay a philosopher what he's worth, but try your best" -- Aristotle
В списке pgsql-interfaces по дате отправления: