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 1rCzGj-000X6w-Eo for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Dec 2023 09:41:37 +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 1rCzGf-002xXF-Qj for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Dec 2023 09:41:33 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rCzGf-002xWd-Et for pgsql-hackers@lists.postgresql.org; Tue, 12 Dec 2023 09:41:33 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rCzGY-00A0iM-Vd for pgsql-hackers@lists.postgresql.org; Tue, 12 Dec 2023 09:41:32 +0000 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-54c64316a22so7213992a12.0 for ; Tue, 12 Dec 2023 01:41:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702374084; x=1702978884; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=7JdVQEOnD+/NZ3rqR2wjZOSeYg/O2oSwtED5x7W3dN0=; b=lRmAtfnKB6zAhP5BzOb8D64cqb6W85bK/cYKM9wHYNg1GY43a8rssIUmPfUofoCGHm FxDx/7skYVh/JDBO0SnsLN1EuJLXOcoh6n+wMdetnhQrDYEjrTevTWcAfUSfc6cIs4Kd /gBMjk1Yp6MKeL0ozg1cP/lobmKm2dFK3ZDMecd8vI8JTLBQwjGcvr0EgQp19A2hdLsq O+bpwyZeGqy6bjHcj+RNfZSIjxIv9e+/e4+IxIgsvJLeSXA28ftEz5QPbtVbwQsRyeYm VBkCXwwNZM940hKPaj/gecrk2Y6wNiWUjc8hK6ReltEJ356sOYnGMWRkWwszZWbp7yYD ch8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702374084; x=1702978884; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7JdVQEOnD+/NZ3rqR2wjZOSeYg/O2oSwtED5x7W3dN0=; b=vWZqu8lGTPapkwzQpDRJQUe0DonZ6XRWC2V/e8Zs/HwfAXSwQhQzUdrQchnSmba2vL 55xFa1Q/pxZtrj9XXZQbqyaLv+7QKYj9h1b5RUQ3SfyE22bQ2PRL6SFxA2B5cmUR8R6a 7RIZeuqVbjYPQL2EnKBy+3JnXLDXZcGvJrfetDaRErg8QCyJuc7IVVuVq+/IVUcb38DT MtJmQ2zysTdUyQ/ppE6BjnTBthYB5Z84jaSBGjOmh9NNnIteCaQ2VDcWPKOdKfxeut++ zHSPZeght+dx34/fXu+g725OruYzsMzLsmTMkgMpy+AxA40MQpqb/mxl/FEWEpAaUYZq EOHQ== X-Gm-Message-State: AOJu0YxC5JNsSsXdA21onPS2d3ZmhOI/hztwrojScUFG2OXc2hWXhEdq e89BmwPJOZ/m/UHsHwbEKmA= X-Google-Smtp-Source: AGHT+IGZ5mlRTrv3VPRgAreZk36M4u9CUh/uHsAd7UYY8+nbSc6QBjBfSgRlu6RSq/1DOEsq9VRhvg== X-Received: by 2002:a05:6402:1a36:b0:54d:740c:6bd9 with SMTP id be22-20020a0564021a3600b0054d740c6bd9mr2950287edb.70.1702374084304; Tue, 12 Dec 2023 01:41:24 -0800 (PST) Received: from [10.192.9.212] ([82.142.85.165]) by smtp.gmail.com with ESMTPSA id z94-20020a509e67000000b0054c50fb11cesm4741961ede.50.2023.12.12.01.41.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Dec 2023 01:41:23 -0800 (PST) Message-ID: <5429a088-c7bd-4c60-b300-01b069bc0540@gmail.com> Date: Tue, 12 Dec 2023 10:41:22 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Add isCatalogRel in rmgrdesc Content-Language: en-US To: Michael Paquier Cc: PostgreSQL Hackers References: <957dc8f9-2a02-4640-9c01-9dcbf97c4187@gmail.com> From: "Drouvot, Bertrand" 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 Hi, On 12/12/23 10:15 AM, Michael Paquier wrote: > On Tue, Dec 12, 2023 at 09:23:46AM +0100, Drouvot, Bertrand wrote: >> Please find attached a patch to add this field in the related rmgrdesc (i.e >> all the ones that already provide the snapshotConflictHorizon except the one >> related to xl_heap_visible: indeed a new bit was added in its flag field in 6af1793954 >> instead of adding the isCatalogRel bool). >> >> I think it's worth it, as this new field could help diagnose conflicts issues (if any). > > Agreed that this is helpful. Thanks for looking at it! > One would likely guess if you are > dealing with a catalog relation depending on its relfilenode, but that > does not take into account user_catalog_table that can be set as a > reloption, impacting the value of isCatalogRel stored in the records. Exactly and not mentioning the other checks in RelationIsAccessibleInLogicalDecoding() like the wal_level >= logical one. Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com