Re: Order in CREATE VIEW - Mailing list pgsql-general

From Tom Lane
Subject Re: Order in CREATE VIEW
Date
Msg-id 13487.987235694@sss.pgh.pa.us
Whole thread Raw
In response to Re: Order in CREATE VIEW  ("Oliver Elphick" <olly@lfix.co.uk>)
Responses Re: Order in CREATE VIEW
List pgsql-general
"Oliver Elphick" <olly@lfix.co.uk> writes:
> A view creates a virtual table; there is no implicit ordering in a table,
> so it follows that you should not be able to impose one in a view.

This is indeed the pure-SQL attitude, but it may be worth pointing out
that Postgres 7.1 does allow ORDER BY in subselects and views anyway.

The main reason that that seems like a good idea (IMHO at least) is that
ORDER BY together with LIMIT allow you to select specific rows in ways
that are difficult to accomplish otherwise.

            regards, tom lane

pgsql-general by date:

Previous
From: will trillich
Date:
Subject: Re: Help on PGSQL
Next
From: Tom Lane
Date:
Subject: Re: Backend sent D message without prior T