Re: "writable CTEs" - Mailing list pgsql-hackers

From Tom Lane
Subject Re: "writable CTEs"
Date
Msg-id 18981.1293548039@sss.pgh.pa.us
Whole thread Raw
In response to Re: "writable CTEs"  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: "writable CTEs"  (Peter Geoghegan <peter.geoghegan86@gmail.com>)
List 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 by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: estimating # of distinct values
Next
From: Tom Lane
Date:
Subject: Re: pg_primary_conninfo