Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZG5En-0000WQ-Lt for pgsql-odbc@arkaria.postgresql.org; Fri, 17 Jul 2015 12:59:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZG5En-0001nK-83 for pgsql-odbc@arkaria.postgresql.org; Fri, 17 Jul 2015 12:59:37 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZG5Em-0001ja-Go for pgsql-odbc@postgresql.org; Fri, 17 Jul 2015 12:59:36 +0000 Received: from mail.verishare.co.za ([217.29.208.2]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZG5Ed-0008Ne-GL for pgsql-odbc@postgresql.org; Fri, 17 Jul 2015 12:59:33 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.verishare.co.za (Postfix) with ESMTP id 35175422074 for ; Fri, 17 Jul 2015 14:59:20 +0200 (SAST) Received: from mail.verishare.co.za ([127.0.0.1]) by localhost (mail.verishare.co.za [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id ko6PMv0iLNpW; Fri, 17 Jul 2015 14:59:19 +0200 (SAST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.verishare.co.za (Postfix) with ESMTP id 32C40422080; Fri, 17 Jul 2015 14:59:19 +0200 (SAST) X-Virus-Scanned: amavisd-new at verishare.co.za Received: from mail.verishare.co.za ([127.0.0.1]) by localhost (mail.verishare.co.za [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id FmwFSFSZdsOp; Fri, 17 Jul 2015 14:59:19 +0200 (SAST) Received: from STEFANPC (unknown [172.16.1.76]) by mail.verishare.co.za (Postfix) with ESMTPSA id 1E5A0422074 for ; Fri, 17 Jul 2015 14:59:19 +0200 (SAST) From: "Stefan Viljoen" To: References: <000b01d0c066$c58f3b80$50adb280$@verishare.co.za> <55A8BF02.4090001@lurcher.org> <002701d0c07f$bd09f3b0$371ddb10$@verishare.co.za> <55A8E0B8.3070107@lurcher.org> <002e01d0c088$c6b57390$54205ab0$@verishare.co.za> <55A8F948.9040407@lurcher.org> In-Reply-To: <55A8F948.9040407@lurcher.org> Subject: Re: Postgres 9.4 + unixODBC on Centos 6.5 problem connecting localhost postgres instance with isql ODBC commandline client Date: Fri, 17 Jul 2015 15:02:35 +0200 Message-ID: <002f01d0c090$da03cc50$8e0b64f0$@verishare.co.za> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQIlJsTM6eABCGiGgETx/eeRTV0aKQD+sBlEAd+uLVACvS0eZwIDK6DSAbi5yQCc7BYmYA== Content-Language: en-za X-Pg-Spam-Score: -3.1 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org Hi Nick Here is my odbc.ini entry for the pgdb-cdr data source: --- [pgdb-cdr] Driver = /usr/pgsql-9.4/lib/psqlodbc.so ServerName = localhost Port = 5432 UserName = dbuser Password = dbpassword Database = dbname ReadOnly = No Protocol = 9.4 Trace = No TraceFile = sql.log ConnSettings = --- I have tried to - Replace ServerName with 127.0.0.1 and ::1 - Changing the protocol to 9.3, 9.2., 9.1 - Making ReadOnly yes - Deliberately mis-spelling the Database name but the error remains the same - Omitting the password, error remains the same - Removing the port, error remains the same. The only thing I can conclude at this point is that 9.4 Postgres ODBC driver is in fact incompatible with the Centos 6.5 ODBC package version? As far as I can tell isql does not get any response from Postgres ODBC driver - given that I can corrupt the pgdb-cdr entry however I like, even severe errors or gaps in it is just ignored and the same error is returned each time. I have run strace on isql and I can see that it DOES parse the above file though - so I'm reasonable sure that the 9.4 Postgres driver is completely incompatible with the ODBC version supplied with Centos 6.5? Again, THANK YOU for your assistance :) Kind regards, >It can only display the error the driver returns, so not more details. >What is in your odbc.ini for the pgdb-cr entry? >I would expect a >database=dbname >to direct the driver to the correct database. -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc