Unix Technical Forum

replication between linxu postgresql and Windows postgresql

This is a discussion on replication between linxu postgresql and Windows postgresql within the pgsql Admins forums, part of the PostgreSQL category; --> Hi all, I am new to postgresql and have been called upon to set up a database to be ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 08:42 AM
Mary Anderson
 
Posts: n/a
Default replication between linxu postgresql and Windows postgresql

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 08:42 AM
Shoaib Mir
 
Posts: n/a
Default Re: replication between linxu postgresql and Windows postgresql

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
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 08:42 AM
Chris Browne
 
Posts: n/a
Default Re: replication between linxu postgresql and Windows postgresql

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/>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-10-2008, 08:42 AM
Andrew Sullivan
 
Posts: n/a
Default Re: replication between linxu postgresql and Windows postgresql

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

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-10-2008, 08:42 AM
Shoaib Mir
 
Posts: n/a
Default Re: replication between linxu postgresql and Windows postgresql

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
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-10-2008, 08:42 AM
Adam Radlowski
 
Posts: n/a
Default Re: replication between linxu postgresql and Windows postgresql

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
>
>



---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:49 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com