Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLodp-0000Rx-VB for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Jun 2017 10:38:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dLodp-000212-DO for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Jun 2017 10:38:13 +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 1dLodo-0001xD-8s for pgsql-hackers@postgresql.org; Fri, 16 Jun 2017 10:38:12 +0000 Received: from mail.postgrespro.ru ([93.174.131.138]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLodl-0006qv-BI for pgsql-hackers@postgresql.org; Fri, 16 Jun 2017 10:38:11 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 363DA21C1AE3; Fri, 16 Jun 2017 13:38:08 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1497609487; bh=qFr70fEIlZZQsA59AWKgDQ1UKl5s2akvxdvQPKRmNnM=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=oLHzwnWyPwAzVygQEK57LVPv7TRllBJ51M17J3Kt4Uf40BSHoHieEaYr07pewC0i+ g/gjXGpGuUvIyiSIQe/D+XKi5lrGgA8sQLjHSxEYssJz1h4qps1+71ilI4T09qvRrQ gNEGcgUkd8diAmEec8Emtf5WqKYmslWOqYWuEXDo= Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 16 Jun 2017 13:38:07 +0300 From: Marina Polyakova To: Alvaro Herrera Cc: Kevin Grittner , Andres Freund , pgsql-hackers@postgresql.org, Thomas Munro Subject: Re: WIP Patch: Pgbench Serialization and deadlock errors Organization: Postgres Professional In-Reply-To: <20170615211806.sfkpiy2acoavpovl@alvherre.pgsql> References: <20170615211806.sfkpiy2acoavpovl@alvherre.pgsql> Message-ID: <11ab8c4ff2cc022ac3e43a4652b958ce@postgrespro.ru> X-Sender: m.polyakova@postgrespro.ru User-Agent: Roundcube Webmail/1.2.4 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 >> >> 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. Yes, I have meant this, thank you! > I think it's pretty obvious that transactions that failed with > some serializability problem should be retried. Thank you voted :) -- Marina Polyakova Postgres Professional: http://www.postgrespro.com The Russian Postgres Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers