Vincenzo Romano <vincenzo.romano@xxxxxxxxxxx> writes: > The weirdness is that it doesn't produce any notice the first two times. > At the third invocation I see the notice coming out. I'd suggest tweaking the exception handler to print the error it caught; that would probably clarify what is happening. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general