Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t98lC-0080HU-Mf for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Nov 2024 20:05:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t98l9-001zbR-RY for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Nov 2024 20:05:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t98l9-001zbJ-B8 for pgsql-hackers@lists.postgresql.org; Thu, 07 Nov 2024 20:05:40 +0000 Received: from mail-qk1-x729.google.com ([2607:f8b0:4864:20::729]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t98l5-000jJK-Py for pgsql-hackers@postgresql.org; Thu, 07 Nov 2024 20:05:39 +0000 Received: by mail-qk1-x729.google.com with SMTP id af79cd13be357-7b154f71885so90669685a.0 for ; Thu, 07 Nov 2024 12:05:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wi3ck-info.20230601.gappssmtp.com; s=20230601; t=1731009934; x=1731614734; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=cc57eG9N5QAT8b/OJyUFz/JRj5pHZ0urJwdBWhsN0vA=; b=lAyY16OT0Y6srEkB/p40t11mrvoCl0gOyq/UdHDzbxMfg3F/atm7qWk5glIs6oGRtm B5Afunq3yfqFWr/ktCNUlYrVSbuuM/ZtFJBA/iuZFCPRSWi5yyzunsc7zN1ubW/M5GgQ 2tTH+MFJqqLhqmjiE46baNQNGMqDjGBwx6qNy1hNVpXFOnH9Xq+DjKQvjcyPVFCdut9e osgyL32IPCQCpa84M59g8ECzietBoJrj3/uG3bBksv8R+8OI63LgXbtxUwpik/qtcQVa Ekf7Exlj/hOmlLPCTNK5TJZZpbSWnNe6gcnzaeQ3RLeRWY9KUwSiFF1iy8dQNN5qGEZB BHcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731009934; x=1731614734; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=cc57eG9N5QAT8b/OJyUFz/JRj5pHZ0urJwdBWhsN0vA=; b=aZDgn/V5aa5SF97w5PcQqn1P2naPYtfvSldEoi2tvUAyJ9U7ynF7ygWFdocC7Vhbrp f7AQIAn6kOrfNXdvuOFNt12/rLbxjYWD3HfR0dHLS/ZB1U+JmnBwKqAOLENIugstjTYq se8BqfHvzdVhfuvwq3QuSZeIM6kbcv4F72DW+PjUt2HiTCuAhufm1Hr9yl1u1s4LG5Ly iVXI6fvJOhTYgRTDfAgfbpsjhz2g6R7H5ZIVzuxAZRWD3Y833GcpiDPfPgVaH5mkB3++ ZRg9Uh9s3TsREmuRZfZBMD7ulrXxioBoo9wouNLl9Mul7MFBCLzR7DHJCpNxYlTxpv07 illg== X-Forwarded-Encrypted: i=1; AJvYcCVz7D49URW7YPpu87cNi+U9ELzhaJ7QoTU4TVgZtJcCGN7rm6/giTzXLUUM9WhC/9TX8x1UiJo393hKTbNT@postgresql.org X-Gm-Message-State: AOJu0YyLgkXW1TFic5wbxEpn2bczaju9pkEXWW1HpNm3yqVZg75bXm0J YmrHYS3zB7XmuZ9jO8YbIjoMMVgUnDqbsaBghmYeVTUPI61EdBad+pKgCNSv1Z0= X-Google-Smtp-Source: AGHT+IHEPU/TvvaayY4s/Kqzq3XhY+QyLK22QiqyK4CoAK/7jycv3G2OJtDDCgt8CNpJh5xKS9er/w== X-Received: by 2002:a05:6214:5c47:b0:6c5:ab33:5244 with SMTP id 6a1803df08f44-6d39e194144mr2666236d6.31.1731009933786; Thu, 07 Nov 2024 12:05:33 -0800 (PST) Received: from [172.21.0.10] (pool-108-16-53-81.phlapa.fios.verizon.net. [108.16.53.81]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7b32ace7203sm92995685a.112.2024.11.07.12.05.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Nov 2024 12:05:33 -0800 (PST) Message-ID: <1985a43d-0b6c-491c-9e0b-956fc364a58a@wi3ck.info> Date: Thu, 7 Nov 2024 15:05:31 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Commit Timestamp and LSN Inversion issue To: Andres Freund Cc: Amit Kapila , Aleksander Alekseev , pgsql-hackers , shveta malik , "Zhijie Hou (Fujitsu)" , tomas@vondra.me References: <9f7f4def-7ea8-4ad3-83e7-a8cc9d18c58a@wi3ck.info> Content-Language: en-US From: Jan Wieck In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 11/7/24 13:19, Andres Freund wrote: > I think it's *completely* unacceptable to call a hook inside > ReserveXLogInsertLocation, with the spinlock held, no less. That's the most > contended section of code in postgres. Aside from your technical concerns, can we at least agree that the commit-ts vs LSN inversion is a problem that should get addressed? Regards, Jan