pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
libpq pgconn pointer
2+ messages / 2 participants
[nested] [flat]

* libpq pgconn pointer
@ 2006-05-10 06:31  SAFAK CIRAG <safak.cirag@netcad.com.tr>
  0 siblings, 1 reply; 2+ messages in thread

From: SAFAK CIRAG @ 2006-05-10 06:31 UTC (permalink / raw)
  To: pgsql-odbc

    Hi,

    I've have been using PostgreSQL for its spatial extension. However fetching binary data into a dataset through ODBC and then reading the binary data decreases performance. For the sake of performance,i've  fetched geometries by binary cursors using libpq API. My problem is to make two connections;one for geometries and other for psql-odbc. So i'm wondering if somehow pgconn pointer address of a connection made by psql-odbc can be reached from outside. 

   Another question : Server side cursor is working with OpenForwardOnly mode,what about KeySet?

  

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: libpq pgconn pointer
@ 2006-05-10 09:03  Ludek Finstrle <luf@pzkagis.cz>
  parent: SAFAK CIRAG <safak.cirag@netcad.com.tr>
  0 siblings, 0 replies; 2+ messages in thread

From: Ludek Finstrle @ 2006-05-10 09:03 UTC (permalink / raw)
  To: SAFAK CIRAG <safak.cirag@netcad.com.tr>; +Cc: pgsql-odbc

Wed, May 10, 2006 at 09:31:14AM +0300, SAFAK CIRAG wrote:
>     I've have been using PostgreSQL for its spatial extension.
> However fetching binary data into a dataset through ODBC and then
> reading the binary data decreases performance. For the sake of
> performance,i've  fetched geometries by binary cursors using libpq
> API. My problem is to make two connections;one for geometries and

Why is it the problem?

> other for psql-odbc. So i'm wondering if somehow pgconn pointer
> address of a connection made by psql-odbc can be reached from outside. 

You don't specify driver version at first. E.g. 08.02.0002 use libpq
only sometimes ...
I see no way to get th pgconn pointer right now. Maybe you hack some
ODBC function to return it (maybe SQLGetInfo or SQLGetConnectAttr).

>    Another question : Server side cursor is working with
> OpenForwardOnly mode,what about KeySet?

Does PostgreSQL backend (server) support Keyset cursor? I don't think so.

Regards,

Luf



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2006-05-10 09:03 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-05-10 06:31 libpq pgconn pointer SAFAK CIRAG <safak.cirag@netcad.com.tr>
2006-05-10 09:03 ` Ludek Finstrle <luf@pzkagis.cz>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox