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 1riy22-002hbp-8v for pgsql-hackers@arkaria.postgresql.org; Sat, 09 Mar 2024 14:50:38 +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 1riy20-000r5e-72 for pgsql-hackers@arkaria.postgresql.org; Sat, 09 Mar 2024 14:50:36 +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 1riy1z-000r5U-Tm for pgsql-hackers@lists.postgresql.org; Sat, 09 Mar 2024 14:50:36 +0000 Received: from mail-io1-xd2b.google.com ([2607:f8b0:4864:20::d2b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1riy1w-003clN-NC for pgsql-hackers@postgresql.org; Sat, 09 Mar 2024 14:50:35 +0000 Received: by mail-io1-xd2b.google.com with SMTP id ca18e2360f4ac-7bc332d3a8cso172491039f.2 for ; Sat, 09 Mar 2024 06:50:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709995830; x=1710600630; 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=nJjGtGkWmxsZmoGha6wDZ7c2R7XUVm914mBVtCJvtkY=; b=EYhd6ZXNyqGQ/DEq47sYLrs8Ft17yAq/X3ArkqhPBz3CQVvukoajqDrdbCY4228Q68 shUOY1syckyvlIY2pVf+YJ0euMXWx/V1FuRBZWdpVW0m3m6KG+Wkqr1RcQg+0MBk9O0O Ba8WR3NyANi9RLg00yKzAXUTmQ9WIbysPrhXAMDLFjlzydxTOk7KbFqx7CIEBT68WU4f VlbkSe+T1iNMAHD3oIyA+tdkP7vbzMLPmYAsh3W8u3GVrOPuI0O1Cw/4h3gtEnBI8v5I Apkxz/E/pLCGBXIiEuJBeklDYnllMFxLdPNDJLwVMprBw2ny4NCy400sMKHWksyZsLDS +yUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709995830; x=1710600630; 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=nJjGtGkWmxsZmoGha6wDZ7c2R7XUVm914mBVtCJvtkY=; b=aYtZSo0b1cwl47thN8o/rmBDwzu/Ig+Lcn9rN7t+dijq7rqKKGXaLIiGuOEuJ9aOsV g3fRBxFAZGndczmLvxcv+5ioJe4Nk1N0HgJ9SEBsu3kn/GsvaolZhQqfK68RRViH1aH6 AYJpviabHlnCGIerTNdZ9uF3z6Deggr68C7pOKfHUBAwj9LjroJIIJZK0cCX5RcvHrQv kEjZR1QuiywHPql74235+UgNMZAzSw0pRUiR8jvj73Z+sOwFWtAu54j9Sez2wSRqixlM C6C4EVHKKSfMZVDhdkKbL8AlE4aQJjDlE45mtCtoq5UzB9FJVUKl1nMaXLwLeMuiFrqa tR1A== X-Forwarded-Encrypted: i=1; AJvYcCVg+3iP92ztI2DQ8nTxettTKzwM7J1jO81kTZSoQjseEnvbf9Honen0IGgg+wqiv2WmzVwmpQeyoJurAD2co+vwS8fUFQc38UsPAYwY X-Gm-Message-State: AOJu0YxXGBtMFjIuIRnjua8M4W7/uzXi9Ke4iAoN26BCYbWLWayvVr5m MLU3We0p9OgeNqLBkwN0yOaTqh46mhSDv17BbjAJPSxu8OhEvCa4NFNmJdbn X-Google-Smtp-Source: AGHT+IH2J1abuUpJdchtjnnHTQnrpsSzQoabtYDjtniN1g7zWyfQjbrM3q0v3KMCvmOPk9PBXPK9yA== X-Received: by 2002:a6b:4f0a:0:b0:7c8:8ff7:5058 with SMTP id d10-20020a6b4f0a000000b007c88ff75058mr2319632iob.15.1709995830625; Sat, 09 Mar 2024 06:50:30 -0800 (PST) Received: from nathanxps13 (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id y13-20020a02bb0d000000b004750442b64fsm437116jan.129.2024.03.09.06.50.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 06:50:30 -0800 (PST) Date: Sat, 9 Mar 2024 08:50:28 -0600 From: Nathan Bossart To: Yugo NAGATA Cc: jian he , Sergei Kornilov , Nikita Malakhov , pgsql-hackers@postgresql.org Subject: Re: pg_column_toast_chunk_id: a function to get a chunk ID of a TOASTed value Message-ID: <20240309145028.GB1111406@nathanxps13> References: <20240130145632.d6609830bfd5139115f302cf@sraoss.co.jp> <20240201134524.d647b3d185e5252162eb0436@sraoss.co.jp> <20240205162823.6c705517ca6898e482b69b9e@sraoss.co.jp> <20240307225617.GA615950@nathanxps13> <20240308153155.4c4b2fee3ed1431203e41016@sraoss.co.jp> <20240308221758.GB1060542@nathanxps13> <20240309115718.deb9209b7f53883cc8e1b4b3@sraoss.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240309115718.deb9209b7f53883cc8e1b4b3@sraoss.co.jp> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, Mar 09, 2024 at 11:57:18AM +0900, Yugo NAGATA wrote: > On Fri, 8 Mar 2024 16:17:58 -0600 > Nathan Bossart wrote: >> Is this guaranteed to be TOASTed for all possible page sizes? > > Should we use block_size? > > SHOW block_size \gset > INSERT INTO test_chunk_id(v1,v2) > VALUES (repeat('x', 1), repeat('x', (:block_size / 4))); > > I think this will work in various page sizes. WFM > +SHOW block_size; \gset > + block_size > +------------ > + 8192 > +(1 row) I think we need to remove the ';' so that the output of the query is not saved in the ".out" file. With that change, this test passes when Postgres is built with --with-blocksize=32. However, many other unrelated tests begin failing, so I guess this fix isn't tremendously important. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com