64 and 32 bit libpq

Started by Jerry LeVanabout 9 years ago2 messagesgeneral
Jump to latest
#1Jerry LeVan
jerry.levan@gmail.com

Hello, I am trying to upgrade my postgresql ‘stuff’ to 64 bits from 32 bits.

I am running MaxOS Sierra.

I have built the 64 bit version of the server and have loaded
my database into the new server ( 9.6.2 ). Everything seems to be working.

I have some legacy apps that are 32 bit and talk to the server
via libpq.dylib. They no longer work with a complaint about
not finding a libpq with the right architecture.

Can I go back and do a 32 bit rebuild of everything and then
take the 32 bit libpq and the 64 bit libpq and use lipo to
glue them together and create a ‘fat’ libpq and replace the
installed libpq?

Is this a safe thing to do?

Thanks

Jerry

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

#2Steve Atkins
steve@blighty.com
In reply to: Jerry LeVan (#1)
Re: 64 and 32 bit libpq

On Feb 12, 2017, at 5:03 PM, Jerry LeVan <jerry.levan@gmail.com> wrote:

Hello, I am trying to upgrade my postgresql ‘stuff’ to 64 bits from 32 bits.

I am running MaxOS Sierra.

I have built the 64 bit version of the server and have loaded
my database into the new server ( 9.6.2 ). Everything seems to be working.

I have some legacy apps that are 32 bit and talk to the server
via libpq.dylib. They no longer work with a complaint about
not finding a libpq with the right architecture.

Can I go back and do a 32 bit rebuild of everything and then
take the 32 bit libpq and the 64 bit libpq and use lipo to
glue them together and create a ‘fat’ libpq and replace the
installed libpq?

Is this a safe thing to do?

I've done it in the past (http://labs.wordtothewise.com/postgresql-osx/) and it
seemed to work fine.

Cheers,
Steve

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general