On fre, 2011-11-04 at 07:34 -0400, Noah Misch wrote:
> For "\pset format wrapped", we only use $COLUMNS when the output is a
> tty. I'm thinking it's best, although not terribly important, to
> apply the same rule to this feature.
I think it does work that way. There is only one place where the
environment variable is queries, and it's used for both wrapped format
and expanded auto format.