Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 1F2CAAF82EA for ; Mon, 9 Jan 2012 14:01:24 -0400 (AST) Received: from h-66-166-198-124.nycmny83.static.covad.net ([66.166.198.124] helo=tupari.net) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RkJX5-0002lW-Kh for pgsql-jdbc@postgresql.org; Mon, 09 Jan 2012 18:01:24 +0000 Received: from jks-desktop.tupari.net (jks-desktop.tupari.net [192.168.1.3]) (authenticated bits=0) by tupari.net (8.14.5/8.14.1) with ESMTP id q09I12wC023835 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 9 Jan 2012 13:01:04 -0500 Message-ID: <4F0B2B5E.8030703@selectacast.net> Date: Mon, 09 Jan 2012 13:01:02 -0500 From: Joseph Shraibman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0 MIME-Version: 1.0 To: Dave Cramer CC: List Subject: Re: problem: query result in jdbc is <> result in psql References: <4F0B228E.8060708@selectacast.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/33 X-Sequence-Number: 22573 I created table a with generate_series. jks=# \d a Table "public.a" Column | Type | Modifiers -----------------+---------+----------- generate_series | integer | I lock it by doing: jks=# begin; lock table a; BEGIN LOCK TABLE On 01/09/2012 12:49 PM, Dave Cramer wrote: > Joseph, > > Same versions and I am unable to replicate this here. Can you send me > your schema, and how you are locking it ? > > > Dave Cramer > > dave.cramer(at)credativ(dot)ca > http://www.credativ.ca > > > > On Mon, Jan 9, 2012 at 12:23 PM, Joseph Shraibman wrote: >> PostgreSQL 9.1.2 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.6.1 >> 20110908 (Red Hat 4.6.1-9), 64-bit >> >> >> java version is 1.6.0_29 >> >> >> On 01/09/2012 07:08 AM, Dave Cramer wrote: >>> >>> Joseph, >>> >>> I just tried your code using the latest driver and pg 8.4 and 9.1 it >>> works fine. What version of the server are you using ? >>> >>