Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id B5A202E007C for ; Fri, 29 Feb 2008 07:58:02 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 76782-05 for ; Fri, 29 Feb 2008 07:57:59 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.185]) by postgresql.org (Postfix) with ESMTP id A14A32E0057 for ; Fri, 29 Feb 2008 07:57:59 -0400 (AST) Received: by fk-out-0910.google.com with SMTP id b27so4944387fka.3 for ; Fri, 29 Feb 2008 03:57:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=0G+Imbv6+ZM2oNP+FCM8hv9AtJ4rHzU4VCttR+0jGY4=; b=DTRkhA//qMTCUJA+WGSJpsG66FzJQ+PUtVWRIWhLljYZLjf6qWHmTAdG0MbY/hPt1ZDsrhUPL7GbjE4Whm5ilH99daRwMSiYfqDvgOLnq00OmcsmRZHbBVTZ9CHZ6kzDWf9eH8HhaF0PgEQgq6PsYQetMJpax72LPx/DsboOkuE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=DNUDjD30WAQOTuzRHTgYKLFXfkiK1ax7ODDSHBplMAhmVL2PtShc8316fqay5C7EZXnhgpxE10KlXfmipjmlOvnQkHGaFVZ8/KQv0htVK5qTIA1hsfAv3zycHaa5Bq3Oj7ej58pzWhbr2MIR0gBTMSsJ4MM0jAR6XUG90+FkBSE= Received: by 10.82.153.5 with SMTP id a5mr18474084bue.5.1204286275665; Fri, 29 Feb 2008 03:57:55 -0800 (PST) Received: by 10.82.113.9 with HTTP; Fri, 29 Feb 2008 03:57:55 -0800 (PST) Message-ID: <36af4bed0802290357v39b858a9n78c1002ad1bab0dd@mail.gmail.com> Date: Fri, 29 Feb 2008 17:27:55 +0530 From: "Robins Tharakan" To: "Tom Lane" Subject: Re: Bypassing useless ORDER BY in a VIEW Cc: pgsql-performance@postgresql.org In-Reply-To: <8366.1204218820@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_26256_32410846.1204286275445" References: <36af4bed0802280631ja29c636w2256fb329e14b95e@mail.gmail.com> <8366.1204218820@sss.pgh.pa.us> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/397 X-Sequence-Number: 28939 ------=_Part_26256_32410846.1204286275445 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Frankly put, i didn't know that this perspective exists and then thanks for putting it that way then !! Guess I should take a relook at how I plan to use those VIEWS. Thanks *Robins* > A rule of thumb is that ORDER BY in a view is bad design, IMHO. > > regards, tom lane > ------=_Part_26256_32410846.1204286275445 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Frankly put, i didn't know that this perspective exists and then thanks for putting it that way then !!

Guess I should take a relook at how I plan to use those VIEWS.

Thanks
Robins


A rule of thumb is that ORDER BY in a view is bad design, IMHO.

                       regards, tom lane

------=_Part_26256_32410846.1204286275445--