pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make xact.h usable in frontend.
Date: Mon, 17 Aug 2020 07:55:03 +0000
Message-ID: <E1k7Zyx-0005zh-3M@gemulon.postgresql.org> (raw)

Make xact.h usable in frontend.

xact.h included utils/datetime.h, which cannot be used in the frontend
(it includes fmgr.h, which needs Datum). But xact.h only needs the
definition of TimestampTz from it, which is available directly in
datatypes/timestamp.h. Change xact.h to include that instead of
utils/datetime.h, so that it can be used in client programs.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3941eb6341d8274dd63a26972042da6632533f2b

Modified Files
--------------
contrib/pg_prewarm/autoprewarm.c  | 1 +
contrib/postgres_fdw/connection.c | 1 +
src/backend/nodes/params.c        | 1 +
src/backend/utils/time/snapmgr.c  | 2 ++
src/include/access/xact.h         | 2 +-
5 files changed, 6 insertions(+), 1 deletion(-)



Message-ID: <E1k7Zyx-0005zh-3M@gemulon.postgresql.org>
Permalink:  ../E1k7Zyx-0005zh-3M@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1k7Zyx-0005zh-3M@gemulon.postgresql.org

 · 

reply

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: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Make xact.h usable in frontend.
  In-Reply-To: <E1k7Zyx-0005zh-3M@gemulon.postgresql.org>
  References: <E1k7Zyx-0005zh-3M@gemulon.postgresql.org>

* 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