From: Robert Haas on
On Wed, Sep 30, 2009 at 11:11 AM, Tom Lane <tgl(a)sss.pgh.pa.us> wrote:
> Andrew Dunstan <andrew(a)dunslane.net> writes:
>> Thinking about this some more, ISTM a much better way of approaching it
>> would be to provide a flag for psql to turn off the fancy formatting,
>> and have pg_regress use that flag.
>
> Yeah, that's not a bad idea.  There are likely to be other client
> programs that won't want this behavioral change either.

I'm surprised there isn't one already. I would think that any new
format would default to off.

....Robert

--
Sent via pgsql-hackers mailing list (pgsql-hackers(a)postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

From: Andrew Dunstan on


Robert Haas wrote:
> On Wed, Sep 30, 2009 at 11:11 AM, Tom Lane <tgl(a)sss.pgh.pa.us> wrote:
>
>> Andrew Dunstan <andrew(a)dunslane.net> writes:
>>
>>> Thinking about this some more, ISTM a much better way of approaching it
>>> would be to provide a flag for psql to turn off the fancy formatting,
>>> and have pg_regress use that flag.
>>>
>> Yeah, that's not a bad idea. There are likely to be other client
>> programs that won't want this behavioral change either.
>>
>
> I'm surprised there isn't one already. I would think that any new
> format would default to off.
>
>
>

I haven't looked, but if there is that's so much less work to do ;-)

cheers

andrew

--
Sent via pgsql-hackers mailing list (pgsql-hackers(a)postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

From: Peter Eisentraut on
On Wed, 2009-09-30 at 11:03 -0400, Andrew Dunstan wrote:
> Thinking about this some more, ISTM a much better way of approaching it
> would be to provide a flag for psql to turn off the fancy formatting,
> and have pg_regress use that flag.

Well, it might not be a bad idea, but adding a feature just to satisfy
the test suite instead of fixing the test suite doesn't feel satisfying.
Is there another use case?


--
Sent via pgsql-hackers mailing list (pgsql-hackers(a)postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

From: Peter Eisentraut on
On Wed, 2009-09-30 at 12:06 -0400, Robert Haas wrote:
> On Wed, Sep 30, 2009 at 11:11 AM, Tom Lane <tgl(a)sss.pgh.pa.us> wrote:
> > Andrew Dunstan <andrew(a)dunslane.net> writes:
> >> Thinking about this some more, ISTM a much better way of approaching it
> >> would be to provide a flag for psql to turn off the fancy formatting,
> >> and have pg_regress use that flag.
> >
> > Yeah, that's not a bad idea. There are likely to be other client
> > programs that won't want this behavioral change either.
>
> I'm surprised there isn't one already. I would think that any new
> format would default to off.

Well, this isn't a new format, just an enhancement of an existing
format.


--
Sent via pgsql-hackers mailing list (pgsql-hackers(a)postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

From: Andrew Dunstan on


Peter Eisentraut wrote:
> On Wed, 2009-09-30 at 11:03 -0400, Andrew Dunstan wrote:
>
>> Thinking about this some more, ISTM a much better way of approaching it
>> would be to provide a flag for psql to turn off the fancy formatting,
>> and have pg_regress use that flag.
>>
>
> Well, it might not be a bad idea, but adding a feature just to satisfy
> the test suite instead of fixing the test suite doesn't feel satisfying.
> Is there another use case?
>
>

Sure, as Tom noted pg_regress probably won't be the only user. There are
lots of legacy scripts out there that parse psql output, and it should
be of use to them.

cheers

andrew

--
Sent via pgsql-hackers mailing list (pgsql-hackers(a)postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

First  |  Prev  |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Prev: Hot Standby 0.2.1
Next: Rejecting weak passwords