pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Yury Zhuravlev <u.zhuravlev@postgrespro.ru>
To: pgsql-hackers@postgresql.org
Subject: Re: Add PGDLLEXPORT to PG_FUNCTION_INFO_V1
Date: Tue, 18 Oct 2016 01:03:34 +0300
Message-ID: <37b5addc-b08f-4a2e-b34d-7e977080db07@postgrespro.ru> (raw)
In-Reply-To: <CA+TgmoaGbmeOb-t9BUj-Wyh5BqwrXQtySFjR9K6gnMX1iobJNA@mail.gmail.com>
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>
	<A737B7A37273E048B164557ADEF4A58B539310FA@ntex2010a.host.magwien.gv.at>
	<CA+TgmoavrtczRMQkSaLR6h_xyk8DjniiRwjG64+Yzi3vWVwS9A@mail.gmail.com>
	<10624.1476735097@sss.pgh.pa.us>
	<CA+TgmoaQu=Z+=BCAbY4T2n0BPA8NuGUrwaH461yn-mTV_TADzw@mail.gmail.com>
	<12120.1476736950@sss.pgh.pa.us>
	<CA+TgmoaGbmeOb-t9BUj-Wyh5BqwrXQtySFjR9K6gnMX1iobJNA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Robert Haas wrote:
> Yeah, I don't know.  For my money, decorating the function definitions
> in place seems easier than having to maintain a separate export list,
> especially if it can be hidden under the carpet using the existing
> stupid macro tricks.  But I am not a Windows expert.

I suppose we should to establish politics for this case. Because any who 
see this and who have experience in Windows surprised by this. For windows 
any DLL it is like plugins which must use strict API for communications and 
resolving symbols. The situation is that in Postgres we have not API for 
extensions in the Windows terms. 
In future CMake will hide all this troubles in itself but if tell in truth 
I don't like this situation when any extension has access to any non-static 
symbols. However time to time we meet static function that we want to 
reusing in our extension and today I know only one decision - copy-paste. 
Without strict politics in this case we will be time to time meet new 
persons who ask this or similar question.

-- 
Yury Zhuravlev
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company


-- 
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: <37b5addc-b08f-4a2e-b34d-7e977080db07@postgrespro.ru>
Permalink:  ../37b5addc-b08f-4a2e-b34d-7e977080db07@postgrespro.ru/
Also on:    postgresql.org/message-id/37b5addc-b08f-4a2e-b34d-7e977080db07@postgrespro.ru

 · 

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: u.zhuravlev@postgrespro.ru
  Subject: Re: Add PGDLLEXPORT to PG_FUNCTION_INFO_V1
  In-Reply-To: <37b5addc-b08f-4a2e-b34d-7e977080db07@postgrespro.ru>
  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> <A737B7A37273E048B164557ADEF4A58B539310FA@ntex2010a.host.magwien.gv.at> <CA+TgmoavrtczRMQkSaLR6h_xyk8DjniiRwjG64+Yzi3vWVwS9A@mail.gmail.com> <10624.1476735097@sss.pgh.pa.us> <CA+TgmoaQu=Z+=BCAbY4T2n0BPA8NuGUrwaH461yn-mTV_TADzw@mail.gmail.com> <12120.1476736950@sss.pgh.pa.us> <CA+TgmoaGbmeOb-t9BUj-Wyh5BqwrXQtySFjR9K6gnMX1iobJNA@mail.gmail.com> <37b5addc-b08f-4a2e-b34d-7e977080db07@postgrespro.ru>

* 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