Lists: | pgsql-general |
---|
From: | Martín Marqués <martin(dot)marques(at)gmail(dot)com> |
---|---|
To: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | 9.1 replication on different arch |
Date: | 2011-11-02 17:48:02 |
Message-ID: | CABeG9LuXnZRHrsfpnk=BmQw2LvgXMjdaSF7K6V6o+jeUfb0Gnw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
I have two servers, one a x86 32bit server, and the other one is a x86
64 bit server.
We want to use synchronous replication and make the 32 bit be a master
and the 64bit be a read-only stand-by.
Do I have to install 32bit postgresql on the 64bit server to be able
to use wal replication?
--
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador
From: | Adam Cornett <adam(dot)cornett(at)gmail(dot)com> |
---|---|
To: | Martín Marqués <martin(dot)marques(at)gmail(dot)com> |
Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: 9.1 replication on different arch |
Date: | 2011-11-02 17:55:40 |
Message-ID: | CAB5sPxb41fCY09KgSUt0i5cu_ed5mCWAaW0nJD=DZsFWt_LXHA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
2011/11/2 Martín Marqués <martin(dot)marques(at)gmail(dot)com>
> I have two servers, one a x86 32bit server, and the other one is a x86
> 64 bit server.
>
> We want to use synchronous replication and make the 32 bit be a master
> and the 64bit be a read-only stand-by.
>
> Do I have to install 32bit postgresql on the 64bit server to be able
> to use wal replication?
>
> --
> Martín Marqués
> select 'martin.marques' || '@' || 'gmail.com'
> DBA, Programador, Administrador
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
Native replication is only available on systems with the same architecture,
so the short answer is no.
But I'm pretty sure you can still use other replication tools like Slony or
Bucardo, although neither is synchronous.
-Adam
From: | Martín Marqués <martin(dot)marques(at)gmail(dot)com> |
---|---|
To: | Adam Cornett <adam(dot)cornett(at)gmail(dot)com> |
Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: 9.1 replication on different arch |
Date: | 2011-11-02 18:21:42 |
Message-ID: | CABeG9LszeUpZXnPwQ_bWKM1K84AHkYOw1xGDeWP8XOmUnKpkEg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
Don't worry, they are both x86 arch, so I'll just install 32bit
postgresql on the 64 bit server. That should make it work, right?
El día 2 de noviembre de 2011 14:55, Adam Cornett
<adam(dot)cornett(at)gmail(dot)com> escribió:
>
> 2011/11/2 Martín Marqués <martin(dot)marques(at)gmail(dot)com>
>>
>> I have two servers, one a x86 32bit server, and the other one is a x86
>> 64 bit server.
>>
>> We want to use synchronous replication and make the 32 bit be a master
>> and the 64bit be a read-only stand-by.
>>
>> Do I have to install 32bit postgresql on the 64bit server to be able
>> to use wal replication?
>>
>> --
>> Martín Marqués
>> select 'martin.marques' || '@' || 'gmail.com'
>> DBA, Programador, Administrador
>>
>> --
>> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-general
>
>
> Native replication is only available on systems with the same architecture,
> so the short answer is no.
> But I'm pretty sure you can still use other replication tools like Slony or
> Bucardo, although neither is synchronous.
> -Adam
--
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador
From: | John R Pierce <pierce(at)hogranch(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: 9.1 replication on different arch |
Date: | 2011-11-02 18:34:19 |
Message-ID: | 4EB18D2B.9060400@hogranch.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
On 11/02/11 11:21 AM, Martín Marqués wrote:
> Don't worry, they are both x86 arch, so I'll just install 32bit
> postgresql on the 64 bit server. That should make it work, right?
yes, that should work fine.
--
john r pierce N 37, W 122
santa cruz ca mid-left coast
From: | Martín Marqués <martin(dot)marques(at)gmail(dot)com> |
---|---|
To: | John R Pierce <pierce(at)hogranch(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: 9.1 replication on different arch |
Date: | 2011-11-03 01:40:19 |
Message-ID: | CABeG9LskQad6Qmj9prwNypxK3MFeyfCCvQVV21tonje5KPvxyQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
2011/11/2 John R Pierce <pierce(at)hogranch(dot)com>:
> On 11/02/11 11:21 AM, Martín Marqués wrote:
>>
>> Don't worry, they are both x86 arch, so I'll just install 32bit
>> postgresql on the 64 bit server. That should make it work, right?
>
> yes, that should work fine.
Sad thing is that it's not so easy on Debian. With Fedora all I had to
do is select the arch type and that's all.
--
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador
From: | Rodrigo Gonzalez <rjgonzale(at)estrads(dot)com(dot)ar> |
---|---|
To: | Martín Marqués <martin(dot)marques(at)gmail(dot)com> |
Cc: | John R Pierce <pierce(at)hogranch(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: 9.1 replication on different arch |
Date: | 2011-11-03 12:18:46 |
Message-ID: | 4EB286A6.8080902@estrads.com.ar |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
El 02/11/11 22:40, Martín Marqués escribió:
> 2011/11/2 John R Pierce<pierce(at)hogranch(dot)com>:
>> On 11/02/11 11:21 AM, Martín Marqués wrote:
>>> Don't worry, they are both x86 arch, so I'll just install 32bit
>>> postgresql on the 64 bit server. That should make it work, right?
>> yes, that should work fine.
> Sad thing is that it's not so easy on Debian. With Fedora all I had to
> do is select the arch type and that's all.
>
I am not completely sure about this....but you should be able to use
dpkg --force-architecture to install it
From: | Martín Marqués <martin(dot)marques(at)gmail(dot)com> |
---|---|
To: | Rodrigo Gonzalez <rjgonzale(at)estrads(dot)com(dot)ar> |
Cc: | John R Pierce <pierce(at)hogranch(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: 9.1 replication on different arch |
Date: | 2011-11-03 13:36:56 |
Message-ID: | CABeG9LvQ+4ZtnDyYQ4XQ-QPnxzHVh6U4VGisf_8oLjA5m11xmA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
El día 3 de noviembre de 2011 09:18, Rodrigo Gonzalez
<rjgonzale(at)estrads(dot)com(dot)ar> escribió:
> El 02/11/11 22:40, Martín Marqués escribió:
>>
>> 2011/11/2 John R Pierce<pierce(at)hogranch(dot)com>:
>>>
>>> On 11/02/11 11:21 AM, Martín Marqués wrote:
>>>>
>>>> Don't worry, they are both x86 arch, so I'll just install 32bit
>>>> postgresql on the 64 bit server. That should make it work, right?
>>>
>>> yes, that should work fine.
>>
>> Sad thing is that it's not so easy on Debian. With Fedora all I had to
>> do is select the arch type and that's all.
>>
> I am not completely sure about this....but you should be able to use dpkg
> --force-architecture to install it
Yes, but I would have to download the postgresql-9.1 for i386 package
and all the dependencies.
With Fedora, all I do is:
# yum install portgresql-server.i386
--
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador
From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Martín Marqués <martin(dot)marques(at)gmail(dot)com> |
Cc: | John R Pierce <pierce(at)hogranch(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: 9.1 replication on different arch |
Date: | 2011-11-03 15:52:34 |
Message-ID: | 1320335554.25550.0.camel@vanquo.pezone.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
On ons, 2011-11-02 at 22:40 -0300, Martín Marqués wrote:
> 2011/11/2 John R Pierce <pierce(at)hogranch(dot)com>:
> > On 11/02/11 11:21 AM, Martín Marqués wrote:
> >>
> >> Don't worry, they are both x86 arch, so I'll just install 32bit
> >> postgresql on the 64 bit server. That should make it work, right?
> >
> > yes, that should work fine.
>
> Sad thing is that it's not so easy on Debian. With Fedora all I had to
> do is select the arch type and that's all.
Put it in a chroot.
From: | Hannes Erven <h(dot)e(at)gmx(dot)at> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: 9.1 replication on different arch |
Date: | 2011-11-04 12:26:53 |
Message-ID: | 4EB3DA0D.8030300@gmx.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
Am 2011-11-03 02:40, schrieb Martín Marqués:
>
> Sad thing is that it's not so easy on Debian. With Fedora all I had to
> do is select the arch type and that's all.
Have a look at "dpkg --force-architecture" .
-hannes
From: | Martín Marqués <martin(dot)marques(at)gmail(dot)com> |
---|---|
To: | Hannes Erven <h(dot)e(at)gmx(dot)at> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: 9.1 replication on different arch |
Date: | 2011-11-04 15:24:27 |
Message-ID: | CABeG9LuS-SCVFEU=jB14C0WmgiWYSybRAJeNKjRVirWiDxxF4w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
2011/11/4 Hannes Erven <h(dot)e(at)gmx(dot)at>:
> Am 2011-11-03 02:40, schrieb Martín Marqués:
>>
>> Sad thing is that it's not so easy on Debian. With Fedora all I had to
>> do is select the arch type and that's all.
>
> Have a look at "dpkg --force-architecture" .
I'm having a lot of trouble with this. The server has an application
written in perl, which connects to the master PG server.
The thing is that perl needs libdbd-pg-perl to connect, which needs
libpq5, all this in amd64, but the i386 of postgresql-9.1 needs an
i386 version of libpq5 (which debian doesn't distinguish between
packages of different archs), and I can't install both versions.
What a mess!
--
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador
From: | Hannes Erven <h(dot)e(at)gmx(dot)at> |
---|---|
To: | Martín Marqués <martin(dot)marques(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: 9.1 replication on different arch |
Date: | 2011-11-04 15:46:15 |
Message-ID: | 4EB408C7.4090002@gmx.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
2011-11-04 16:24, Martín Marqués:
>> Have a look at "dpkg --force-architecture" .
>
> The thing is that perl needs libdbd-pg-perl to connect, which needs
> libpq5, all this in amd64, but the i386 of postgresql-9.1 needs an
> i386 version of libpq5
Oh, I see, that's a mess. Probably there really isn't a way to solve
this... maybe you could do a parallel install of a complete 32bit Perl?
Or run your Perl app on a different machine?
In my case, I forced a 32bit libpq5 onto the system, which is required
for the postgresql-client to work, which in turn is used by the init
scripts to detect successful starting. But I don't need DBD and thus do
not have other depencies on libpq...
-hanney
From: | Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> |
---|---|
To: | Hannes Erven <h(dot)e(at)gmx(dot)at> |
Cc: | Martín Marqués <martin(dot)marques(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: 9.1 replication on different arch |
Date: | 2011-11-04 16:15:04 |
Message-ID: | CAOR=d=0dJSMor+76q8oUa7+U393TU0sBjM5DO9i7t6Z=p9J_0A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
2011/11/4 Hannes Erven <h(dot)e(at)gmx(dot)at>:
> 2011-11-04 16:24, Martín Marqués:
>>> Have a look at "dpkg --force-architecture" .
>>
>> The thing is that perl needs libdbd-pg-perl to connect, which needs
>> libpq5, all this in amd64, but the i386 of postgresql-9.1 needs an
>> i386 version of libpq5
>
> Oh, I see, that's a mess. Probably there really isn't a way to solve
> this... maybe you could do a parallel install of a complete 32bit Perl?
> Or run your Perl app on a different machine?
>
> In my case, I forced a 32bit libpq5 onto the system, which is required
> for the postgresql-client to work, which in turn is used by the init
> scripts to detect successful starting. But I don't need DBD and thus do
> not have other depencies on libpq...
>
I'd install postgresql in a 32 bit VM then.
From: | Martín Marqués <martin(dot)marques(at)gmail(dot)com> |
---|---|
To: | Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> |
Cc: | Hannes Erven <h(dot)e(at)gmx(dot)at>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: 9.1 replication on different arch |
Date: | 2011-11-04 18:31:36 |
Message-ID: | CABeG9Lu5VBGrdNxwFBBk=M3syMOu1myOgztdFNWpS2-opR17yw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
El día 4 de noviembre de 2011 13:15, Scott Marlowe
<scott(dot)marlowe(at)gmail(dot)com> escribió:
>
> I'd install postgresql in a 32 bit VM then.
>
We're looking into it. Look's like the only option available for now,
at least for using WAL replication.
--
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador