Re: Re: Please help me to take a look of the erros in my functions. Thanks.

Поиск
Список
Период
Сортировка
Искать
От
Bartosz Dmytrak
Тема
Re: Re: Please help me to take a look of the erros in my functions. Thanks.
Дата
Msg-id
CAD8_UcZ0HAmnO8SNGiL7AwmUk99MUn49i_9Gq=nuT56748OXQg@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Please help me to take a look of the erros in my functions. Thanks. leaf_yxj <leaf_yxj@163.com>
Re: Please help me to take a look of the erros in my functions. Thanks. Pavel Stehule <pavel.stehule@gmail.com>
Re: Please help me to take a look of the erros in my functions. Thanks. Bartosz Dmytrak <bdmytrak@gmail.com>
Re: Please help me to take a look of the erros in my functions. Thanks. leaf_yxj <leaf_yxj@163.com>
Re: Re: Please help me to take a look of the erros in my functions. Thanks. Adrian Klaver <adrian.klaver@gmail.com>
Re: Please help me to take a look of the erros in my functions. Thanks. leaf_yxj <leaf_yxj@163.com>
Re: Re: Please help me to take a look of the erros in my functions. Thanks. Tom Lane <tgl@sss.pgh.pa.us>
Re: Please help me to take a look of the erros in my functions. Thanks. leaf_yxj <leaf_yxj@163.com>
Re: Re: Please help me to take a look of the erros in my functions. Thanks. Bartosz Dmytrak <bdmytrak@gmail.com>
Re: Please help me to take a look of the erros in my functions. Thanks. leaf_yxj <leaf_yxj@163.com>
Re: Re: Please help me to take a look of the erros in my functions. Thanks. Bartosz Dmytrak <bdmytrak@gmail.com>
Re: Please help me to take a look of the erros in my functions. Thanks. leaf_yxj <leaf_yxj@163.com>
Re: Re: Please help me to take a look of the erros in my functions. Thanks. John R Pierce <pierce@hogranch.com>
Re: Please help me to take a look of the erros in my functions. Thanks. leaf_yxj <leaf_yxj@163.com>
Re: Re: Please help me to take a look of the erros in my functions. Thanks. John R Pierce <pierce@hogranch.com>
Re: Re: Please help me to take a look of the erros in my functions. Thanks. Bartosz Dmytrak <bdmytrak@gmail.com>
Re: Please help me to take a look of the erros in my functions. Thanks. Alban Hertroys <haramrae@gmail.com>
Re: Please help me to take a look of the erros in my functions. Thanks. Bartosz Dmytrak <bdmytrak@gmail.com>
Re: Please help me to take a look of the erros in my functions. Thanks. leaf_yxj <leaf_yxj@163.com>
Re: Please help me to take a look of the erros in my functions. Thanks. Alban Hertroys <haramrae@gmail.com>
Re: Please help me to take a look of the erros in my functions. Thanks. leaf_yxj <leaf_yxj@163.com>




I think you need a space there:

       EXECUTE 'TRUNCATE TABLE ' || quote_ident(tablename) || ' CASCADE;';
indeed, that is my fault - sorry
 
> EXCEPTION
>       WHEN undefined_table THEN
>               RAISE EXCEPTION 'Table "%" does not exists', tablename;

It's really a pretty bad idea to print your own message instead of using
the system's message.  In this case, you would have figured out the
problem immediately if you'd seen the real error message, which was
presumably bleating about "t1cascade".

Like always, it depends,  custom error message has been required by Grace

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


Regards,
Bartek
В списке pgsql-general по дате отправления
От: Jon Nelson
Дата:
Сообщение: views, queries, and locks
От: Bartosz Dmytrak
Дата:
FAQ