From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Richard Huxton <dev(at)archonet(dot)com> |
Cc: | Josh Berkus <josh(at)agliodbs(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Hey! ORDER BY in VIEWS? |
Date: | 2001-07-16 14:40:08 |
Message-ID: | 200107161440.f6GEe8L06240@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
> 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | James Orr | 2001-07-16 18:31:30 | Re: Help with SQL statement - Thanks |
Previous Message | Markus Wagner | 2001-07-16 10:57:16 | interpreting attributes in pg_class |