Re: [COMMITTERS] pgsql: Inline initial comparisons in TestForOldSnapshot()

From: Kevin Grittner <kgrittn(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [COMMITTERS] pgsql: Inline initial comparisons in TestForOldSnapshot()
Date: 2016-04-22 20:19:20
Message-ID: CACjxUsP8eu+JO9ZxAeSgGJkAg+L73YC0F=hmmNLf-TKERF1dLg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Thu, Apr 21, 2016 at 1:45 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> PGDLLIMPORT is what's needed on any backend global variable that's to
> be referenced by extensions. I already pushed a fix before noticing
> this thread.

Thanks!

Since I failed to find anything in our docs or C comments, and very
scant clues in the Wiki and list archives, about when to use
PGDLLIMPORT and PGDLLEXPORT I figured it might be helpful to
clarify here, and maybe add something near one of the definitions.

Based on your fix and the meager clues found elsewhere, along with
randomly looking at a few points of existing usage, I infer that
these should be specified from the perspective of loadable modules
which we might want to build for Windows. That is, an extension
would use PGDLLEXPORT for symbols it wanted to have the backends
find, and core code should use PGDLLIMPORT for symbols that
extensions or other loadable modules might need to find. These are
used for both data locations and function names.

Close?

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-04-22 20:55:47 Re: [COMMITTERS] pgsql: Inline initial comparisons in TestForOldSnapshot()
Previous Message Tom Lane 2016-04-22 15:54:48 pgsql: Convert contrib/seg's bool-returning SQL functions to V1 call co

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2016-04-22 20:55:47 Re: [COMMITTERS] pgsql: Inline initial comparisons in TestForOldSnapshot()
Previous Message Fabrízio de Royes Mello 2016-04-22 19:22:32 Re: "parallel= " information is not coming in pg_dumpall for create aggregate