Re: Bug with view definitions? - Mailing list pgsql-hackers

From Justin Clift
Subject Re: Bug with view definitions?
Date
Msg-id 40E4C9B4.6020703@telstra.net
Whole thread Raw
In response to Re: Bug with view definitions?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Bug with view definitions?
Re: Bug with view definitions?
List pgsql-hackers
Tom Lane wrote:
<snip>
> Actually, if you look at the source code (information_schema.sql) there
> is no ORDER BY in it, only a DISTINCT.  The ORDER BY gets added by the
> parser to help implement the DISTINCT.  Sooner or later we should look
> at suppressing the added ORDER BY when displaying the view.

If someone fixes this can we make sure it goes into 7.4.4 as well (if 
it's not a drastic code change)?

It's not a data corrupting bug but it's stopping view definitions from 
"working as advertised" which is bad if you're used to being able to 
rely on them.  :-/

For now, I'll personally use the pg_dump version of the query, or maybe 
see if the one in backend/catalog/information_schema.sql can be run 
directly.  :)

Regards and best wishes,

Justin Clift



pgsql-hackers by date:

Previous
From: "Greg Sabino Mullane"
Date:
Subject: Re: Adding column comment to information_schema.columns
Next
From: Justin Clift
Date:
Subject: Re: Adding column comment to information_schema.columns