Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XwUOV-0000R8-En for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Dec 2014 11:16:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XwUOU-0000vi-Qx for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Dec 2014 11:16:22 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XwUOT-0000va-LK for pgsql-hackers@postgresql.org; Thu, 04 Dec 2014 11:16:21 +0000 Received: from mail-wi0-f173.google.com ([209.85.212.173]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XwUOM-0006Gt-1K for pgsql-hackers@postgresql.org; Thu, 04 Dec 2014 11:16:19 +0000 Received: by mail-wi0-f173.google.com with SMTP id r20so34391010wiv.6 for ; Thu, 04 Dec 2014 03:16:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=XRZq7Xa2KQTv2YobAX89LJ2+QARUuNoH5cZC10tFHqU=; b=UMJ4NwqlaiOeNSfiw/wysH+EYWyIDp8WQtsMd0Xk5QKml0noJR9fbxb4hTlt1S+ZHU +ZecqmXeaOGzomR5AmbzDqy//xrQqewcxF2r59h9fQ9G6OVIEXdDGo9dyxpvYy41lQyN Vw000egtL5QR53C+2CDoRSLcp9rFxg7qKvMDR2u893JQFgjzeFwd2B+kxqEQRn1sYKLv 3PfpDMvig5MmSfJRDoZCO89zTey2tS3WRorTutr2wJCXucjuyGwu47AhAoaIPRpTPS0+ 92T5Xy3JHCkIBW9dko+vXYd0vmRGimMkTJxQ4k+44qNEAqreEFLHKvBz5OphuRSbfwZk xeOA== X-Gm-Message-State: ALoCoQm1RM49n4EwU2nSh2s7/1ICHzioztGpDrIhaxIaqCLlC2/YHjQlDPy+IAlcYE4z0W7xihd59pF+x4uCOmEnoGDHXTmEYSYVP46m4w8+wdHtpX9adu1J+Hf2jddzPMkSDsyD2oCH8DuIGNhwMRUSOEBxgwQ2wNn95brlr9FVJ9BROTJcIEk= X-Received: by 10.180.81.70 with SMTP id y6mr21089745wix.6.1417691771669; Thu, 04 Dec 2014 03:16:11 -0800 (PST) Received: from [192.168.9.209] (ip-80-113-16-26.ip.prioritytelecom.net. [80.113.16.26]) by mx.google.com with ESMTPSA id ly9sm4508207wjb.24.2014.12.04.03.16.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Dec 2014 03:16:11 -0800 (PST) Message-ID: <5480427A.1080200@2ndquadrant.com> Date: Thu, 04 Dec 2014 12:16:10 +0100 From: Petr Jelinek User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: Heikki Linnakangas , Alvaro Herrera , PostgreSQL-development Subject: Re: [COMMITTERS] pgsql: Keep track of transaction commit timestamps References: <54802C7F.90606@vmware.com> In-Reply-To: <54802C7F.90606@vmware.com> 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-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 04/12/14 10:42, Heikki Linnakangas wrote: > On 12/03/2014 04:54 PM, Alvaro Herrera wrote: >> ir commit timestamp directly as they commit, >> or an external transaction c > > Sorry, I'm late to the party, but here's some random comments on this > after a quick review: > > * The whole concept of a node ID seems to be undocumented, and unused. > No-one calls CommitTsSetDefaultNodeId(). The whole SET_TS record type is > dead code too, when a non-default node_id is not set. Please remove, or > explain how all that's supposed to work. > That's API meant to be used by extensions, maybe it would be preferable if there was SQL API exposed also? (It might also make more sense once replication identifiers are submitted.) > > * What is the definition of "latest commit", in > pg_last_committed_xact()? It doesn't necessarily line up with the order > of commit WAL records, nor with the order the proc array is updated > (i.e. the order that the effects become visible to other backends). It > seems confusing to add yet another notion of commit order. Perhaps > that's the best we can do, but it needs to be documented. > It's updated on CommitTransaction (well RecordTransactionCommit but that's only called from CommitTransaction) time so the definition of latest commit is last CommitTransaction call. -- Petr Jelinek http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers