X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id F01E952819 for ; Tue, 17 May 2005 14:57:33 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 58909-07 for ; Tue, 17 May 2005 17:57:32 +0000 (GMT) Received: from boutiquenumerique.com (boutiquenumerique.com [82.67.9.10]) by svr1.postgresql.org (Postfix) with ESMTP id 476EF52818 for ; Tue, 17 May 2005 14:57:31 -0300 (ADT) Received: (qmail 16242 invoked from network); 17 May 2005 19:57:59 +0200 Received: from unknown (HELO localhost) (boutiquenumerique-lists@192.168.0.4) by boutiquenumerique.com with SMTP; 17 May 2005 19:57:59 +0200 To: "Dmitri Bichko" , pgsql-sql@postgresql.org Subject: Re: interesting SQL puzzle - concatenating column with itself. References: <7A4ADADFC8AFF0478D47F63BEDD57CE3A27953@gpmail.gphq.genpathpharma.com> Message-ID: Date: Tue, 17 May 2005 19:57:32 +0200 From: PFC Organization: =?iso-8859-15?Q?La_Boutique_Num=E9rique?= Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In-Reply-To: <7A4ADADFC8AFF0478D47F63BEDD57CE3A27953@gpmail.gphq.genpathpharma.com> User-Agent: Opera M2(BETA2)/8.0 (Linux, build 987) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/131 X-Sequence-Number: 21444 > I'm just curious - what's the 'OFFSET 0' for? Trick to fool postgres into thinking it can't rewrite out your subquery and eliminate it ...