agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: queralt <queraltr@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Line number returned in Postgres Raise Exception sentence
Date: Tue, 14 Nov 2017 03:17:36 -0700 (MST)
Message-ID: <1510654656203-0.post@n3.nabble.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>
We are migrating a system from Postgres 9.2 to Postgres 9.6.
The problem is that in migrating the Stored Procedures, where we use the
RAISE EXCEPTION sentence, a new line is added in the message returned when
there is a RAISE EXCEPTION. In our system the existence of this second part
of the message is a big problem.
"ERROR: Message of Error
SQL state: P0001
Context: function PL/pgSQL xxx() in line 4 of RAISE"
We are executing stored procedures from JDBC and obtain the message with
getMessage and from PgAdmin III or IV.
We would like to know if there is the possibility to configure Postgres 9.6
in order this part of the message does not appear. Or maybe if it is
possible to set some attribute during the database connection.
We have read about a solution changing in the file postgres.config the
attribute log_error_verbosity to terse. We did but it has no effect in the
result.
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-sql-f2142323.html
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
view thread (3+ messages) latest in thread
Message-ID: <1510654656203-0.post@n3.nabble.com>
Permalink: ../1510654656203-0.post@n3.nabble.com/
Also on: postgresql.org/message-id/1510654656203-0.post@n3.nabble.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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: queraltr@gmail.com
Subject: Re: Line number returned in Postgres Raise Exception sentence
In-Reply-To: <1510654656203-0.post@n3.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox