Unix Technical Forum

libpq pgconn pointer

This is a discussion on libpq pgconn pointer within the pgsql Interfaces odbc forums, part of the PostgreSQL category; --> Hi, I've have been using PostgreSQL for its spatial extension. However fetching binary data into a dataset through ODBC ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces odbc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-16-2008, 01:58 AM
SAFAK CIRAG
 
Posts: n/a
Default libpq pgconn pointer

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?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-16-2008, 01:58 AM
Ludek Finstrle
 
Posts: n/a
Default Re: libpq pgconn pointer

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

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:15 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com