Re: Proposal: USING clause for DO statement

Поиск
Список
Период
Сортировка
От Petr Jelinek
Тема Re: Proposal: USING clause for DO statement
Дата
Msg-id 4B081CAE.6010005@pjmodos.net
обсуждение исходный текст
Ответ на Re: Proposal: USING clause for DO statement  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: Proposal: USING clause for DO statement
Список pgsql-hackers
I don't see point in having parameters for DO as an utility command. If 
you need to reuse some value you can define those variables at the 
beginning of code block in the language itself (in DECLARE section in 
plpgsql for example), defining them in outer SQL command does not really 
help anything. Now, if/when we add support to put DO inside standard sql 
query, it would be vastly more useful to be able to use parameters. But 
adding that support will be probably least of our problems if we try to 
do that, and we might even want to use different syntax/behavior then, 
so I would really not rush with this.

-- 
Regards
Petr Jelinek (PJMODOS)



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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: Proposal: USING clause for DO statement
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Proposal: USING clause for DO statement