Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ip204-0000yu-G6 for pgsql-committers@arkaria.postgresql.org; Wed, 08 Jan 2020 03:27:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ip202-0003r5-4u for pgsql-committers@arkaria.postgresql.org; Wed, 08 Jan 2020 03:27:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ip200-0003qx-CB for pgsql-committers@lists.postgresql.org; Wed, 08 Jan 2020 03:27:13 +0000 Received: from [64.147.123.21] (helo=wout5-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ip1zs-0007IR-1w for pgsql-committers@lists.postgresql.org; Wed, 08 Jan 2020 03:27:10 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id B9B626AA; Tue, 7 Jan 2020 22:26:52 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 07 Jan 2020 22:26:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=x1Hcrj0le/Eii1ROhluQjRSmlYU ljFW5uQMIDyhsHiw=; b=ayRrKu7fdF3DzfETcChlv/eIJ4yzheyuLme+7bb0/cj XXFbIyooiBy6tM+X9kh/uHFPE7PLvcuUuGQhJYecBHh3U72/c+NXqyFmEc2XvXGV UFb8oH53+uA1ChqY+0Q+gAs/2ISDlN64uILNzQkgOQyQlTJu7APGWiHB75Ocfw8D Ollxa/3d/fGw91TkBOM7g2jX9QdWzvjLB2U0ya7cfd8Szx/1gSgb5COCyz4dmeME UvBJP7JpgDrUPcd/GDp2XBFwd/TP9wPR4jsgVxCCSxJCD1KU4zuTh475dnKn29vw w3kivT1kgia94pH2UrR20JErEGQhPEYLl1yWW3swKgw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=x1Hcrj 0le/Eii1ROhluQjRSmlYUljFW5uQMIDyhsHiw=; b=uB0nsu8fwWNUywVeb42dZK 3i/+Vq6CZKnb3ke65pk7wfXxSxsfUR3/Fng9CzOsUGST6EJ0rZgXLiCGDaDQzNYW tbB9xx7xZVgh0sj9Gz7iTyFLyld+hfvmLmzVApaTjOm4UWj9GD0fxN/18vq3hBVG 7kpEAnrLESsIjXaUSxbNHBSU4aJH3tnoo2FMmHX6EEdk/y3tyaCCO3jhCK/84UAd OVuLU9o7ZmYybwUDD5pFtd5xDffxK0Gw7Umfdb7spW9cANN/4m7qcijXQZe04AUK sQsRLt56D5W0PBSpzQA8MHVyXHCdOkN3l7TE6vC4kaFZFUB0uNL+AAh2+V/nreSQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdehjedgheejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucffohhmrghinhepphhgshhqlhdrsghuihhlugdpphhoshht ghhrvghsqhhlrdhorhhgnecukfhppeduuddurddutddvrddukedtrddukeehnecurfgrrh grmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiinecuvehl uhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id AA8578005A; Tue, 7 Jan 2020 22:26:50 -0500 (EST) Date: Wed, 8 Jan 2020 12:26:48 +0900 From: Michael Paquier To: Robert Haas Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: tableam: New callback relation_fetch_toast_slice. Message-ID: <20200108032648.GE3413@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="m0vRWufqUC70IDnR" Content-Disposition: inline In-Reply-To: X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.147.123.21 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --m0vRWufqUC70IDnR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Robert, On Tue, Jan 07, 2020 at 07:37:20PM +0000, Robert Haas wrote: > tableam: New callback relation_fetch_toast_slice. >=20 > Instead of always calling heap_fetch_toast_slice during detoasting, > invoke a table AM callback which, when the toast table is a heap > table, will be heap_fetch_toast_slice. >=20 > This makes it possible for a table AM other than heap to be used > as a TOAST table. It also completes the series of commits intended > to improve the interaction of tableam with TOAST that began with > commit 8b94dab06617ef80a0901ab103ebd8754427ef5a; detoast.c is > now, hopefully, fully AM-independent. >=20 > Patch by me, reviewed by Andres Freund and Peter Eisentraut. anole does not compile after this commit: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Danole&dt=3D2020-0= 1-08%2001%3A54%3A11 =46rom the logs: make[4]: Entering directory `/home/pgbfarm/buildroot/HEAD/pgsql.build/src/backend/access/brin' cc +Olibmerrno -g +DD64 -I../../../../src/include -D_XOPEN_SOURCE_EXTENDED -I/opt/packages/libxml2-2.7.8/inst/include/libxml2 -I/opt/packages/zlib-1.2.5/inst/include -I/opt/packages/libxslt-1.1.26/inst/include -I/opt/packages/libxml2-2.7.8/inst/include -c -o brin.o brin.c "../../../../src/include/access/tableam.h", line 1662: error #2118: a void function may not return a value return toastrel->rd_tableam->relation_fetch_toast_slice(toastrel, valueid, ^ "brin.c", line 87: warning #4232-D: conversion from "Node *" to a more strictly aligned type "IndexAmRoutine *" may cause misaligned access IndexAmRoutine *amroutine =3D makeNode(IndexAmRoutine); = ^ -- Michael --m0vRWufqUC70IDnR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl4VS/gACgkQnvQgOdby QH1pyw//XlX9xEiywxMhrltNQ5dgd3JOuFCBP+AuWF/zvppDCeWTttnnxcWwo0BL Ooqav/zRXAJztFtKGiOAekfCxDSM3VJS40Et9LPZVkO3Cs7tHdXL2t3vWIywX/tF bblw+GILi1upqoEQ34u6STDs5bO747ts55lkOHMWZUhycAQkHquVhVoYouzpgf3b mLXtqc25FGaFtrk1gAjfG/2PBhq/RrlAwwa79TwbyHD8ce4uw+ZOHONUCxaCmA1P DB/k+5m4Ejw3X3z61FB1I6cL0kfh4JYWYiJpyZkGs58zhUbgkZ+kk+gnJV0LvSNQ kv9N+FaQ89jHrK6g/JATiI3FhApxW7GktIgG3o82MthexxNeoF1voL8DCW7ykfZ6 U5/W0KLJixFNsh/vS2Z6pK9pq4dzGGb5qw8+6NMdAI5lPJjbpkvUojLaYFpPIBJL T0JYxpiEBElUAmGgyvtMUfFehotP4LwgMySSRHM7uMhKpxPi/sIBN/y+omKjMGNt XuXyjnTX3uYz7H9RoKDKgrwoIur0xX9HqZEQPeUnA9A/ciV9/iVKxSv7/9i5T+TI /MONVkz8N3/EgCe8O585FvgtTHKsEKsfXkt+zw4ag2u0HlddzkNwNRak+naKPhxn 4J+gSjaJ2lMpvo8p8gcf6scuZcGRHwXoBlQQBxkcIORHBC6LV9c= =NQP4 -----END PGP SIGNATURE----- --m0vRWufqUC70IDnR--