Re: possible ecpg compatibility problem

From: Boszormenyi Zoltan <zb(at)cybertec(dot)at>
To: Paul Tilles <Paul(dot)Tilles(at)noaa(dot)gov>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: possible ecpg compatibility problem
Date: 2011-08-02 12:48:21
Message-ID: 4E37F215.4030606@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

2011-08-01 16:11 keltezéssel, Paul Tilles írta:
> I have an executable which uses ecpg which was created on a system using postgres
> version 8.2.6. I sent it to a site with version 8.4.7 installed. The executable fails
> with a memory fault.
>
> Is there a problem doing this?

Try recompiling your ecpg code with 8.4.x's ecpg and use that.
At least the public ECPGdo() interface have changed between
8.2 and 8.4, so your old binary compiled with 8.2 obviously fails.
I wonder why the runtime linker didn't complain, the major
SO version has also changed between these two versions.

Best regards,
Zoltán Böszörményi

--
----------------------------------
Zoltán Böszörményi
Cybertec Schönig & Schönig GmbH
Gröhrmühlgasse 26
A-2700 Wiener Neustadt, Austria
Web: http://www.postgresql-support.de
http://www.postgresql.at/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2011-08-02 13:55:11 Re: Timeline Conflict
Previous Message Johnny Edge 2011-08-02 10:45:29 Re: string comparison problem