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 1gNNS0-0003k2-CR for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Nov 2018 19:37:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gNNRy-0006B4-0u for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Nov 2018 19:37: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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gNNRl-0005DJ-Ea for pgsql-hackers@lists.postgresql.org; Thu, 15 Nov 2018 19:37:01 +0000 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gNNRh-0002GF-Te for pgsql-hackers@postgresql.org; Thu, 15 Nov 2018 19:37:00 +0000 Received: by mail-qk1-x735.google.com with SMTP id q70so16167020qkh.6 for ; Thu, 15 Nov 2018 11:36:57 -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=Ax2a4tJEodsKAUZVHNhA2UEQbHl/WqgksswrIevEgnE=; b=tAxelcYdgQCDQ7WtZj8onUmVFZ0PpIswfKhS6S7os6rtrUzNiZ/sMUMKa7779gNumK x7ZcOd2KHdBcrPiZWrVTDZAYFviiDBMZVwLFVAEZwapM2d7Uu4TGjl5Coe0Pt6VauVgr NkdjKgdisz9X9EHrdmVkr/mRgwmAo+Q0FYXsbViyJHrhD5wbHLCHcZq7njCuzRkH8tjS 2YJWO4CEfro/Diem4abANLa96QLY+laWOQ0yhOv26hNW60dIhZZNA+uketrourXYJEba gMsfKkTj9MaxCcvPRRccARwe2b6LvRotRYFHNw/RNZiCfqWQxVh0X2p8L6jvm7nB9vxa ZS3A== 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=Ax2a4tJEodsKAUZVHNhA2UEQbHl/WqgksswrIevEgnE=; b=EXFQKyIG97+W1Nh/kxbonjKJt0aquNdUK7i+FdwqwD/+xiCN+OihK40lEKQ/rHUJLr L3HUIDIj76SYdWDcrCIKOzUk1T6i+H7aV2GxsgZr8Xoq1WDiUylEOEtMoDJhPV4IelIv 7uRwAGWXGeXfzhOCPOouaMK8XDyme5HJTMjAJFTHXMBVBSps5mQudn7gO57zpbjhAsZP KFaHBA8P3LbyG5YNEjgOZgKibaUPpZ6HSWjP2zSOjNtO1ub5Xc/KyyOvwUeVxqml8N9y y4R7cWMFLqN79Nm0Xr8M9KRXvNVYsfj83++FhrzKUUQ3ohUZK6/X5Qf7NLSRPNQ52YoF flcw== X-Gm-Message-State: AGRZ1gKl5axkNQRzWmtwL+hOvj++j9NiIeWk8KN6CKbugfC9lqWUEjrT 8KDXexAawaQyzMXJWqAyGby/yA== X-Google-Smtp-Source: AJdET5eB3dZgqN2mDXFJjst/bYKLpORlYAI+7bk7a01daeKROTj29rXDoOl7DTghXEWRrd1j8gNnlw== X-Received: by 2002:ac8:266c:: with SMTP id v41mr7146430qtv.159.1542310616219; Thu, 15 Nov 2018 11:36:56 -0800 (PST) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id p48sm18665472qtp.62.2018.11.15.11.36.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Nov 2018 11:36:53 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id E88B1693; Thu, 15 Nov 2018 12:20:33 -0300 (-03) Date: Thu, 15 Nov 2018 12:20:33 -0300 From: Alvaro Herrera To: Emre Hasegeli Cc: Tom Lane , Tomas Vondra , Ning Yu , pgsql-hackers@postgresql.org Subject: Re: New Defects reported by Coverity Scan for PostgreSQL Message-ID: <20181115152033.4m3j2fsxohvahzak@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-06, Emre Hasegeli wrote: > > Surely the comment in line 3839 deserves an update :-) > > Done. > > > This seems good material. I would put the detailed conventions comment > > separately from the head of the file, like this (where I also changed > > "Type1 *type1" into "Type1 *obj1", and a few "has" to "have") > > Looks better to me. I found one more "has" and changed it. Pushed, with some further minor changes. I decided not to remove the redundant comments that your patch was removing, as I felt that it's better to keep the API contract together with the function definition. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services