Re: Bytea string operator support - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: Bytea string operator support
Date
Msg-id Pine.LNX.4.30.0109121446040.694-100000@peter.localdomain
Whole thread Raw
In response to Bytea string operator support  ("Joe Conway" <joseph.conway@home.com>)
Responses Re: Bytea string operator support  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
Joe Conway writes:

> 2. Added PQescapeBytea to fe-exec.c

I'm not sure if we want to encode the peculiarities of particular data
types into the client libraries.  I could agree with adding a function
that supplies a general-purpose encoding such as base64 (not necessarily
preferred) which clients can use to feed data to the server.  In the
future we might want to support the SQL-standard input formats for binary
data types, which would require yet another round of functions to be added
to libpq.

After all, bytea is utterly non-standard, and if we make API extensions we
should consider them in the long run.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


pgsql-patches by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Configuring fdatasync for Solaris2
Next
From: Bruce Momjian
Date:
Subject: Re: Bytea string operator support