pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marcelo Costa <marcelojscosta@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Function ERRO after UPGRADE from 7.4 to 8.1.5
Date: Fri, 24 Nov 2006 14:45:10 -0300
Message-ID: <c13f2d590611240945s4c07b8fcg102f29739a677290@mail.gmail.com> (raw)

Hi, all

I migrate my database from 7.4 to 8.1.5 and make tests with aplication
but this don´t works fine.

Some trigers don´t work and send to me error messages as this:

Warning: pg_query(): Query failed: ERROR: INSERT is not allowed in a
non-volatile
function CONTEXT: SQL statement "insert into
ave.ave_aluno_avaliacao_diario_historico (
codigo_ave_avaliacao , codigo_ave_aluno_caderneta , nota , presenca , falta ,
data_cadastro , justificativa , codigo_usuario ) select codigo_ave_avaliacao ,
codigo_ave_aluno_caderneta , nota , presenca , falta , data_cadastro ,
justificativa ,
codigo_usuario from ave.ave_aluno_avaliacao_diario where
codigo_ave_aluno_caderneta = $1 and codigo_ave_avaliacao = $2 "
PL/pgSQL function
"func_trg_ave_aluno_avaliacao_diario_a_iu" line 16 at SQL statement in...(...)

I see all trigers including  func_trg_ave_aluno_avaliacao_diario_a_iu
and compile this but no erros send to me.

Anybory can help me or send to me any link to that it can clarify.

Thanks,

Marcelo Costa
Secretaria Executiva de Educação do Pará
Amazônia - Pará - Brazil


-- 
Marcelo Costa



view thread (4+ messages)  latest in thread

Message-ID: <c13f2d590611240945s4c07b8fcg102f29739a677290@mail.gmail.com>
Permalink:  ../c13f2d590611240945s4c07b8fcg102f29739a677290@mail.gmail.com/
Also on:    postgresql.org/message-id/c13f2d590611240945s4c07b8fcg102f29739a677290@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: marcelojscosta@gmail.com
  Subject: Re: Function ERRO after UPGRADE from 7.4 to 8.1.5
  In-Reply-To: <c13f2d590611240945s4c07b8fcg102f29739a677290@mail.gmail.com>
  References: <c13f2d590611240945s4c07b8fcg102f29739a677290@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox