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 1ianw9-0005TD-7t for pgsql-bugs@arkaria.postgresql.org; Fri, 29 Nov 2019 21:36:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ianw7-0007po-9I for pgsql-bugs@arkaria.postgresql.org; Fri, 29 Nov 2019 21:36:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ianw6-0007ph-TT for pgsql-bugs@lists.postgresql.org; Fri, 29 Nov 2019 21:36:23 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ianw2-0006ex-LP for pgsql-bugs@lists.postgresql.org; Fri, 29 Nov 2019 21:36:21 +0000 Received: by mail-wm1-x32b.google.com with SMTP id s14so9771557wmh.4 for ; Fri, 29 Nov 2019 13:36:18 -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=r0ZakKoc3CAvpW0JGjAx5Kv804bdFXoGiWsCr6oKqfs=; b=z0gg9tLC8HTaOFRyDchCU97TFZ8f1azqqH6SJ2rc1KyQDVbT+Km0m/KgrxkdRx5PFy /cl7Qoe2NBPAeDx/wxaYU8yFJRHN1VvJti/etdvlDk3w4a9z/zad/yg430fZAT5P5T0Q +CuVDnL4eft+a000229qVWLmtWj5z7TeOD3rL3bokoNZp/W48tS5n2Yr5mE8YxOVUYE5 R0LdvezkE2wytygEEHSJPcO2E6vPH/A5IpN2VeeZS7nazqe/gQ7CGm8aupsbpWzgM8wb T6qXOte8EMLabYP47BGBMGFcVk00qZx8Jv6DhuWlAiywmzI2hTAofKzqVsqPc7j76sbP rteA== 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=r0ZakKoc3CAvpW0JGjAx5Kv804bdFXoGiWsCr6oKqfs=; b=Dd6iG9Sj7WVTKPX2UDI3vQxxUnDFjnyRaedG0uUjnOvnCnNfp8B5g42conkZibx//u nlMLkcFGNdcarvLXui/2YlRq7pPwVnR7UuKqXt9yHj7VVjYJIFRHVOUfSfso54CtxQnt l4z4sz78RHfxOTQOCsnPRN0q2r/G2Qo8YqMXorAR+X/lkRBGOVzf3BrVu+9zFUioLCva TsxbP2F2JI2nNXOE7w+yB5VNoF62G6dMn61t2XjwZYN3YasXd70ftmXeOGJH9OedST4K sHh2i7mZt/bRORuZxdxKRW4M5J2DJJ/IVNDyg+nItyL2RVF7+bflX1wr4QlU6DaBwiWS AZwA== X-Gm-Message-State: APjAAAWIC4IJgOqZR5cg3Q1Hz02+x5duwNU/2Iv11YChzvRrsZQ9HBij OXl0uKS3JbMFyroDeORlaoVxkg== X-Google-Smtp-Source: APXvYqxCnsomOrMLRq2Wi7hmL/ljAQaVzT25AgiDPWN+A2YwuhUMFEZliYFNL/q91PphKiocX0tlvA== X-Received: by 2002:a1c:8086:: with SMTP id b128mr14367520wmd.80.1575063377054; Fri, 29 Nov 2019 13:36:17 -0800 (PST) Received: from localhost (ip-86-49-253-92.net.upcbroadband.cz. [86.49.253.92]) by smtp.gmail.com with ESMTPSA id x7sm28379487wrq.41.2019.11.29.13.36.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Nov 2019 13:36:16 -0800 (PST) Date: Fri, 29 Nov 2019 22:36:14 +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: <20191129213614.o2567i47yfsrqx62@development> References: <16143-0d861eb8688d3fef@postgresql.org> <20191129203832.xybuswyoa455mwy2@development> <8272.1575060224@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <8272.1575060224@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services