agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedFrom: Paul M. Aoki <aoki@cs.berkeley.edu>
To: Gatto <gatto@dss.inpe.br>
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: bytea built-in type
Date: Tue, 29 Nov 94 03:47:10 -0800
Message-ID: <199411291147.DAA19763@faerie.CS.Berkeley.EDU> (raw)
In-Reply-To: <9411291121.AA05008@dss.inpe.br>
gatto@dss.inpe.br (Gatto) writes:
> I have class MSG with a bytea (variable length array of bytes) field, and
> I need to add instances to it trough a C source code using LIBPQ functions.
> This field can contain zero values, and I don't know how to build a query
> string, to use in PQexec, that doesn't finish when a zero value occours in
> some position (not the last) of this field.
the base variable-length types (bytea, text) are implemented in
src/backend/utils/adt/varlena.c.
it looks like bytea takes constants of the form \xxx where xxx is an
octal constant and must have exactly three digits.
--
Paul M. Aoki | University of California at Berkeley
aoki@CS.Berkeley.EDU | Dept. of EECS, Computer Science Division (#1776)
| Berkeley, CA 94720-1776
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU".
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres/
[s2k-ftp is down with hardware problems. more news as it becomes available..]
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: postgres@postgres.berkeley.edu
Cc: aoki@cs.berkeley.edu, gatto@dss.inpe.br
Subject: Re: bytea built-in type
In-Reply-To: <199411291147.DAA19763@faerie.CS.Berkeley.EDU>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox