Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 073F11460D42 for ; Fri, 29 Jun 2012 13:35:07 -0300 (ADT) Received: from exprod7og125.obsmtp.com ([64.18.2.28]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ske9y-0000Qe-39 for pgsql-bugs@postgresql.org; Fri, 29 Jun 2012 16:35:07 +0000 Received: from mail-lb0-f182.google.com ([209.85.217.182]) (using TLSv1) by exprod7ob125.postini.com ([64.18.6.12]) with SMTP ID DSNKT+3ZLKrTriU6g+9Ns/IWFtRAekrw1kQq@postini.com; Fri, 29 Jun 2012 09:35:05 PDT Received: by lbon10 with SMTP id n10so4825722lbo.41 for ; Fri, 29 Jun 2012 09:34:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=x8IqHLiTgQxOyRllHDPq1VBqejGm/1e3DK7zRPzaNho=; b=FylJAAy0bb1EivPsTR7KfHsSYnvNRor80pK9y/KqPZUOBW4Jju4UJQcPPvPrgd3Dqt gL+yTm8lbsv2jvRsfjs91md0slXhBzJ5gTzpqZTFcXYT5ztO/7Q9nz6ujm+3yzi75x6J o4VoNKJqUv9uedg6AsU6DSSGhIF8Zg3v1Pow+R9hKtCPKRJUBwbhCjI4KDE/ik/WpDYO PjcCwCS7rdozfCxBmJowNbIiJObm8s5f+KlG6vcI2rz4wOVGxbNoj55QzF11oXhbOv9A OJ1WDhV5uO5aOgqXtObCOIt9XUhtTFNZmMq/sv0otqbatgWIvcMhcF9dq29s9jqnv3G+ KdWw== Received: by 10.112.45.230 with SMTP id q6mr1555982lbm.94.1340987691195; Fri, 29 Jun 2012 09:34:51 -0700 (PDT) Received: from [192.168.1.100] (dsl-hkibrasgw2-ff6cc300-200.dhcp.inet.fi. [88.195.108.200]) by mx.google.com with ESMTPS id h9sm4070511lbi.9.2012.06.29.09.34.49 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 29 Jun 2012 09:34:50 -0700 (PDT) Message-ID: <4FEDD928.7080200@enterprisedb.com> Date: Fri, 29 Jun 2012 19:34:48 +0300 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4 MIME-Version: 1.0 To: tarvip@gmail.com CC: pgsql-bugs@postgresql.org Subject: Re: BUG #6710: txid_current() provides incorrect txid after server startup References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQna9w3Hhyo+Q5g0cvO87xod4RI/IvmTRNH5RF77buThGxPzuCXzBcslEoILrttCzX5wqM3Y X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201206/239 X-Sequence-Number: 33466 On 27.06.2012 10:08, tarvip@gmail.com wrote: > The following bug has been logged on the website: > > Bug reference: 6710 > Logged by: Tarvi Pillessaar > Email address: tarvip@gmail.com > PostgreSQL version: 9.1.4 > Operating system: linux > Description: > > This happens when epoch is greater than 0. > After a checkpoint it starts providing correct txid. > > It seems that this regression is caused by following commit: > 20d98ab6e4110087d1816cd105a40fcc8ce0a307 Correct epoch of txid_current() > when executed on a Hot Standby server. > > When reverting this commit, txid_current() works as expected. Fixed, thanks for the report! -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com