Re: Help with User-defined function in PostgreSQL with Visual C++

Поиск
Список
Период
Сортировка
От Itagaki Takahiro
Тема Re: Help with User-defined function in PostgreSQL with Visual C++
Дата
Msg-id AANLkTimBYdChqoto9-OkcwzP-rJDcm=d5Qr=CyQP-Qoz@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Help with User-defined function in PostgreSQL with Visual C++  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Help with User-defined function in PostgreSQL with Visual C++  (Robert Haas <robertmhaas@gmail.com>)
Re: Help with User-defined function in PostgreSQL with Visual C++  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: proposal: tsearch dictionary initialization hook
Следующее
От: Robert Haas
Дата:
Сообщение: Re: patch: tsearch - some memory diet