Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZG5tE-00020T-Fo for pgsql-odbc@arkaria.postgresql.org; Fri, 17 Jul 2015 13:41:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZG5tD-0003th-PE for pgsql-odbc@arkaria.postgresql.org; Fri, 17 Jul 2015 13:41:23 +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 1ZG5tD-0003sv-2D for pgsql-odbc@postgresql.org; Fri, 17 Jul 2015 13:41:23 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZG5tA-0000nt-H2 for pgsql-odbc@postgresql.org; Fri, 17 Jul 2015 13:41:21 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id BDF3B205FC for ; Fri, 17 Jul 2015 09:41:19 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Fri, 17 Jul 2015 09:41:19 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=dBf3/q+gxP5u461svP97eqRA9iQ=; b=cz8g5i 8GNcMuY9/u0TS68UROgllcjNPDs/AaZ7BTMmZSVm2jKWc1DMT87PcR8u8JtCCX1a Gy0+qSqYOHqi5u44Oa9RtvXhHYY2uvMdvgyU+nBGjMGFQaYe1CX3pHOQAHUD1YFr 8aNluuhmOXgu0JANaDXoKYgXH96D4Y5wl+CKk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=dBf3/q+gxP5u461 svP97eqRA9iQ=; b=YZxf2T7olE9YkW+bTpYNBaqPEzA6kh9e9EsksYY4bcYCkHG 2KXbG55nqp5p4oE1YpCoTxHavy5BAYP4a3/lXp2Dthkk116p7jm33SG9Xt7to9kM rfbXvwkABgTRZsBWebgHn3OH4gD4s3MZACuw3IBR39sPWe+MBSQmpulHt0RU= X-Sasl-enc: OfbJAkZWiYubYdUji9F6PFscX0cYZIWYDfesB+W/niV4 1437140479 Received: from [192.168.1.2] (174-21-228-230.tukw.qwest.net [174.21.228.230]) by mail.messagingengine.com (Postfix) with ESMTPA id 474496800AE; Fri, 17 Jul 2015 09:41:19 -0400 (EDT) Message-ID: <55A905FA.2080701@aklaver.com> Date: Fri, 17 Jul 2015 06:41:14 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Stefan Viljoen , pgsql-odbc@postgresql.org Subject: Re: Postgres 9.4 + unixODBC on Centos 6.5 problem connecting localhost postgres instance with isql ODBC commandline client 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> <002f01d0c090$da03cc50$8e0b64f0$@verishare.co.za> In-Reply-To: <002f01d0c090$da03cc50$8e0b64f0$@verishare.co.za> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) 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 On 07/17/2015 06:02 AM, Stefan Viljoen wrote: > 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? So what does your odbcinst.ini file look like? What happens if you temporarily change the authentication to trust in pg_hba.conf and after reloading the Postgres server try to connect? What does the Postgres log show when you connect? What does the trace file sql.log show? > > 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. > > > -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc