Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjusD-0005ru-HZ for pgsql-bugs@arkaria.postgresql.org; Tue, 13 Sep 2016 21:04:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bjusD-0004Iu-0u for pgsql-bugs@arkaria.postgresql.org; Tue, 13 Sep 2016 21:04:09 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bjurY-0003EU-TX for pgsql-bugs@postgresql.org; Tue, 13 Sep 2016 21:03:29 +0000 Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bjurW-0002EI-5h for pgsql-bugs@postgresql.org; Tue, 13 Sep 2016 21:03:28 +0000 Received: by mail-lf0-x233.google.com with SMTP id g62so119161199lfe.3 for ; Tue, 13 Sep 2016 14:03:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joh-to.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=s+OJE4wF/gtfKbQzBW1DKFoxPEJakdXVekFYnH4tgiw=; b=WNmBEhXy7XJVrVWVsSuLfYRprfXLWkF+HbomlFYe1da5WN5i/uiz1fkgu3AMgCCM4k 7pTmo7+aFw1BHuWczwbvbbaH/prenjrjeGZ1yp8wbMPH0wHGGkRZEC6/7OcfNXIFyd+l YhiibB69Zk8ZgoOgtVSxvESXylqjWZzz/wX2xJq17tl7raxtVtsiMuzPIhtb2IKwvIcy Ypm5V4sKxkePsCfIjPXd+N8PwOxsKKPUCLE4LwDfmHEOBd11VwuOX2m9HBMhtsilPigf PmXy9Z+F6kvp9ajeKPebf/D7CkEL69lg+o8uR3cWButRMrzvwmuYjCTyzvFn4Ns0ksRI FJqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=s+OJE4wF/gtfKbQzBW1DKFoxPEJakdXVekFYnH4tgiw=; b=TtxLgE1+Rf9ycepWcwXtyGDmrBUEnUkMEN3nphj361JLQ6apnBd6y4ibpd/E7c1A8K nDxerjRCVhjgZMm119rohfLNDrybzWItDDliIfs9YRtb/rvFgckdIWliVQkVdBESVitI g1P9VtIPn7ltmGXXsdOFSN61zdSejZn0VnJHFwf1EE1+n98XY3WlaYCx8RyPR+Rjc5H+ awo7h7eB+ZtoarMyIAQ4hqJAyMMN0luzUdZkd6I6ld0f/k1YYjKuy5IE78jIVECvTCvg uiPL0wHmGliKhncSFaLJncSHt+K9IEJOBnHS0QPUl+s5rQQbr5AGnyzRu0lG0rPC+riG Msow== X-Gm-Message-State: AE9vXwOZqT7TgYJN5sYHqcBGpNI8jt/i1tmfhzWGb/M/eBRzrFvkzrDmy9HVl73OU5HLEQ== X-Received: by 10.46.1.231 with SMTP id f100mr8354843lji.57.1473800605127; Tue, 13 Sep 2016 14:03:25 -0700 (PDT) Received: from [172.20.10.3] (c-5eea23c3-74736162.cust.telenor.se. [94.234.35.195]) by smtp.googlemail.com with ESMTPSA id 203sm4224656ljj.3.2016.09.13.14.03.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Sep 2016 14:03:24 -0700 (PDT) Subject: Re: BUG #14322: Possible inconsistent behavior with timestamp_to_str() To: Keith Fiske , Tom Lane References: <20160909235448.20021.79001@wrigleys.postgresql.org> <20160910000204.mbbfdxtw4t4oelzs@alap3.anarazel.de> <28770.1473799942@sss.pgh.pa.us> Cc: Keith , Andres Freund , "pgsql-bugs@postgresql.org" From: Marko Tiikkaja Message-ID: <08129d47-7952-dff2-e9e9-8a1b2bf706bd@joh.to> Date: Tue, 13 Sep 2016 23:03:22 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 2016-09-13 22:58, Keith Fiske wrote: > No, it's obtained elsewhere by querying the current max timestamp value > from the partition set. > Shouldn't matter if it was, though. You can see that all it takes to change > the string output of the timestamp is swapping the values around. The > values of the variables are the same in either case. Did you miss this part? /* [ ... ] Note * also that the result is in a static buffer, not pstrdup'd. */ .m -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs