Re: narwhal and PGDLLIMPORT
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@2ndquadrant.com>
Cc: Craig Ringer <craig@2ndquadrant.com>,
Ashesh Vashi <ashesh.vashi@enterprisedb.com>,
PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2014-02-03T14:13:02Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
MinGW: Link with shell32.dll instead of shfolder.dll.
- 53566fc0940c 9.5.0 cited
-
Centralize getopt-related declarations in a new header file pg_getopt.h.
- 60ff2fdd9970 9.4.0 cited
-
Get rid of use of dlltool in Mingw builds.
- 846e91e0223c 9.4.0 cited
-
Export a few more symbols required for test_shm_mq module.
- 7d7eee8bb702 9.4.0 cited
-
Export set_latch_on_sigusr1 symbol for Windows.
- 708c529c7fde 9.4.0 cited
-
Use SHGetFolderPath instead of SHGetSpecialFolderPath to find the
- 889f03812916 8.1.0 cited
Andres Freund <andres@2ndquadrant.com> writes: > On 2014-02-03 12:00:40 +0800, Craig Ringer wrote: >> I think it's a good thing personally - we shouldn't be exporting every >> little internal var in the symbol table. >> >> If we built with -fvisibility=hidden on 'nix there'd be no need to >> complain about commits being on on 'nix then breaking on Windows, 'cos >> the 'nix build would break in the same place. That's all or nothing >> though, there's no "vars hidden, procs exported" option in gcc. > To make any form of sense we'd need to have a really separate API > layer between internal/external stuff. That doesn't seem likely to > arrive anytime soon, if ever. Indeed. Aside from the difficulty of having tighter requirements on just one platform (which, for development purposes, isn't even a mainstream one), it seems completely silly to me that the restriction applies only to variables and not functions. We expose *far* more global functions than global variables; and there's no particular reason to think that calling a random function is any safer than frobbing a random global variable. What we need is to make the Windows platform stop thinking that it is the center of the world, and make it act as much as possible like the Unix-oid platforms. regards, tom lane