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 1i5cX4-0003CI-5r for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Sep 2019 21:09:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i5cX3-0007ZR-04 for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Sep 2019 21:09:37 +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 1i5cX2-0007ZK-OA for pgsql-hackers@lists.postgresql.org; Wed, 04 Sep 2019 21:09:36 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5cX0-0000Zi-31 for pgsql-hackers@postgresql.org; Wed, 04 Sep 2019 21:09:36 +0000 Received: by mail-qk1-x741.google.com with SMTP id s18so61116qkj.3 for ; Wed, 04 Sep 2019 14:09:33 -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=0vtSi/o1P8o4WbAgaHuX90my6Y3mmxKMJESeuoxQXS4=; b=xIkBAH75+1TePLote5vRV1Hr/F/qyNzOKKiDQoOFMGncsEnO/y7MGJL/2uKxOfylIK Cd8Z8aINflScAlygBqYFiNuqOjQHu1JKTAHCJRMhM8IYnDBZ7l06O3bA0T8CcNN6ehj/ 3G73JznARQMgWr4GzCwz7Di4yFTdbQjcL4yaAVJSUacRhsXSEIXnZ65RD0jLZxT8llq/ OxGGRuzCFMhuKCr56dWypfY6gxTxFTxQbbySMYuvWll9mN0kp5Qil2SN42iZZTUvVKyx g4FclV57y0hMY6daBT5IfmrNLPUNSCxOkkkXBFfbsGEI80MvwMzYdA3sHejXyP9r/jbk ciDQ== 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=0vtSi/o1P8o4WbAgaHuX90my6Y3mmxKMJESeuoxQXS4=; b=qRs2aabdITljcYpKrcPAqsBeBTHlGZZ+RFQIww1mXm8RPr0g5hSa5Z2xK8I0ZfUWGH JUV36XLZcEoOLX41Bp/7InpxJpQ8f5VTyK9h2KLfbyz8sm8cpN7fNiM+cOD/GUdWjk0l bI9HZe7W4Sy0B8RtDsTdDc7fUq6XBpmQSu1tTHmWDZrOgp72/O99rN2cAhXvW5nChSms mT1YxpGXRERmUHXfzpN5PymPAj+WpKbjoE9tLW5SX2fptOBxML4cCJwRZDmHavkaEuE3 8dWSv1e2inI9CY2KdYmCgSt6AJsI7z19sspweX8ehOKf8cjYQ3T2/RmrqpF2sSSmxzWn J3zg== X-Gm-Message-State: APjAAAXHb4mVHEesS5DqmwrSvznQo77tz9nD8Ng6wSa942jz80jkrfUw zk9dSU49dAtKnzqKVIep49wEm6S8mTgpbA== X-Google-Smtp-Source: APXvYqyS0/IwxJXeDs1QF5JS4N2HppJv0fedCvt5+DOpyIasyJdiKAmxJLNvWu8WZX9qUeVmhsUuJA== X-Received: by 2002:a37:5844:: with SMTP id m65mr20424721qkb.8.1567629939984; Wed, 04 Sep 2019 13:45:39 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([179.56.51.113]) by smtp.gmail.com with ESMTPSA id h23sm49927qkk.108.2019.09.04.13.45.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2019 13:45:39 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 0BA581205FF; Wed, 4 Sep 2019 16:45:38 -0400 (-04) Date: Wed, 4 Sep 2019 16:45:38 -0400 From: Alvaro Herrera To: Dmitry Dolgov <9erthalion6@gmail.com> Cc: Floris Van Nee , Kyotaro Horiguchi , "jesper.pedersen@redhat.com" , David Rowley , Thomas Munro , James Coleman , Rafia Sabih , Jeff Janes , Peter Geoghegan , Tomas Vondra , Thomas Munro , Bhushan Uparkar , PostgreSQL-development , Alexander Korotkov Subject: Re: Index Skip Scan Message-ID: <20190904204538.GA14030@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: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Surely it isn't right to add members prefixed with "ioss_" to struct IndexScanState. I'm surprised about this "FirstTupleEmitted" business. Wouldn't it make more sense to implement index_skip() to return the first tuple if the scan is just starting? (I know little about executor, apologies if this is a stupid question.) It would be good to get more knowledgeable people to review this patch. It's clearly something we want, yet it's been there for a very long time. Thanks -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services