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

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: Using PostgreSQL 32bit dlls in 64-bit code?
Дата
Msg-id 49B1E1AF.6010801@hogranch.com
обсуждение исходный текст
Ответ на Using PostgreSQL 32bit dlls in 64-bit code?  (se.stephen@gmail.com)
Список pgsql-general
se.stephen@gmail.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.



В списке pgsql-general по дате отправления:

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: mdf
Следующее
От: Artacus
Дата:
Сообщение: Re: Postgres Cookbook