Skip site navigation (1) Skip section navigation (2)

Re: BUG #5394: invalid declspec for PG_MODULE_MAGIC

From: Takahiro Itagaki <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
To: "Vladimir Barzionov" <snego(dot)barsik(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: BUG #5394: invalid declspec for PG_MODULE_MAGIC
Date: 2010-03-29 09:47:05
Message-ID: 20100329184705.A60E.52131E4D@oss.ntt.co.jp (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-hackers
"Vladimir Barzionov" <snego(dot)barsik(at)gmail(dot)com> wrote:

> Same problem was already discussed for example here
> http://dbaspot.com/forums/postgresql/393683-re-general-custom-c-function-palloc-broken.html
> 
> Looks like the simplest way for correcting the issue is declaring additional
> macro (something like PGMODULEEXPORT)

Sure, I agree it is a longstanding bug in PostgreSQL. Developers who use
MSVC (not mingw) always encounter the bug; machines in the buildfarm can
build Windows binaries just because they have non-standard equipments.

A patch attached. The name of "PGMODULEEXPORT" might be arguable.

Regards,
---
Takahiro Itagaki
NTT Open Source Software Center


Attachment: PGMODULEEXPORT.patch
Description: application/octet-stream (2.0 KB)

In response to

Responses

pgsql-hackers by date

Next:From: Gokulakannan SomasundaramDate: 2010-03-29 10:42:08
Subject: Re: GSoC Query
Previous:From: Peter EisentrautDate: 2010-03-29 09:22:48
Subject: Re: Patch for 9.1: initdb -C option

pgsql-bugs by date

Next:From: Stefan KaltenbrunnerDate: 2010-03-29 11:16:11
Subject: Re: Known Issues Page
Previous:From: Tharakan, George (GE Healthcare)Date: 2010-03-29 08:56:32
Subject: Known Issues Page

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group