X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 14E6CD1B507 for ; Tue, 16 Sep 2003 13:21:40 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 05037-03 for ; Tue, 16 Sep 2003 10:21:11 -0300 (ADT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id 0379DD1B50F for ; Tue, 16 Sep 2003 10:21:07 -0300 (ADT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.9/8.12.9) with ESMTP id h8GDJkMc008819; Tue, 16 Sep 2003 07:19:47 -0600 (MDT) Date: Tue, 16 Sep 2003 07:16:22 -0600 (MDT) From: "scott.marlowe" To: =?ISO-8859-1?Q?Fr=E9d=E9ric?= Burlet Cc: Subject: Re: pg_ctl reload seems to not work In-Reply-To: <1063697903.19896.17.camel@eddie.dev.kiala.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-IHS-MailScanner: Found to be clean X-IHS-MailScanner-SpamCheck: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/269 X-Sequence-Number: 10357 Read the administrator docs again, and look for the line: This option can only be set at server start. At the end of a lot of the entries. This is one of them. I.e. reload won't do, only restart. On 16 Sep 2003, Frédéric Burlet wrote: > > Hi, > > When I'm using pg_ctl to reload the config of postgres and nothing > happens. I mean that the new configuration seems to not be reloaded > (even if the logs say that a SIGHUP has been sent to postmaster). > > The command line I'm using is the following: > su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl reload -D $PGDATA -s" > > ($PGDATA is well defined before the call) > > The conf file I modified is postgresql.conf which is located in > /var/lib/pgsql/data and I changed the value of tcpip_socket from true to > false (setting this value from false to true has the same effect). > > The postgresql version I'm running is 7.3.2 > > Here below you will find an extract of what i have done. > > Thanx for your help. > > Fred. > > > > > Before perfoming the following command line, I set tcpip_socket to > false. > > # su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl reload -D $PGDATA -s" > > In the log, only this line appears: > LOG: Received SIGHUP, reloading configuration files > > # psql -h localhost kp kp > Welcome to psql 7.3.2, the PostgreSQL interactive terminal. > > > Duh!? if I set tcpip_socket to false, normally I should not be able to > connect to the db anymore by using -h option! > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org >