Re: Schema variables - new implementation for Postgres 15

Поиск
Список
Период
Сортировка
От Wolfgang Walther
Тема Re: Schema variables - new implementation for Postgres 15
Дата
Msg-id 143925f8-8fb3-4e98-8452-93a7e9e94d18@technowledgy.de
обсуждение исходный текст
Ответ на Re: Schema variables - new implementation for Postgres 15  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: Schema variables - new implementation for Postgres 15
Список pgsql-hackers
Pavel Stehule:
> When you write RAISE NOTICE '%', x, then PLpgSQL parser rewrite it to 
> RAISE NOTICE '%', SELECT $1
> 
> There is no parser just for expressions.

That's why my suggestion in [1] already made a difference between:

SELECT var;

and

SELECT col, var FROM table, var;

So the "only require variable-in-FROM if FROM is used" should extend to 
the SQL level.

That should be possible, right?

Best,

Wolfgang

[1]: 
https://www.postgresql.org/message-id/e7faf42f-62b8-47f4-af5c-cb8efa3e0e20%40technowledgy.de



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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: Schema variables - new implementation for Postgres 15
Следующее
От: David Christensen
Дата:
Сообщение: Re: Add memory context type to pg_backend_memory_contexts view