Prev: Hot Standby 0.2.1
Next: Rejecting weak passwords
From: Robert Haas on 30 Sep 2009 12:06 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 30 Sep 2009 12:16 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 30 Sep 2009 13:26 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 30 Sep 2009 13:27 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 30 Sep 2009 13:30
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 |