agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedbytea built-in type
3+ messages / 3 participants
[nested] [flat]
* bytea built-in type
@ 1994-11-29 09:21 Gatto <gatto@dss.inpe.br>
1994-11-29 11:47 ` Re: bytea built-in type Paul M. Aoki <aoki@cs.berkeley.edu>
0 siblings, 1 reply; 3+ messages in thread
From: Gatto @ 1994-11-29 09:21 UTC (permalink / raw)
To: legacy
Hello
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.
Can anyone help me?
==============================================================================
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..]
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: bytea built-in type
1994-11-29 09:21 bytea built-in type Gatto <gatto@dss.inpe.br>
@ 1994-11-29 11:47 ` Paul M. Aoki <aoki@cs.berkeley.edu>
1994-12-02 07:24 ` NetBSD 1.0 port bachesta@angst.tera.com
0 siblings, 1 reply; 3+ messages in thread
From: Paul M. Aoki @ 1994-11-29 11:47 UTC (permalink / raw)
To: Gatto <gatto@dss.inpe.br>; +Cc: legacy
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..]
^ permalink raw reply [nested|flat] 3+ messages in thread
* NetBSD 1.0 port
1994-11-29 09:21 bytea built-in type Gatto <gatto@dss.inpe.br>
1994-11-29 11:47 ` Re: bytea built-in type Paul M. Aoki <aoki@cs.berkeley.edu>
@ 1994-12-02 07:24 ` bachesta@angst.tera.com
0 siblings, 0 replies; 3+ messages in thread
From: bachesta@angst.tera.com @ 1994-12-02 07:24 UTC (permalink / raw)
To: legacy; bachesta@beaver.cs.washington.edu
Hi Everyone,
I started a port of postgres 4.2 for NetBSD 1.0 about a month ago.
I made good progress the first week and I was able to get the system
to build to completion. While running the regression tests I found
that my port, taken from the Postgres 4.01 NetBSD port, of the dynamic
loader fails to load objects correctly. I haven't had the chance
to look into this problem for a number of weeks now. I plan to
complete the port in the next few days. To avoid reinventing the wheel,
and to save me some headachs, I thought I would check if anyone else
has done this, or am I treading new territory.
Any help is appreciated.
Thanks,
Jim Bachesta
bachesta@tera.com
==============================================================================
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/
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~1994-12-02 07:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1994-11-29 09:21 bytea built-in type Gatto <gatto@dss.inpe.br>
1994-11-29 11:47 ` Paul M. Aoki <aoki@cs.berkeley.edu>
1994-12-02 07:24 ` NetBSD 1.0 port bachesta@angst.tera.com
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox