|
From: Michael V. <mic...@ar...> - 2012-06-08 11:19:38
|
How do you undo an initdb? In the case where I want to redefine the initdb differently. Also, I did the gmake uninstall, but it didn't remove any binary installed files. Also, does postgres-xc work well as a High Availability solution, i.e., automatic failover? I come from an oracle RAC world, and I am playing with postgres-xc 1.0.0 on 2 centos 6, 64 bit boxes. Oracle has failover embedded in its listener configuration and in its jdbc driver. For instance, the oracle jdbc driver for our jboss server is something like this: <connection-url>jdbc:oracle:thin:@(description=(address_list=(load_balance=on)(failover=off)(address=(protocol=tcp)(host=odb0-vip.arin.net)(port=1521))(address=(protocol=tcp)(host=odb1-vip.arin.net)(port=1521)))(connect_data=(service_name=pjpn.arin.net)(failover_mode=(type=select)(method=basic))))</connection-url> Note that 2 oracle nodes are specified right within the oracle jdbc driver. For normal PostgreSQL, the driver would look something like this: <connection-url>jdbc:postgresql://dbproto1.arin.net:5432/pjpn</connection-url> So, I'm wondering if there is already a way to specify more than one cordinator in the jdbc connection string for connecting to postgres-xc? If not, then I reckon its up to me to implement a vip switched node that would automatically point to another cordinator if the first vip went down. Comments, suggestions? |