Re: psql: add \create_function command

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: psql: add \create_function command
Дата
Msg-id 2017560.1706548308@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: psql: add \create_function command  (Steve Chavez <steve@supabase.io>)
Ответы Re: psql: add \create_function command  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
Steve Chavez <steve@supabase.io> writes:
> However, :{?variable_name} is already taken by psql to test whether a
> variable is defined or not. It might be confusing to use the same syntax.

Hmm.  Maybe we could go with :{+...} or the like?

> How about using the convention of interpreting an identifier as a file path
> if it has an slash on it?

Sorry, that is just horrid.  foo/bar means division, and "foo/bar"
is simply an identifier per SQL standard, so you can't squeeze that
in without breaking an ocean of stuff.  Plus, there are many use-cases
where there's no reason to put a slash in a relative filename.

            regards, tom lane



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Should we remove -Wdeclaration-after-statement?
Следующее
От: Isaac Morland
Дата:
Сообщение: Re: Should we remove -Wdeclaration-after-statement?