How does pg work?
How does pg work?
От:
Björn Lundin <bjorn.lundin@swipnet.se>
Дата:
Hi! I'm looking at the ADA interface to Postgres (gnade). A part of it is an ADA package working as a wrapper to libpq. By looking at the programmer's guide to libpq, the far most used expression is a call to PQExec. With this I start a transaction , executes statements and commit/rolback the transaction. So far I understand. But isn't there a sql-cache somewhere ready to execute the same statement with other parameters ? The JDBC interface supports prepared statements. Does libpq do this as well, and if so, how is that accomplished ? If there is no support for prepared statements, isn't speed suffering then ? Björn Lundin