You can subscribe to this list here.
| 2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
(6) |
Sep
|
Oct
(19) |
Nov
(1) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2011 |
Jan
(12) |
Feb
(1) |
Mar
(4) |
Apr
(4) |
May
(32) |
Jun
(12) |
Jul
(11) |
Aug
(1) |
Sep
(6) |
Oct
(3) |
Nov
|
Dec
(10) |
| 2012 |
Jan
(11) |
Feb
(1) |
Mar
(3) |
Apr
(25) |
May
(53) |
Jun
(38) |
Jul
(103) |
Aug
(54) |
Sep
(31) |
Oct
(66) |
Nov
(77) |
Dec
(20) |
| 2013 |
Jan
(91) |
Feb
(86) |
Mar
(103) |
Apr
(107) |
May
(25) |
Jun
(37) |
Jul
(17) |
Aug
(59) |
Sep
(38) |
Oct
(78) |
Nov
(29) |
Dec
(15) |
| 2014 |
Jan
(23) |
Feb
(82) |
Mar
(118) |
Apr
(101) |
May
(103) |
Jun
(45) |
Jul
(6) |
Aug
(10) |
Sep
|
Oct
(32) |
Nov
|
Dec
(9) |
| 2015 |
Jan
(3) |
Feb
(5) |
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
(9) |
Aug
(4) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
| 2016 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(4) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
1
|
2
|
3
|
4
(1) |
5
(2) |
6
|
7
|
|
8
|
9
|
10
|
11
|
12
(6) |
13
(2) |
14
(1) |
|
15
|
16
(2) |
17
|
18
|
19
(4) |
20
(2) |
21
(1) |
|
22
|
23
(1) |
24
(1) |
25
(1) |
26
|
27
|
28
|
|
29
|
30
(1) |
|
|
|
|
|
|
From: Phil S. <phi...@ne...> - 2012-04-13 19:13:35
|
Hello all ... I am in the process of setting up and running postgres-XC 0.9.7 on Ubuntu 10.04 LTS 64bit in a development/test sandbox. I used the install manual, http://iweb.dl.sourceforge.net/project/postgres-xc/Version_0.9.7/PG-XC_InstallManual_v0_9_7.pdf <http://iweb.dl.sourceforge.net/project/postgres-xc/Version_0.9.7/PG-XC_InstallManual_v0_9_7.pdf>, to set up one GTM VM host and two coordinator/datanode VM hosts as this is the recommended environment per the manual. After I initialized the node information in each coordinator using the Create Node SQL, I am getting the following error trying to create a database on the coord1 node: LOG: failed to connect to data node WARNING: can not connect to datanode 0 LOG: failed to acquire connections STATEMENT: create database TEST; ERROR: Failed to get pooled connections STATEMENT: create database TEST; Was wondering if someone could suggest what is causing my connection issues. I have searched through all the forums on sourceforge as well as the net and haven't been able to find anything useful yet. Thanks in advance, Phil. ------------------------------ Here are the details: GTM host install: ---------------- as root: - installed all necessary Ubuntu packages required for postgres-xc install - created the postgres-xc user - created a postgres-xc build directory - downloaded pgxc_v0.9.7.tar.gz from sourgeforge.net <http://sourgeforge.net> and untarred it in build dir above - config'ed postgres-xc build pointing to custom db home directory with NLS enabled and perl - ran 'make' and 'make install' without issues - created custom gtm data and log directories as postgres-xc: - copied gtm.conf.sample to gtm data dir - edited the file as per the install manual: nodename = 'one' listen_addresses = '*' port = 6666 log_file = '/home/postgres/gtm/log/gtm.log' - started the GTM without issue using the following cmd: gtm_ctl start -S gtm -D /home/postgres/gtm/data -l /home/postgres/gtm/log/gtm.log Coord/Datanode host install: --------------------------- as root: - installed all necessary Ubuntu packages required for postgres-xc install - created the postgres-xc user - created a postgres-xc build directory - downloaded pgxc_v0.9.7.tar.gz from sourgeforge.net <http://sourgeforge.net> and untarred it in build dir above - config'ed postgres-xc build pointing to custom db home directory with NLS enabled and perl - ran 'make' and 'make install' without issues - created custom coordinator and datanode data and log directories as postgres-xc: - ran initdb for cooordinator on each of the two db hosts - data directory was customized (ie not default) - nodename was coord1/coord2 respective of db_host_1/db_host_2 - ran initdb for datanode on each of the two db hosts - data directory was customized (ie not default) - nodename was data1/data2 respective of db_host_1/db_host_2 - edited coordinators postgres.conf and pg_hba.conf respective of the db host - postgresql.conf - pooler_port=6667 (just commented it out) - gmt_host=<IP address of GTM host> (just commented it out) - gmt_post=6666 (just commented it out) - pgxc_node_name=coord1 (didn't have to change this) ---> it was set to coord2 on the 2nd db host - port=5432 (just commented it out) - pg_hba.conf - added the following line to the end of the file: host all all <IP_subnet>.0/32 trust ---> all hosts are on the same IP_subnet - edited datanodes postgres.conf and pg_hba.conf respective of the db host - postgresql.conf - gmt_host=<IP address of GTM host> (just commented it out) - gmt_post=6666 (just commented it out) - pgxc_node_name=data1 (didn't have to change this) ---> it was set to data2 on the 2nd db host - port=15432 (edited it to change to 15432) - pg_hba.conf - added the following line to the end of the file: host all all <IP_subnet>.0/32 trust ---> all hosts are on the same IP_subnet - started the coordinator on each node without issue using the folowing command: pg_ctl start -D /home/postgres/coordinator/data -l /home/postgresql/coordinator/log/coordinator1.log -Z coordinator ---> log is coordinator2 on 2nd db host - started the datanode on each node without issue using the folowing command: pg_ctl start -D /home/postgres/datanode/data -l /home/postgresql/coordinator/log/datanode1.log -o "-p 15432" -Z datanode ---> log is datanode2 on 2nd db host Node inititialization on each coordinator: ----------------------------------------- logged onto each coordinator using psql and ran the following cmds: psql -U postgres -d postgres CREATE NODE coord1 WITH (TYPE = 'coordinator', PORT = 5432, HOST = '<IP_of_coord1>'); CREATE NODE coord2 WITH (TYPE = 'coordinator', PORT = 5432, HOST = '<IP_of_coord2>'); CREATE NODE data1 WITH (TYPE = 'datanode', PORT = 15432, HOST = '<IP_of_data1>'); CREATE NODE data2 WITH (TYPE = 'datanode', PORT = 15432, HOST = '<IP_of_data2>'); SELECT pgxc_pool_reload(); |
|
From: Koichi S. <koi...@gm...> - 2012-04-13 09:09:38
|
I did the same thing and had the following: ============================ [koichi@willey:recovery]$ pwd /home/common/PGXC/pgxc_head/postgres-xc/src/gtm/recovery [koichi@willey:recovery]$ touch register_gtm.c [koichi@willey:recovery]$ git branch REL0_9_7_STABLE * master [koichi@willey:recovery]$ make gcc -DPGXC -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -g -fpic -I../../../src/include -D_GNU_SOURCE -DSO_MAJOR_VERSION=1 -c -o register_gtm.o register_gtm.c gcc -DPGXC -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -g -fpic -shared -Wl,-soname,libgtmrecovery.so.1 -o libgtmrecovery.so.1.0 register_common.o register_gtm.o replication.o standby_utils.o -L../../../src/port -lpthread -Wl,--as-needed -Wl,-rpath,'/home/koichi/pgxc/lib',--enable-new-dtags rm -f libgtmrecovery.so.1 ln -s libgtmrecovery.so.1.0 libgtmrecovery.so.1 rm -f libgtmrecovery.so ln -s libgtmrecovery.so.1.0 libgtmrecovery.so ar crs libgtmrecovery.a register_common.o register_gtm.o replication.o standby_utils.o ranlib libgtmrecovery.a [koichi@willey:recovery]$ ============================ I did this using ubuntu 10.4 64bit for X64_64 (AMD64) architecture. Version of make is GNU Make 3.81. All the source code was taken from original GIT repository at sourceforge. Of course, "make" at this directory does not compile all the GTM, just local sources to be linked with others. What environment are you working at? Regards; ---------- Koichi Suzuki 2012年4月13日3:53 Tejeswar Mupparti <tej...@ho...>: > Thanks Koichi and Michael, may be I'm doing something incorrect > > > [tmuppart@centos0002 main]$ pwd > > /home/tmuppart/Install/pgxc/src/gtm/main > > [tmuppart@centos0002 main]$ touch ../recovery/register_gtm.c > > [tmuppart@centos0002 main]$ make > > make: Nothing to be done for `all'. > > I'm expecting here gtm binary to be built. > > > [tmuppart@centos0002 gtm]$ pwd > /home/tmuppart/Install/pgxc/src/gtm > > [tmuppart@centos0002 gtm]$ touch recovery/register_gtm.cpp > [tmuppart@centos0002 gtm]$ make > > ar crs libgtmrecovery.a register_common.o register_gtm.o replication.o > standby_utils.o > ranlib libgtmrecovery.a > > I see libgtmrecovery built, but not gtm binary, So I added a dependency rule > in > > /home/tmuppart/Install/pgxc/src/gtm/main/Makefile > > something like this > > gtm:$(OBJS) $(OTHERS) > > it started building the gtm binary when ever I modify files > in /home/tmuppart/Install/pgxc/src/gtm/recovery directory > > Regards > Teja > > >> Date: Thu, 12 Apr 2012 13:45:09 +0900 >> From: ko...@in... >> To: mic...@gm... >> CC: tej...@ho...; pos...@li... >> Subject: Re: [Postgres-xc-general] Minor GTM compile question > >> >> If you mena register_gtm.c, not register_gtm.cpp, then you don't need to >> modify Makefile unless you're using another module. >> --- >> Koichi Suzuki >> >> On Thu, 12 Apr 2012 12:43:24 +0900 >> Michael Paquier <mic...@gm...> wrote: >> >> > On Thu, Apr 12, 2012 at 9:12 AM, Tejeswar Mupparti >> > <tej...@ho...>wrote: >> > >> > > Hi, >> > > >> > > In my recent experiments with GTM, I made some changes to the file >> > > >> > > "gtm/recovery/register_gtm.cpp" >> > > >> > Neither PostgreSQL nor Postgres-XC have c++ files. I am sure you are >> > talking about register_gtm.c. >> > >> > >> > >> > > >> > > and called >> > > >> > > gtm> make >> > > >> > Is it a make done from the folder src/gtm, or the folder src/gtm/main. >> > In src/gtm/main, recovery library is referenced already so it should be >> > enough with the current structure, or I am missing smth. >> > >> > >> > > to build the "gtm binary" with my latest changes, but later realized >> > > it's >> > > not picking up my chnages to any of the files made under >> > > "gtm/recovery" >> > > directory. It looks like the depenedency >> > > link in Makefile is missing >> > > >> > > > gtm:$(OBJS) <---- Original >> > > --- >> > > < gtm:$(OBJS) $(OTHERS) <-- works >> > > >> > > >> > > p.s. I'm not a Makefile expert :), but just hacked it this way, please >> > > let >> > > me know if I'm not setting up my codeline incorrect. >> > > >> > I am not sure what you are trying to achieve, if you can provide a patch >> > though... >> > -- >> > Michael Paquier >> > http://michael.otacoo.com > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 > _______________________________________________ > Postgres-xc-general mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > |