Need help on bytea usage

Поиск
Список
Период
Сортировка
От Simeon Mariasoosai
Тема Need help on bytea usage
Дата
Msg-id E1D267B01738D211826900C04F922053902ED6@starnt.irvine.startelcorp.com
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Robert Treat
Дата:
Сообщение: Re: emarsden's pg.scm for guile (with some extensions)
Следующее
От: Nicolás Alvarez
Дата:
Сообщение: install postgresql 7.2 with CXX on sco openserver 5.0.5