Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ib3cs-000100-RB for pgsql-bugs@arkaria.postgresql.org; Sat, 30 Nov 2019 14:21:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ib3cr-0003cu-M9 for pgsql-bugs@arkaria.postgresql.org; Sat, 30 Nov 2019 14:21:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ib3cr-0003cn-9c for pgsql-bugs@lists.postgresql.org; Sat, 30 Nov 2019 14:21:33 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ib3co-0000ET-2B for pgsql-bugs@lists.postgresql.org; Sat, 30 Nov 2019 14:21:32 +0000 Received: by mail-wm1-x343.google.com with SMTP id l17so16821733wmh.0 for ; Sat, 30 Nov 2019 06:21:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=HbYbRhZ9f+9lFQWvyFhbajtKx0861B9mI/GcMfUVeDw=; b=Tp1SR95ZHDJTZD/C24G36GtlWHLY+k8j1ZEuWQTDoJgCMkhFwSNEsilj+C+q3GeRZW hevAh9zJ1xaGWssvwcQ+uJgfkC50v5nhzGKpjjVEuweXLkHTfTAHzIR3Pm3qFbYcUNYh 6kfhtXDMzdT8hBfRGt/hXQ8ix1+Gklzr/jpbnD8eHqGVhIW+cgnaoQODhz57jR7ZVfLk 0xERfZAhm4BfagaAbU6qbyFQ0F/H2ogbAS8VOKZRvI/AdVhAufiI8fWcCc1z/CPtq6PY QeXqcj2S9Ew9v5wYTZEJsvV21F7IHkQiX1R/XhrFfyURNYOHJWJ8PEnEBYhiN10oMkkN 6ALw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=HbYbRhZ9f+9lFQWvyFhbajtKx0861B9mI/GcMfUVeDw=; b=taT1Kvv99+vfzDO0gGA9IZh2J0IoHB2hcIQ+xSSjq6YHKsBJ0HV+CjgOPZPN0sqV2r FL1PHMqlHJNgIcjXSXh9bzSnf/NH1tr2cx6VrtDZMBu+uzPXRNyFrIq/ZE7M0kgZG2mj tgjkYD9RkQITvyQlVsDvg+6GgJwEKGiDWd/zThbWlabD1DF8Vomd4QvGH3GeXS1L6M/+ g+rj2wdVliEBbYxK3cvqR1m/5+XSPzSqZzUN1oBfs+tG0qrmcF+ZdAaNxiDs4rr1MzzP E5hG6mIhFPvAfgSbGnp+OjgDkH1IiupNIcxz+dcFP7PiGbOYh7/HqUVzR4fd0rGepYT5 x7WQ== X-Gm-Message-State: APjAAAXgLPcCW6bliopsWmvQlvy90w36KOm0UGyvBjWzOW48J8JSBG7E 77ATmcMM/TG/VZSgK7iCA3SZDlRZhNU= X-Google-Smtp-Source: APXvYqwb0/KagrUOFjVKyBi6s684ZBXRy1QsTL+smurR28TYMJcZ1t+7/vte+bIIu2hqeui8RKvsVQ== X-Received: by 2002:a1c:f316:: with SMTP id q22mr3078580wmq.67.1575123688039; Sat, 30 Nov 2019 06:21:28 -0800 (PST) Received: from localhost (ip-86-49-253-92.net.upcbroadband.cz. [86.49.253.92]) by smtp.gmail.com with ESMTPSA id 13sm16680550wmk.1.2019.11.30.06.21.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Nov 2019 06:21:27 -0800 (PST) Date: Sat, 30 Nov 2019 15:21:25 +0100 From: Tomas Vondra To: Tom Lane Cc: paul@intekon.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16143: PGTYPEStimestamp_fmt_asc() returns the incorrect month when the format specifier %b is used. Message-ID: <20191130142125.5bwzvzwadkrtuffl@development> References: <16143-0d861eb8688d3fef@postgresql.org> <20191129203832.xybuswyoa455mwy2@development> <8272.1575060224@sss.pgh.pa.us> <20191129213614.o2567i47yfsrqx62@development> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20191129213614.o2567i47yfsrqx62@development> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, Nov 29, 2019 at 10:36:14PM +0100, Tomas Vondra wrote: >On Fri, Nov 29, 2019 at 03:43:44PM -0500, Tom Lane wrote: >>Tomas Vondra writes: >>>The attached patch should fix this, I believe - both for %b and %B. >> >>Yeah, I'd just come to the same conclusion. You're welcome to >>do the commits, of course. >> > >OK, I'll commit shortly. > OK, pushed with backpatch to all supported branches. Turns out this is a pretty ancient bug - it's there since at least 2003, I stopped digging after that. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services