Hi Tommi,
You are correct about the OID. From what I  understant, the OID is actually a 
foreign key to the field's binary value.How do I use tntdb get the binary that 
the OID points to. I guess that's what I was really aiming at. 
Thanks for the quick reply,
JC 

On Nov 30, 2011, at 11:35 AM, Tommi Mäkitalo <[email protected]> wrote:

> Hi,
> 
> the OID type is a 4 byte integer. At least the postgresql documentation 
> says. See 
> http://www.postgresql.org/docs/9.1/interactive/datatype-oid.html. So it 
> seems right, that tntdb returns the OID. Or do I miss something?
> 
> We use bytea 
> (http://www.postgresql.org/docs/9.1/interactive/datatype-binary.html) to 
> store binary data and can read and write them successfully using tntdb.
> 
> Tommi
> 
> On 11/30/2011 02:50 AM, Chris Stier wrote:
>> Hi all,
>> I'm trying to work with some huge binary data out of a postgres db.
>> It's stored as an OID type.  When I use the tntdb::Blob object,
>> blob.data()  returns the OID reference ID and not the actual binary
>> data.  Does anyone know a work around for this?  I really don't want
>> to use libpq directly :O)
>> Thanks,
>> JC
>> 
>> ------------------------------------------------------------------------------
>> All the data continuously generated in your IT infrastructure
>> contains a definitive record of customers, application performance,
>> security threats, fraudulent activity, and more. Splunk takes this
>> data and makes sense of it. IT sense. And common sense.
>> http://p.sf.net/sfu/splunk-novd2d
>> _______________________________________________
>> Tntnet-general mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/tntnet-general
> 
> 
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure 
> contains a definitive record of customers, application performance, 
> security threats, fraudulent activity, and more. Splunk takes this 
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________
> Tntnet-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tntnet-general

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to