Re: View with duplicate GROUP BY entries
| От | Tom Lane |
|---|---|
| Тема | Re: View with duplicate GROUP BY entries |
| Дата | |
| Msg-id | 7598.1511283944@sss.pgh.pa.us обсуждение |
| Ответ на | View with duplicate GROUP BY entries (Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>) |
| Ответы |
Re: View with duplicate GROUP BY entries
|
| Список | pgsql-hackers |
Ashutosh Bapat <ashutosh.bapat@enterprisedb.com> writes:
> While reviewing patch for similar problem in postgres_fdw [1], I
> noticed that we don't use positional notation while creating the view.
> This might introduced anomalies when GROUP BY entries are
> non-immutable.
Yeah, we probably ought to make more of an effort to regenerate the
original query wording. I do not think that forcing positional notation
is a suitable answer in this case, because it would result in converting
SQL-standard queries to nonstandard ones. We might have to extend the
parsetree representation so that we can tell whether positional notation
was used to begin with.
regards, tom lane
В списке pgsql-hackers по дате отправления: