Skip site navigation (1) Skip section navigation (2)

Re: Bug with view definitions?

From: Justin Clift <jc(at)telstra(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Hackers Mailing List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Bug with view definitions?
Date: 2004-07-02 02:34:28
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Tom Lane wrote:
> 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

In response to


pgsql-hackers by date

Next:From: Justin CliftDate: 2004-07-02 02:50:45
Subject: Re: Adding column comment to information_schema.columns
Previous:From: Greg Sabino MullaneDate: 2004-07-02 02:24:58
Subject: Re: Adding column comment to information_schema.columns

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group