pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Albe Laurenz <laurenz.albe@wien.gv.at>
Cc: pgsql-hackers@postgreSQL.org <pgsql-hackers@postgresql.org>
Subject: Re: Add PGDLLEXPORT to PG_FUNCTION_INFO_V1
Date: Wed, 12 Oct 2016 18:06:37 -0400
Message-ID: <9601.1476309997@sss.pgh.pa.us> (raw)
In-Reply-To: <1817.1476307651@sss.pgh.pa.us>
References: <A737B7A37273E048B164557ADEF4A58B539300BD@ntex2010a.host.magwien.gv.at>
	<5586.1476276329@sss.pgh.pa.us>
	<A737B7A37273E048B164557ADEF4A58B53930279@ntex2010a.host.magwien.gv.at>
	<8027.1476279261@sss.pgh.pa.us>
	<A737B7A37273E048B164557ADEF4A58B5393033E@ntex2010a.host.magwien.gv.at>
	<10909.1476282370@sss.pgh.pa.us>
	<A737B7A37273E048B164557ADEF4A58B5393038C@ntex2010a.host.magwien.gv.at>
	<31374.1476290849@sss.pgh.pa.us>
	<1817.1476307651@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

I wrote:
> Well, the buildfarm doesn't like that even a little bit.  It seems that
> the MSVC compiler does not like seeing both "extern Datum foo(...)" and
> "extern PGDLLEXPORT Datum foo(...)", so anything that had an extern in
> a .h file is failing.  There is also quite a bit of phase-of-the-moon
> behavior in here, because in some cases some functions are raising errors
> and others that look entirely the same are not.

I take back the latter comment --- I was comparing HEAD source code
against errors reported on back branches, and at least some of the
discrepancies are explained by additions/removals of separate "extern"
declarations.  But still, if we want to do this we're going to need to
put PGDLLEXPORT in every V1 function extern declaration.  We might be
able to remove some of the externs as unnecessary instead, but any way
you slice it it's going to be messy.

For the moment I've reverted the change.

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (35+ messages)  latest in thread

Message-ID: <9601.1476309997@sss.pgh.pa.us>
Permalink:  ../9601.1476309997@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9601.1476309997@sss.pgh.pa.us

 · 

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-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, laurenz.albe@wien.gv.at
  Subject: Re: Add PGDLLEXPORT to PG_FUNCTION_INFO_V1
  In-Reply-To: <9601.1476309997@sss.pgh.pa.us>
  References: <A737B7A37273E048B164557ADEF4A58B539300BD@ntex2010a.host.magwien.gv.at> <5586.1476276329@sss.pgh.pa.us> <A737B7A37273E048B164557ADEF4A58B53930279@ntex2010a.host.magwien.gv.at> <8027.1476279261@sss.pgh.pa.us> <A737B7A37273E048B164557ADEF4A58B5393033E@ntex2010a.host.magwien.gv.at> <10909.1476282370@sss.pgh.pa.us> <A737B7A37273E048B164557ADEF4A58B5393038C@ntex2010a.host.magwien.gv.at> <31374.1476290849@sss.pgh.pa.us> <1817.1476307651@sss.pgh.pa.us> <9601.1476309997@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