From: Klint Gore <kg@kgb.une.edu.au>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org, Gaetano Mendola <mendola@bigfoot.com>
Subject: Re: bad performances using hashjoin
Date: Mon, 21 Feb 2005 12:30:21 +1100
Message-ID: <421939AD2A4.CE73KG@129.180.47.120> (raw)
In-Reply-To: <15413.1108925170@sss.pgh.pa.us>
References: <cv9vbh$1j1o$1@news.hub.org>
<15413.1108925170@sss.pgh.pa.us>
On Sun, 20 Feb 2005 13:46:10 -0500, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> sat_request rows. If this is the case you actually need to optimize,
> probably the thing to do is to get rid of the ORDER BY clauses you
> evidently have in your views, so that there's some chance of building
> a fast-start plan.
Is having an order by in a view legal? In sybase ASA, mssql it throws a
syntax error if there's an order by.
If so, does it do 2 sorts when you sort by something else?
i.e. if view is
create view v1 as select * from table order by 1;
and the statment
select * from v1 order by 2;
is run does it sort by 1 then resort by 2?
klint.
+---------------------------------------+-----------------+
: Klint Gore : "Non rhyming :
: EMail : kg@kgb.une.edu.au : slang - the :
: Snail : A.B.R.I. : possibilities :
: Mail University of New England : are useless" :
: Armidale NSW 2351 Australia : L.J.J. :
: Fax : +61 2 6772 5376 : :
+---------------------------------------+-----------------+
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: kg@kgb.une.edu.au, tgl@sss.pgh.pa.us, mendola@bigfoot.com
Subject: Re: bad performances using hashjoin
In-Reply-To: <421939AD2A4.CE73KG@129.180.47.120>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox