Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBn8a-0002ec-Dt for pgsql-general@arkaria.postgresql.org; Mon, 06 Nov 2017 19:32:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eBn8Z-0007Yt-G8 for pgsql-general@arkaria.postgresql.org; Mon, 06 Nov 2017 19:32:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eBn8M-0007IM-73 for pgsql-general@postgresql.org; Mon, 06 Nov 2017 19:32:34 +0000 Received: from mail-pg0-x236.google.com ([2607:f8b0:400e:c05::236]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1eBn8I-0005p6-RY for pgsql-general@postgresql.org; Mon, 06 Nov 2017 19:32:32 +0000 Received: by mail-pg0-x236.google.com with SMTP id l24so9001921pgu.11 for ; Mon, 06 Nov 2017 11:32:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version; bh=zMkiLO20yuYo6w/yGoAUdM6IZeJNzvDNldlL/dUUHDw=; b=L7q+FBQlfBfNEhu+NS/52hqGpewq4F38+tSMMyfTYYOpYU5jEw4ftlt/anHhSJLyn5 Y2a97EC63YbzaIcls+Al/rL0C8OwRj+Ti3a7BbmJ1dT5mznP/ApKRcMjyg6KYhVjf69Z A+/qO8FFIdS0umu6uGG0ano3b09OjwsbRqWRnXq39IXQ6d+RfizY6ezINQzSei9SlW5e UNJQRX71vuC7geoFFX3lBaVyrJlazoDG0H5BbAQBHBg5sOkoRtvp/8qRhDgYP4EnLKIJ MZlOGDUE8WDz8QTzEgcl8If0LVBFs3rD4Jmabk5qx8XfZLUogvPRAZR62K2k0VJMi2e1 FwBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version; bh=zMkiLO20yuYo6w/yGoAUdM6IZeJNzvDNldlL/dUUHDw=; b=p9SJk5eQX98GtjTKOWZ1GBi7KdlsWz9DGBbSMgV+pG271Iaizx0Bd3vPDUtV38Ns16 JzUe4PpvxqAtQ6CycVU+ZKGXKuZqNLK2oq3jSaE3KzllMb9CU4INCKLpMbNEzIilGnXL Ujm1J69ZBE+GzBRl+VQN4za78P1D3v3iGfk6HM+1taDIyn9c0/hQa/htXsFya7JdM1jR eu5zFkP7o5gApKaJjjTvJdCbk2OrJ/KuGjoqbBBfKU0kwCqLRdeOiG/DCYVewW+Gp+Un 5wMj7cTKoPliO2L6iKpAk0eIm+xYNqj3nIX842HAoD2tYhdZbkG64tdRvJkWVYwQYzYU syVA== X-Gm-Message-State: AMCzsaXgRps8vEe05IrF/2K/9wnbHDlb9RhtD8p1dzHgUSerL14eMWV/ r/eMYYS9OWFigl/qTUhUbL/CyVce X-Google-Smtp-Source: ABhQp+Qn4h1SCYaIJFCd5n6CXAcA5OdA5ujkZw/5WYqpkkUNg7cOcicck3zPqG56ekScHfdjQy/BmQ== X-Received: by 10.84.225.6 with SMTP id t6mr15717926plj.106.1509996749238; Mon, 06 Nov 2017 11:32:29 -0800 (PST) Received: from [10.104.134.14] ([155.100.47.6]) by smtp.gmail.com with ESMTPSA id a70sm23011032pfa.94.2017.11.06.11.32.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Nov 2017 11:32:27 -0800 (PST) To: "pgsql-general@postgresql.org" From: Rob Sargent Subject: idle in transaction, why Message-ID: <4a365db4-8608-65c8-e3dc-23524f881bc3@gmail.com> Date: Mon, 6 Nov 2017 12:32:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------C4DF4221B0D6F5614EA2492B" List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org This is a multi-part message in MIME format. --------------C4DF4221B0D6F5614EA2492B Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Using postgres 10-beta3 (hopefully 10.0 this week) on virtual CentOS7 and this JDBC driver postgresql:42.1.4 The postgresql.conf file has #idle_in_transaction_session_timeout = 0 # in milliseconds, 0 is disabled my db url has "?prepareThreshold=0" since I bump into "already defined" statements otherwise but I'm getting org.jooq.exception.DataAccessException: SQL [select "projectfile"."id", "projectfile"."name", "projectfile"."filetype", "projectfile"."uri", "projectfile"."people_id" from "projectfile" where "projectfile"."uri" = ?]; ERROR: idle transaction timeout 2017-11-06T11:32:20-07:00 - - - Caused by: org.postgresql.util.PSQLException: ERROR: idle transaction timeout 2017-11-06T11:32:20-07:00 - - - at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2477) 2017-11-06T11:32:20-07:00 - - - at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2190) 2017-11-06T12:12:43-07:00 - - - at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:300) 2017-11-06T12:12:43-07:00 - - - at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:428) 2017-11-06T12:12:43-07:00 - - - at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:354) 2017-11-06T12:12:43-07:00 - - - at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:169) 2017-11-06T12:12:43-07:00 - - - at org.postgresql.jdbc.PgPreparedStatement.execute(PgPreparedStatement.java:158) at various calls, sometimes the first one, sometime several calls later (some select, some insert), all in a transaction initiated in my code. From what I can piece together from the bind values all the queries are sound - at least the selects expected to find things work as expected. Where should I be looking? --------------C4DF4221B0D6F5614EA2492B Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Using postgres 10-beta3 (hopefully 10.0 this week) on virtual CentOS7 and this JDBC driver postgresql:42.1.4


The postgresql.conf file has

#idle_in_transaction_session_timeout = 0        # in milliseconds, 0 is disabled

my db url has "?prepareThreshold=0" since I bump into "already defined" statements otherwise

but I'm getting

org.jooq.exception.DataAccessException: SQL [select "projectfile"."id", "projectfile"."name", "projectfile"."filetype", "projectfile"."uri", "projectfile"."people_id" from "projectfile" where "projectfile"."uri" = ?]; ERROR: idle transaction timeout

<lots of calls>

2017-11-06T11:32:20-07:00  -  -  - Caused by: org.postgresql.util.PSQLException: ERROR: idle transaction timeout
2017-11-06T11:32:20-07:00  -  -  - at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2477)
2017-11-06T11:32:20-07:00  -  -  - at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2190)
2017-11-06T12:12:43-07:00  -  -  - at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:300)

2017-11-06T12:12:43-07:00  -  -  - at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:428)

2017-11-06T12:12:43-07:00  -  -  - at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:354)

2017-11-06T12:12:43-07:00  -  -  - at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:169)

2017-11-06T12:12:43-07:00  -  -  - at org.postgresql.jdbc.PgPreparedStatement.execute(PgPreparedStatement.java:158)


at various calls, sometimes the first one, sometime several calls later (some select, some insert), all in a transaction initiated in my code. From what I can piece together from the bind values all the queries are sound - at least the selects expected to find things work as expected.


Where should I be looking?


--------------C4DF4221B0D6F5614EA2492B--