| От | Tom Lane |
|---|---|
| Тема | Re: psql , stored procedure, triggers and errors |
| Дата | |
| Msg-id | 15187.991750374@sss.pgh.pa.us обсуждение |
| Ответ на | psql , stored procedure, triggers and errors (Penguin <Mail@dempos.com>) |
| Список | pgsql-general |
Penguin <Mail@dempos.com> writes:
> I have added support of procedural language 'plpgsql' in
> postgres system table pg_language. Now when I try to insert a record
> in the emp table :
> insert into emp(empname, salary) values( 'test', 1000 );
> from psql I get the following error :
> psql:rec.sql:1:ERROR:frmgr_info:function 0:cache lookup failed
I copied-and-pasted your example, and it works fine for me on 7.0.*:
play=> insert into emp(empname, salary) values( 'test', 1000 );
INSERT 4576610 1
play=> insert into emp(empname, salary) values( 'test', -1);
ERROR: test cannot have a negative salary
I suspect you messed up the installation of 'plpgsql' somehow.
Did you use the createlang script for that, or do it by hand?
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера