Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TDmb0-0000tD-Iy for pgsql-admin@postgresql.org; Tue, 18 Sep 2012 01:27:26 +0000 Received: from mail-yw0-f46.google.com ([209.85.213.46]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TDmaw-0005hM-Fl for pgsql-admin@postgresql.org; Tue, 18 Sep 2012 01:27:24 +0000 Received: by yhmm54 with SMTP id m54so1686345yhm.19 for ; Mon, 17 Sep 2012 18:27:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-type:content-transfer-encoding:x-mailer :thread-index:content-language:x-gm-message-state; bh=uG0KYKXEtZ+f+nqLPIvZpoujn97xn1/pdjHtnIdkQ6c=; b=Y/vpcFvqnhhJOcQUuqNWytJAd3AspZzPeHcngvEwDDL6UtteL3eC4e0vtrV7LUIkvq tDLR8BpAWSV9HsuC7Dw+clU1A9LVYaeMHuAhyDbkDdirj3P6PlS5YNbkRgsTOS0gamVA ERPhKYVQjoK8UryMZVi7L54rQTaUPEhbzyFEN+QGKOHI5tBkOgcvb0aNXOdszZaUFNZ9 NWJ4nt+xuy3AR9bN2BR2CAdBKqB11PAEFgy5L7Elup149nkWbGO5/USdoJW2O/M0RuPP UeIkJFmtvmW0kcdwseYq/WxsWJcJJ6aNVySePA60tuQLGA6pq1I6KVZI/pObmV0KsXPX 50kw== Received: by 10.236.117.97 with SMTP id i61mr13859411yhh.73.1347931640477; Mon, 17 Sep 2012 18:27:20 -0700 (PDT) Received: from AnibalVAIO (host-1-86.b20.cvc.com.py. [186.2.211.86]) by mx.google.com with ESMTPS id l25sm16754604yhk.8.2012.09.17.18.27.17 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 17 Sep 2012 18:27:19 -0700 (PDT) From: "Anibal David Acosta" To: "'Craig Ringer'" , "'Vincent Dautremont'" Cc: References: <5056AA3F.7020407@ringerc.id.au> In-Reply-To: <5056AA3F.7020407@ringerc.id.au> Subject: Re: Windows Services and Postgresql 9.1.3 Date: Mon, 17 Sep 2012 21:27:20 -0400 Message-ID: <001201cd953c$c16f84e0$444e8ea0$@devshock.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQJq8rvavygXY/ZAeCUAlEuYNxpZmwHJwSgflkZBDGA= Content-Language: es-py X-Gm-Message-State: ALoCoQmproPSivYPEEm4Ub6cChDcbQ3l5q1PcaQ/s4ANzkbPOJEx+oTjD3aaq94r0EJD15wNmb8i X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201209/97 X-Sequence-Number: 40038 Yes, is a Bug, sometimes in some circumstances pg_ctl go down but postgres server still running. You can easily reproduce. Go to "task manager", kill the process "pg_ctl" (simulate some kind of crash or something else). Now go to services management and try to start again. Start command will through an error because pg_ctl can't start database because is already started. Due to this bug I always use the pg_ctl command directly and not the windows service. Running pg_ctl command from command prompt show that postgres server is running, but windows service show stopped and is not possible to start again from windows service UI Maybe a resolution of this is that pg_ctl ignore the start call from windows (just success it) when it is already running. Regards -----Mensaje original----- De: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] En nombre de Craig Ringer Enviado el: lunes, 17 de septiembre de 2012 12:43 a.m. Para: Vincent Dautremont CC: pgsql-admin@postgresql.org Asunto: Re: [ADMIN] Windows Services and Postgresql 9.1.3 On 09/12/2012 04:48 AM, Vincent Dautremont wrote: > For example, after the server had rebooted, I would stop the service > from services.msc Windows then reports it as stopped but I can still > see that the database is running, and can use it. Check in the process monitor (or, better, with Process Explorer from Sysinternals) to see what user the `postgres.exe` processes are running as. > When I would start the service again, I would end up with a timeout > waiting for the service to be started. When in fact the database was > always running. > > Anyone had that bug/problem before ? Nope. Sounds completely crazy. More info needed, though. -- Craig Ringer -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin