<div dir="ltr"><div>Hello,</div><div><br></div><div>I'm facing issue executing this step at <a href="https://www.pgpool.net/docs/40/en/html/install-pgpool-recovery.html">https://www.pgpool.net/docs/40/en/html/install-pgpool-recovery.html</a></div><div><br></div><div>I have 3 servers</div><div>pgpool1 - Only pgpool runs here<br></div><div>postgres1 - This is master<br></div><div>postgres2 - This is slave<br></div><div><br></div><div>I have finished compilation of pgpool.</div><div><br></div><div>On pgpool1, I have listed below.<br></div><div><br></div><div><i>ls -lrt /usr/lib/postgresql/9.6/lib/</i></div><div><i>-rw-r--r-- 1 root root  30632 May 13 13:09 utf8_and_win.so<br>-rw-r--r-- 1 root root 284512 May 13 13:09 utf8_and_uhc.so<br>-rw-r--r-- 1 root root 128864 May 13 13:09 utf8_and_sjis.so<br>-rw-r--r-- 1 root root 190304 May 13 13:09 utf8_and_sjis2004.so<br>-rw-r--r-- 1 root root  22368 May 13 13:09 tsearch2.so<br>-rw-r--r-- 1 root root 173992 May 13 13:09 plpgsql.so<br>-rw-r--r-- 1 root root  18272 May 13 13:09 libpqwalreceiver.so<br>-rw-r--r-- 1 root root  10080 May 13 13:09 euc2004_sjis2004.so<br>-rw-r--r-- 1 root root 329640 May 13 13:09 dict_snowball.so<br>-rw-r--r-- 1 root root 280416 May 13 13:09 utf8_and_johab.so<br>-rw-r--r-- 1 root root  34728 May 13 13:09 utf8_and_iso8859.so<br>-rw-r--r-- 1 root root   5984 May 13 13:09 utf8_and_iso8859_1.so<br>-rw-r--r-- 1 root root 354144 May 13 13:09 utf8_and_gbk.so<br>-rw-r--r-- 1 root root 501600 May 13 13:09 utf8_and_gb18030.so<br>-rw-r--r-- 1 root root 337760 May 13 13:09 utf8_and_euc_tw.so<br>-rw-r--r-- 1 root root 137056 May 13 13:09 utf8_and_euc_kr.so<br>-rw-r--r-- 1 root root 218976 May 13 13:09 utf8_and_euc_jp.so<br>-rw-r--r-- 1 root root 124768 May 13 13:09 utf8_and_euc_cn.so<br>-rw-r--r-- 1 root root 190304 May 13 13:09 utf8_and_euc2004.so<br>-rw-r--r-- 1 root root  10080 May 13 13:09 utf8_and_cyrillic.so<br>-rw-r--r-- 1 root root 227168 May 13 13:09 utf8_and_big5.so<br>-rw-r--r-- 1 root root   5984 May 13 13:09 utf8_and_ascii.so<br>-rw-r--r-- 1 root root  10080 May 13 13:09 latin_and_mic.so<br>-rw-r--r-- 1 root root  10080 May 13 13:09 latin2_and_win1250.so<br>-rw-r--r-- 1 root root  14176 May 13 13:09 euc_tw_and_big5.so<br>-rw-r--r-- 1 root root   5984 May 13 13:09 euc_kr_and_mic.so<br>-rw-r--r-- 1 root root  14176 May 13 13:09 euc_jp_and_sjis.so<br>-rw-r--r-- 1 root root   5984 May 13 13:09 euc_cn_and_mic.so<br>-rw-r--r-- 1 root root  14176 May 13 13:09 cyrillic_and_mic.so<br>-rw-r--r-- 1 root root   5984 May 13 13:09 ascii_and_mic.so<br>-rw-r--r-- 1 root root  74870 May 13 13:09 libpgport.a<br>-rw-r--r-- 1 root root 141320 May 13 13:09 libpgfeutils.a<br>-rw-r--r-- 1 root root  79926 May 13 13:09 libpgcommon.a<br>-rw-r--r-- 1 root root   9944 May 25 12:04 pgpool-regclass.so<br>-rw-r--r-- 1 root root  18136 May 25 12:04 pgpool_adm.so<br>drwxr-xr-x 4 root root   4096 Jul  3 12:29 pgxs<br>-rwxr-xr-x 1 root root  46832 Jul  3 13:11 pgpool-recovery.so</i></div><div><br></div><div>ls -lrt pgpool-II-4.0.9/src/sql/pgpool-recovery</div><div><i>-rw-rw-r-- 1 ubuntu ubuntu   136 May 19 10:00 uninstall_pgpool-recovery.sql<br>-rw-rw-r-- 1 ubuntu ubuntu  1002 May 19 10:00 pgpool_recovery--1.1.sql<br>-rw-rw-r-- 1 ubuntu ubuntu   533 May 19 10:00 <a href="http://pgpool-recovery.sql.in">pgpool-recovery.sql.in</a><br>-rw-rw-r-- 1 ubuntu ubuntu   178 May 19 10:02 pgpool_recovery.control<br>-rw-rw-r-- 1 ubuntu ubuntu  9886 May 19 10:02 pgpool-recovery.c<br>-rw-rw-r-- 1 ubuntu ubuntu  1246 May 19 10:02 pgpool_recovery--1.2.sql<br>-rw-rw-r-- 1 ubuntu ubuntu   430 May 19 10:02 pgpool_recovery--1.1--1.2.sql<br>-rw-rw-r-- 1 ubuntu ubuntu   735 May 19 10:02 Makefile<br>-rw-r--r-- 1 root   root   68240 Jul  3 13:09 pgpool-recovery.o<br>-rwxr-xr-x 1 root   root   46832 Jul  3 13:09 pgpool-recovery.so<br>-rw-r--r-- 1 root   root     640 Jul  3 14:18 pgpool-recovery.sql</i></div><div><br></div><div>Now, I executed "<i>psql -U postgres -h pg1 -f pgpool-recovery.sql template1</i>" and got below output</div><div><br></div><div><i>psql:pgpool-recovery.sql:4: ERROR:  could not access file "$libdir/pgpool-recovery": No such file or directory<br>psql:pgpool-recovery.sql:9: ERROR:  could not access file "$libdir/pgpool-recovery": No such file or directory<br>psql:pgpool-recovery.sql:14: ERROR:  could not access file "$libdir/pgpool-recovery": No such file or directory<br>psql:pgpool-recovery.sql:19: ERROR:  could not access file "$libdir/pgpool-recovery": No such file or directory</i></div><div><br></div><div>I replaced $libdir with /usr/lib/postgresql/9.6/lib/pgpool-recovery</div><div><br></div><div>cat pgpool-recovery.sql</div><div><br></div><div><i>CREATE OR REPLACE FUNCTION pgpool_recovery(text, text, text, text)<br>RETURNS bool<br>AS '/usr/lib/postgresql/9.6/lib/pgpool-recovery', 'pgpool_recovery'<br>LANGUAGE C STRICT;<br><br>CREATE OR REPLACE FUNCTION pgpool_remote_start(text, text)<br>RETURNS bool<br>AS '/usr/lib/postgresql/9.6/lib/pgpool-recovery', 'pgpool_remote_start'<br>LANGUAGE C STRICT;<br><br>CREATE OR REPLACE FUNCTION pgpool_pgctl(text, text)<br>RETURNS bool<br>AS '/usr/lib/postgresql/9.6/lib/pgpool-recovery', 'pgpool_pgctl'<br>LANGUAGE C STRICT;<br><br>CREATE OR REPLACE FUNCTION pgpool_switch_xlog(text)<br>RETURNS text<br>AS '/usr/lib/postgresql/9.6/lib/pgpool-recovery', 'pgpool_switch_xlog'<br>LANGUAGE C STRICT;</i></div><div><br></div><div>Again, I executed "psql -U postgres -h pg1 -f pgpool-recovery.sql template1" and got below output</div><div><br></div><div><i>psql:pgpool-recovery.sql:4: ERROR:  could not access file "/usr/lib/postgresql/9.6/lib/pgpool-recovery": No such file or directory<br>psql:pgpool-recovery.sql:9: ERROR:  could not access file "/usr/lib/postgresql/9.6/lib/pgpool-recovery": No such file or directory<br>psql:pgpool-recovery.sql:14: ERROR:  could not access file "/usr/lib/postgresql/9.6/lib/pgpool-recovery": No such file or directory<br>psql:pgpool-recovery.sql:19: ERROR:  could not access file "/usr/lib/postgresql/9.6/lib/pgpool-recovery": No such file or directory</i></div><div><br></div><div>I'm following the official documentation and would like to know where I'm going wrong. <br></div><div>Also, it is not explained in the docs on why this step is needed.</div><div><br></div><div>Please suggest. TIA.<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 11, 2020 at 7:29 AM Bo Peng <<a href="mailto:pengbo@sraoss.co.jp">pengbo@sraoss.co.jp</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
On Tue, 9 Jun 2020 14:01:26 +0530<br>
Praveen Kumar K S <<a href="mailto:praveenssit@gmail.com" target="_blank">praveenssit@gmail.com</a>> wrote:<br>
<br>
> Hello,<br>
> <br>
> I have installed only below dependencies on Ubuntu Server 16.04 till now.<br>
> <br>
> buildDeps=" \<br>
> docbook \<br>
> docbook-dsssl \<br>
> docbook-xsl \<br>
> libxml2-utils \<br>
> openjade1.3 \<br>
> opensp \<br>
> xsltproc \<br>
> openjade \<br>
> postgresql-server-dev-9.6 \<br>
> postgresql-common \<br>
> libpq-dev \<br>
> build-essential \<br>
> make \<br>
> gcc \<br>
> curl \<br>
> tar"<br>
> <br>
> 1. I'm not sure what path to specify if I have to configure using<br>
> "./configure --with-pgsql=  "<br>
> 2. In 2.5, there is a step to set<br>
> <br>
> pgpool.pg_ctl = '/usr/local/pgsql/bin/pg_ctl' in postgresql.conf But<br>
> pg_ctl is not there in my postgres server<br>
<br>
Sorry, I am not familiar with Ubuntu.<br>
<br>
You can get the top directory where PostgreSQL's libraries are installed<br>
using pg_config.<br>
<br>
> <br>
> On Tue, Jun 9, 2020 at 12:09 PM Bo Peng <<a href="mailto:pengbo@sraoss.co.jp" target="_blank">pengbo@sraoss.co.jp</a>> wrote:<br>
> <br>
> > Hello,<br>
> ><br>
> > On Tue, 9 Jun 2020 11:02:34 +0530<br>
> > Praveen Kumar K S <<a href="mailto:praveenssit@gmail.com" target="_blank">praveenssit@gmail.com</a>> wrote:<br>
> ><br>
> > > Hello,<br>
> > ><br>
> > > May I know the equivalent package name for postgresql-libs and<br>
> > > postgresql-devel on Ubuntu 16.04 ? Without installing them, my<br>
> > compilation<br>
> > > got successful and I'm able to run pgpool. But I have issues connecting<br>
> > to<br>
> > > backend servers.<br>
> ><br>
> > I think the PostgreSQL library package may have been installed<br>
> > in your environment be default.<br>
> ><br>
> > > Also, it is described in the links below to execute scripts under<br>
> > template1<br>
> > > DB. Where should this be executed ? On all my 3 postgres servers ?<br>
> > ><br>
> > ><br>
> > <a href="https://www.pgpool.net/docs/pgpool-II-4.1.1/en/html/install-pgpool-recovery.html" rel="noreferrer" target="_blank">https://www.pgpool.net/docs/pgpool-II-4.1.1/en/html/install-pgpool-recovery.html</a><br>
> > ><br>
> > <a href="https://www.pgpool.net/docs/pgpool-II-4.1.1/en/html/install-pgpool-regclass.html" rel="noreferrer" target="_blank">https://www.pgpool.net/docs/pgpool-II-4.1.1/en/html/install-pgpool-regclass.html</a><br>
> > ><br>
> > <a href="https://www.pgpool.net/docs/pgpool-II-4.1.1/en/html/create-installlock-table.html" rel="noreferrer" target="_blank">https://www.pgpool.net/docs/pgpool-II-4.1.1/en/html/create-installlock-table.html</a><br>
> ><br>
> > Yes. You should execute on 3 PostgreSQL server<br>
> ><br>
> > As described in the links above, if you are using PostgreSQL 9.4 or later,<br>
> > and if you are not going to use the native replication mode,<br>
> > you can skip 2,6 and 2.7 section.<br>
> ><br>
> > [2.6. Installing pgpool-regclass]<br>
> > If you are using PostgreSQL 9.4 or later, you can skip this section.<br>
> ><br>
> > [2.7. Creating insert_lock table]<br>
> > If you are not going to use the native replication mode, you can skip this<br>
> > section.<br>
> ><br>
> ><br>
> > > On Tue, Jun 9, 2020 at 6:03 AM Bo Peng <<a href="mailto:pengbo@sraoss.co.jp" target="_blank">pengbo@sraoss.co.jp</a>> wrote:<br>
> > ><br>
> > > > hello,<br>
> > > ><br>
> > > > On Mon, 8 Jun 2020 16:04:33 +0530<br>
> > > > Praveen Kumar K S <<a href="mailto:praveenssit@gmail.com" target="_blank">praveenssit@gmail.com</a>> wrote:<br>
> > > ><br>
> > > > > Hello All,<br>
> > > > ><br>
> > > > > I'm trying to install pgpool on Ubuntu 16.04 by compiling from<br>
> > source and<br>
> > > > > done till<br>
> > <a href="https://www.pgpool.net/docs/latest/en/html/install-pgpool.html" rel="noreferrer" target="_blank">https://www.pgpool.net/docs/latest/en/html/install-pgpool.html</a><br>
> > > > ><br>
> > > > > Next steps at 2.6 2.7 2.8 are confusing. It says to execute scripts<br>
> > and<br>
> > > > set<br>
> > > > > some values. I would like to know where these steps should be<br>
> > performed.<br>
> > > > I<br>
> > > > > have 3 postgres servers with streaming enabled on a different set of<br>
> > VMs.<br>
> > > > > The one I'm trying to install pgpool is on a different VM. Am I<br>
> > missing<br>
> > > > > something?<br>
> > > ><br>
> > > > PostgreSQL libraries are required while compiling pgpool.<br>
> > > ><br>
> > > > You need to install postgresql-libs and postgresql-devel,<br>
> > > > and specify the path using "./configure --with-pgsql=  "<br>
> > > ><br>
> > > > > --<br>
> > > > ><br>
> > > > ><br>
> > > > > *Regards,*<br>
> > > > ><br>
> > > > ><br>
> > > > > *K S Praveen Kumar*<br>
> > > ><br>
> > > ><br>
> > > > --<br>
> > > > Bo Peng <<a href="mailto:pengbo@sraoss.co.jp" target="_blank">pengbo@sraoss.co.jp</a>><br>
> > > > SRA OSS, Inc. Japan<br>
> > > ><br>
> > ><br>
> > ><br>
> > > --<br>
> > ><br>
> > ><br>
> > > *Regards,*<br>
> > ><br>
> > ><br>
> > > *K S Praveen Kumar*<br>
> ><br>
> ><br>
> > --<br>
> > Bo Peng <<a href="mailto:pengbo@sraoss.co.jp" target="_blank">pengbo@sraoss.co.jp</a>><br>
> > SRA OSS, Inc. Japan<br>
> ><br>
> <br>
> <br>
> -- <br>
> <br>
> <br>
> *Regards,*<br>
> <br>
> <br>
> *K S Praveen KumarM: +91-9986855625 *<br>
<br>
<br>
-- <br>
Bo Peng <<a href="mailto:pengbo@sraoss.co.jp" target="_blank">pengbo@sraoss.co.jp</a>><br>
SRA OSS, Inc. Japan<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><font style="font-family:courier new,monospace" size="1"><b style="color:rgb(102,102,102)">Regards,<br><br></b></font><div style="color:rgb(102,102,102)"><font size="1"><b><font face="'comic sans ms', sans-serif"><font style="font-family:courier new,monospace" size="1">K S Praveen Kumar<br>M: +91-9986855625 </font><br></font></b></font></div></div>