Re: Printing command string passed to EXECUTE command in plpgsql (after argument resolution)
В списке pgsql-general по дате отправления:
| От | Leif Biberg Kristensen |
|---|---|
| Тема | Re: Printing command string passed to EXECUTE command in plpgsql (after argument resolution) |
| Дата | |
| Msg-id | 201010281647.15966.leif@solumslekt.org обсуждение |
| Ответ на | Printing command string passed to EXECUTE command in plpgsql (after argument resolution) (Allan Kamau <kamauallan@gmail.com>) |
| Ответы |
Re: Printing command string passed to EXECUTE command in
plpgsql (after argument resolution)
|
| Список | pgsql-general |
On Thursday 28. October 2010 16.25.47 Allan Kamau wrote: > I am debugging a plpgsql function which contains a long sql query > consisting of several parameters which is executed using EXECUTE > command. I would like to output this command string including the > actual values of the parameters contained within it so I can obtain > the actual query and run it directly (manually) in psql (or other > client such as pgAdmin3). Or at least is possible to output the > command string as is, followed by the parameter resolution details > such as $1='2', $2='abc' and so on. If I understand you correctly, you can assign the SQL string to a variable x, and then do a RAISE NOTICE 'Query is: %', x regards, Leif B. Kristensen
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера