Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 0446B1337B2F for ; Fri, 4 Feb 2011 03:59:16 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 95598-09 for ; Fri, 4 Feb 2011 07:59:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from cdptpa-omtalb.mail.rr.com (cdptpa-omtalb.mail.rr.com [75.180.132.123]) by mail.postgresql.org (Postfix) with ESMTP id A9B11133740B for ; Fri, 4 Feb 2011 03:59:08 -0400 (AST) X-Authority-Analysis: v=1.1 cv=uESSSoDEku2quKX/oFXS2Smn5+55LTFcWFr5T5T8nFs= c=1 sm=0 a=zW9YFhm3rZwA:10 a=IkcTkHD0fZMA:10 a=qCTYjJJ2g1SgQhsHZAUATw==:17 a=rwaoy1eLur_gfoPEaLsA:9 a=MvWKFSTofEQU5Jh360XrVsj0vjQA:4 a=QEXdDO2ut3YA:10 a=qCTYjJJ2g1SgQhsHZAUATw==:117 X-Cloudmark-Score: 0 X-Originating-IP: 98.27.48.207 Received: from [98.27.48.207] ([98.27.48.207:39466] helo=[192.168.10.104]) by cdptpa-oedge01.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id 99/11-07087-AC1BB4D4; Fri, 04 Feb 2011 07:59:08 +0000 Message-ID: <4D4BB1CA.6020400@dunslane.net> Date: Fri, 04 Feb 2011 02:59:06 -0500 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc13 Lightning/1.0b3pre Thunderbird/3.1.7 MIME-Version: 1.0 To: david@lang.hm CC: =?UTF-8?B?0JLRltGC0LDQu9GW0Lkg0KLQuNC80YfQuNGI0LjQvQ==?= , Robert Haas , Jon Nelson , Mladen Gogala , Bruce Momjian , Tom Lane , Craig Ringer , "pgsql-performance@postgresql.org" Subject: Re: [HACKERS] Slow count(*) again... References: <201102012247.p11Ml6u02682@momjian.us> <4D48914B.4050403@dunslane.net> <4D489AD1.1010105@vmsinfo.com> <4D499E55.4020107@vmsinfo.com> <4D4A7B69.2020704@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201102/265 X-Sequence-Number: 42403 On 02/04/2011 02:32 AM, david@lang.hm wrote: > > when a copy command is issued, I assume that there is some indication > of how much data is going to follow. > > No of course there isn't. How would we do that with a stream like STDIN? Read the code. cheers andrew