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 1uU6fa-00FhQX-9y for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Jun 2025 16:38:50 +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 1uU6fY-00Dcxt-4d for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Jun 2025 16:38:48 +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 1uU6fX-00Dcxk-RA for pgsql-hackers@lists.postgresql.org; Tue, 24 Jun 2025 16:38:48 +0000 Received: from mail-il1-x12f.google.com ([2607:f8b0:4864:20::12f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uU6fV-003lCB-05 for pgsql-hackers@postgresql.org; Tue, 24 Jun 2025 16:38:47 +0000 Received: by mail-il1-x12f.google.com with SMTP id e9e14a558f8ab-3df2fa07ee4so1724665ab.0 for ; Tue, 24 Jun 2025 09:38:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750783124; x=1751387924; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=kPaM2PCY3rV7Gg6LVWgQhfO3ncN5DycprknUS5OUsQw=; b=gAROJ98EuB3Vz9Iyq0+U3mglOeWr7FxoAOxlXTDd3/BRQ1gDL2w55qmIDbIWqgSGH9 FjZoV46dj4D5JVXLKZbaKhRUHq8+s7fBA3D98O2/5Izkv1BudKNoj4B5yJB5e0rAt2V0 Ot/wBKfow16NPJFtvmjEYYVxEz9NdmYVk8jpa6HXsEJMLH2EvCXIuhiYClDRk9bfoFyL QGx9SvsqoK0dquU4x92iVLA72pG1r2TRKVgsPV+lJV3OpRqqL+Ew7TvOr8Vo3/SbU8u3 ZraZoY8vrBmLrW5yBE+uhYMCEACi8mJXAOuJvslcOfnZdMGd/HhpenPshWlhJe2IxyvO rSIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750783124; x=1751387924; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=kPaM2PCY3rV7Gg6LVWgQhfO3ncN5DycprknUS5OUsQw=; b=ZicuBaraq5d9/Ei6w/MB8ekiG7onaEiUlTwq5A6lF38D8lKciObBgfRwKY3z+d4bbi A00AjaHe2xLIbZjlJdoWUkvM5oUok2ktE0nqyjREWKg3REDnQl/HsvmEiV31z21k0Xsb 1HS5wdLr+QonptXR0Y5afniU8nLChMNY137rEXwhIEXDv7AXKbwqcZZy67lWpytXc5Pq HKrJ9eVohAuVMPF1/FZZldtjv6iRqaESdN0BnrDzw+UsIhgyvYDAhzDWvDxG6iAxc3Qt WcXE42FIJ4zlng50nWxY22CNGeMXfxlubBo9QR5CC94U46kGa+mq2memxsw0XZHALdyO NA3Q== X-Gm-Message-State: AOJu0Yzf2fUWv8ybofmoo591URBTTDXL6mF/oaLvtOcDpk/w9r+4EYmn 4ikq1BUfznE5bAVO5QwLdn9z4LLnzMxEgRbjNQUse1umH7h/Ks0jTMNOcfiPnQ== X-Gm-Gg: ASbGncsG23RgMUeuv+JyQmkakk8i6Pl/LY3n1CCW0vZoTnmvfFDqLiM1lthNra8mGxr yEBibcSU3Dvs5OVXIhS3bVT78juWmGsedsn6VOQBlKQN3bHgWBFDsOutkQmynTPdrhGj//GMAKX skBUunaEMmdVQx08uSO1xanBlZ/h1OcEDr3uWnH/GFDbGTtvRqedMNQDuDd+JBzSPkoD0wskXgs 2l7jJr+TAH308F6MKV8/dsJDep/On6q9O4SUbgG0egjonNNK8xaGRpJOcocxOqt1tau2UOUd2lU /k/i2xnFCiI+wSm+rKO3lynpc12G6tbfR1W9MlbClJ2xyULLUGx1M8ypPwaGFwZPuUtD2K7wMf6 mcKWmDmln2FOmboWIKifi3pXfaTdx64akF3sQGmZvVhSGRb3Od7UT X-Google-Smtp-Source: AGHT+IFOYX6nb7nuU9s93LTKBH5PzHNbn4HqGR2SAn7NFOY4A8dHORynxcgWWfqyGhAYsRusMZXhBA== X-Received: by 2002:a05:6e02:1845:b0:3de:265a:12b with SMTP id e9e14a558f8ab-3de38ca41f1mr151965715ab.13.1750783124050; Tue, 24 Jun 2025 09:38:44 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-3de37768937sm37846345ab.64.2025.06.24.09.38.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Jun 2025 09:38:43 -0700 (PDT) Date: Tue, 24 Jun 2025 11:38:41 -0500 From: Nathan Bossart To: Michael Paquier Cc: pgsql-hackers@postgresql.org Subject: Re: problems with toast.* reloptions Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Jun 24, 2025 at 02:10:55PM +0900, Michael Paquier wrote: > On Mon, Jun 23, 2025 at 03:59:56PM -0500, Nathan Bossart wrote: >> Here is a very rough proof-of-concept patch set for this. AFAICT there are >> a few options we cannot fix on the back-branches because there is no way to >> tell whether it is set or has just picked up the default. On v18 and >> newer, we could use isset_offset, but that doesn't exist on older versions. >> (I haven't looked closely, but I'm assuming that back-patching isset_offset >> isn't an option.) > > Hmm. I am wondering if we need to be aggressive about this set of > changes at all in the back branches. It's been broken for a long time > without anybody really complaining about the fact that reloptions > being set or not influenced the outcome in the context of autovacuum, > so perhaps there is a good argument for keeping all that in v19. My > conservative 2c. Yeah, I'm tempted to even ask how folks feel about removing the toast.* reloptions. Maybe there's some simple cases that work well enough, but AFAICT any moderately-complicated setup basically doesn't work at all. In any case, writing out this patch set has got me on the fix-on-HEAD-only bandwagon. >> I would like to explore the "option 2" from upthread [0] for v19. I think >> that is a better long-term solution, and it may allow us to remove the >> table_toast_map in autovacuum. > > It would be nice to have some tests here to check the state of the > options used? My best guess would be a DEBUG1 entry combined with a > scan of the logs generated and an aggressive autovacuum worker > spawn to check that the options generated are what we expect for the > relations autovacuum picks up. Eh... I agree that's probably how we'd have to test it with the existing tools, but it sure sounds like a recipe for a flaky test. -- nathan