Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 1CCACB5DBDE for ; Sat, 27 Aug 2011 00:13:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 25952-02 for ; Sat, 27 Aug 2011 03:12:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-gy0-f174.google.com (mail-gy0-f174.google.com [209.85.160.174]) by mail.postgresql.org (Postfix) with ESMTP id DBE7EB5DC26 for ; Sat, 27 Aug 2011 00:12:57 -0300 (ADT) Received: by gya6 with SMTP id 6so3369210gya.19 for ; Fri, 26 Aug 2011 20:12:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding:x-mailer:thread-index:content-language :x-cr-hashedpuzzle:x-cr-puzzleid; bh=tHqe9dsk+LgOG/Fq5mPuun9Gsr60TWHodoV5/3w+Dew=; b=TblyQK+Wr8RakLFAlJ4zUOOAxFPKoYGXMK+Z7oFsaNwxeNGkiQph8YkBhnR1A2ltCI YbdINDh7S6LXRRg4ygvl1hpsbwgBaht0/F20IW2gc+hpp7GQzYaWvKb9XMOZymRB/k9q bOX3Q+vM+OA+fbuJzV+0Xs7cTKkffYBDr98eI= Received: by 10.42.145.132 with SMTP id f4mr1744740icv.95.1314414777141; Fri, 26 Aug 2011 20:12:57 -0700 (PDT) Received: from Duality (67-40-130-232.hlrn.qwest.net [67.40.130.232]) by mx.google.com with ESMTPS id bv10sm2372269icb.13.2011.08.26.20.12.55 (version=SSLv3 cipher=OTHER); Fri, 26 Aug 2011 20:12:56 -0700 (PDT) From: "mark" To: Subject: pgbench -T isn't a hard cutoff. Date: Fri, 26 Aug 2011 21:13:10 -0600 Message-ID: <005a01cc6467$410a87c0$c31f9740$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcxkZz6y2o2NxPi3TuOD+pYKARscCA== Content-Language: en-us x-cr-hashedpuzzle: AXmM AYay BFfI CGDO CLkQ CVlj Cxdl EOP6 ERAg F0kq GiAc GwBz Hhl1 Hyy0 KSS3 LGs8; 1; cABnAHMAcQBsAC0AYgB1AGcAcwBAAHAAbwBzAHQAZwByAGUAcwBxAGwALgBvAHIAZwA=; Sosha1_v1; 7; {A11D28E5-2F55-4ACA-93BB-0DC478A502F2}; ZAB2AGwAaABuAHQAcgBAAGcAbQBhAGkAbAAuAGMAbwBtAA==; Sat, 27 Aug 2011 03:13:08 GMT; cABnAGIAZQBuAGMAaAAgAC0AVAAgAGkAcwBuACcAdAAgAGEAIABoAGEAcgBkACAAYwB1AHQAbwBmAGYALgA= x-cr-puzzleid: {A11D28E5-2F55-4ACA-93BB-0DC478A502F2} X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201108/161 X-Sequence-Number: 30973 Using the -T flag in pgbench I noticed that -T is a just a effort rather than a hard cut off. With a (misbehaving) pooler and a "large" number of clients+jobs it's possible to have the pgbench run extend by several seconds or even minutes past the allotted time by -T. (or hang indefinitely if the transactions never complete due to pooler issues.) Expected behavior would be -T would mean a hard cut off. Thoughts ? -Mark