Re: "writable CTEs"

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: "writable CTEs"
Дата
Msg-id 18981.1293548039@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: "writable CTEs"  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: "writable CTEs"  (Peter Geoghegan <peter.geoghegan86@gmail.com>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> On tis, 2010-12-28 at 00:19 +0000, Peter Geoghegan wrote:
>> It's worth noting that officially (i.e. in the docs), we don't even
>> call CTEs CTEs at any point. We call them WITH queries. I think that
>> that's a mistake because we call them CTEs everywhere else.

> I think "WITH query" or "WITH clause" is more understandable than CTE,
> which to me is a term that has no relationship with anything else.

I'm with Peter on that.  CTE is a completely meaningless term to most
users.

As for the problem at hand, couldn't we use "WITH ... RETURNING", or
some other phrase based on what users actually see/write?  DML has
the same problem as CTE, namely it's just another damn TLA.  It may
be one that more people have heard of, but that doesn't make it
particularly attractive.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: estimating # of distinct values
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_primary_conninfo