Re: Tuning queries inside a function

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: Tuning queries inside a function
Дата
Msg-id 4276710F.8090507@commandprompt.com
обсуждение исходный текст
Ответ на Re: Tuning queries inside a function  (Mike Nolan <nolan@gw.tssi.com>)
Ответы Re: Tuning queries inside a function  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Mike Nolan wrote:
>>Mike Nolan wrote:
>>
>>>>select * from foo('bar','debug')
>>>
>>>
>>>But how do I do that inside a pl/pgsql function?  'select into' doesn't
>>>seem to work properly.
>>
>>
>>You would have to code it. For example:
>>
>>IF $2 = ''debug'' THEN:
>
>
> That part I get, but I cannot seem to get an 'explain select....' to return
> the explain output inside a function.

Oh interesting. Hmmm. Alvaro can you think of a way to execute the
result into a variable and return it as a notice?

Sincerely,

Joshua D. Drake


> --
> Mike Nolan


--
Your PostgreSQL solutions company - Command Prompt, Inc. 1.800.492.2240
PostgreSQL Replication, Consulting, Custom Programming, 24x7 support
Managed Services, Shared and Dedication Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/

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

Предыдущее
От: Mike Nolan
Дата:
Сообщение: Re: Tuning queries inside a function
Следующее
От: Vlad
Дата:
Сообщение: Re: [Dbdpg-general] Re: 'prepare' is not quite schema-safe