Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gOpin-0001Gz-HX for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Nov 2018 20:00:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gOpik-0001Lm-L2 for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Nov 2018 20:00:34 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gOpik-0001Lf-A8 for pgsql-hackers@lists.postgresql.org; Mon, 19 Nov 2018 20:00:34 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gOpig-0003ky-TZ for pgsql-hackers@postgresql.org; Mon, 19 Nov 2018 20:00:33 +0000 Received: by mail-qk1-x741.google.com with SMTP id r71so50720393qkr.10 for ; Mon, 19 Nov 2018 12:00:30 -0800 (PST) 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=UL0C3AX7n5YcXOJJG0wh9fnWkHgM+t1x0/pPhfhpP3c=; b=MjdW1Us8Fsj2M2t/5S++7Pt5dOG+MDQrU38L38PEqQvpvMVkWZ0b+Ktr4G8XSneRrD Lz4gs2VNbNG3ggF8BKwiPAsjjlLqwJyqXvnSsLkUugAbR9qUxhTkqjGOF/g2id8bjqmD 4HIMG3ni0+9bTSNX7Ar1FuefX8uc78zmIPgqZjJCO5bqp9VyNOrxUSByXDiO0Ax+uEoT Fe366v/Rvgq9CuS196UHkweYPoAyoNbNP8WJRpi3XJ/ct3FXiRvC7sC6jZ2tARncvAQw ON1xV/9GTEGpMqLKNiNp8PDo25PAP6RQ/SS0sd5Y/h743sUUc4wy+okO1U0BY+6SfVUO BlhA== 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=UL0C3AX7n5YcXOJJG0wh9fnWkHgM+t1x0/pPhfhpP3c=; b=WlcVShAyeCaa8ypUTuQPMaBYAo/XnO+SOSn+y/hGzdHvfVNpBQXIN5he0u3bI150yC z4fPpe9Ijz3RFq1ag0Pwx5ggNdVzkEzfqeFR3yNPxjiVvX5yMyGqVq8ZfecnRu8rS/Vz oBZRZdNeKsz9i+BhfXf4He4wIBZIgIOBdzfmzSRbTxx1dgba/hqY3q+26b165R6AfSzb mrazCKw73+Lc24wx1e6bxwsOmt74nBOpPtI+cRzhz4hEBIzufwM/4AbcFdhM6iK/JPXp saHG8sV0C3nkBJvfa8IYCS4FW3Al+3coJJGSJwpOZNxZiftnRKoWf5s9opx9j/9e3yln +RHQ== X-Gm-Message-State: AGRZ1gKUjoaaNXeQ+/CM93WKEELav/U+ldHh5ZD6xywSd1mEPoFwPyf2 nNkMKX3S0088fppNCT5NgD39GQ== X-Google-Smtp-Source: AJdET5cnXPxZ2ssS7s/bmOhDvSJBP3DJGp53to4Wp99tDLAbn8Y/WMZ34XgJ/G5brtFnBA3ZhJvFfQ== X-Received: by 2002:a37:455:: with SMTP id 82mr21968322qke.60.1542657628581; Mon, 19 Nov 2018 12:00:28 -0800 (PST) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id n3sm22836516qtc.81.2018.11.19.12.00.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Nov 2018 12:00:27 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 691B54FD; Mon, 19 Nov 2018 17:00:25 -0300 (-03) Date: Mon, 19 Nov 2018 17:00:25 -0300 From: Alvaro Herrera To: Fabien COELHO Cc: Marina Polyakova , pgsql-hackers@postgresql.org, Ildus Kurbangaliev , Teodor Sigaev Subject: Re: [HACKERS] WIP Patch: Pgbench Serialization and deadlock errors Message-ID: <20181119200025.t2hpsmu724jp2fmf@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/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Nov-19, Fabien COELHO wrote: > > Hello Alvaro, > > > I also think that the pgbench_error() patch should go in before the main > > one. It seems a bit pointless to introduce code using a bad API only to > > fix the API together with all the new callers immediately afterwards. > > I'm not that keen on this part of the patch, because ISTM that introduces > significant and possibly costly malloc/free cycles when handling error, > which do not currently exist in pgbench. Oh, I wasn't aware of that. > Related to Marina patch (triggered by reviewing the patches), I have > submitted a refactoring patch which aims at cleaning up the internal state > machine, so that additions and checking that all is well is simpler. > > https://commitfest.postgresql.org/20/1754/ let me look at this one. > It has been reviewed, I think I answered to the reviewer concerns, but the > reviewer did not update the patch state on the cf app, so I do not know > whether he is unsatisfied or if it was just forgotten. Feel free to update a patch status to "needs review" yourself after submitting a new version that in your opinion respond to a reviewer's comments. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services