Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJsQE-00009j-R2 for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Nov 2018 03:52:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gJsQD-00035V-9e for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Nov 2018 03:52:57 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJsQD-00035O-2j for pgsql-hackers@lists.postgresql.org; Tue, 06 Nov 2018 03:52:57 +0000 Received: from mail-qt1-x82e.google.com ([2607:f8b0:4864:20::82e]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gJsQA-0002AI-Do for pgsql-hackers@lists.postgresql.org; Tue, 06 Nov 2018 03:52:56 +0000 Received: by mail-qt1-x82e.google.com with SMTP id z20-v6so1188585qti.9 for ; Mon, 05 Nov 2018 19:52:54 -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=D38h7YkIN1/RdxnFyHfAbI0VHC6qsToZTzSAGxev5rY=; b=Ir3M8QLFhHFCiBX9SoRV4hj0GEsrn3fNVTjI5v4gcggx6YVNT8vr0fZ6zeCu5g1G7v 7ewtOv5prXYIZynVxtaMC2kENtJ1BAOUkRMowuT8b3oDlui4zZyzTSAkcL3DD3mOfN/O QhPRug7qT+uqwphslZowyyQdyalloIApgoMgfxH5+wJSL+8JChffsHr2hyYnY+S5B/c1 U2HeSS1+VDGZZRb/7TCr1x5EOni+E5DYjlxp7F0wpB3F/rZTzjVcjcxPjQYmzLYpnYlg kGPjP+iLHUuecCno1lkwaXNxp+C4vmcFjd5XR8qoMVWCHbEGxseqjdSib+hfTWakj6fx Ncpw== 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=D38h7YkIN1/RdxnFyHfAbI0VHC6qsToZTzSAGxev5rY=; b=sciJs2dSM7wxky+E+yABBIgNBLfvMprzMm0vF9Phk9w6yoslQDq10Pz1UQ1/kSsuP/ 9WCr4kE5n8cVxJF4jFPYWGqVatTrRiQyiFYBPzSMRQBp0DLZ/DDHqSDTbokuuTC22CI/ EE36RViyHon69b3HMYkkqdZuZ5cbLJ/KtC0kzjF8MVd4kV/lNV2tBDGH/kJIDOMosmK3 54Qeixo/in1sgtqjVos9YRROPWab5d66YKl+FIwHwrDaJF8y9zw+wYkCm+BUuqq5Gvpe r5ATn7FZGgeZdGHpp0cHVKQersUXTZRU9+/ONrEkxye2H5wvHlPWDMkhQ+NZvvWghNDh CkPw== X-Gm-Message-State: AGRZ1gK1KYm0Fq09uj9iHdcITrNeUJmPEF/qbUYBQU6tdxMPTmA9THQy jo0Sd7dXfadoIx/4F/KIK2naOw== X-Google-Smtp-Source: AJdET5dc3nV4OmZWbcZX+s6GypM1DmjuCp2JbI7jBCUyUQbtMWKXP5V/QPHfp2rBLZtymLfpR4KBfQ== X-Received: by 2002:aed:2e63:: with SMTP id j90mr751003qtd.35.1541476372575; Mon, 05 Nov 2018 19:52:52 -0800 (PST) Received: from alvin.alvh.no-ip.org ([201.186.80.75]) by smtp.gmail.com with ESMTPSA id x19sm2579259qtj.5.2018.11.05.19.52.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Nov 2018 19:52:51 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id B7B445BE; Tue, 6 Nov 2018 00:52:49 -0300 (-03) Date: Tue, 6 Nov 2018 00:52:49 -0300 From: Alvaro Herrera To: David Rowley Cc: Edmund Horner , PostgreSQL Developers Subject: Re: Tid scan improvements Message-ID: <20181106035249.rtukjc24gm56sjc7@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, David Rowley wrote: > 14. we pass 'false' to what? > > + * save the tuple and the buffer returned to us by the access methods in > + * our scan tuple slot and return the slot. Note: we pass 'false' because > + * tuples returned by heap_getnext() are pointers onto disk pages and were > + * not created with palloc() and so should not be pfree()'d. Note also > + * that ExecStoreHeapTuple will increment the refcount of the buffer; the > + * refcount will not be dropped until the tuple table slot is cleared. > */ Seems a mistake stemming from 29c94e03c7d0 ... -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services