On Sat, Feb 11, 2006 at 10:42:59PM -0500, Tom Lane wrote:
> Martijn van Oosterhout <kleptog(at)svana(dot)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.
Thanks for putting so much effort into this. I wish the patch could
have had more feedback before it was applied but that's water under the
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.
There's still the idea of automatically wrapping wide columns, but
that doesn't appear to have gained any traction yet so I'll leave that
Have a nice day,
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.
In response to
pgsql-hackers by date
|Next:||From: Tom Lane||Date: 2006-02-12 16:11:41|
|Subject: Re: SpeedComparison |
|Previous:||From: Mark Woodward||Date: 2006-02-12 15:18:23|
|Subject: Re: SpeedComparison|
pgsql-patches by date
|Next:||From: Tom Lane||Date: 2006-02-12 16:19:45|
|Subject: Re: psql tab completion enhancements |
|Previous:||From: Bruce Momjian||Date: 2006-02-12 15:26:09|
|Subject: Re: psql tab completion enhancements|