Re: Help with User-defined function in PostgreSQL with Visual C++ - Mailing list pgsql-hackers

From Itagaki Takahiro
Subject Re: Help with User-defined function in PostgreSQL with Visual C++
Date
Msg-id AANLkTimBYdChqoto9-OkcwzP-rJDcm=d5Qr=CyQP-Qoz@mail.gmail.com
Whole thread Raw
In response to Re: Help with User-defined function in PostgreSQL with Visual C++  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Help with User-defined function in PostgreSQL with Visual C++
Re: Help with User-defined function in PostgreSQL with Visual C++
List pgsql-hackers
On Tue, Sep 28, 2010 at 12:12 PM, Robert Haas <robertmhaas@gmail.com> wrote:
>> If we do so, many PGDLLEXPORT will be added:
>>  *  17 in src/tutorial
>>  * 507 in contrib
>> for each exported PGFunction, _PG_init, and _PG_fini.
>
> Oh - I didn't realize this meant marking lots of things in contrib
> that didn't otherwise need to be marked.  Why do other people need
> this if we don't?

As I mentioned, we don't need the marks in our build environment at all.
So, the PGDLLEXPORT marks are for users who refers our tutorials and
contrib modules as sample codes.

Personally, I learned many idioms from contrib modules, but didn't
notice the tutorial directory. I think codes in contribs are often
copied-and-pasted. So, if we add PGDLLEXPORTs to some places,
I'd like to add them to contribs, too.

--
Itagaki Takahiro


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: proposal: tsearch dictionary initialization hook
Next
From: Robert Haas
Date:
Subject: Re: patch: tsearch - some memory diet