From: Tom Lane <tgl@sss.pgh.pa.us>
To: George Tarasov <george.v.tarasov@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: PGDLLIMPORT: patch or not to patch
Date: Tue, 29 Jun 2021 16:49:33 -0400
Message-ID: <503622.1624999773@sss.pgh.pa.us> (raw)
In-Reply-To: <ca23fd30-0ff3-d7dd-8e7c-caf8de51a2b6@gmail.com>
References: <ca23fd30-0ff3-d7dd-8e7c-caf8de51a2b6@gmail.com>
George Tarasov <george.v.tarasov@gmail.com> writes:
> So, my questions are there any rules / descriptions / agreements inside
> the PostgreSQL Project that define which global variables inside a core
> code should by specified by a PGDLLIMPORT and which should not?? Or
> there is freedom; you need this variable in the extension (under
> Windows), make patch for it yourself! Or there is plan in the community
> that all global non-static variables should be PGDLLIMPORT-ed by default
> in the future?? What the right way to propose the PGDLLIMPORT patch to
> the master and back-ported PostgreSQL code in order to avoid dup patches
> in the extensions?
Our policy so far has been to add PGDLLIMPORT to variables for which
someone makes a case that an extension would have a reasonable use
for it. The bar's not terribly high, but it does exist. The idea of
just doing a blanket s/extern/extern PGDLLIMPORT/g has been discussed
and rejected, because we don't want to commit to supporting absolutely
every global variable as something that's okay for extensions to touch.
So if you've got specific proposals (such as "Mode"), bring them up
on pgsql-hackers.
regards, tom lane
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-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, george.v.tarasov@gmail.com
Subject: Re: PGDLLIMPORT: patch or not to patch
In-Reply-To: <503622.1624999773@sss.pgh.pa.us>
References: <ca23fd30-0ff3-d7dd-8e7c-caf8de51a2b6@gmail.com> <503622.1624999773@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