From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21460 invoked by alias); 2 Oct 2003 22:44:56 -0000 Mailing-List: contact rhdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: rhdb-owner@sources.redhat.com Received: (qmail 21448 invoked from network); 2 Oct 2003 22:44:54 -0000 Received: from unknown (HELO yonge.cs.toronto.edu) (128.100.1.8) by sources.redhat.com with SMTP; 2 Oct 2003 22:44:54 -0000 Received: from jane.cs.toronto.edu ([128.100.3.248]) by yonge.cs.toronto.edu with SMTP id <199561-26963>; Thu, 2 Oct 2003 18:44:51 -0400 Received: from qew.cs.toronto.edu by jane.cs.toronto.edu id <453274-28745>; Thu, 2 Oct 2003 18:44:48 -0400 Date: Thu, 02 Oct 2003 22:44:00 -0000 From: Wei Tjioe X-X-Sender: wtjioe@qew.cs To: Fernando Nasser cc: rhdb@sources.redhat.com Subject: Re: problem with Configuring a Connection to a Database using Visual Explain In-Reply-To: <3F7C94E5.8040807@redhat.com> Message-ID: References: <3F7C859C.4060604@redhat.com> <3F7C94E5.8040807@redhat.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2003-q4/txt/msg00004.txt.bz2 Thanks for the response. I just want to report these observations in case someone experience the same connection failure. Here's the environment where the said behavior of pgaccess and Visual Explain in my last posting were observed: (note: same applies with *local* commented out in pg_hba.conf) in postgresql.conf, we have: ---------------------------------------------------- # Connection Parameters # #tcpip_socket = false tcpip_socket = true #ssl = false ssl = true #max_connections = 32 #port = 5432 #hostname_lookup = false #show_source_port = false #unix_socket_directory = '' #unix_socket_group = '' #unix_socket_permissions = 0777 _________________________________________________________ in pg_hba.conf, we have: ------------------------------------------------------ # host # ---- # # This record identifies networked hosts that are permitted to connect # via IP connections. # # Format: # # host DBNAME IP_ADDRESS ADDRESS_MASK AUTH_TYPE [AUTH_ARGUMENT] #... #local all md5 host all 127.0.0.1 255.255.255.255 md5 _______________________________________________________________ > And were you connecting from the same machine? The Visual Explain (and pgaccess) client is running in the same machine as the postmaster server. I assumed tcpip sockets, rather than unix sockets, would be used when configured as above. > > > This uses Unix sockets, so it is no good for comparison. Does this mean Unix Sockets were used even when 'Host' is explicitly specified in Visual Explain -> configure ..., and when no local connection is configured in pg_hba.conf? I am also under the impression that pgaccess uses tpcip connection when a host is explicitly specified (left non-blank) during a connection request. Visual Explain and pgaccess are reading the exact same configuration files, and using the exact same connection parameters: Database: Host: Port: User Name: Password: Wei