X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 387C45E473C for ; Thu, 2 Sep 2004 18:33:29 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 62819-06 for ; Thu, 2 Sep 2004 21:33:25 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id AE7E05E471A for ; Thu, 2 Sep 2004 18:33:23 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i82LXLLq066274 for ; Thu, 2 Sep 2004 21:33:21 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i82LGpHQ061126 for pgsql-odbc@postgresql.org; Thu, 2 Sep 2004 21:16:51 GMT From: lchan@mail.arc.nasa.gov (mlc) X-Newsgroups: comp.databases.postgresql.interfaces.odbc Subject: new to Unixodbc: can't connect to Postgresql Date: 2 Sep 2004 14:16:52 -0700 Organization: http://groups.google.com Lines: 77 Message-ID: <55fe1952.0409021316.7eea93f8@posting.google.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: groups-abuse@google.com To: pgsql-odbc@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/6 X-Sequence-Number: 4381 Hi, I'm new to postgresql Unix odbc (iodbc). I am trying to test my unixodbc connection to a local Postgres DB via the provided "iodbctest" program and have been unsuccessful in getting a "SQL>" prompt. Instead, it prints out a "Have nice day" message. Been working on this problem for a week now and have not come up with anything close at all. Searched the web and this forum for any "ideas" as to what is wrong and can't find anything. Any input or help in pointing me to the right direction is highly appreciated and invaluable. Thank you in advance for any help on this! Pasted below is what is currently downloaded and running: 1) Postgres 7.4.3 installed and have created several databases. 2) Downloaded IODBC Driver Manager: 03.51.0002.0224 3) $ODBCINI = /u7/uav/pgsql_odbc/.odbc.ini ; LD__LIBRARY_PATH=/u7/uav/pgsql/lib:/u7/uav/libiodbc/lib/:/u7/uav/pgsql_odbc/lib:.... 4) .odbc.ini file content below [ODBC Data Sources] postsql1=PostgreSQL ODBC Drive [postsql1] Driver=/u7/uav/pgsql_odbc/lib/psqlodbc.so Host=localhost ServerType=Postgres Database=testdb Username=dbadm ReadOnly=no FetchBufferSize = 60 Port=5432 [ODBC] Trace=1 TraceFile=/u7/uav/odbc.trace Debug=1 DebugFile=/u7/uav/odbc.log ------------------------------------ 5) odbcinist.ini file content [PostgresSQL1] Description=ODBC for PostgreSQL Driver=/u7/uav/pgsql_odbc/lib/psqlodbc.so [PostgresSQL] Description=ODBC for PostgreSQL Driver=/u7/uav/pgsql_odbc/lib/psqlodbc.so FileUsage = 1 [ODBC] Trace = 1 Pooling = No FileUsage =1 CommLog =1 Debug = 1 6) output : aloe 92% ./iodbctest iODBC Demonstration program This program shows an interactive SQL processor Driver Manager: 03.51.0002.0224 Enter ODBC connect string (? shows list): ? DSN | Description --------------------------------------------------------------- postsql | PostgreSQL postsql1 | PostgreSQL ODBC Drive Enter ODBC connect string (? shows list)SN= postsql Have a nice day.aloe 93%