Need help on bytea usage - Mailing list pgsql-interfaces

From Simeon Mariasoosai
Subject Need help on bytea usage
Date
Msg-id E1D267B01738D211826900C04F922053902ED6@starnt.irvine.startelcorp.com
Whole thread Raw
List pgsql-interfaces
Hi,

I am trying to use bytea in postgres to store binary data such as a
structure. I used sql insert statement. I tried malloc and PQescapeBytea in
vain.

i tried palloc but get undefined references to CurrentMemoryContext and
MemoryContextAlloc. 

I am trying to find any sample code that inserts a binary data using bytea
storage type in postgres. I am using linux, and libpq libraries.

I couldnt find any sample code so far. I greatly appreciate your help in
pointing me towards some sample code that does this.

Thanks

Simon


pgsql-interfaces by date:

Previous
From: Robert Treat
Date:
Subject: Re: emarsden's pg.scm for guile (with some extensions)
Next
From: Nicolás Alvarez
Date:
Subject: install postgresql 7.2 with CXX on sco openserver 5.0.5