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 1p7nKk-0002VW-Nf for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Dec 2022 00:51:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p7nKj-0003wk-2I for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Dec 2022 00:51:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p7nKi-0003vP-Ls for pgsql-hackers@lists.postgresql.org; Wed, 21 Dec 2022 00:51:44 +0000 Received: from mail-il1-x134.google.com ([2607:f8b0:4864:20::134]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p7nKb-0000zm-65 for pgsql-hackers@postgresql.org; Wed, 21 Dec 2022 00:51:43 +0000 Received: by mail-il1-x134.google.com with SMTP id y3so7227656ilq.0 for ; Tue, 20 Dec 2022 16:51:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=wcydJ75vGNkzlgwdD17GxUN+zizeLf27Zv6mM5g1SJs=; b=oQkpxmuS033VUH3ndNJdnPDGjrPwQ3dcmGb7tof8wmX2ZyasspvXXaAjl/1qcFfh21 1sgo/XadkIKDbAduRriCVFw9xngFoXMWPfwEeymkRMVS5Vhw3qr88yVG3ICdAk7f1JkM gXpJKnv118l/znbzio4koLFySaQR1jBK4fdiY2C/PCD6mVPs+/7uf9Fzh8/cnXTYwtWH IMQDLn7lZeOs+K0n8UBBFDUtLUavPDqWCxOq2YoQKW2jT/CLPfISUA5b+03fpYoZ03ib Zo57H8Jphu+a9W4EQomxNwsWATD8BkXBQIg5GN4QH25euIxN7A6zZc3EnkCNH0GMJMIh upug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wcydJ75vGNkzlgwdD17GxUN+zizeLf27Zv6mM5g1SJs=; b=uOKgJ8glqP1ZyTf2kO2C+GHXrKisGDEsBRYRnDdLkaHrwaaQxg6R3BlQ6j9pX8n29Q ZEWT6PyzL+W7SvQ9/zmXNKWVhTN+Uvyjf+Dy9CDUo4eZ1hQKnxGzkQGQbvA5NJnTJ/5k Gmkl7Bj1UJuskyHTtCquRtRxG0eKsLRYZdcmaj0sk3aLZzH2LxAjOHRtb/q5IcHKW/51 LoOq1IJh/TQfuJ8Dj8z5J5RiCePKXzTSqTxxAbv9YDsK5D0wvDKu7RakprMhYzLCH9Wq C2pGFqWS5iPT+yeciWDqtJyJLneZkB23eEmSfq30oNo1rwTL1qKwOf/x5p9bTsbM5xZ6 mP9w== X-Gm-Message-State: AFqh2kpsfoHE7/ilnnGlyyIMunhBx41yCuoocNcSOks6YyAKbLkDuxEo /I0pH7i885N5PGONgDpUluXfaCILgPIhn5lC X-Google-Smtp-Source: AMrXdXuEoDwMdDReUbkczcgFGEo1+wS1icBnt57a7U0nMk37fhFO1OTQ8mzJBSoXy4p5I1coYmHo3g== X-Received: by 2002:a05:6e02:1d83:b0:303:8505:ec88 with SMTP id h3-20020a056e021d8300b003038505ec88mr237656ila.3.1671583896242; Tue, 20 Dec 2022 16:51:36 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id b3-20020a029583000000b003748d3552e1sm5109341jai.154.2022.12.20.16.51.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Dec 2022 16:51:35 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id B38078007F5; Tue, 20 Dec 2022 18:51:34 -0600 (CST) Date: Tue, 20 Dec 2022 18:51:34 -0600 From: Justin Pryzby To: Ranier Vilela Cc: pgsql-hackers@postgresql.org Subject: Re: Small miscellaneus fixes (Part II) Message-ID: <20221221005134.GJ1153@telsasoft.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Fri, Nov 25, 2022 at 06:27:04PM -0300, Ranier Vilela wrote: > 5. Use boolean operator with boolean operands > (b/src/backend/commands/tablecmds.c) tablecmds.c: right. Since 074c5cfbf pg_dump.c: right. Since b08dee24a > 4. Fix dead code (src/backend/utils/adt/formatting.c) > Np->sign == '+', is different than "!= '-'" and is different than "!= '+'" > So the else is never hit. formatting.c: I don't see the problem. if (Np->sign != '-') ... else if (Np->sign != '+' && IS_PLUS(Np->Num)) ... You said that the "else" is never hit, but why ? What if sign is 0 ? -- Justin