Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 3835D6337B1 for ; Tue, 22 Dec 2009 05:22:46 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 76645-06 for ; Tue, 22 Dec 2009 09:22:38 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com [209.85.219.226]) by mail.postgresql.org (Postfix) with ESMTP id A3A536334D3 for ; Tue, 22 Dec 2009 05:22:38 -0400 (AST) Received: by ewy26 with SMTP id 26so2431018ewy.3 for ; Tue, 22 Dec 2009 01:22:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=UPajHZARVJBQHVKTS7KUDSM0iCyd3vNLKxXxiYyrk0g=; b=mzdriBYvzIHBbcVVcKVLAaD9WJDjv+3okJxPS4LrPWtuhd0Tk/u/VP7B11FxfDjmks lYrZbUDC3AR4Zgdnu5s9khry49SbRl72vA6pyA3FyPJleqlmDEoHJb77FTo7d1By5dIY k6HrgjbQm3sD1/wOy5lMtFi8oCPiM/NXzRr9k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=wRqLIL+ZdkbFSRJPHX2qQXS4T85nBj3s0XGaCWdCsLZtSzZyBzCtN51djRbU0hdCaT Aj+Ikr/Csbh4Tnr74yU1bWpXZijY+VhXS8N9Q76cWqtnWx8db6rtU/FUFMgCT3Fz1GAf ZktcMgKjZc3UgWh6Uz7M64iP0+7Q6GzFrXcLY= MIME-Version: 1.0 Received: by 10.216.90.70 with SMTP id d48mr3238834wef.159.1261473756563; Tue, 22 Dec 2009 01:22:36 -0800 (PST) In-Reply-To: <10421261465901@webmail111.yandex.ru> References: <302670f20912211415n4fc73b04x19eebfb9ff0acd60@mail.gmail.com> <10421261465901@webmail111.yandex.ru> Date: Tue, 22 Dec 2009 02:22:36 -0700 Message-ID: Subject: Re: 8.4.1 distinct query WITHOUT order by From: Scott Marlowe To: msi77 Cc: Gary Chambers , pgsql-sql@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200912/55 X-Sequence-Number: 33493 On Tue, Dec 22, 2009 at 12:11 AM, msi77 wrote: >> What are the ramifications of renaming the table (containing 8000 >> rows) and creating a view of the same name? > > View does not admit ORDER BY clause, at least, Standard does not. Postgres certainly allows it, but I don't think it will help in this case.