pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stefan Viljoen <viljoens@verishare.co.za>
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
Date: Tue, 21 Jul 2015 09:31:33 +0200
Message-ID: <000401d0c387$45071e00$cf155a00$@verishare.co.za> (raw)
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>
	<55ACE4C5.2030704@lurcher.org>
	<005101d0c2eb$ae674150$0b35c3f0$@verishare.co.za>
	<55ACF2B9.2020805@lurc her.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

Hi List

With the new increased verbosity I managed to turn on, I've found something
interesting.

This was my definition in /etc/odbc.ini:

---
[ODBC Data Sources]
pgdb=PostgreSQL

[pgdb-cdr]
Driver                  = /usr/pgsql-9.4/lib/psqlodbc.so
ServerName=/tmp
Port=5432
UserName=asteriskcdruser
Password=1ndestruc#
Database=asteriskcdrdb
ReadOnly=No
Protocol=9.4
Trace=Yes
TraceFile=/tmp/odbc.log
ForceTrace=Yes
ConnSettings=
DSN=pgdb
ServerType=Postgres
Debug=1
DebugFile=/var/log/postgresql_debug.log
---

running

---
isql -v pgdb-cdr dbuser pass
---

gives in pg_log/postgresql-Tue.log the relevant error

---
< 2015-07-21 09:04:35.850 SAST >LOCATION:  PerformAuthentication,
postinit.c:258
< 2015-07-21 09:04:35.856 SAST >LOG:  08006: could not send data to client:
Broken pipe
---

However, removing these two lines from /etc/odbc.ini

---
DSN=pgdb
ServerType=Postgres
---

changes the logged output to this

---
< 2015-07-21 09:21:24.018 SAST >LOG:  00000: connection received:
host=[local]
< 2015-07-21 09:21:24.018 SAST >LOCATION:  BackendInitialize,
postmaster.c:4007
< 2015-07-21 09:21:24.019 SAST >LOG:  00000: connection authorized:
user=asteriskcdruser database=asteriskcdrdb
< 2015-07-21 09:21:24.019 SAST >LOCATION:  PerformAuthentication,
postinit.c:258
< 2015-07-21 09:21:24.022 SAST >LOG:  00000: disconnection: session time:
0:00:00.004 user=asteriskcdruser database=asteriskcdrdb host=[local]
< 2015-07-21 09:21:24.022 SAST >LOCATION:  log_disconnections,
postgres.c:4511
---

e. g. now the "broken pipe" error is gone, but I just get a virtually
instant disconnection.

The isql output remains the same:

---
# isql -v pgdb-cdr dbuser dbname
[S1000][unixODBC]The database does not exist on the server
or user authentication failed.
[ISQL]ERROR: Could not SQLConnect
---

but it appears that the REASON is now gone, e. g. no "broken pipe" logged by
Postgres?

This mean anything to anybody?

Thanks

Stefan



-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



view thread (39+ messages)  latest in thread

Message-ID: <000401d0c387$45071e00$cf155a00$@verishare.co.za>
Permalink:  ../000401d0c387$45071e00$cf155a00$@verishare.co.za/
Also on:    postgresql.org/message-id/000401d0c387$45071e00$cf155a00$@verishare.co.za

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: viljoens@verishare.co.za
  Subject: Re: Postgres 9.4 + unixODBC on Centos 6.5 problem connecting localhost postgres instance with isql ODBC commandline client
  In-Reply-To: <000401d0c387$45071e00$cf155a00$@verishare.co.za>
  References: <000b01d0c066$c58f3b80$50adb280$@verishare.co.za> <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> <55ACE4C5.2030704@lurcher.org> <005101d0c2eb$ae674150$0b35c3f0$@verishare.co.za> <000401d0c387$45071e00$cf155a00$@verishare.co.za>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox