Skip site navigation (1) Skip section navigation (2)

Re: Bytea string operator support

From: "Joe Conway" <joseph(dot)conway(at)home(dot)com>
To: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>, "Marko Kreen" <marko(at)l-t(dot)ee>
Cc: "Peter Eisentraut" <peter_e(at)gmx(dot)net>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Bytea string operator support
Date: 2001-09-06 18:08:26
Message-ID: 012701c136fe$ece22040$0705a8c0@jecw2k1 (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
> > > Here's a patch for bytea string functions. As discussed:
> > >
> > > text encode(bytea, 'escape')
> > > bytea decode(text, 'escape')
> >
> > Why are you using \xxx encoding there?  As the 'escape' encoding
> > is supposed to be 'minimalistic' as it escapes only 2
> > problematic values, then IMHO it would be better to use
> > \0 and \\ as escapes - takes less room.
>
> Agreed, and I have documented this in the SGML pages.  Knowing this,
> bytea becomes a much easier format to use.

No problem -- I kind of like the octal style better, but I can see your
point. I'll wait for awhile for more comments, and then send in a new patch.

-- Joe



In response to

Responses

pgsql-hackers by date

Next:From: Matt BlockDate: 2001-09-06 18:33:24
Subject: Re: Bug in createlang?
Previous:From: Marc G. FournierDate: 2001-09-06 17:52:39
Subject: Some changes to CVSup and AnonCVS access ...

pgsql-patches by date

Next:From: Tom LaneDate: 2001-09-06 18:30:49
Subject: Re: JDBC patch procedures (Re: [PATCHES] Patch for jdbc2 ResultSet.java)
Previous:From: Bruce MomjianDate: 2001-09-06 17:43:53
Subject: Re: Bytea string operator support

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group