Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XCzoW-0007GT-0I for pgsql-bugs@arkaria.postgresql.org; Thu, 31 Jul 2014 23:31:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XCzoV-0004VG-Cd for pgsql-bugs@arkaria.postgresql.org; Thu, 31 Jul 2014 23:31:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XCzoT-0004VA-SB for pgsql-bugs@postgresql.org; Thu, 31 Jul 2014 23:31:10 +0000 Received: from mail-pa0-x229.google.com ([2607:f8b0:400e:c03::229]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XCzoI-0000OJ-D2 for pgsql-bugs@postgresql.org; Thu, 31 Jul 2014 23:31:08 +0000 Received: by mail-pa0-f41.google.com with SMTP id rd3so4586530pab.28 for ; Thu, 31 Jul 2014 16:30:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janrain.com; s=google; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=ZjQwxw+Vh/BRhWmGzt0Vw5eceowhzsoSBYgJoAWVTOc=; b=h4yxn2P/KzUfzT9Ed8XYn0e4seXJZN/qMkYcY9UFS9FhmCrAD74q7T+Kma2ejr1hyC EL0OxLyjF37ksBnlZRHcUW95s8SMzlgmxIZcjyfo8Ae9SsIp8fT7M4MAF9pip+f4XMH+ 9zycEXF0NWayp35jomoAw6Mfx0Tp48KR+T+0U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-type:content-disposition:user-agent; bh=ZjQwxw+Vh/BRhWmGzt0Vw5eceowhzsoSBYgJoAWVTOc=; b=B+rhPB8X1c4gqT+qW6FAy8iasXTXBb0rNJsvYFXGaBe5gWGnsmkzLXCkm/1E1/gd3m r0TpCOAYXwILpC9Yi0369avsfQrCg37X/HO8noIDW5AJC2B/cDWQ4Tu5AfM0evQ2uaVU Csn+k/V0nL7m/3CZWJ2BMuJEvAGS7l2gjeSMF925//uhwlqpn7L3/rLYlhlaAPk74cjj 3j9Hv328yoiwc5d4D01sIdoDzh4rvrJYignQKt+m5fyKBAEZXHSvLtzVfjKxAbQb5q47 nwSoiZU6KKZb7j7uhAUpMGAwmVkdGz2zdGfDFwt9uXf9nEczF85yP3rbJzlZ7mbC8cMr GoRw== X-Gm-Message-State: ALoCoQmWEqp2YOIhy66GQ6kfNsrH6y8xIXJXAJ5YGDrke8TbtUVlu9aDmC6yUenuiZkxMlxcLOmS X-Received: by 10.68.230.166 with SMTP id sz6mr1606974pbc.32.1406849454012; Thu, 31 Jul 2014 16:30:54 -0700 (PDT) Received: from andrew-ThinkPad-X230 (173-164-68-213-Oregon.hfc.comcastbusiness.net. [173.164.68.213]) by mx.google.com with ESMTPSA id nq15sm10115190pdb.65.2014.07.31.16.30.52 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 31 Jul 2014 16:30:53 -0700 (PDT) Date: Thu, 31 Jul 2014 16:30:51 -0700 From: Andrew Sackville-West To: pgsql-bugs@postgresql.org Subject: regression, deadlock in high frequency single-row UPDATE Message-ID: <20140731233051.GN17765@andrew-ThinkPad-X230> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="AqsLC8rIMeq19msA" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, I've discussed this problem on irc a couple of times and think I've found a regression that plagues our application, introduced in some version newer than 9.1.9, and still present in 9.3.5. Multiple instances of the *exact* same single row update: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id ; if performed with sufficient concurrency will produce a deadlock. I've attached a snippet of logs, all uncommented lines from postgresql.conf, and the table definitions of the involved tables. This first instance of the deadlock appears in line 142; I left a bunch of lead-in in case it's relevant. I think this is a regression as we only see the behavior under postgres 9.3.x (reproduced locally on 9.3.4 and 9.3.5 in a VMWare VM running Ubuntu 11.04, but also evident in 9.3.3 on Amazon RDS). I am unable to reproduce in the earlier versions I've been able to test against (9.0.something and 9.1.9). To reproduce the problem, I have to fork about 100 api calls against our application, with the results you see in the logs. The queries in the log are the *only* activity in the application and database at the time and I have not filtered the logs at all, other than snipping to a reasonable window around the problem. I can produce more extensive logs if needed, but there really is nothing else. I have not been able to reproduce the deadlock by making concurrent UPDATEs via what amounts to a bash fork-bomb w/ psql, but I suspect my methodology might be too crude there. The application is able to spin up a large number of lightweight threads fairly quickly and presumably attain the needed level of concurrency. Thanks, A --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=deadlock_log 2014-07-30 09:41:53 PDT PID:4727 XID:0 LOG: statement: SET standard_conforming_strings TO on;SET datestyle TO ISO 2014-07-30 09:41:53 PDT PID:4727 XID:0 LOG: duration: 0.309 ms 2014-07-30 09:41:53 PDT PID:4725 XID:0 LOG: statement: SET standard_conforming_strings TO on;SET datestyle TO ISO 2014-07-30 09:41:53 PDT PID:4725 XID:0 LOG: duration: 0.227 ms 2014-07-30 09:41:53 PDT PID:4724 XID:0 LOG: statement: SET standard_conforming_strings TO on;SET datestyle TO ISO 2014-07-30 09:41:53 PDT PID:4724 XID:0 LOG: duration: 0.318 ms 2014-07-30 09:41:53 PDT PID:4729 XID:0 LOG: statement: SET standard_conforming_strings TO on;SET datestyle TO ISO 2014-07-30 09:41:53 PDT PID:4729 XID:0 LOG: duration: 0.210 ms 2014-07-30 09:41:53 PDT PID:4730 XID:0 LOG: statement: SET standard_conforming_strings TO on;SET datestyle TO ISO 2014-07-30 09:41:53 PDT PID:4730 XID:0 LOG: duration: 0.269 ms 2014-07-30 09:41:53 PDT PID:4727 XID:0 LOG: statement: SET client_encoding TO utf8 2014-07-30 09:41:53 PDT PID:4727 XID:0 LOG: duration: 0.071 ms 2014-07-30 09:41:53 PDT PID:4725 XID:0 LOG: statement: SET client_encoding TO utf8 2014-07-30 09:41:53 PDT PID:4725 XID:0 LOG: duration: 0.068 ms 2014-07-30 09:41:53 PDT PID:4729 XID:0 LOG: statement: SET client_encoding TO utf8 2014-07-30 09:41:53 PDT PID:4729 XID:0 LOG: duration: 0.075 ms 2014-07-30 09:41:53 PDT PID:4724 XID:0 LOG: statement: SET client_encoding TO utf8 2014-07-30 09:41:53 PDT PID:4724 XID:0 LOG: duration: 0.110 ms 2014-07-30 09:41:53 PDT PID:4725 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:53 PDT PID:4727 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:53 PDT PID:4730 XID:0 LOG: statement: SET client_encoding TO utf8 2014-07-30 09:41:53 PDT PID:4730 XID:0 LOG: duration: 0.114 ms 2014-07-30 09:41:53 PDT PID:4724 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:53 PDT PID:4724 XID:0 LOG: duration: 3.396 ms 2014-07-30 09:41:53 PDT PID:4730 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:53 PDT PID:4728 XID:0 LOG: statement: SET standard_conforming_strings TO on;SET datestyle TO ISO 2014-07-30 09:41:53 PDT PID:4728 XID:0 LOG: duration: 0.395 ms 2014-07-30 09:41:53 PDT PID:4729 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:53 PDT PID:4728 XID:0 LOG: statement: SET client_encoding TO utf8 2014-07-30 09:41:53 PDT PID:4728 XID:0 LOG: duration: 0.123 ms 2014-07-30 09:41:53 PDT PID:4728 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:53 PDT PID:4728 XID:0 LOG: duration: 3.318 ms 2014-07-30 09:41:53 PDT PID:4727 XID:0 LOG: duration: 18.022 ms 2014-07-30 09:41:53 PDT PID:4725 XID:0 LOG: duration: 20.795 ms 2014-07-30 09:41:53 PDT PID:4730 XID:0 LOG: duration: 14.789 ms 2014-07-30 09:41:53 PDT PID:4729 XID:0 LOG: duration: 13.943 ms 2014-07-30 09:41:53 PDT PID:4731 XID:0 LOG: statement: SET standard_conforming_strings TO on;SET datestyle TO ISO 2014-07-30 09:41:53 PDT PID:4731 XID:0 LOG: duration: 0.304 ms 2014-07-30 09:41:53 PDT PID:4731 XID:0 LOG: statement: SET client_encoding TO utf8 2014-07-30 09:41:53 PDT PID:4731 XID:0 LOG: duration: 0.063 ms 2014-07-30 09:41:53 PDT PID:4731 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:53 PDT PID:4731 XID:0 LOG: duration: 2.902 ms 2014-07-30 09:41:53 PDT PID:4716 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('2rbwfyzt43caf7u5', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:53 PDT PID:4715 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4716 XID:0 LOG: duration: 7.380 ms 2014-07-30 09:41:53 PDT PID:4715 XID:0 LOG: duration: 7.373 ms 2014-07-30 09:41:53 PDT PID:4717 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('dakk4ujk973vmnxa', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:53 PDT PID:4718 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4717 XID:0 LOG: duration: 1.267 ms 2014-07-30 09:41:53 PDT PID:4718 XID:0 LOG: duration: 0.852 ms 2014-07-30 09:41:53 PDT PID:4719 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4720 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4721 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4722 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4726 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4723 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4724 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4728 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4727 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4725 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4730 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4729 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4731 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4715 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('f8fxwchxw967ja5n', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:53 PDT PID:4718 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('f8sj4nf38d6jf3vq', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:53 PDT PID:4719 XID:0 LOG: duration: 40.852 ms 2014-07-30 09:41:53 PDT PID:4715 XID:0 LOG: duration: 18.684 ms 2014-07-30 09:41:53 PDT PID:4718 XID:0 LOG: duration: 18.113 ms 2014-07-30 09:41:53 PDT PID:4717 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:53 PDT PID:4717 XID:0 LOG: duration: 0.349 ms 2014-07-30 09:41:53 PDT PID:4716 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:53 PDT PID:4716 XID:0 LOG: duration: 0.382 ms 2014-07-30 09:41:53 PDT PID:4733 XID:0 LOG: statement: SET standard_conforming_strings TO on;SET datestyle TO ISO 2014-07-30 09:41:53 PDT PID:4733 XID:0 LOG: duration: 5.118 ms 2014-07-30 09:41:53 PDT PID:4734 XID:0 LOG: statement: SET standard_conforming_strings TO on;SET datestyle TO ISO 2014-07-30 09:41:53 PDT PID:4736 XID:0 LOG: statement: SET standard_conforming_strings TO on;SET datestyle TO ISO 2014-07-30 09:41:53 PDT PID:4733 XID:0 LOG: statement: SET client_encoding TO utf8 2014-07-30 09:41:53 PDT PID:4733 XID:0 LOG: duration: 0.125 ms 2014-07-30 09:41:53 PDT PID:4734 XID:0 LOG: duration: 1.169 ms 2014-07-30 09:41:53 PDT PID:4736 XID:0 LOG: duration: 1.111 ms 2014-07-30 09:41:53 PDT PID:4733 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:53 PDT PID:4733 XID:0 LOG: duration: 3.475 ms 2014-07-30 09:41:53 PDT PID:4732 XID:0 LOG: statement: SET standard_conforming_strings TO on;SET datestyle TO ISO 2014-07-30 09:41:53 PDT PID:4736 XID:0 LOG: statement: SET client_encoding TO utf8 2014-07-30 09:41:53 PDT PID:4736 XID:0 LOG: duration: 0.094 ms 2014-07-30 09:41:53 PDT PID:4732 XID:0 LOG: duration: 0.626 ms 2014-07-30 09:41:53 PDT PID:4734 XID:0 LOG: statement: SET client_encoding TO utf8 2014-07-30 09:41:53 PDT PID:4734 XID:0 LOG: duration: 0.219 ms 2014-07-30 09:41:53 PDT PID:4736 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:53 PDT PID:4732 XID:0 LOG: statement: SET client_encoding TO utf8 2014-07-30 09:41:53 PDT PID:4732 XID:0 LOG: duration: 0.122 ms 2014-07-30 09:41:53 PDT PID:4736 XID:0 LOG: duration: 4.150 ms 2014-07-30 09:41:53 PDT PID:4734 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:53 PDT PID:4734 XID:0 LOG: duration: 3.539 ms 2014-07-30 09:41:53 PDT PID:4732 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:53 PDT PID:4732 XID:0 LOG: duration: 7.804 ms 2014-07-30 09:41:53 PDT PID:4738 XID:0 LOG: statement: SET standard_conforming_strings TO on;SET datestyle TO ISO 2014-07-30 09:41:53 PDT PID:4738 XID:0 LOG: duration: 0.449 ms 2014-07-30 09:41:53 PDT PID:4737 XID:0 LOG: statement: SET standard_conforming_strings TO on;SET datestyle TO ISO 2014-07-30 09:41:53 PDT PID:4737 XID:0 LOG: duration: 0.259 ms 2014-07-30 09:41:53 PDT PID:4735 XID:0 LOG: statement: SET standard_conforming_strings TO on;SET datestyle TO ISO 2014-07-30 09:41:53 PDT PID:4735 XID:0 LOG: duration: 0.480 ms 2014-07-30 09:41:53 PDT PID:4738 XID:0 LOG: statement: SET client_encoding TO utf8 2014-07-30 09:41:53 PDT PID:4738 XID:0 LOG: duration: 0.074 ms 2014-07-30 09:41:53 PDT PID:4737 XID:0 LOG: statement: SET client_encoding TO utf8 2014-07-30 09:41:53 PDT PID:4737 XID:0 LOG: duration: 0.104 ms 2014-07-30 09:41:53 PDT PID:4739 XID:0 LOG: statement: SET standard_conforming_strings TO on;SET datestyle TO ISO 2014-07-30 09:41:53 PDT PID:4739 XID:0 LOG: duration: 0.331 ms 2014-07-30 09:41:53 PDT PID:4738 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:53 PDT PID:4735 XID:0 LOG: statement: SET client_encoding TO utf8 2014-07-30 09:41:53 PDT PID:4735 XID:0 LOG: duration: 0.135 ms 2014-07-30 09:41:53 PDT PID:4738 XID:0 LOG: duration: 3.674 ms 2014-07-30 09:41:53 PDT PID:4739 XID:0 LOG: statement: SET client_encoding TO utf8 2014-07-30 09:41:53 PDT PID:4739 XID:0 LOG: duration: 0.143 ms 2014-07-30 09:41:53 PDT PID:4737 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:53 PDT PID:4737 XID:0 LOG: duration: 3.995 ms 2014-07-30 09:41:53 PDT PID:4735 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:53 PDT PID:4735 XID:0 LOG: duration: 3.503 ms 2014-07-30 09:41:53 PDT PID:4739 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:53 PDT PID:4739 XID:0 LOG: duration: 2.830 ms 2014-07-30 09:41:53 PDT PID:4717 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4716 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4733 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4719 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('m789teb7pe4erpwu', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:53 PDT PID:4736 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4732 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4734 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4718 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:53 PDT PID:4718 XID:0 LOG: duration: 0.445 ms 2014-07-30 09:41:53 PDT PID:4738 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4715 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:53 PDT PID:4715 XID:0 LOG: duration: 0.253 ms 2014-07-30 09:41:53 PDT PID:4718 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4719 XID:0 LOG: duration: 12.996 ms 2014-07-30 09:41:53 PDT PID:4715 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4737 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4719 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:53 PDT PID:4719 XID:0 LOG: duration: 0.376 ms 2014-07-30 09:41:53 PDT PID:4735 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4719 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:53 PDT PID:4739 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:54 PDT PID:4729 XID:25780 ERROR: deadlock detected 2014-07-30 09:41:54 PDT PID:4729 XID:25780 DETAIL: Process 4729 waits for ShareLock on transaction 25779; blocked by process 4727. 2014-07-30 09:41:54 PDT PID:4729 XID:25780 HINT: See server log for query details. 2014-07-30 09:41:54 PDT PID:4729 XID:25780 STATEMENT: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:54 PDT PID:4729 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:54 PDT PID:4729 XID:0 LOG: duration: 0.865 ms 2014-07-30 09:41:54 PDT PID:4729 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:55 PDT PID:4731 XID:25781 ERROR: deadlock detected 2014-07-30 09:41:55 PDT PID:4731 XID:25781 DETAIL: Process 4731 waits for ShareLock on transaction 25779; blocked by process 4727. 2014-07-30 09:41:55 PDT PID:4731 XID:25781 HINT: See server log for query details. 2014-07-30 09:41:55 PDT PID:4731 XID:25781 STATEMENT: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:55 PDT PID:4722 XID:0 LOG: duration: 2047.311 ms 2014-07-30 09:41:55 PDT PID:4727 XID:0 LOG: duration: 2042.021 ms 2014-07-30 09:41:55 PDT PID:4716 XID:0 LOG: duration: 1796.127 ms 2014-07-30 09:41:55 PDT PID:4717 XID:0 LOG: duration: 1798.057 ms 2014-07-30 09:41:55 PDT PID:4722 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('3njjbdymr6rt4yna', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:55 PDT PID:4716 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('ac5wdak8e3d9brph', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:55 PDT PID:4717 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('7sa56tqda9sycnrx', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:55 PDT PID:4731 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:55 PDT PID:4731 XID:0 LOG: duration: 0.276 ms 2014-07-30 09:41:55 PDT PID:4727 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('jqq8wc7zhtrffuru', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:55 PDT PID:4724 XID:0 LOG: duration: 2061.442 ms 2014-07-30 09:41:55 PDT PID:4726 XID:0 LOG: duration: 2063.663 ms 2014-07-30 09:41:55 PDT PID:4731 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:55 PDT PID:4722 XID:0 LOG: duration: 10.416 ms 2014-07-30 09:41:55 PDT PID:4716 XID:0 LOG: duration: 4.895 ms 2014-07-30 09:41:55 PDT PID:4717 XID:0 LOG: duration: 3.979 ms 2014-07-30 09:41:55 PDT PID:4727 XID:0 LOG: duration: 3.065 ms 2014-07-30 09:41:55 PDT PID:4720 XID:0 LOG: duration: 2071.239 ms 2014-07-30 09:41:55 PDT PID:4721 XID:0 LOG: duration: 2069.597 ms 2014-07-30 09:41:55 PDT PID:4728 XID:0 LOG: duration: 2065.082 ms 2014-07-30 09:41:55 PDT PID:4736 XID:0 LOG: duration: 1815.498 ms 2014-07-30 09:41:55 PDT PID:4728 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('xys7vzs94huex2y7', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:55 PDT PID:4733 XID:0 LOG: duration: 1821.035 ms 2014-07-30 09:41:55 PDT PID:4721 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('srqvfyvm5hjbqjgh', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:55 PDT PID:4724 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('nj9gmnsm6gvracn8', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:55 PDT PID:4736 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('a5bp927ef8wtmyzq', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:55 PDT PID:4722 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:55 PDT PID:4722 XID:0 LOG: duration: 0.402 ms 2014-07-30 09:41:55 PDT PID:4727 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:55 PDT PID:4735 XID:0 LOG: duration: 1804.859 ms 2014-07-30 09:41:55 PDT PID:4727 XID:0 LOG: duration: 0.314 ms 2014-07-30 09:41:55 PDT PID:4734 XID:0 LOG: duration: 1822.148 ms 2014-07-30 09:41:55 PDT PID:4716 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:55 PDT PID:4716 XID:0 LOG: duration: 0.209 ms 2014-07-30 09:41:55 PDT PID:4733 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('c6q4y7d8sje5nrfn', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:55 PDT PID:4717 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:55 PDT PID:4717 XID:0 LOG: duration: 0.207 ms 2014-07-30 09:41:55 PDT PID:4726 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('zdhr775vbuut7jaw', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:55 PDT PID:4722 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:55 PDT PID:4727 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:55 PDT PID:4716 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:55 PDT PID:4724 XID:0 LOG: duration: 16.024 ms 2014-07-30 09:41:55 PDT PID:4728 XID:0 LOG: duration: 20.277 ms 2014-07-30 09:41:55 PDT PID:4726 XID:0 LOG: duration: 6.604 ms 2014-07-30 09:41:55 PDT PID:4733 XID:0 LOG: duration: 8.228 ms 2014-07-30 09:41:55 PDT PID:4736 XID:0 LOG: duration: 17.109 ms 2014-07-30 09:41:55 PDT PID:4721 XID:0 LOG: duration: 18.528 ms 2014-07-30 09:41:55 PDT PID:4720 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('t9xhe6f3pea76fn3', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:55 PDT PID:4717 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:55 PDT PID:4735 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('hsw4d44texh95tqh', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:55 PDT PID:4735 XID:0 LOG: duration: 2.891 ms 2014-07-30 09:41:55 PDT PID:4734 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('ep2n66dqv7da759v', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:55 PDT PID:4734 XID:0 LOG: duration: 2.171 ms 2014-07-30 09:41:55 PDT PID:4720 XID:0 LOG: duration: 8.575 ms 2014-07-30 09:41:55 PDT PID:4736 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:55 PDT PID:4736 XID:0 LOG: duration: 0.348 ms 2014-07-30 09:41:55 PDT PID:4726 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:55 PDT PID:4726 XID:0 LOG: duration: 0.232 ms 2014-07-30 09:41:55 PDT PID:4733 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:55 PDT PID:4733 XID:0 LOG: duration: 0.288 ms 2014-07-30 09:41:55 PDT PID:4728 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:55 PDT PID:4728 XID:0 LOG: duration: 0.274 ms 2014-07-30 09:41:55 PDT PID:4721 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:55 PDT PID:4721 XID:0 LOG: duration: 0.291 ms 2014-07-30 09:41:55 PDT PID:4724 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:55 PDT PID:4724 XID:0 LOG: duration: 0.342 ms 2014-07-30 09:41:55 PDT PID:4720 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:55 PDT PID:4720 XID:0 LOG: duration: 0.347 ms 2014-07-30 09:41:55 PDT PID:4735 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:55 PDT PID:4735 XID:0 LOG: duration: 0.198 ms 2014-07-30 09:41:55 PDT PID:4734 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:55 PDT PID:4734 XID:0 LOG: duration: 0.177 ms 2014-07-30 09:41:55 PDT PID:4726 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:55 PDT PID:4736 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:55 PDT PID:4728 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:55 PDT PID:4733 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:55 PDT PID:4721 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:55 PDT PID:4724 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:55 PDT PID:4735 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:55 PDT PID:4720 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:55 PDT PID:4734 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:56 PDT PID:4731 XID:25812 ERROR: deadlock detected 2014-07-30 09:41:56 PDT PID:4731 XID:25812 DETAIL: Process 4731 waits for ExclusiveLock on tuple (1,98) of relation 16553 of database 16385; blocked by process 4738. 2014-07-30 09:41:56 PDT PID:4731 XID:25812 HINT: See server log for query details. 2014-07-30 09:41:56 PDT PID:4731 XID:25812 STATEMENT: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:56 PDT PID:4719 XID:25802 ERROR: deadlock detected 2014-07-30 09:41:56 PDT PID:4719 XID:25802 DETAIL: Process 4719 waits for ExclusiveLock on tuple (1,98) of relation 16553 of database 16385; blocked by process 4738. 2014-07-30 09:41:56 PDT PID:4719 XID:25802 HINT: See server log for query details. 2014-07-30 09:41:56 PDT PID:4719 XID:25802 STATEMENT: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:56 PDT PID:4718 XID:25797 ERROR: deadlock detected 2014-07-30 09:41:56 PDT PID:4718 XID:25797 DETAIL: Process 4718 waits for ExclusiveLock on tuple (1,98) of relation 16553 of database 16385; blocked by process 4738. 2014-07-30 09:41:56 PDT PID:4718 XID:25797 HINT: See server log for query details. 2014-07-30 09:41:56 PDT PID:4718 XID:25797 STATEMENT: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:56 PDT PID:4725 XID:25791 ERROR: deadlock detected 2014-07-30 09:41:56 PDT PID:4725 XID:25791 DETAIL: Process 4725 waits for ExclusiveLock on tuple (1,98) of relation 16553 of database 16385; blocked by process 4738. 2014-07-30 09:41:56 PDT PID:4725 XID:25791 HINT: See server log for query details. 2014-07-30 09:41:56 PDT PID:4725 XID:25791 STATEMENT: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:56 PDT PID:4730 XID:25785 ERROR: deadlock detected 2014-07-30 09:41:56 PDT PID:4730 XID:25785 DETAIL: Process 4730 waits for ExclusiveLock on tuple (1,98) of relation 16553 of database 16385; blocked by process 4738. 2014-07-30 09:41:56 PDT PID:4730 XID:25785 HINT: See server log for query details. 2014-07-30 09:41:56 PDT PID:4730 XID:25785 STATEMENT: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:56 PDT PID:4737 XID:25800 ERROR: deadlock detected 2014-07-30 09:41:56 PDT PID:4737 XID:25800 DETAIL: Process 4737 waits for ExclusiveLock on tuple (1,98) of relation 16553 of database 16385; blocked by process 4738. 2014-07-30 09:41:56 PDT PID:4737 XID:25800 HINT: See server log for query details. 2014-07-30 09:41:56 PDT PID:4737 XID:25800 STATEMENT: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:56 PDT PID:4715 XID:25799 ERROR: deadlock detected 2014-07-30 09:41:56 PDT PID:4715 XID:25799 DETAIL: Process 4715 waits for ExclusiveLock on tuple (1,98) of relation 16553 of database 16385; blocked by process 4738. 2014-07-30 09:41:56 PDT PID:4715 XID:25799 HINT: See server log for query details. 2014-07-30 09:41:56 PDT PID:4715 XID:25799 STATEMENT: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:56 PDT PID:4732 XID:25798 ERROR: deadlock detected 2014-07-30 09:41:56 PDT PID:4732 XID:25798 DETAIL: Process 4732 waits for ExclusiveLock on tuple (1,98) of relation 16553 of database 16385; blocked by process 4738. 2014-07-30 09:41:56 PDT PID:4732 XID:25798 HINT: See server log for query details. 2014-07-30 09:41:56 PDT PID:4732 XID:25798 STATEMENT: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:56 PDT PID:4723 XID:25786 ERROR: deadlock detected 2014-07-30 09:41:56 PDT PID:4723 XID:25786 DETAIL: Process 4723 waits for ExclusiveLock on tuple (1,98) of relation 16553 of database 16385; blocked by process 4738. 2014-07-30 09:41:56 PDT PID:4723 XID:25786 HINT: See server log for query details. 2014-07-30 09:41:56 PDT PID:4723 XID:25786 STATEMENT: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:56 PDT PID:4739 XID:25806 ERROR: deadlock detected 2014-07-30 09:41:56 PDT PID:4739 XID:25806 DETAIL: Process 4739 waits for ExclusiveLock on tuple (1,98) of relation 16553 of database 16385; blocked by process 4738. 2014-07-30 09:41:56 PDT PID:4739 XID:25806 HINT: See server log for query details. 2014-07-30 09:41:56 PDT PID:4739 XID:25806 STATEMENT: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:56 PDT PID:4738 XID:25805 ERROR: deadlock detected 2014-07-30 09:41:56 PDT PID:4738 XID:25805 DETAIL: Process 4738 waits for ShareLock on transaction 25807; blocked by process 4729. 2014-07-30 09:41:56 PDT PID:4738 XID:25805 HINT: See server log for query details. 2014-07-30 09:41:56 PDT PID:4738 XID:25805 STATEMENT: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:56 PDT PID:4729 XID:0 LOG: duration: 2041.316 ms 2014-07-30 09:41:56 PDT PID:4716 XID:0 LOG: duration: 1000.119 ms 2014-07-30 09:41:56 PDT PID:4717 XID:0 LOG: duration: 997.180 ms 2014-07-30 09:41:56 PDT PID:4727 XID:0 LOG: duration: 1003.124 ms 2014-07-30 09:41:56 PDT PID:4722 XID:0 LOG: duration: 1003.866 ms 2014-07-30 09:41:56 PDT PID:4716 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('cb3tb8q3q8w7jgb9', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:56 PDT PID:4733 XID:0 LOG: duration: 968.410 ms 2014-07-30 09:41:56 PDT PID:4726 XID:0 LOG: duration: 971.450 ms 2014-07-30 09:41:56 PDT PID:4716 XID:0 LOG: duration: 1.847 ms 2014-07-30 09:41:56 PDT PID:4736 XID:0 LOG: duration: 971.586 ms 2014-07-30 09:41:56 PDT PID:4724 XID:0 LOG: duration: 956.523 ms 2014-07-30 09:41:56 PDT PID:4728 XID:0 LOG: duration: 971.513 ms 2014-07-30 09:41:56 PDT PID:4721 XID:0 LOG: duration: 959.007 ms 2014-07-30 09:41:56 PDT PID:4734 XID:0 LOG: duration: 955.818 ms 2014-07-30 09:41:56 PDT PID:4735 XID:0 LOG: duration: 958.631 ms 2014-07-30 09:41:56 PDT PID:4728 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('2d4k7qkj7pxeaxyd', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:56 PDT PID:4724 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('7gt9tzmenv7hs8x9', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:56 PDT PID:4726 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('8xrhdtfypy5pdaxp', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:56 PDT PID:4727 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('fn6ybvr58nghqfvm', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:56 PDT PID:4722 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('65wj9wtqat933hn5', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:56 PDT PID:4733 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('r52xxsdjdbj6vk59', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:56 PDT PID:4729 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('9d5pe3rqrbgh96bs', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:56 PDT PID:4736 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('zucqgdgf8vrxkdub', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:56 PDT PID:4721 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('apgkehysf7eu4dr2', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:56 PDT PID:4728 XID:0 LOG: duration: 5.846 ms 2014-07-30 09:41:56 PDT PID:4727 XID:0 LOG: duration: 3.622 ms 2014-07-30 09:41:56 PDT PID:4722 XID:0 LOG: duration: 3.294 ms 2014-07-30 09:41:56 PDT PID:4733 XID:0 LOG: duration: 2.938 ms 2014-07-30 09:41:56 PDT PID:4726 XID:0 LOG: duration: 4.417 ms 2014-07-30 09:41:56 PDT PID:4736 XID:0 LOG: duration: 1.680 ms 2014-07-30 09:41:56 PDT PID:4729 XID:0 LOG: duration: 2.775 ms 2014-07-30 09:41:56 PDT PID:4724 XID:0 LOG: duration: 5.320 ms 2014-07-30 09:41:56 PDT PID:4734 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('3rabn98sk63nmmkw', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:56 PDT PID:4721 XID:0 LOG: duration: 2.047 ms 2014-07-30 09:41:56 PDT PID:4734 XID:0 LOG: duration: 0.639 ms 2014-07-30 09:41:56 PDT PID:4735 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('nfm3p27uva72vunn', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:56 PDT PID:4735 XID:0 LOG: duration: 0.505 ms 2014-07-30 09:41:56 PDT PID:4720 XID:0 LOG: duration: 968.198 ms 2014-07-30 09:41:56 PDT PID:4720 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('psejqv8mv5jnvkgy', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:56 PDT PID:4720 XID:0 LOG: duration: 1.174 ms 2014-07-30 09:41:56 PDT PID:4717 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('zhq43nvs9wdpb4nh', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:56 PDT PID:4717 XID:0 LOG: duration: 0.946 ms 2014-07-30 09:41:56 PDT PID:4718 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:56 PDT PID:4718 XID:0 LOG: duration: 0.414 ms 2014-07-30 09:41:56 PDT PID:4718 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:56 PDT PID:4718 XID:0 LOG: duration: 0.763 ms 2014-07-30 09:41:56 PDT PID:4730 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:56 PDT PID:4730 XID:0 LOG: duration: 0.254 ms 2014-07-30 09:41:56 PDT PID:4719 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:56 PDT PID:4719 XID:0 LOG: duration: 0.164 ms 2014-07-30 09:41:56 PDT PID:4718 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('6nf4akd5cng3dcsm', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:56 PDT PID:4719 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:56 PDT PID:4719 XID:0 LOG: duration: 1.102 ms 2014-07-30 09:41:56 PDT PID:4715 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:56 PDT PID:4715 XID:0 LOG: duration: 0.391 ms 2014-07-30 09:41:56 PDT PID:4718 XID:0 LOG: duration: 1.852 ms 2014-07-30 09:41:56 PDT PID:4719 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('5vwxvj7yzqkv2438', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:56 PDT PID:4730 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:56 PDT PID:4715 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:56 PDT PID:4728 XID:0 LOG: statement: SELECT "user_1"."id", "user_1"."uuid", "user_1"."lastUpdated" AT TIME ZONE 'UTC', "user_1"."id" as _id FROM "z8z6px927zu6qzzbnb5ntgghxg"."user_1" AS "user_1" WHERE "user_1"."id" = 129 2014-07-30 09:41:56 PDT PID:4728 XID:0 LOG: duration: 0.223 ms 2014-07-30 09:41:56 PDT PID:4719 XID:0 LOG: duration: 4.042 ms 2014-07-30 09:41:56 PDT PID:4728 XID:0 LOG: statement: UPDATE "z8z6px927zu6qzzbnb5ntgghxg"."access_grants" ag SET last_issued=DEFAULT FROM "z8z6px927zu6qzzbnb5ntgghxg"."oauth_clients" oc WHERE oc.id = ag.client_id AND ag.entity_name = 'user' AND ag.entity_id = 129 AND oc.client_id = '3hp45h9d4f9wwtx7cvpus6rdb4s5kb9f' RETURNING ag.id 2014-07-30 09:41:56 PDT PID:4730 XID:0 LOG: duration: 9.535 ms 2014-07-30 09:41:56 PDT PID:4715 XID:0 LOG: duration: 8.274 ms 2014-07-30 09:41:56 PDT PID:4728 XID:0 LOG: duration: 5.898 ms 2014-07-30 09:41:56 PDT PID:4730 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('exemfjaxzsebk7uc', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:56 PDT PID:4715 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('3pqfgs5zmm9cnheh', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:56 PDT PID:4728 XID:0 LOG: statement: INSERT INTO "z8z6px927zu6qzzbnb5ntgghxg"."access_tokens"(token, access_id, refresh_token_id, issued, expiry) VALUES('5c8r8epmtq3abcy2', 2, null, timezone('UTC'::text, now()), timezone('UTC'::text, now()) + '1:00:00':: interval) 2014-07-30 09:41:56 PDT PID:4715 XID:0 LOG: duration: 1.194 ms 2014-07-30 09:41:56 PDT PID:4728 XID:0 LOG: duration: 1.439 ms 2014-07-30 09:41:56 PDT PID:4730 XID:0 LOG: duration: 3.975 ms --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="postgresql.conf" data_directory = '/var/lib/postgresql/9.3/main' # use data in another directory hba_file = '/etc/postgresql/9.3/main/pg_hba.conf' # host-based authentication file ident_file = '/etc/postgresql/9.3/main/pg_ident.conf' # ident configuration file external_pid_file = '/var/run/postgresql/9.3-main.pid' # write an extra PID file listen_addresses = '*' # what IP address(es) to listen on; port = 5432 # (change requires restart) max_connections = 100 # (change requires restart) unix_socket_directories = '/var/run/postgresql' # comma-separated list of directories ssl = true # (change requires restart) ssl_cert_file = '/etc/ssl/certs/ssl-cert-snakeoil.pem' # (change requires restart) ssl_key_file = '/etc/ssl/private/ssl-cert-snakeoil.key' # (change requires restart) shared_buffers = 128MB # min 128kB log_min_duration_statement = 0 # -1 is disabled, 0 logs all statements log_line_prefix = '%t PID:%p XID:%x ' # special values: log_statement = 'all' # none, ddl, mod, all log_timezone = 'localtime' datestyle = 'iso, mdy' timezone = 'localtime' lc_messages = 'en_US.UTF-8' # locale for system error message lc_monetary = 'en_US.UTF-8' # locale for monetary formatting lc_numeric = 'en_US.UTF-8' # locale for number formatting lc_time = 'en_US.UTF-8' # locale for time formatting default_text_search_config = 'pg_catalog.english' --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=table_defs Table "z8z6px927zu6qzzbnb5ntgghxg.access_grants" Column | Type | Modifiers -------------------+-----------------------------+--------------------------------------------------------------------------------------- id | bigint | not null default nextval('z8z6px927zu6qzzbnb5ntgghxg.access_grants_id_seq'::regclass) client_id | bigint | not null entity_name | character varying(40) | not null entity_id | bigint | not null originally_issued | timestamp without time zone | not null default timezone('UTC'::text, now()) last_issued | timestamp without time zone | not null default timezone('UTC'::text, now()) Indexes: "access_grants_pkey" PRIMARY KEY, btree (id) "access_grants_client_id_entity_name_entity_id_key" UNIQUE CONSTRAINT, btree (client_id, entity_name, entity_id) "access_grants_client_id_idx" btree (client_id) Foreign-key constraints: "access_grants_client_id_fkey" FOREIGN KEY (client_id) REFERENCES z8z6px927zu6qzzbnb5ntgghxg.oauth_clients(id) ON DELETE CASCADE Referenced by: TABLE "z8z6px927zu6qzzbnb5ntgghxg.access_tokens" CONSTRAINT "access_tokens_access_id_fkey" FOREIGN KEY (access_id) REFERENCES z8z6px927zu6qzzbnb5ntgghxg.access_grants(id) ON DELETE CASCADE TABLE "z8z6px927zu6qzzbnb5ntgghxg.authorization_codes" CONSTRAINT "authorization_codes_access_id_fkey" FOREIGN KEY (access_id) REFERENCES z8z6px927zu6qzzbnb5ntgghxg.access_grants(id) ON DELETE CASCADE TABLE "z8z6px927zu6qzzbnb5ntgghxg.refresh_tokens" CONSTRAINT "refresh_tokens_access_id_fkey" FOREIGN KEY (access_id) REFERENCES z8z6px927zu6qzzbnb5ntgghxg.access_grants(id) ON DELETE CASCADE Table "z8z6px927zu6qzzbnb5ntgghxg.oauth_clients" Column | Type | Modifiers ---------------+---------------+--------------------------------------------------------------------------------------- id | bigint | not null default nextval('z8z6px927zu6qzzbnb5ntgghxg.oauth_clients_id_seq'::regclass) client_id | character(32) | not null client_secret | character(32) | not null description | text | not null Indexes: "oauth_clients_pkey" PRIMARY KEY, btree (id) "oauth_clients_client_id_key" UNIQUE CONSTRAINT, btree (client_id) "oauth_clients_client_secret_key" UNIQUE CONSTRAINT, btree (client_secret) Referenced by: TABLE "z8z6px927zu6qzzbnb5ntgghxg.access_grants" CONSTRAINT "access_grants_client_id_fkey" FOREIGN KEY (client_id) REFERENCES z8z6px927zu6qzzbnb5ntgghxg.oauth_clients(id) ON DELETE CASCADE TABLE "z8z6px927zu6qzzbnb5ntgghxg.access_schemas" CONSTRAINT "access_schemas_client_id_fkey" FOREIGN KEY (client_id) REFERENCES z8z6px927zu6qzzbnb5ntgghxg.oauth_clients(id) ON DELETE CASCADE TABLE "z8z6px927zu6qzzbnb5ntgghxg.client_features" CONSTRAINT "client_features_client_id_fkey" FOREIGN KEY (client_id) REFERENCES z8z6px927zu6qzzbnb5ntgghxg.oauth_clients(id) ON DELETE CASCADE TABLE "z8z6px927zu6qzzbnb5ntgghxg.client_settings" CONSTRAINT "client_settings_client_id_fkey" FOREIGN KEY (client_id) REFERENCES z8z6px927zu6qzzbnb5ntgghxg.oauth_clients(id) ON DELETE CASCADE TABLE "z8z6px927zu6qzzbnb5ntgghxg.client_whitelists" CONSTRAINT "client_whitelists_client_id_fkey" FOREIGN KEY (client_id) REFERENCES z8z6px927zu6qzzbnb5ntgghxg.oauth_clients(id) ON DELETE CASCADE TABLE "z8z6px927zu6qzzbnb5ntgghxg.creation_tokens" CONSTRAINT "creation_tokens_client_id_fkey" FOREIGN KEY (client_id) REFERENCES z8z6px927zu6qzzbnb5ntgghxg.oauth_clients(id) ON DELETE CASCADE TABLE "z8z6px927zu6qzzbnb5ntgghxg.expired_secrets" CONSTRAINT "expired_secrets_client_id_fkey" FOREIGN KEY (client_id) REFERENCES z8z6px927zu6qzzbnb5ntgghxg.oauth_clients(id) ON DELETE CASCADE TABLE "z8z6px927zu6qzzbnb5ntgghxg.verification_codes" CONSTRAINT "verification_codes_client_id_fkey" FOREIGN KEY (client_id) REFERENCES z8z6px927zu6qzzbnb5ntgghxg.oauth_clients(id) ON DELETE CASCADE --AqsLC8rIMeq19msA Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs --AqsLC8rIMeq19msA--