Обсуждение: replication between linxu postgresql and Windows postgresql

Поиск
Список
Период
Сортировка

replication between linxu postgresql and Windows postgresql

От
Mary Anderson
Дата:
Hi all,
    I am new to postgresql and have been called upon to set up a
database to be used by two groups.  One group (mine) is strictly a UNIX
shop.  The other group (theirs) is strictly a Windows shop.  What is the
best way to go.
    First, does postgresql have replication and can i get it with the
open source database?
    Second, would replication work between a Linux postgresql and a
Windows postgresql?
     What if I run postgresql on VMWare in the Windows shop?  Will
replication work?

     What about dumping the Linux database and restoring it on the
Windows database.  Will that work?

     Opinions on any of this are welcome!

Mary Anderson

Re: replication between linxu postgresql and Windows postgresql

От
"Shoaib Mir"
Дата:
Slony can handle this all.

If you do not want to use Slony, you can write your own triggers using dblink module to get the data across.

--
Shoaib Mir
EnterpriseDB ( www.enterprisedb.com)

On 6/25/07, Mary Anderson <maryfran@demog.berkeley.edu> wrote:
Hi all,
    I am new to postgresql and have been called upon to set up a
database to be used by two groups.  One group (mine) is strictly a UNIX
shop.  The other group (theirs) is strictly a Windows shop.  What is the
best way to go.
    First, does postgresql have replication and can i get it with the
open source database?
    Second, would replication work between a Linux postgresql and a
Windows postgresql?
     What if I run postgresql on VMWare in the Windows shop?  Will
replication work?

     What about dumping the Linux database and restoring it on the
Windows database.  Will that work?

     Opinions on any of this are welcome!

Mary Anderson

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

                http://www.postgresql.org/about/donate

Re: replication between linxu postgresql and Windows postgresql

От
Chris Browne
Дата:
shoaibmir@gmail.com ("Shoaib Mir") writes:
> Slony can handle this all.

No it can't.  It will not work with versions of PostgreSQL earlier
than 7.3.3, because it requires namespace functionality that did not
stabilize until that point.
--
(reverse (concatenate 'string "moc.enworbbc" "@" "enworbbc"))
http://www3.sympatico.ca/cbbrowne/lsf.html
Rules of the  Evil Overlord #147.  "I will  classify my lieutenants in
three   categories:  untrusted,   trusted,  and   completely  trusted.
Promotion to the third category can only be awarded posthumously."
<http://www.eviloverlord.com/>

Re: replication between linxu postgresql and Windows postgresql

От
Andrew Sullivan
Дата:
On Mon, Jun 25, 2007 at 02:42:04PM -0400, Chris Browne wrote:
> No it can't.  It will not work with versions of PostgreSQL earlier
> than 7.3.3, because it requires namespace functionality that did not
> stabilize until that point.

But if you're running on <7.3.3, you really, really need to upgrade
anyway.  And you could upgrade to the latest 7.3 and get the Slony
functionality.

A

--
Andrew Sullivan  | ajs@crankycanuck.ca
The whole tendency of modern prose is away from concreteness.
        --George Orwell

Re: replication between linxu postgresql and Windows postgresql

От
"Shoaib Mir"
Дата:
I didnt meant for the version, what i meant was all on latest.

--
Shoaib Mir
EnterpriseDB (www.enterprisedb.com)

On 6/25/07, Chris Browne <cbbrowne@acm.org> wrote:
shoaibmir@gmail.com ("Shoaib Mir") writes:
> Slony can handle this all.

No it can't.  It will not work with versions of PostgreSQL earlier
than 7.3.3, because it requires namespace functionality that did not
stabilize until that point.
--
(reverse (concatenate 'string "moc.enworbbc" "@" "enworbbc"))
http://www3.sympatico.ca/cbbrowne/lsf.html
Rules of the  Evil Overlord #147.  "I will  classify my lieutenants in
three   categories:  untrusted,   trusted,  and   completely  trusted.
Promotion to the third category can only be awarded posthumously."
<http://www.eviloverlord.com/>

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

Re: replication between linxu postgresql and Windows postgresql

От
Adam Radlowski
Дата:
Mary Anderson wrote:
> Hi all,
>    I am new to postgresql and have been called upon to set up a
> database to be used by two groups.  One group (mine) is strictly a
> UNIX shop.  The other group (theirs) is strictly a Windows shop.  What
> is the best way to go.
>    First, does postgresql have replication and can i get it with the
> open source database?
Yes. There Is some replication systems for PostgreSQL, the most popular
is "Slony". You're from USA, so You don't have to worry about encodings
and collate problems, when the are different in Windows server and
UNIX/Linux. When You use specific encodings I think the best way is to
use UTF8 in both servers - Windows and UNIX/Linux (if it is possible).
If You want to make Your own specific replication, You can use dblink
module and some triggers. It sounds very complicate, but it is not.
Sometimes the applications are working in very specific way, so
classical replication is not very usable (not in PostgreSQL only).
>    Second, would replication work between a Linux postgresql and a
> Windows postgresql?
I think - It's no problem.
>     What if I run postgresql on VMWare in the Windows shop?  Will
> replication work?
Like above.
>
>     What about dumping the Linux database and restoring it on the
> Windows database.  Will that work?
Yes. When You are using different encodings in these databases, the best
way is to use dumps as SQL script restoring with psql program.
>
>     Opinions on any of this are welcome!
>
> Mary Anderson
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: You can help support the PostgreSQL project by donating at
>
>                http://www.postgresql.org/about/donate
>
>