Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UfCX3-0006sp-Hc for pgsql-odbc@arkaria.postgresql.org; Wed, 22 May 2013 17:08:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UfCX3-0005fp-0q for pgsql-odbc@arkaria.postgresql.org; Wed, 22 May 2013 17:08:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UfCX2-0005fj-8N for pgsql-odbc@postgresql.org; Wed, 22 May 2013 17:08:56 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UfCWu-0002KO-OU for pgsql-odbc@postgresql.org; Wed, 22 May 2013 17:08:55 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1UfCWt-0007XX-Ms for pgsql-odbc@postgresql.org; Wed, 22 May 2013 10:08:47 -0700 Date: Wed, 22 May 2013 10:08:47 -0700 (PDT) From: ter062424 To: pgsql-odbc@postgresql.org Message-ID: <1369242527629-5756490.post@n5.nabble.com> Subject: ODBC SELECT Timeout MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 1.2 (+) 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 Hello, I have a very large, long running query that is being run on a CentOS 6 Linux box from an application using unixODBC 2.2.14 and postgresql-odbc 8.4. The target database is a postgreSQL 8.4 DB on another CentOS 6 Linux box. When run, the query runs for about one hour and then dies with the following error: for SQL input object "SQL-AR": SQLNumResultCols: -1/1; S1000/[unixODBC]No query has been executed with that handle I'm no overly familiar with using ODBC and have been researching this as best as I can. I've tried to add UseDeclareFetch to /etc/odbcinst.ini as well, thinking that may be the cause. Note that other queries run fine. I'm not sure if it is timing out, or what is happening. Does anyone know what this error could mean, and if there is anything I can put in my /etc/odbcinst.ini to help resolve the problem. My /etc/odbcinst.ini currently looks like this: [PostgreSQL] Description = ODBC for PostgreSQL Driver = /usr/lib/psqlodbc.so Setup = /usr/lib/libodbcpsqlS.so Driver64 = /usr/lib64/psqlodbc.so Setup64 = /usr/lib64/libodbcpsqlS.so UseDeclareFetch = 1 Fetch = 100 UseServerSidePrepare = 0 FileUsage = 1 UsageCount = 2 I'm have the 64 bit drivers installed and it sees those okay. Thanks for any help or a point in the right direction. I'm just starting to really dig into postgreSQL, so do not know much quite yet. Regards, Tom -- View this message in context: http://postgresql.1045698.n5.nabble.com/ODBC-SELECT-Timeout-tp5756490.html Sent from the PostgreSQL - odbc mailing list archive at Nabble.com. -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc