pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <robertmhaas@gmail.com>
To: Bruce Momjian <bruce@momjian.us>
Cc: thomas.berger@1und1.de, PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: [BUGS] BUG #14244: wrong suffix for pg_size_pretty()
Date: Tue, 23 Aug 2016 13:53:25 -0400
Message-ID: <CA+TgmoZ6PWM55SguTSG=O2L7o64Wg9bW4SnF_Cc9vDxUb6rYjw@mail.gmail.com> (raw)
In-Reply-To: <20160823174715.GC3895@momjian.us>
References: <20160712133638.1409.99068@wrigleys.postgresql.org>
	<20160730001838.GA22405@momjian.us>
	<CA+TgmoY1KS_2CsJ9R+TKq_HuR-rdMYmtmDvX7FVd9e5GsX8hyw@mail.gmail.com>
	<20160823174307.GB3895@momjian.us>
	<CA+Tgmobu7N81ViR-XwOdL8C=9njNacYwADPp_KPR6DmqDj7u-g@mail.gmail.com>
	<20160823174715.GC3895@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On Tue, Aug 23, 2016 at 1:47 PM, Bruce Momjian <bruce@momjian.us> wrote:
>> I have already read the entire thread, and replied only after reading
>> all messages.
>
> Well, what are you replying to then?

Your original message.  I'm arguing that we should not change the
behavior, as you proposed to do.

> There is no GUC used, and
> everything is backward compatible.

Greg Stark proposed a GUC.  I don't think that's a good idea.  You
proposed to change the behavior in a way that is not
backward-compatible.  I don't think that's a good idea either.  If you
are saying that you've dropped those proposals, fine, but I think it's
entirely reasonable for me to express my opinion on them.  It was not
evident to me that the thread had reached any kind of consensus.

> Your hyperbole about a new user
> being confused is also not helpful.  What is this "chaos" you are
> talking about?

Behavior-changing GUCs are bad news for reasons that have been
discussed many times before: they create a requirement that everybody
who writes code intended to run on arbitrary PostgreSQL installation
be prepared to cater to every possible value of that GUC.
pg_size_pretty() is pretty likely to appear in queries that we give
users to run on their systems, so it would be a particularly poor
choice to make its behavior configurable.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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



view thread (31+ messages)  latest in thread

Message-ID: <CA+TgmoZ6PWM55SguTSG=O2L7o64Wg9bW4SnF_Cc9vDxUb6rYjw@mail.gmail.com>
Permalink:  ../CA+TgmoZ6PWM55SguTSG=O2L7o64Wg9bW4SnF_Cc9vDxUb6rYjw@mail.gmail.com/
Also on:    postgresql.org/message-id/CA+TgmoZ6PWM55SguTSG=O2L7o64Wg9bW4SnF_Cc9vDxUb6rYjw@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: robertmhaas@gmail.com, bruce@momjian.us, pgsql-hackers@postgresql.org
  Subject: Re: [BUGS] BUG #14244: wrong suffix for pg_size_pretty()
  In-Reply-To: <CA+TgmoZ6PWM55SguTSG=O2L7o64Wg9bW4SnF_Cc9vDxUb6rYjw@mail.gmail.com>
  References: <20160712133638.1409.99068@wrigleys.postgresql.org> <20160730001838.GA22405@momjian.us> <CA+TgmoY1KS_2CsJ9R+TKq_HuR-rdMYmtmDvX7FVd9e5GsX8hyw@mail.gmail.com> <20160823174307.GB3895@momjian.us> <CA+Tgmobu7N81ViR-XwOdL8C=9njNacYwADPp_KPR6DmqDj7u-g@mail.gmail.com> <20160823174715.GC3895@momjian.us> <CA+TgmoZ6PWM55SguTSG=O2L7o64Wg9bW4SnF_Cc9vDxUb6rYjw@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox