From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Richard Huxton <dev@archonet.com>
Cc: Josh Berkus <josh@agliodbs.com>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Hey! ORDER BY in VIEWS?
Date: Mon, 16 Jul 2001 10:40:08 -0400 (EDT)
Message-ID: <200107161440.f6GEe8L06240@candle.pha.pa.us> (raw)
In-Reply-To: <3B528BCF.92DEC4BB@archonet.com>
> But - this gives them in reverse timestamp order. So - wrap the query in
> a view and then apply your own ORDER BY.
>
> Can't remember who came up with this (some evil genius :-) - but it
> seemed to make sense so I stuck the example in my PostgreSQL notes.
We kept rejecting the idea of ORDER BY in a view until someone suggested
LIMIT and ORDER BY, at which point we had to enable it. I think Tom did
the work.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
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-sql@postgresql.org
Cc: pgman@candle.pha.pa.us, dev@archonet.com, josh@agliodbs.com, peter_e@gmx.net
Subject: Re: Hey! ORDER BY in VIEWS?
In-Reply-To: <200107161440.f6GEe8L06240@candle.pha.pa.us>
* 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