Lists: | pgsql-bugs |
---|
From: | "tomek" <tomek(at)fullopcja(dot)hopto(dot)org> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | BUG #2295: MemoryContextSwitchTo missing |
Date: | 2006-03-01 19:37:04 |
Message-ID: | 20060301193704.2E25AF0B03@svr2.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
The following bug has been logged online:
Bug reference: 2295
Logged by: tomek
Email address: tomek(at)fullopcja(dot)hopto(dot)org
PostgreSQL version: 8.1.0.5309
Operating system: WIN XP
Description: MemoryContextSwitchTo missing
Details:
I was trying to install libpgxml addon with 8.1.0 distribution. Afer hours
of searching i've discovered that libxml is trying to call (or is linked) to
function MemoryContextSwitchTo witch should be in postgres.exe.
This function was in previous versions of postgres.exe (eg 8.0.3....).
Is it possible to implement-back this function in next release or rather we
should wait for new release of libpgxml?
regards
tom
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | tomek <tomek(at)fullopcja(dot)hopto(dot)org> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #2295: MemoryContextSwitchTo missing |
Date: | 2006-03-02 15:19:34 |
Message-ID: | 200603021519.k22FJYs05375@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
tomek wrote:
>
> The following bug has been logged online:
>
> Bug reference: 2295
> Logged by: tomek
> Email address: tomek(at)fullopcja(dot)hopto(dot)org
> PostgreSQL version: 8.1.0.5309
> Operating system: WIN XP
> Description: MemoryContextSwitchTo missing
> Details:
>
> I was trying to install libpgxml addon with 8.1.0 distribution. Afer hours
> of searching i've discovered that libxml is trying to call (or is linked) to
> function MemoryContextSwitchTo witch should be in postgres.exe.
>
> This function was in previous versions of postgres.exe (eg 8.0.3....).
>
> Is it possible to implement-back this function in next release or rather we
> should wait for new release of libpgxml?
Uh, I see MemoryContextSwitchTo in 8.1. I think the problem might be
that the function is not marked with DLLIMPORT for XP. Can someone try
that and see if it fixes it?
--
Bruce Momjian http://candle.pha.pa.us
SRA OSS, Inc. http://www.sraoss.com
+ If your life is a hard drive, Christ can be your backup. +
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "tomek" <tomek(at)fullopcja(dot)hopto(dot)org> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #2295: MemoryContextSwitchTo missing |
Date: | 2006-03-02 15:32:23 |
Message-ID: | 2957.1141313543@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
"tomek" <tomek(at)fullopcja(dot)hopto(dot)org> writes:
> I was trying to install libpgxml addon with 8.1.0 distribution. Afer hours
> of searching i've discovered that libxml is trying to call (or is linked) to
> function MemoryContextSwitchTo witch should be in postgres.exe.
You need to recompile libpgxml, apparently.
It's never a good idea to try to use an add-on with a different major
version of Postgres than it was originally built for.
regards, tom lane
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | tomek <tomek(at)fullopcja(dot)hopto(dot)org>, pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #2295: MemoryContextSwitchTo missing |
Date: | 2006-03-02 16:12:54 |
Message-ID: | 3304.1141315974@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Uh, I see MemoryContextSwitchTo in 8.1. I think the problem might be
> that the function is not marked with DLLIMPORT for XP.
No, the problem is it's a macro (actually inline, but effectively a
macro) in 8.1.
regards, tom lane