Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TdNlm-0001Wx-5P for pgsql-admin@arkaria.postgresql.org; Tue, 27 Nov 2012 16:12:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TdNll-0003gn-C3 for pgsql-admin@arkaria.postgresql.org; Tue, 27 Nov 2012 16:12:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TdNWA-00070i-OV for pgsql-admin@postgresql.org; Tue, 27 Nov 2012 15:56:14 +0000 Received: from news.hub.org ([200.46.204.72]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TdNW8-0003vn-09 for pgsql-admin@postgresql.org; Tue, 27 Nov 2012 15:56:14 +0000 Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.5/8.14.5) with ESMTP id qARFuArv045377 for ; Tue, 27 Nov 2012 11:56:10 -0400 (AST) (envelope-from news@news.hub.org) Received: from news.hub.org (news@localhost) by news.hub.org (8.14.5/8.14.5/Submit) with NNTP id qARFYQk5038849 for pgsql-admin@postgresql.org; Tue, 27 Nov 2012 11:34:26 -0400 (AST) (envelope-from news) Received: by 10.66.81.129 with SMTP id a1mr4147922pay.30.1354030465773; Tue, 27 Nov 2012 07:34:25 -0800 (PST) Received: by 10.50.87.165 with SMTP id az5mr7027651igb.1.1354030465692; Tue, 27 Nov 2012 07:34:25 -0800 (PST) X-Newsgroups: pgsql.admin Date: Tue, 27 Nov 2012 07:34:25 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=212.199.113.12; posting-account=nPpwIgoAAABQVAUNzWpMB575grK6D7qA User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <7ea55cfb-23e9-4cf1-8374-d164d15d8654@googlegroups.com> Subject: Changing logging options for PostgreSQL service on windows From: Victor Rosenberg Injection-Date: Tue, 27 Nov 2012 15:34:25 +0000 Content-Type: text/plain; charset=ISO-8859-1 To: pgsql-admin@postgresql.org X-Pg-Spam-Score: -1.4 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Hi all. I need an alternative for running the following command: "C:\xxx\pgsql\bin\pg_ctl" -D "C:\xxx\pgsql\data" -l "C:\yyy\log\pgsql.log" start This way the server starts and logs to C:\yyy\log\pgsql.log. When I try to register the server as a service though - no logging options are available and the server logs to Event Viewer.