Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLc9f-0002Xs-Eb for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Jun 2017 21:18:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dLc9e-0004CM-4K for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Jun 2017 21:18:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dLc9d-0004CD-Im for pgsql-hackers@postgresql.org; Thu, 15 Jun 2017 21:18:13 +0000 Received: from mail-qt0-x229.google.com ([2607:f8b0:400d:c0d::229]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dLc9a-0001Gz-C1 for pgsql-hackers@postgresql.org; Thu, 15 Jun 2017 21:18:12 +0000 Received: by mail-qt0-x229.google.com with SMTP id w1so37688908qtg.2 for ; Thu, 15 Jun 2017 14:18:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=EXqj9JPr5sGbLjasfj5eaVcVlaoVZIc8Tk8FQC7sqeM=; b=MVzbUc4OAqHJQ5NZxPPT6Pi3sA0kT4FEPjyyFYiebZmYnq+sJDtpNLpc+7Fh/k5VNN J5nm7C7DvFObECwDjAgE7SICrsOQ3GCwkOezsa8YbmMa7SOeh7oFNxqiw9dLG+x/coKP 1TZ/gAscc9mUAdQ4lnRFG7EqonL8zzHOXLphQCDUTuTivMg46yW8VnUxi/W8NRIMal4Z hUX6eaMWRAEan6KCRdq15+GagjiqYSfUA/IOC3248iNIL+5YIQXVvO2tdUsb97CkWLqh OZV78J/7LlcJLNWzgRSYF0gRNlK9Al1o4IYzXuoIeXLsx0jfhVy3C6HrwNXwXqv0eqqO BTRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=EXqj9JPr5sGbLjasfj5eaVcVlaoVZIc8Tk8FQC7sqeM=; b=EGU00sVGPixt/uTOu7ki3Gu5RDEovQ8n3DM/KPDm+VPl5O/xsTmBPEAAf80dbnaybr c13klw4zEaSxeQPCL0YwUidoA9jtnLFltVOCyUnC3yh16K+QBR+INdmX7mMny1wa+GlI dLj8cRMZRtMAGj7penA/S5xjo6unKy3UpzVbgt0m7P4hfZ2HwkrfFD0VZH2CvfKSw8mT IvitLRU30O1iJMNVCFNI5FwU0TVbtVG3Dxk5pN3y1OP8FjXwqFq42jNnZ9m7tu+I4IQW V6b8UFTARkDCCGyszStjs7DEbJAURLsVNl/Pa8FXVK0uNBxSycMXVuFlugMIU/vOJmLl ORYA== X-Gm-Message-State: AKS2vOzpqaETgWpeuFFEt30bopoDMtXo3egGEMvXW7Sv222wjTp3zLvD L/qsnl0bdWo/jQuM3H4= X-Received: by 10.55.127.199 with SMTP id a190mr9476511qkd.100.1497561488703; Thu, 15 Jun 2017 14:18:08 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([190.217.209.130]) by smtp.gmail.com with ESMTPSA id n206sm198176qkn.65.2017.06.15.14.18.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Jun 2017 14:18:08 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 342D1172; Thu, 15 Jun 2017 18:18:06 -0300 (-03) Date: Thu, 15 Jun 2017 17:18:06 -0400 From: Alvaro Herrera To: Kevin Grittner Cc: Andres Freund , Marina Polyakova , "pgsql-hackers@postgresql.org" Subject: Re: WIP Patch: Pgbench Serialization and deadlock errors Message-ID: <20170615211806.sfkpiy2acoavpovl@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Kevin Grittner wrote: > On Thu, Jun 15, 2017 at 2:16 PM, Andres Freund wrote: > > On 2017-06-14 11:48:25 +0300, Marina Polyakova wrote: > >> P.S. Does this use case (do not retry transaction with serialization or > >> deadlock failure) is most interesting or failed transactions should be > >> retried (and how much times if there seems to be no hope of success...)? > > > > I can't quite parse that sentence, could you restate? > > The way I read it was that the most interesting solution would retry > a transaction from the beginning on a serialization failure or > deadlock failure. As far as I understand her proposal, it is exactly the opposite -- if a transaction fails, it is discarded. And this P.S. note is asking whether this is a good idea, or would we prefer that failing transactions are retried. I think it's pretty obvious that transactions that failed with some serializability problem should be retried. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers