From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@2ndquadrant.com>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: Fujii Masao <masao.fujii@gmail.com>
Cc: Fujii Masao <fujii@postgresql.org>
Cc: pgsql-committers <pgsql-committers@postgresql.org>
Subject: Re: pgsql: Move pg_lzcompress.c to src/common.
Date: Thu, 25 Dec 2014 13:31:52 -0500
Message-ID: <25733.1419532312@sss.pgh.pa.us> (raw)
In-Reply-To: <20141225160511.GG31801@alap3.anarazel.de>
References: <E1Y46tC-0000qW-Qt@gemulon.postgresql.org>
<CAHGQGwHLeCcC1gdvWUT1Z4HdLdYM8UnY_-+oAkuJpBGLEmc-Ug@mail.gmail.com>
<20141225134347.GF31801@alap3.anarazel.de>
<CAB7nPqSuMZRMf8fFAo1ZahRXrSTSR=w_uEPTV0kOsa20jUx+oQ@mail.gmail.com>
<20141225160511.GG31801@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Andres Freund <andres@2ndquadrant.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, andres@2ndquadrant.com, michael.paquier@gmail.com, masao.fujii@gmail.com, fujii@postgresql.org
Subject: Re: pgsql: Move pg_lzcompress.c to src/common.
In-Reply-To: <25733.1419532312@sss.pgh.pa.us>
References: <E1Y46tC-0000qW-Qt@gemulon.postgresql.org> <CAHGQGwHLeCcC1gdvWUT1Z4HdLdYM8UnY_-+oAkuJpBGLEmc-Ug@mail.gmail.com> <20141225134347.GF31801@alap3.anarazel.de> <CAB7nPqSuMZRMf8fFAo1ZahRXrSTSR=w_uEPTV0kOsa20jUx+oQ@mail.gmail.com> <20141225160511.GG31801@alap3.anarazel.de> <25733.1419532312@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox