Re: [HACKERS] Spaces in psql output (Was: FW: PGBuildfarm member snake Branch HEAD Status changed) - Mailing list pgsql-patches

From Tom Lane
Subject Re: [HACKERS] Spaces in psql output (Was: FW: PGBuildfarm member snake Branch HEAD Status changed)
Date
Msg-id 7617.1139715779@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] Spaces in psql output (Was: FW: PGBuildfarm member snake Branch HEAD Status changed)  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: [HACKERS] Spaces in psql output (Was: FW: PGBuildfarm member snake Branch HEAD Status changed)
List pgsql-patches
Martijn van Oosterhout <kleptog@svana.org> writes:
> Well, the attached patch removes the padding on the last column,
> irrespective of the line. It will pad all the way to the end if the
> cell is empty due to one of the earlier columns being multiline.

Applied with some cosmetic changes.  I've confirmed that all the
regression tests pass with "-w" removed from DIFFFLAGS ... which
was a good exercise, actually, because it exposed the fact that
the line-wrapping patch broke ReportSyntaxErrorPosition.  I've put a
band-aid on that, though it might be worth trying to make it smarter
about control characters in general.

            regards, tom lane

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: TODO item -- Improve psql's handling of multi-line
Next
From: Bruce Momjian
Date:
Subject: Re: TODO item -- Improve psql's handling of multi-line