Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mAqqm-0005kd-3R for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Aug 2021 09:36:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mAqqk-0001XR-UU for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Aug 2021 09:36:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mAqqk-0001XJ-LJ for pgsql-hackers@lists.postgresql.org; Tue, 03 Aug 2021 09:36:38 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mAqqi-0001QD-NN for pgsql-hackers@lists.postgresql.org; Tue, 03 Aug 2021 09:36:38 +0000 Received: from [192.168.129.197] (unknown [94.25.177.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id 848E121CA150 for ; Tue, 3 Aug 2021 12:36:35 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1627983395; bh=r5CVdZwogizmkEO9qVuSPut3lF9aVW5fQKOUdKHJrkQ=; h=To:From:Subject:Date; b=UIqqA3lY4EXbYyjZ3SWMb+oEuNL6UXfCz1VLuMY915/KxsV7Uk+AR7gwG8033To6Q IIMfEb3St1+38vMRxMhXCU85q29/XsqB5HtuTe7LYNp+4ZdpRXwstmMThxDu00LNep JWfZSyzKEKUOLuytcRj0CdA6/5BVEkNWNYeNB858= To: pgsql-hackers From: "Andrey V. Lepikhov" Subject: Extra code in commit_ts.h Organization: Postgres Professional Message-ID: Date: Tue, 3 Aug 2021 14:36:34 +0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------21632BCF87EFC95614779452" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------21632BCF87EFC95614779452 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi, I found two extra code lines in commit_ts.h (see attachment). They confused me during exploring of the code. If they still needed, may be add some comments? -- regards, Andrey Lepikhov Postgres Professional --------------21632BCF87EFC95614779452 Content-Type: text/x-patch; charset=UTF-8; name="excess_code.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="excess_code.patch" diff --git a/src/include/access/commit_ts.h b/src/include/access/commit_ts.h index e045dd416f..a1538978c6 100644 --- a/src/include/access/commit_ts.h +++ b/src/include/access/commit_ts.h @@ -15,14 +15,10 @@ #include "datatype/timestamp.h" #include "replication/origin.h" #include "storage/sync.h" -#include "utils/guc.h" extern PGDLLIMPORT bool track_commit_timestamp; -extern bool check_track_commit_timestamp(bool *newval, void **extra, - GucSource source); - extern void TransactionTreeSetCommitTsData(TransactionId xid, int nsubxids, TransactionId *subxids, TimestampTz timestamp, RepOriginId nodeid); --------------21632BCF87EFC95614779452--