Received: from ias.digitro.com.br ([200.247.100.134]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3JL97346118 for ; Thu, 19 Apr 2001 17:09:08 -0400 (EDT) (envelope-from vilson.farias@digitro.com.br) Received: from serverdgt.daf.digitro.com.br (IDENT:root@serverdgt [192.2.2.10]) by ias.digitro.com.br (8.9.3/8.9.3) with ESMTP id SAA02705; Thu, 19 Apr 2001 18:07:41 -0300 Received: from dgtac.dti.digitro.com.br (dgtac.dti.digitro.com.br [192.168.160.152]) by serverdgt.daf.digitro.com.br (8.9.3/8.8.7) with SMTP id SAA02556; Thu, 19 Apr 2001 18:07:15 -0300 Message-ID: <000d01c0c914$f437cb40$98a0a8c0@dti.digitro.com.br> From: "Vilson farias" To: , "David Lizano" References: <4.3.2.7.0.20010418231401.00bfbc10@mail.izanet.com> <4.3.2.7.0.20010419222230.00c5caa0@mail.izanet.com> Subject: Re: Bugs in PostgreSQL v7.1 rpms for RedHat Date: Thu, 19 Apr 2001 18:08:57 -0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Archive-Number: 200104/76 X-Sequence-Number: 1213 [root@dgtao data]# /etc/rc.d/init.d/postgresql stop Stopping postgresql service: pg_ctl: cannot find /var/lib/pgsql/data/postmaster.pid Is postmaster running? [root@dgtao data]# Here too on my RedHat 6.2, but happens because I changed my postgres data dir to /home/postgres/data and there were a /var/lib/pgsql/base dir. Once I fixed the stop function, everything is fine : if [ -f /var/lib/pgsql/PG_VERSION ] && [ -d /var/lib/pgsql/base/template1 ] then export PGDATA=/home/postgres // I changed this else export PGDATA=/home/postgres/data // and this line fi ----- Original Message ----- From: David Lizano To: Sent: Quinta-feira, 19 de Abril de 2001 17:28 Subject: Re: [ADMIN] Bugs in PostgreSQL v7.1 rpms for RedHat : Ok, : : I have installed version 7.0.3 and 7.1 from RPM in Red Hat 6.2 (both in : the same system), and I don't have had any trouble with the first one, but : all this with the second one. : : : >David Lizano wrote: : > > I have installed PostgreSQL v7.1 in RedHat from RPM's and I have find some : > > bugs: : > : > > Stopping the service: : > > =============== : > > When '/etc/rc.d/init.d/postgresql stop' try to stop 'postmaster' can't find : > > the 'postmaster.pid' file, and don't stop the postmaster daemon. : > : > > Y think it try to get in from $PGDATA/postmaster.pid , and it is locate in : > > '/var/run/postmaster.pid', so it don't works. : > : >Works here, for some reason. But I'll check it. I run these very RPM's : >on RH 6.2, 7.0, _and_ 7.1 and have not found this problem. But, I _will_ : >double check, and will issue a patch that still uses pg_ctl accordingly. : > : > > In the stop zone add: : > > killall -TERM postmaster : > : >I would _not_ do this. Use pg_ctl, as it is designed for the job. If a : >parameter needs to be changed, or a symlink made, then that's fine. But : >there are problems using killall for this purpose. : > : > > logs : > > === : > > The logs goes to /dev/null. : > : >Intentionally. : > : > > change "pg_ctl > /dev/null" : > > : > > by : > > "pg_ctl > var/log/postgresql" : > : >If you want rollable logging, enable syslog and friends in : >postgresql.conf, add the right line in syslog.conf, and restart : >postmaster. A redirected log such as the above will require a postmaster : >shutdown in order to roll. But, if you want to do that, it does work. : > : > > Access 'postmaster' through TCP/IP (it is not formerly a bug) : > > ============================================ : > > By default yo can't acces through TCP/IP, add this: : > > -o '-i' : > > then: : > > : > > pg_ctl -o '-i' : > : >Use the postgresql.conf file instead. This is intentional -- call it a : >bug if you wish, but it is an intentional change, and it is documented : >as such in README.rpm-dist, in the section entitled 'Grand Unified : >Configuration File', beginning on line 296. I am shipping the default : >postgresql.conf.sample, and am not patching it in any way shape or form, : >so that the main documentation will at least be correct here. Maybe I : >should have made the announcement state the change a little more : >clearly, though: but I figured people would read the documentation I : >took time to write. : > : > > Starting "PostgreSQL" when the server does. : > > ================================ : > > The installation script don't do this, you must do it if you wants that : > > 'postmaster' starts when the server does. : > : > > ln -s /etc/rc.d/init.d/postgresql /etc/rc.d/rc3.d/S50postgresql : > : > > ln -s /etc/rc.d/init.d/postgresql /etc/rc.d/rc6.d/K25postgresql : > : >Use /sbin/chkconfig --add postgresql--it's easier. The right information : >is set in the initscript for chkconfig usage. This used to be : >automatically done as part of the %post installation scriptlet -- I : >figured it's best to let the admin handle this, rather than make it : >automatic. It _is_ documented in README.rpm-dist, starting at line : >number 276. : > : >While README.rpm-dist might be a little hard to find on some systems, : >use 'rpm -ql postgresql | grep README\.rpm-dist' to find it, as it is : >part of the main RPM. : > : >Thanks much for taking the time to report these things. : >-- : >Lamar Owen : >WGCR Internet Radio : >1 Peter 4:11 : > : >---------------------------(end of broadcast)--------------------------- : >TIP 3: if posting/reading through Usenet, please send an appropriate : >subscribe-nomail command to majordomo@postgresql.org so that your : >message can get through to the mailing list cleanly : : : ---------------------------(end of broadcast)--------------------------- : TIP 5: Have you checked our extensive FAQ? : : http://www.postgresql.org/users-lounge/docs/faq.html :