Re: walprotocol.h vs frontends - Mailing list pgsql-hackers

From Tom Lane
Subject Re: walprotocol.h vs frontends
Date
Msg-id 3103.1313420035@sss.pgh.pa.us
Whole thread Raw
In response to Re: walprotocol.h vs frontends  (Magnus Hagander <magnus@hagander.net>)
Responses Re: walprotocol.h vs frontends
List pgsql-hackers
Magnus Hagander <magnus@hagander.net> writes:
> On Mon, Aug 15, 2011 at 16:20, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> However, for a narrow fix, I could see moving the data type definition
>> to someplace with fewer dependencies. �Perhaps split it into a separate
>> file timestamp_type.h, or something like that.

> Yes, that seems to fix the problem of timestamptz. See the attached
> patch - seems ok?

Don't think you should expose fsec_t, nor most of those macros.  The
foo_per_bar values are just namespace clutter.

> I also ran into a similar problem with some WAL macro definitions that
> are in xlog_internal.h. I've moved them to xlogdefs.h in the attached
> xlog.diff file. Does that seem ok as well, or should I move them
> somewhere else?

I don't like the idea of exposing those to frontends, either.  What do
you actually *need* out of that, and why?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: walprotocol.h vs frontends
Next
From: "Kevin Grittner"
Date:
Subject: Re: synchronized snapshots