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 1hIbfp-0007sx-8k for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Apr 2019 16:20:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hIbfn-0001R9-QU for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Apr 2019 16:20:03 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hIbfn-0001Pq-5s for pgsql-hackers@lists.postgresql.org; Mon, 22 Apr 2019 16:20:03 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hIbfj-0002Vw-PT for pgsql-hackers@postgresql.org; Mon, 22 Apr 2019 16:20:01 +0000 Received: by mail-qt1-x842.google.com with SMTP id w26so5911786qto.13 for ; Mon, 22 Apr 2019 09:19:59 -0700 (PDT) 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=0XSW0K+ctBwGnrqi2mEbvSTlJbeR2FgKiQIqhDx7oXg=; b=f8wVDPNkmd4qiFTvdKJLj/kIDf96V8Y9yqwPhz3Y3ELqiGQzYWN9mWYbCJ2KCDGeBw B83zFXWaksn25cL/45RvrKzhq8/EJb1CzuvVjEwu1gKVO2lOk+Jpk6Bf/AZ80WjJ3JdK q6lGZ0PC8i5gat91/FZiyfp5tu2C439GXdR3momBGdkd+5mt1Arba41DLKZg4efGBT3h 8obaTmT/6TP2bWZav4n6yjKdp5aobHhWnPbw8ajid8LDy3ieLbcqfGzIgsD0DvcTDcjQ MYABg4YXRKM1OPkHsdZ0PbrjIHq9CEClRwD0kLSRsK5O3uJ2QFupiBVAUq5zcNY7+OFN iFRQ== 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=0XSW0K+ctBwGnrqi2mEbvSTlJbeR2FgKiQIqhDx7oXg=; b=Ov0FFuRku7f59KxFuRp2gynkvdtxHwL4QXXlUnQQ9zuNF50eV0UALTF5GxIVJOmdWH 2iLIPOM5yOLtLBcPQykgT738bAb0thC3VckUAyUJKRy/ofdMx5gCiPPzjBAMTmYvraZ1 Bw5CCPOZdBmtpys6RiqQt+ZTa9BB4XPkcoNa2sGjiy8Ab8nj9rfQIjPucHGybxpgoj4s qnPACC4iJjUpUQnINRzs1287dvKOGObUYkdrHmHyF5Okk10cSwn4sT9oHG0kqv/n9ewg 9QZ+1kxizsMTIMzpbV7xlfvFX6ealb6mteTyMALsSeWFgmjkfaMoeH7mjwIgNRjBIhgH sbZA== X-Gm-Message-State: APjAAAUUVebqHboUFAr85lkuT9A+7dAGb+TlahI1SncvYWK5mBwzChGq hJlWbq4zYf+UTvo/fNnkxh7mOkkSRuo= X-Google-Smtp-Source: APXvYqxcjAUE+HWQtHSKCTl7XXFXi2+NMDO8THRn26yEPWo+xPoQl6OPnswdUsilpWWiZskbQC4hlA== X-Received: by 2002:ac8:8b9:: with SMTP id v54mr16455214qth.64.1555949998775; Mon, 22 Apr 2019 09:19:58 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([179.56.48.227]) by smtp.gmail.com with ESMTPSA id s30sm6404889qkm.43.2019.04.22.09.19.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Apr 2019 09:19:57 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id C6E4D12069F; Mon, 22 Apr 2019 12:19:55 -0400 (-04) Date: Mon, 22 Apr 2019 12:19:55 -0400 From: Alvaro Herrera To: Andres Freund Cc: Michael Paquier , Justin Pryzby , pgsql-hackers@postgresql.org Subject: Re: clean up docs for v12 Message-ID: <20190422161955.GA17411@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190422160807.xmdhtrtpowkjmyfd@alap3.anarazel.de> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Apr-22, Andres Freund wrote: > On 2019-04-22 14:48:26 +0900, Michael Paquier wrote: > > /* > > - * Check if's guaranteed the all the desired attributes are available in > > - * tuple. If so, we can start deforming. If not, need to make sure to > > - * fetch the missing columns. > > + * Check if all the desired attributes are available in the tuple. If so, > > + * we can start deforming. If not, we need to make sure to fetch the > > + * missing columns. > > */ > > That's imo not an improvement. The guaranteed bit is actually > relevant. What this block is doing is eliding the check against the > tuple header for the number of attributes, if NOT NULL attributes for > later columns guarantee that the desired columns are present in the NULL > bitmap. But the rephrasing makes it sound like we're actually checking > against the tuple. > > I think it'd be better just to fix s/the all/that all/. (and s/if's/if it's/) > > > if ((natts - 1) <= guaranteed_column_number) > > { > > @@ -383,7 +383,7 @@ slot_compile_deform(LLVMJitContext *context, TupleDesc desc, > > > > /* > > * If this is the first attribute, slot->tts_nvalid was 0. Therefore > > - * reset offset to 0 to, it be from a previous execution. > > + * reset offset to 0 too, as it may be from a previous execution. > > */ > > if (attnum == 0) > > { > > That obviously makes sense. Hmm, I think "as it *is*", not "as it *may be*", right? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services