Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y5j0N-0001dX-O3 for pgsql-docs@arkaria.postgresql.org; Mon, 29 Dec 2014 22:41:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y5j0M-0002AT-RP for pgsql-docs@arkaria.postgresql.org; Mon, 29 Dec 2014 22:41:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y5j0L-00026c-3H for pgsql-docs@postgreSQL.org; Mon, 29 Dec 2014 22:41:37 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Y5j0H-0004cT-6g for pgsql-docs@postgreSQL.org; Mon, 29 Dec 2014 22:41:35 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1Y5j0E-0001DU-Oq; Mon, 29 Dec 2014 17:41:30 -0500 Date: Mon, 29 Dec 2014 17:41:30 -0500 From: Bruce Momjian To: Tom Lane Cc: pgsql-docs@postgreSQL.org Subject: Re: The IYYY mess again Message-ID: <20141229224130.GC5788@momjian.us> References: <5888.1419865569@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5888.1419865569@sss.pgh.pa.us> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org On Mon, Dec 29, 2014 at 10:06:09AM -0500, Tom Lane wrote: > In bug #12367 > http://www.postgresql.org/message-id/20141229031218.8013.51171@wrigleys.postgresql.org > we see yet another iteration of somebody trying to combine to_char's > IYYY specifier with regular Gregorian MM/DD fields. > > It occurs to me that this is largely our own fault, because the fine > manual just defines IYYY as "ISO year". I'm sure the typical newbie > thought process is "that sounds like a standard year, I'll use that". > There is a warning against combining IYYY with MM/DD, but it's buried > in trivia far down the page. > > I did a bit of googling and came across > http://en.wikipedia.org/wiki/ISO_week_date > in which this construct is called an "ISO week-numbering year". > > Not having a copy of ISO 8601, I'm not sure if that's the standard's > terminology; but ISTM that if we consistently referred to the Ixxx > format specifiers as "ISO week-numbering foo" then this type of error > might become a little less attractive. > > Objections, better ideas? +1 for saying "ISO week-numbering year". -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs