pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Apply PGDLLIMPORT markings broadly.
Date: Fri, 08 Apr 2022 12:38:41 +0000
Message-ID: <E1ncnsv-000tOh-50@gemulon.postgresql.org> (raw)

Apply PGDLLIMPORT markings broadly.

Up until now, we've had a policy of only marking certain variables
in the PostgreSQL header files with PGDLLIMPORT, but now we've
decided to mark them all. This means that extensions running on
Windows should no longer operate at a disadvantage as compared to
extensions running on Linux: if the variable is present in a header
file, it should be accessible.

Discussion: http://postgr.es/m/CA+TgmoYanc1_FSfimhgiWSqVyP5KKmh5NP2BWNwDhO8Pg2vGYQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8ec569479fc28ddd634a13dc100b36352ec3a3c2

Modified Files
--------------
src/include/access/gin.h                    |  2 +-
src/include/access/parallel.h               |  2 +-
src/include/access/session.h                |  2 +-
src/include/access/tableam.h                |  4 +-
src/include/access/toast_compression.h      |  2 +-
src/include/access/twophase_rmgr.h          |  8 ++--
src/include/access/xact.h                   | 16 ++++----
src/include/access/xlog.h                   | 56 +++++++++++++-------------
src/include/access/xlog_internal.h          |  8 ++--
src/include/access/xlogprefetcher.h         |  2 +-
src/include/access/xlogrecovery.h           | 42 +++++++++----------
src/include/access/xlogutils.h              |  4 +-
src/include/bootstrap/bootstrap.h           |  6 +--
src/include/catalog/namespace.h             |  2 +-
src/include/catalog/objectaddress.h         |  2 +-
src/include/catalog/storage.h               |  2 +-
src/include/commands/async.h                |  4 +-
src/include/commands/tablespace.h           |  2 +-
src/include/commands/user.h                 |  2 +-
src/include/commands/vacuum.h               | 18 ++++-----
src/include/common/file_perm.h              |  6 +--
src/include/common/jsonapi.h                |  2 +-
src/include/common/logging.h                |  2 +-
src/include/common/pg_lzcompress.h          |  4 +-
src/include/common/relpath.h                |  2 +-
src/include/fe_utils/cancel.h               |  2 +-
src/include/fe_utils/print.h                |  9 +++--
src/include/fe_utils/string_utils.h         |  2 +-
src/include/fmgr.h                          |  2 +-
src/include/jit/jit.h                       | 20 +++++-----
src/include/jit/llvmjit.h                   | 44 ++++++++++----------
src/include/libpq/auth.h                    |  6 +--
src/include/libpq/libpq-be.h                |  2 +-
src/include/libpq/libpq.h                   | 28 ++++++-------
src/include/libpq/pqcomm.h                  |  2 +-
src/include/libpq/scram.h                   |  2 +-
src/include/mb/pg_wchar.h                   |  6 +--
src/include/miscadmin.h                     | 54 ++++++++++++-------------
src/include/nodes/readfuncs.h               |  2 +-
src/include/optimizer/geqo.h                | 11 ++---
src/include/optimizer/optimizer.h           |  4 +-
src/include/optimizer/planmain.h            |  6 +--
src/include/parser/parse_expr.h             |  2 +-
src/include/parser/parser.h                 |  4 +-
src/include/pg_getopt.h                     | 10 ++---
src/include/pgstat.h                        | 16 ++++----
src/include/pgtime.h                        |  2 +-
src/include/port/win32_port.h               |  6 +--
src/include/port/win32ntdll.h               |  4 +-
src/include/postmaster/autovacuum.h         | 32 +++++++--------
src/include/postmaster/bgworker_internals.h |  2 +-
src/include/postmaster/bgwriter.h           |  8 ++--
src/include/postmaster/pgarch.h             |  8 ++--
src/include/postmaster/postmaster.h         | 34 ++++++++--------
src/include/postmaster/startup.h            |  2 +-
src/include/postmaster/syslogger.h          | 14 +++----
src/include/postmaster/walwriter.h          |  4 +-
src/include/replication/logicallauncher.h   |  4 +-
src/include/replication/syncrep.h           |  8 ++--
src/include/replication/walreceiver.h       |  8 ++--
src/include/replication/walsender.h         | 14 +++----
src/include/replication/walsender_private.h |  6 +--
src/include/replication/worker_internal.h   | 10 ++---
src/include/storage/buf_internals.h         |  4 +-
src/include/storage/bufmgr.h                | 20 +++++-----
src/include/storage/dsm_impl.h              |  4 +-
src/include/storage/fd.h                    |  4 +-
src/include/storage/large_object.h          |  2 +-
src/include/storage/lock.h                  | 14 +++----
src/include/storage/lwlock.h                |  4 +-
src/include/storage/pg_shmem.h              | 14 +++----
src/include/storage/pmsignal.h              |  2 +-
src/include/storage/predicate.h             |  6 +--
src/include/storage/proc.h                  |  4 +-
src/include/storage/s_lock.h                |  2 +-
src/include/storage/sinval.h                |  4 +-
src/include/storage/spin.h                  |  2 +-
src/include/storage/standby.h               |  8 ++--
src/include/tcop/tcopprot.h                 |  8 ++--
src/include/tsearch/ts_cache.h              |  2 +-
src/include/tsearch/ts_type.h               |  2 +-
src/include/utils/array.h                   |  2 +-
src/include/utils/builtins.h                |  2 +-
src/include/utils/bytea.h                   |  3 +-
src/include/utils/datetime.h                |  7 ++--
src/include/utils/elog.h                    | 12 +++---
src/include/utils/fmgrtab.h                 |  9 +++--
src/include/utils/guc.h                     | 62 ++++++++++++++---------------
src/include/utils/guc_tables.h              |  8 ++--
src/include/utils/jsonpath.h                |  2 +-
src/include/utils/pg_locale.h               | 18 ++++-----
src/include/utils/pgstat_internal.h         |  4 +-
src/include/utils/plancache.h               |  2 +-
src/include/utils/ps_status.h               |  2 +-
src/include/utils/queryjumble.h             |  4 +-
src/include/utils/relcache.h                |  4 +-
src/include/utils/rls.h                     |  2 +-
src/include/utils/snapmgr.h                 |  2 +-
src/include/utils/timestamp.h               |  4 +-
src/include/utils/xml.h                     |  6 +--
100 files changed, 434 insertions(+), 429 deletions(-)



Message-ID: <E1ncnsv-000tOh-50@gemulon.postgresql.org>
Permalink:  ../E1ncnsv-000tOh-50@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ncnsv-000tOh-50@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: rhaas@postgresql.org
  Subject: Re: pgsql: Apply PGDLLIMPORT markings broadly.
  In-Reply-To: <E1ncnsv-000tOh-50@gemulon.postgresql.org>
  References: <E1ncnsv-000tOh-50@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