Re: UPSERT as a table name is confusing

Поиск
Список
Период
Сортировка
От Jonathan S. Katz
Тема Re: UPSERT as a table name is confusing
Дата
Msg-id 5f145be3-5b7e-8a61-6773-4ca542fc8ebc@postgresql.org
обсуждение исходный текст
Ответ на UPSERT as a table name is confusing  (Y Liu <yliu11@yahoo.com>)
Список pgsql-www
On 8/15/22 8:41 AM, Y Liu wrote:
> RE: https://wiki.postgresql.org/wiki/UPSERT 
> <https://wiki.postgresql.org/wiki/UPSERT>
> 
> It is really confusing to use UPSERT as a table name in a sql to demo 
> the usage of INSERT INTO UPSERT...ON CONFLICT. How about using a 
> different table name to show the same thing? Just a suggestion.

The page in reference has the following line at the top:

"This Wiki page was only maintained until a few weeks before commit, 
where the patch further evolved in some minor aspects (most notably, the 
syntax became ON CONFLICT DO UPDATE/NOTHING). It is now only of historic 
interest."

(though the wiki is editable).

There are several examples in the docs here with less confusing labeling:

https://www.postgresql.org/docs/current/sql-insert.html

Thanks,

Jonathan

Вложения

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

Предыдущее
От: Y Liu
Дата:
Сообщение: UPSERT as a table name is confusing
Следующее
От: Vivek Suraiya
Дата:
Сообщение: Column Alias Not Allowed In Grouping Function