pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Lynn <jmlynn@rogers.com>
To: pgsql-interfaces@postgresql.org
Subject: Re: How do you convert PostgreSQL internal binary field to C datatypes
Date: Wed, 23 May 2007 11:47:44 -0400
Message-ID: <46546220.4060209@rogers.com> (raw)

I give up!  What ever data returned from the binary output of 
PGgetvalue() is, I don't know how to convert it into StringInfo, which 
is being used by a few routines that "seems" to convert internal binary 
format into float8.  By casting the returned data into StringInfo, 
crashes the function.

If PostgreSQL  support only a half baked C API, may as well don't bother.

So I gave up.   I will not use PostgreSQL until there is a simple way to 
extract data directly into C or C++ data type.  Is one expect to fetch 
data in text, then use text to int, text to double, text to date 
function before you can make any business logic works?

Thanks all of you trying to help.  Appreciated!

Jeff




view thread (6+ messages)  latest in thread

Message-ID: <46546220.4060209@rogers.com>
Permalink:  ../46546220.4060209@rogers.com/
Also on:    postgresql.org/message-id/46546220.4060209@rogers.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: jmlynn@rogers.com
  Subject: Re: How do you convert PostgreSQL internal binary field to C datatypes
  In-Reply-To: <46546220.4060209@rogers.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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