Received: from s1.servlets.net (s1.servlets.net [209.221.135.4]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f579WJE16073 for ; Thu, 7 Jun 2001 05:32:19 -0400 (EDT) (envelope-from tauren@servlets.net) Received: from yowza2 (dsl-208-161-103-15.easystreet.com [208.161.103.15]) by s1.servlets.net (8.9.3/8.9.3) with SMTP id CAA12203 for ; Thu, 7 Jun 2001 02:32:16 -0700 From: "Tauren Mills" To: Subject: Problems starting postmaster with maxconnections changed Date: Thu, 7 Jun 2001 02:34:51 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal X-Archive-Number: 200106/49 X-Sequence-Number: 1587 I'm running PostgreSQL 7.1 (not 7.1.2) as installed from the RPM on a Red Hat 6.2 machine. It automatically installs a startup script into /etc/rc.d/init.d. By default, the server does not listen to tcp/ip connections. Since I'll be using JDBC, I need it to do this. I also need more than 32 connections. So I've tried adding some configuration directives to /var/lib/pgsql/data/postgresql.conf, including the following: tcpip_socket = true max_connections = 128 log_connections = on Then, I stop and start the server with these commands: /etc/rc.d/init.d/postgresql stop /etc/rc.d/init.d/postgresql start It has a problem restarting if I have max_connections set at 128 or 64. If I comment it out or set it to 32, it starts fine. For instance, when I set max_connections to 128 and issue the "restart" command, I get this output: [root@s2 data]# /etc/rc.d/init.d/postgresql restart Stopping postgresql service: postmaster successfully shut down Checking postgresql installation: [ OK ] /etc/rc.d/init.d/postgresql: [: 2914: unary operator expected Starting postgresql service: [FAILED] But it works fine set at 32! What is wrong? Do I need to tweak other settings to get more than 32 connections available? Thanks, Tauren