Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1wqo-0002UT-TL for pgsql-hackers@arkaria.postgresql.org; Fri, 19 Dec 2014 12:40:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y1wqo-0004Xj-7X for pgsql-hackers@arkaria.postgresql.org; Fri, 19 Dec 2014 12:40:10 +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 1Y1wqm-0004XJ-9i for pgsql-hackers@postgresql.org; Fri, 19 Dec 2014 12:40:08 +0000 Received: from mail-wg0-f45.google.com ([74.125.82.45]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Y1wqi-00065S-MS for pgsql-hackers@postgresql.org; Fri, 19 Dec 2014 12:40:06 +0000 Received: by mail-wg0-f45.google.com with SMTP id b13so1221708wgh.18 for ; Fri, 19 Dec 2014 04:40:02 -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 :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=dTFL7WSXEJfIE7RBoo52pG3LX/FX6370J5gSPYxur6g=; b=HGqo41bIL32BKMQO1jMFROKWPTgL1IfBPU8FTMIWleU3JT0nlVHcMR80RSu5PGYJCn D6tUaENVWIH/MArDoOPwDdfJRL/kGjIWHNNNX6dk1T2aGmRL4myQZJE69m++SX3iRl02 UawZiSBFv7Dpur9dO1DL94/uwINMwd0wN4hg3tG9ZqRO1vBKYD9FkeoJskeG7fFBFKDm uv32vVlm9TcD4pqxSa3OZ1IQuLG1ag04veA6qsfQyyHo3aXj/mf1fp1/eiVQGN+/W5hr qVRdg76pU9znKjzE3k/p1IQF1MQbwtCWPX542Omqg8TfebJx+aS0cnbL/uH3GtSwMiSE iDyw== X-Gm-Message-State: ALoCoQnwOoJoKv6zhqc2cxq6b1ZaffGXi2QqGK9kiEPujjIH4j3pe65c+aFteLz03DTZKQbqK0p95WMGjDQpoqd1/mvNNg3ugJQwlqv/oIgGoTnCdsOA2vu7HafJzH61yLRzHtWXX0XGiwxJkjwCjrLUdWD+4V7dIsuBnAZsS6z4JnMHAvGWL9o= X-Received: by 10.180.198.209 with SMTP id je17mr5372529wic.17.1418992802536; Fri, 19 Dec 2014 04:40:02 -0800 (PST) Received: from [192.168.4.174] ([41.33.182.199]) by mx.google.com with ESMTPSA id wb9sm2202959wic.20.2014.12.19.04.40.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Dec 2014 04:40:01 -0800 (PST) Message-ID: <54941CA0.4010108@2ndquadrant.com> Date: Fri, 19 Dec 2014 13:40:00 +0100 From: Petr Jelinek User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Michael Paquier CC: Heikki Linnakangas , Alvaro Herrera , PostgreSQL-development Subject: Re: [COMMITTERS] pgsql: Keep track of transaction commit timestamps References: <54802C7F.90606@vmware.com> <5480427A.1080200@2ndquadrant.com> <548044CF.5010809@vmware.com> <548049D5.1000605@2ndquadrant.com> <54805306.4030100@vmware.com> <548860B6.50705@2ndquadrant.com> <5493F04C.6090900@2ndquadrant.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; 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 19/12/14 13:17, Michael Paquier wrote: > On Fri, Dec 19, 2014 at 6:30 PM, Petr Jelinek wrote: >> On 10/12/14 16:03, Petr Jelinek wrote: >>> >>> On 10/12/14 04:26, Michael Paquier wrote: >>>> >>>> On Thu, Dec 4, 2014 at 9:26 PM, Heikki Linnakangas >>>> wrote: >>>>> >>>>> Yeah, it was raised. I don't think it was really addressed. There was >>>>> lengthy discussion on whether to include LSN, node id, and/or some other >>>>> information, but there was no discussion on: >>>>> >>>>> * What is a node ID? >>>>> * How is it used? >>>>> * Who assigns it? >>>>> >>>>> etc. >>>>> >>>>> None of those things are explained in the documentation nor code >>>>> comments. >>>>> >>> >>>> >>>> Could it be possible to get a refresh on that before it bitrots too >>>> much or we'll simply forget about it? In the current state, there is >>>> no documentation able to explain what is the point of the nodeid >>>> stuff, how to use it and what use cases it is aimed at. The API in >>>> committs.c should as well be part of it. If that's not done, I think >>>> that it would be fair to remove this portion and simply WAL-log the >>>> commit timestamp its GUC is activated. >>> >>> >>> I have this on my list so it's not being forgotten and I don't see it >>> bitrotting unless we are changing XLog api again. I have bit busy >>> schedule right now though, can it wait till next week? - I will post >>> some code documentation patches then. >> as promised I am sending code-comment patch that explains the use of commit >> timestamps + nodeid C api for the conflict resolution, comments welcome. > Having some documentation with this example in doc/ would be more fruitful IMO. > I am not sure I see point in that, the GUC and SQL interfaces are documented in doc/ and we usually don't put documentation for C interfaces there. -- 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