Re: INSERT ... ON CONFLICT doesn't work

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: INSERT ... ON CONFLICT doesn't work
Дата
Msg-id CAKFQuwb9_G1WSXWTRGNjjgnbZUjpHKVAvBHJrWefgPO2=CUZbA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: INSERT ... ON CONFLICT doesn't work  ("Jenda Krynicky" <Jenda@Krynicky.cz>)
Ответы Re: INSERT ... ON CONFLICT doesn't work
Список pgsql-general
On Wed, Dec 1, 2021 at 12:44 PM Jenda Krynicky <Jenda@krynicky.cz> wrote:
How's that a variable for gawd's sake? It's a column name too! A
column name in the definition of the resulting table.

The columns of the returns table are provided to the function as variables so that one can write:

output_column1 := 'value';
output_column2 := 'value';
return;

Instead of having to do:
return (output_column1, output_column2);


Right. Because lowercasing everything I write and then comparing it case sensitively to the names of database objects makes a lot of sense. I mean who would want to use capital letters in names of objects in the first place?
 
Fair point, but you're not going to get much sympathy for not knowing the rules of the tool that you are using and the choices you've made regarding them.  I agree that your quoting everything has merit, but don't go complaining that when you forgot the quotes the system tells you the name is no longer found.

David J.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: INSERT ... ON CONFLICT doesn't work
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: INSERT ... ON CONFLICT doesn't work