Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nZevA-00009t-J6 for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Mar 2022 20:28:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nZev9-0001mf-Ai for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Mar 2022 20:27:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nZev8-0001mW-VG for pgsql-hackers@lists.postgresql.org; Wed, 30 Mar 2022 20:27:59 +0000 Received: from mail-io1-xd2f.google.com ([2607:f8b0:4864:20::d2f]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nZev2-0004yw-N6 for pgsql-hackers@postgresql.org; Wed, 30 Mar 2022 20:27:58 +0000 Received: by mail-io1-xd2f.google.com with SMTP id e22so26172756ioe.11 for ; Wed, 30 Mar 2022 13:27:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=UFa1odrZWqCn7P1emEYz6mDU5ZEKUWG6zPcvRLXGW2Y=; b=0oUFQEWMqHDw+qqfmuAbFAgENF+uCFpaEd1bqPVFmuh3HU++CiRxtIo0h+dFL3BUdg WcsJfianHm6dhkq91DIauqNdPKH5zcCNdL1jHVuXjuIO5L5r+K7x0VQV6xFp8Cj0562m xiY2nd4SPm3Vq5PYdS/lz5qp0S5HNaNQ7Oz8q+fscPDjGjwK98D8LeNn5NbKHgK6KiSN WeluhdqEgrMi2mf8hFfBbDiK0YItVL7sd/rdZ2JdsNf6EOgphtlTQ9dFpXr7073VS72T QOAhA8WFaie6EewcZ+6AofaWxK+SMhPyvnm+8OCGk9ulc+0CVf1qnSpjf7QOXYfOwSux aAvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=UFa1odrZWqCn7P1emEYz6mDU5ZEKUWG6zPcvRLXGW2Y=; b=l1CGxSK9OFKVx+eTO63MypAjMmgeqW0rbKU+dys1yHQemTg1S0nO5m1s8cWqq23fyn C+dRS2jxVPY0gTcU82/1vf3xa2tSSkQhdiEw7Ho2HxDgX4hl/oA/P1JUx5h9TS0KZ94m x4GDf7PZpL9H3OA6S/gtaTTOhE54CO0hHDV1umyxdZhoh9XQwwC90ZAvUIe0uD2evk7a 2B3pgLnKI6lZfCMndIax0bfrk8+GCeX+L7CtJJB8vo9YuHb2yCq1x1odaBu2m7XXLEuH DCMJJ+ZTRz8G1eaNyMOrIHQl1sPg2tqgDbvs8yW24SzM2aeoGf8jZEz65GflI7J35A9y uh8A== X-Gm-Message-State: AOAM530IpumtLp90hRNLkDKWmmhwX9b8BUKJF2/11bSiAAro/9PfsCj2 wO0mdi0rbIEjK14+6kc9pexUeA== X-Google-Smtp-Source: ABdhPJx+KVg2EIp3kiOt+Z6iJPQolw2m/rhgaRjHjRA6yWb3htNiWdPiwrEvsbIS93Px4no1z9Bm9Q== X-Received: by 2002:a05:6638:300b:b0:317:a127:53ac with SMTP id r11-20020a056638300b00b00317a12753acmr911486jak.77.1648672070312; Wed, 30 Mar 2022 13:27:50 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id n3-20020a056e0208e300b002c9c9974c48sm3983534ilt.36.2022.03.30.13.27.49 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Mar 2022 13:27:49 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 7BE478019CF; Wed, 30 Mar 2022 15:27:48 -0500 (CDT) Date: Wed, 30 Mar 2022 15:27:48 -0500 From: Justin Pryzby To: Tom Lane Cc: Robert Haas , Dagfinn Ilmari =?iso-8859-1?Q?Manns=E5ker?= , Dipesh Pandit , Andres Freund , Jeevan Ladhe , Alvaro Herrera , "Shinoda, Noriyoshi (PN Japan FSIP)" , Abhijit Menon-Sen , Dmitry Dolgov <9erthalion6@gmail.com>, Jeevan Ladhe , Mark Dilger , pgsql-hackers@postgresql.org, tushar Subject: Re: refactoring basebackup.c (zstd workers) Message-ID: <20220330202748.GJ28503@telsasoft.com> References: <384291.1648403267@sss.pgh.pa.us> <20220328205329.GT28503@telsasoft.com> <20220329000727.GV28503@telsasoft.com> <1054320.1648512714@sss.pgh.pa.us> <284747.1648671287@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <284747.1648671287@sss.pgh.pa.us> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Mar 30, 2022 at 04:14:47PM -0400, Tom Lane wrote: > Robert Haas writes: > >> Maybe if I just put that last sentence into the comment it's clear enough? > > > Done that way, since I thought it was better to fix the bug than wait > > for more feedback on the wording. We can still adjust the wording, or > > the coding, if it's not clear enough. > > FWIW, I thought that explanation was fine, but I was deferring to > Justin who was the one who thought things were unclear. I still think it's unnecessarily confusing to nest "if" and "?:" conditionals in one statement, instead of 2 or 3 separate "if"s, or "||"s. But it's also not worth fussing over any more.