Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4Auj-0002F5-4a for pgsql-committers@arkaria.postgresql.org; Thu, 25 Dec 2014 16:05:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y4Auh-0005p9-Nu for pgsql-committers@arkaria.postgresql.org; Thu, 25 Dec 2014 16:05:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y4Auf-0005p0-NN for pgsql-committers@postgresql.org; Thu, 25 Dec 2014 16:05:21 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4AuX-00071n-CG; Thu, 25 Dec 2014 16:05:19 +0000 Received: from intern.anarazel.de (p549F02E4.dip0.t-ipconnect.de [84.159.2.228]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 8CE13460007; Thu, 25 Dec 2014 17:05:11 +0100 (CET) Date: Thu, 25 Dec 2014 17:05:11 +0100 From: Andres Freund To: Michael Paquier Cc: Fujii Masao , Fujii Masao , pgsql-committers Subject: Re: pgsql: Move pg_lzcompress.c to src/common. Message-ID: <20141225160511.GG31801@alap3.anarazel.de> References: <20141225134347.GF31801@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -2.6 (--) 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 On 2014-12-25 23:46:52 +0900, Michael Paquier wrote: > On Thu, Dec 25, 2014 at 10:43 PM, Andres Freund wrote: > > /* > > * We have to use postgres.h not postgres_fe.h here, because there's so much > > * backend-only stuff in the XLOG include files we need. But we need a > > * frontend-ish environment otherwise. Hence this ugly hack. > > */ > > #define FRONTEND 1 > > > > #include "postgres.h" > 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. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers