Re: [HACKERS] Open 6.5 items

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Jan Wieck <jwieck(at)debis(dot)com>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Open 6.5 items
Date: 1999-05-19 18:30:01
Message-ID: 199905191830.OAA06402@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > resno's, sublevelsup corrupt when reaching rewrite system
>
> Don't remember exactly how I produced them. Haven't seen
> them again after the latest changes in the rule system. I
> think it was due to incorrect handling of unrewritten TLE's
> from group by clauses, which are now pulled out of the main
> targetlist.

Removed. I suspected you had fixed it with your last GROUP patch,
because you were addressing this exact area.

>
> > 3 = sum(x) in rewrite system is a problem
>
> Is it? I guess what is meant by this item is the problem of
> the rewriter that it must create subqueries for view
> aggregate columns if they appear in the WHERE clause.

The issue where was that aggregates can't be on the right in some cases.
Tom Lane brought this up.

>
> That entire area is a very problematic one. And for sake it
> must wait for after v6.5. Aggregates and GROUP BY in views
> are unsafe and depend on the later usage of the view.
> Consider the following:

Yes, I understand.

> > Future TODO items
> > -----------------
> > CREATE VIEW ignores DISTINCT
>
> Covered above.
>

OK.

--
Bruce Momjian | http://www.op.net/~candle
maillist(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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message D'Arcy J.M. Cain 1999-05-19 19:49:57 default operator class for user-defined types
Previous Message ZEUGSWETTER Andreas IZ5 1999-05-19 17:36:16 Re: [HACKERS] Some progress on INSERT/SELECT/GROUP BY bugs