Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZH9sH-0004OB-9X for pgsql-odbc@arkaria.postgresql.org; Mon, 20 Jul 2015 12:08:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZH9sG-0005ri-OX for pgsql-odbc@arkaria.postgresql.org; Mon, 20 Jul 2015 12:08:48 +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 1ZH9sG-0005rb-Ae for pgsql-odbc@postgresql.org; Mon, 20 Jul 2015 12:08:48 +0000 Received: from mail.lurcherlink.org ([217.34.199.121] helo=mail.lurcher.org) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZH9sD-0004Rh-5l for pgsql-odbc@postgresql.org; Mon, 20 Jul 2015 12:08:47 +0000 Received: from [172.20.0.153] (hul.easysoft.local [172.20.0.153]) by mail.lurcher.org (8.14.3/8.12.8) with ESMTP id t6KC1mgL015478 for ; Mon, 20 Jul 2015 13:01:48 +0100 Message-ID: <55ACE4C5.2030704@lurcher.org> Date: Mon, 20 Jul 2015 13:08:37 +0100 From: Nick Gorham User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: 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> <55A905FA.2080701@aklaver.com> <003001d0c099$e21a7b60$a64f7220$@verishare.co.za> <55A90E6A.4030802@lurcher.org>, <003201d0c09f$b1ece5d0$15c6b170$@verishare.co.za> <55BAADA01D8C504993894EAEA7517CF8124630@003FCH1MPN2-002.003f.mgd2.msft.net> <000d01d0c2b8$a8f146e0$fad3d4a0$@verishare.co.za>, <004501d0c2d8$5a4cc710$0ee65530$@verishare.co.za> <55BAADA01D8C504993894EAEA7517CF81246C6@003FCH1MPN2-002.003f.mgd2.msft.net>, <004601d0c2db$2d38ade0$87aa09a0$@verishare.co.za> <55BAADA01D8C504993894EAEA7517CF81246DB@003FCH1MPN2-002.003f.mgd2.msft.net> <004a01d0c2e4$ad416320$07c42960$@verishare.co.za> In-Reply-To: <004a01d0c2e4$ad416320$07c42960$@verishare.co.za> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sipserver.lurcher.org X-Pg-Spam-Score: -2.6 (--) 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 20/07/15 13:07, Stefan Viljoen wrote: > Hi Jeremy > >> I think your /etc/hosts file is fine but just to be certain you could try >> psql -h 127.0.0.1 ... >> if this works it is probably NOT the problem. > Ok, tried this - psql -works-? > > --- > [root@jhbasterisk ~]# psql -h 127.0.0.1 -U asteriskcdruser -d asteriskcdrdb > psql (9.4.4) > Type "help" for help. > > asteriskcdrdb=> > --- > > So that blows my theory out of the water - postgres clearly is listening via > IPV4 on 127.0.0.1 and accepts the connection (my hba file currently has > "trust" on all lines, so no password is requested.) > > Putting all the lines in the hba.conf to "md5" asks for a password for the > above step, but STILL works, and isql still fails with the exact same error > it constantly fails with. > > All I can surmise is that the unixODBC drivers are incapable due to some > protocol difference or mismatch in connecting to the pgsql driver supplied > with Postgres 9.4 as there apparently is no error in my configuration or > installation of either. Can I just check, when you say "unixODBC drivers" you don't mean the age old version of the postgres driver that used to be part of the default unixODBC build? If it is, don't touch that, its only there as a example. -- Nick Gorham -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc