X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id F0CE7475F5F for ; Tue, 25 Mar 2003 13:39:39 -0500 (EST) Received: from localhost.localdomain (unknown [65.217.53.66]) by postgresql.org (Postfix) with ESMTP id 2562C475C98 for ; Tue, 25 Mar 2003 13:39:39 -0500 (EST) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id h2PJEY6P007593; Tue, 25 Mar 2003 14:14:34 -0500 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id h2PIdap06678; Tue, 25 Mar 2003 13:39:37 -0500 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id F3HTK4ZT; Tue, 25 Mar 2003 13:39:36 -0500 Subject: Re: Zope and ZPsycopgDA almost working... From: Robert Treat To: Tamir Halperin Cc: pgsql-admin@postgresql.org, Zope Database Mailing List In-Reply-To: <985DF46E87E0C047A3670048DBCAD0556BBA@andrew.brobus.net> References: <985DF46E87E0C047A3670048DBCAD0556BBA@andrew.brobus.net> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 25 Mar 2003 13:39:36 -0500 Message-Id: <1048617576.13798.524.camel@camel> Mime-Version: 1.0 X-Spam-Status: No, hits=-38.8 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_XIMIAN autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200303/424 X-Sequence-Number: 8064 On Tue, 2003-03-25 at 12:21, Tamir Halperin wrote: > Hi Robert. Thanks for the feedback. My comments and questions below... > > > -----Original Message----- > > From: Robert Treat [mailto:xzilla@users.sourceforge.net] > > Sent: Tuesday, March 25, 2003 10:20 AM > > To: Tamir Halperin > > Cc: pgsql-admin@postgresql.org; Zope Database Mailing List > > Subject: Re: [ADMIN] Zope and ZPsycopgDA almost working... > > > > Sounds like your database might not be accepting outside connections. > > I agree. Psycopg seems to be saying exactly that from what appears to be a healthy Zope environment. > > > Check your postgresql.conf file and make sure tcpip_socket = true > > I have a /usr/local/share/postgresql/postgresql.conf.sample file but I don't see a postgresql.conf file anywhere in the system. > > I've confirmed that the sample file is reflecting the default setting of false. > > How do I go about overriding the tcpip_socket = false setting for this specific pgsql service? > > > You might also need to configure your pg_hba.conf to allow connections > > from your windows box. > > Likewise, I don't see a pg_hba.conf file in my system. > > My pg_hba.conf.sample file seems to show a tabular view of permissions of some kind at the bottom: > > Type database user ip-address ip-mask method > ------------------------------------------------------------- > local all all trust > host all all 127.0.0.1 255.255.255.255 trust > > Which modifications, if any, are needed to this table. > > How do I put them into effect seeing as how this is the sample file we're talking about. > According to the guys on IRC, *bsd puts the files in /usr/local/pgsql/data; if not do a "find" for the files to figure out where they are. Once you find them, you'll need to set tcpip_sockets = true and you'll need to add a line like: host all all 255.255.255.255 trust to your pg_hba.conf you'll need to do a pg_ctl reload once you make the changes. Robert Treat