Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UfzIt-00052S-5K for pgsql-odbc@arkaria.postgresql.org; Fri, 24 May 2013 21:13:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UfzIs-0006vu-M4 for pgsql-odbc@arkaria.postgresql.org; Fri, 24 May 2013 21:13:34 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UfzIr-0006vo-SG for pgsql-odbc@postgresql.org; Fri, 24 May 2013 21:13:34 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by makus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UfzIo-0007cu-Er for pgsql-odbc@postgresql.org; Fri, 24 May 2013 21:13:33 +0000 Received: (qmail 28815 invoked by uid 512); 24 May 2013 21:13:27 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 24 May 2013 21:13:27 -0000 Received: from unknown (HELO ?192.168.1.3?) (110.5.25.94) by sd.tpf.co.jp with SMTP; 24 May 2013 21:13:27 -0000 Message-ID: <519FD7F3.7050209@tpf.co.jp> Date: Sat, 25 May 2013 06:13:23 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: ter062424 CC: pgsql-odbc@postgresql.org Subject: Re: ODBC SELECT Timeout References: <1369242527629-5756490.post@n5.nabble.com> In-Reply-To: <1369242527629-5756490.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.3 (/) 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, (2013/05/23 2:08), ter062424 wrote: > 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 Could please try UseServerSidePrepare = 1 ? regards, Hiroshi Inoue -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc