Re: trigger fails

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: trigger fails
Дата
Msg-id 20210830133617.GA9900@depesz.com
обсуждение исходный текст
Ответ на trigger fails  (Roger Mason <rmason@mun.ca>)
Ответы Re: trigger fails  (Roger Mason <rmason@mun.ca>)
Список pgsql-novice
On Mon, Aug 30, 2021 at 11:03:33AM -0230, Roger Mason wrote:
> Hello again,
> 
> hubert depesz lubaczewski writes:
> 
> > it's better to reply to mailing list, unless it's a secret, as others
> > can comment and possibly provide answer.
> >
> > In any case, after running your queries, I got:
> >
> > ERROR:  relation "results" does not exist
> >
> > This was on test script line 78, which was:
> >
> > CREATE TRIGGER trigger_f_energy_insert AFTER INSERT ON results FOR EACH ROW
> > EXECUTE PROCEDURE trigger_f_energy_insert ();
> >
> > So, can't test it, sorry.
> 
> This should be sufficient:
> 
> create table results (timestamp text,jid text,machine text,info_out
> text);

Now your script fails with:
ERROR:  column results.totenergy_out does not exist

If you want help, please, pretty please with cherry on top - make
*usable* test script. 
Write it, test by psql -f ..., and then send if it:
1. works
2. shows the problem

Best regards,

depesz




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

Предыдущее
От: Roger Mason
Дата:
Сообщение: Re: trigger fails
Следующее
От: Pól Ua Laoínecháin
Дата:
Сообщение: Using PGTune - is it a good source for system configuration?