From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Martijn van Oosterhout <kleptog(at)svana(dot)org>, pgsql-patches(at)postgresql(dot)org |
Subject: | Re: [HACKERS] Spaces in psql output (Was: FW: PGBuildfarm |
Date: | 2006-03-02 21:32:01 |
Message-ID: | 200603022132.k22LW1P10972@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Bruce Momjian wrote:
> Tom Lane wrote:
> > Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
> > > About the ReportSyntaxErrorPosition thing, it was considered at the
> > > time (can't find the email right now) that control characters would be
> > > problematic but it wouldn't break anything that wasn't broken already.
> > > How tab was missed I don't know, nor a couple of other failures cases
> > > I've thought of since. Thanks for fixing that.
> >
> > What I was thinking of doing was making it translate any control
> > character (other than \r and \n) to a space, not only tab. However
> > this should probably wait on the result of the discussion about whether
> > we really like the \x09 output for tabs in data ... that might yield an
> > idea that could be applied here too.
>
> Perhaps we should just output "\009" for tab and "\xxx" for other
> control characters. That seems the most natural. I can't see why we
> would convert every control character to " ".
I assume everyone is happy with the next hex output so we will leave it:
test=> select '<tab>';
?column?
----------
\x09
(1 row)
FYI, as of 8.1 we now accept hex in all place we accept octal.
--
Bruce Momjian http://candle.pha.pa.us
SRA OSS, Inc. http://www.sraoss.com
+ If your life is a hard drive, Christ can be your backup. +
From | Date | Subject | |
---|---|---|---|
Next Message | Craig A. James | 2006-03-02 21:43:35 | PG Extensions: Must be statically linked? |
Previous Message | Michael Fuhr | 2006-03-02 21:19:05 | Re: Uninstall script errors |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2006-03-02 21:42:28 | Re: New pg_dump options: exclude tables/schemas, multiple |
Previous Message | James William Pye | 2006-03-02 21:16:10 | Scanning for insert |