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.96) (envelope-from ) id 1w8AmS-000H7r-2u for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Apr 2026 05:39:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w8AmR-004523-1T for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Apr 2026 05:39:47 +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.96) (envelope-from ) id 1w8AmR-00451u-0D for pgsql-hackers@lists.postgresql.org; Thu, 02 Apr 2026 05:39:47 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w8AmP-000000008Hd-1aPi for pgsql-hackers@lists.postgresql.org; Thu, 02 Apr 2026 05:39:46 +0000 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-4852b81c73aso3445235e9.3 for ; Wed, 01 Apr 2026 22:39:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1775108384; x=1775713184; darn=lists.postgresql.org; h=message-id:date:content-transfer-encoding:mime-version:comments :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6ThGJtNXh5mFiguBG+skqqlxSwfP8dfyRAaXumpmsjA=; b=nIUPOa8BOEjzuNrCnT0Efe7ulT2zxpixBWPLrreU0LCF1/PJDDoTB1RVw9v4ZdgzIp /d+W+S+rYz+QywgJXwF6Sr7hFruBcUR+6U6Uq26tui3aYHC78nFdntNRYiJlHBiqrfOH M13BfSJuq3S6aU4U5lH5x4F4gb8HaSTfdtEevLXBdS/02xjPqu/WEOSjNXC7eZhQHFJN +OoUSuJJSjiuSMjohyqpBduMZO8qB6WJ+kyq9Ls/1UiEqg7b+oF4KccSKnPYzPq2exhE ao6dsWnxARBUw/zZz9td+LJ808roIv24mszi23MSSf87FIU6gKFI+x43xatuAI+cyWCm Elmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775108384; x=1775713184; h=message-id:date:content-transfer-encoding:mime-version:comments :references:in-reply-to:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6ThGJtNXh5mFiguBG+skqqlxSwfP8dfyRAaXumpmsjA=; b=obnbVzf3kGgnXGOBw7nuMYMRS5KHDcEYEhjVT2ZkgiJuFPzI2HjXv81qfI9aK33N38 O/WTbp0tDoRBgIwfb5Ob6iCZQGx01KqXffSuILKRIICWNDfQKFYxMFgWj5S+KaCmM9qN NZVIn8ecdO5PpCEiOnTumvFl4vNBhaVIIB3rs8F21FsfK5aGE6/PB9nTft5Ut9vyc2ma NU9u7seX7YC56q+wGf50Ljrthe94vSxLNFs63a18+HVCZwl3C1AcAR7Gn0IXBMU3nOj+ bkdwlTMWuxNTmGBi+PJEAZED591S7Rb26k9pyQT6DMDgaiq8CBZXMKS9BO6qF6z/mexS oFQg== X-Forwarded-Encrypted: i=1; AJvYcCVYFnXM1gT6eJjT8H/7ryi3XSTyKAgEjcPIw6447tprioV1rv4iwu9xCd1I73ku+wnvwfWOCrFI4m9NTdoS@lists.postgresql.org X-Gm-Message-State: AOJu0Yzs11UzS78qizshe90pknLTnr8RTAxlEVl5REvqM6xv5Mb8LJDR JIOJ9qvQipj0G+nAioDEQ8xS8bOzU6kGDM0Y36KA9ie/dcY1e6XcyYtoohN+Dg2zyRg= X-Gm-Gg: ATEYQzznXAg7fK758yJOjIj8ERzi0hJ/eeiL/hqjoLdYlw+uoW0YRJNKByhDePjusfe +JOI+wu9rL1K7VHilSP43YvDjlW9ZzL4BGlW6Vt1rpoK8z+7FzfrKv0GjNbVetHRXdRj+bbL8Lu 7WJIXPyuXZUt6Oy7SU2iW8bwu7Jn5MlQVgeHFtkP5/PMca7nKSDBhlrbZVRQCewKUS6CwE/4YE+ ThH+786cOfpc8T8UD2UASz63rK/pWioJAq4ninPGa0qrIfOs5F2AJCyhFzcPWg1/8Jqxde6zcNJ vfehLC+DgDgaBAQmdCPAQ14/o/yEl+3kYLAjwTNHDNFcHBSsQZaW04ykCrbi0I0xMkbNkUZEDOH 2VZK0gX6YxDHWDix/ADAbWVYBZ+QfXO7WNqPk0OU+QD2xm1rC9blXYsnmKGipZ445Ju8dX/3VyD HvcmCZ00JOmidMTQAInzlye3grh4tTXKppYzr6 X-Received: by 2002:a05:600c:c04a:b0:487:1108:48b8 with SMTP id 5b1f17b1804b1-4888355de9dmr78505135e9.2.1775108384038; Wed, 01 Apr 2026 22:39:44 -0700 (PDT) Received: from localhost (109-81-168-142.rct.o2.cz. [109.81.168.142]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4888a62616dsm55830015e9.3.2026.04.01.22.39.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Apr 2026 22:39:43 -0700 (PDT) From: Antonin Houska To: alvherre@kurilemu.de cc: Chao Li , Andres Freund , Pg Hackers , Zsolt Parragi , Nathan Bossart Subject: Re: table AM option passing In-reply-to: <202604011827.p4mx4bh2ti46@alvherre.pgsql> References: <202604011827.p4mx4bh2ti46@alvherre.pgsql> Comments: In-reply-to =?us-ascii?Q?=3D=3Futf-8=3FQ=3F=3DC3=3D81lvaro=3F=3D?= Herrera message dated "Wed, 01 Apr 2026 20:41:01 +0200." X-Mailer: MH-E 8.6+git; nmh 1.8; GNU Emacs 28.3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 02 Apr 2026 07:39:43 +0200 Message-ID: <4287.1775108383@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =C3=81lvaro Herrera wrote: > On 2026-Apr-01, Antonin Houska wrote: > I realized that patch 0003 is doing two different things, and they > should each be their own patch which can be rejected if we don't like > them; so I split it in two. One moves the heapam.h-private bit to the > 32th bit. I'm sorry I haven't recalled yesterday, but this technique resembles the DSM keys in parallel.c: /* * Magic numbers for per-context parallel state sharing. Higher-level co= de * should use smaller values, leaving these very large ones for use by th= is * module. */ #define PARALLEL_KEY_FIXED UINT64CONST(0xFFFFFFFFFFFF0001) ... What I found inspiring here is that the "core" uses the high bits while use= rs of the API use the lower ones. Perhaps it'd be appropriate in v6-0001 to reserve the high bits for the TABLE_ options and leave the lower ones for t= he HEAP_ options. If someone implements a new AM (possibly as an extension), it should be more comfortable for him. --=20 Antonin Houska Web: https://www.cybertec-postgresql.com