Re: plpgsql exception handling

Поиск
Список
Период
Сортировка
От bricklen
Тема Re: plpgsql exception handling
Дата
Msg-id AANLkTinEG3oBc4PBq8Cx5rwi6qM2NiqtG0pr-HE9WyhA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: plpgsql exception handling  (Samuel Gendler <sgendler@ideasculptor.com>)
Ответы Re: plpgsql exception handling  (Uwe Bartels <uwe.bartels@gmail.com>)
Список pgsql-sql
On Wed, Mar 9, 2011 at 2:08 PM, Samuel Gendler
<sgendler@ideasculptor.com> wrote:
> when I run 'select 1count(*) from table' in my postgres 8.4 installation, I
> get the exact same error message.  Assuming the '1count()' function does
> exist, perhaps you need to full qualify it with a schema name?
> It looks to me like the query you are passing to the procedure is invalid
> and is generating the error.  Perhaps the 1 in front of count(*) is a typo?

Also seem to be missing "p_id" from your execute statement:

execute 'create table result_'|| p_id ||' as '||p_sql;


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

Предыдущее
От: Samuel Gendler
Дата:
Сообщение: Re: plpgsql exception handling
Следующее
От: Uwe Bartels
Дата:
Сообщение: Re: plpgsql exception handling