Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4DCg-000812-La for pgsql-committers@arkaria.postgresql.org; Thu, 25 Dec 2014 18:32:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y4DCg-0004lQ-2j for pgsql-committers@arkaria.postgresql.org; Thu, 25 Dec 2014 18:32:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y4DCf-0004lJ-6H for pgsql-committers@postgresql.org; Thu, 25 Dec 2014 18:32:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y4DCa-0005IX-JH; Thu, 25 Dec 2014 18:32:04 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id sBPIVqVV025734; Thu, 25 Dec 2014 13:31:52 -0500 From: Tom Lane To: Andres Freund cc: Michael Paquier , Fujii Masao , Fujii Masao , pgsql-committers Subject: Re: pgsql: Move pg_lzcompress.c to src/common. In-reply-to: <20141225160511.GG31801@alap3.anarazel.de> References: <20141225134347.GF31801@alap3.anarazel.de> <20141225160511.GG31801@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 25 Dec 2014 17:05:11 +0100" Date: Thu, 25 Dec 2014 13:31:52 -0500 Message-ID: <25733.1419532312@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Andres Freund writes: > On 2014-12-25 23:46:52 +0900, Michael Paquier wrote: >> Urgh.. Would that mean keeping a local copy of SET_VARSIZE_4B_C and >> VARSIZE_4B if this hack is not used? Looking at the git history, I am >> seeing similar things in 2008 where pg_crc stuff was moved to src/port >> (5c9c08d). > Surely not. It seems like a much better idea to not have lzcompress deal > with varlena at all but pass that responsibility one layer upwards. That > shouldn't be very hard. All files in src/common should be using the coding pattern #ifndef FRONTEND #include "postgres.h" #else #include "postgres_fe.h" #endif and as noted, it's going to take additional refactoring to make it possible to do that in pg_lzcompress. In view of all the potentially unportable stuff Andres committed today, we need the buildfarm to be at full strength; so I've reverted this commit until it can be worked out a bit better. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers