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 1gZaEM-00030d-UT for pgsql-performance@arkaria.postgresql.org; Wed, 19 Dec 2018 11:41:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gZaEL-0003om-ES for pgsql-performance@arkaria.postgresql.org; Wed, 19 Dec 2018 11:41:37 +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 1gZaEL-0003of-3i for pgsql-performance@lists.postgresql.org; Wed, 19 Dec 2018 11:41:37 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gZaEH-0001Ci-TF for pgsql-performance@lists.postgresql.org; Wed, 19 Dec 2018 11:41:35 +0000 Received: from [192.168.127.1] (port=40510 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1gZaED-0008gd-9U; Wed, 19 Dec 2018 11:41:29 +0000 Received: from [127.0.0.1] (port=13625 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1gZaEC-0009xw-GF; Wed, 19 Dec 2018 11:41:28 +0000 From: Andrew Gierth To: Vladimir Ryabtsev Cc: tgl@sss.pgh.pa.us, pgsql-performance@lists.postgresql.org Subject: Re: Why Postgres doesn't use TID scan? In-Reply-To: (Vladimir Ryabtsev's message of "Mon, 17 Dec 2018 17:54:19 -0800") Message-ID: <87bm5hwxy2.fsf@news-spur.riddles.org.uk> References: <31790.1545097237@sss.pgh.pa.us> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Wed, 19 Dec 2018 11:41:27 +0000 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "Vladimir" == Vladimir Ryabtsev writes: Vladimir> I can't believe it. Vladimir> I see some recommendations in Internet to do like this well, 90% of what you read on the Internet is wrong. Vladimir> Did it really work in 2011? Are you saying they broke it? Vladimir> It's a shame... The method in that SO link does work, it's just slow. The workaround is to do it like this instead: delete from mytable where ctid = any (array(select ctid from mytable where ... order by ... limit 1000)); But of course that's still an ugly hack. -- Andrew (irc:RhodiumToad)