Re: Using PostgreSQL 32bit dlls in 64-bit code?

From: John R Pierce <pierce(at)hogranch(dot)com>
To: se(dot)stephen(at)gmail(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Using PostgreSQL 32bit dlls in 64-bit code?
Date: 2009-03-07 02:53:35
Message-ID: 49B1E1AF.6010801@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

se(dot)stephen(at)gmail(dot)com wrote:
> Hi,
>
> We are considering to use postgreSQL for our 64-bit code development
> for Windows XP 64 bit machine.
>
> As 64-bit postgreSQL is not available for Windows, we can only use
> postgreSQL's 32bit dlls. In that case, can we just call postgreSQL's
> functions in our 64-bit code? Or do we need to write a wrapper
> around postgreSQL's 32bit dlls somehow?
>
> Any pointer will be much appreciated. Thanks.
>

you can't call 32bit libraries from 64bits (or visa versa) without going
through all kinda complex data thunking. you would need a wrapper,
or better, assuming you're coding native libpq calls, recompile libpq
for windows x86_64. the database server could remain 32bit.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Artacus 2009-03-07 05:50:50 Re: Postgres Cookbook
Previous Message John R Pierce 2009-03-07 02:51:34 Re: mdf