Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lNgtE-0006ZE-Ng for pgsql-hackers@arkaria.postgresql.org; Sat, 20 Mar 2021 19:04:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lNgtD-0002Ao-Kd for pgsql-hackers@arkaria.postgresql.org; Sat, 20 Mar 2021 19:03:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lNgtD-0002Ag-DX for pgsql-hackers@lists.postgresql.org; Sat, 20 Mar 2021 19:03:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lNgtA-0001yd-PX for pgsql-hackers@lists.postgresql.org; Sat, 20 Mar 2021 19:03:59 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 12KJ3oE6261450; Sat, 20 Mar 2021 15:03:50 -0400 From: Tom Lane To: Justin Pryzby cc: Dilip Kumar , Robert Haas , Alvaro Herrera , Andres Freund , Tomas Vondra , Alexander Korotkov , David Steele , Ildus Kurbangaliev , Dmitry Dolgov <9erthalion6@gmail.com>, pgsql-hackers@lists.postgresql.org Subject: Re: [HACKERS] Custom compression methods In-reply-to: <229250.1616261775@sss.pgh.pa.us> References: <20210319222242.GA23930@alvherre.pgsql> <4158590.1616185209@sss.pgh.pa.us> <20210320000625.GP11765@telsasoft.com> <20210320074420.GR11765@telsasoft.com> <20210320153933.GT11765@telsasoft.com> <229250.1616261775@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Sat, 20 Mar 2021 13:36:15 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <261448.1616267030.1@sss.pgh.pa.us> Date: Sat, 20 Mar 2021 15:03:50 -0400 Message-ID: <261449.1616267030@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > Yeah, _doSetFixedOutputState is the wrong place: that runs on the > pg_restore side of the fence, and would not have access to the > necessary info in a separated dump/restore run. > It might be necessary to explicitly pass the state through in a TOC item, > as we do for things like the standard_conforming_strings setting. Ah, now that I read your patch I see that's exactly what you did. I fixed up some issues in 0008/0009 (mostly cosmetic, except that you forgot a server version check in dumpToastCompression) and pushed that, so we can see if it makes crake happy. regards, tom lane