pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How to get RAISE messges displayed?
3+ messages / 2 participants
[nested] [flat]

* How to get RAISE messges displayed?
@ 2019-08-30 22:22  stan <stanb@panix.com>
  0 siblings, 1 reply; 3+ messages in thread

From: stan @ 2019-08-30 22:22 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

OK, I am doing enough of this to start using some debug error messages.

I put the following in a function declaration:

RAISE notice 'Called with %', $1 ;

But, when I call the function I do not see anything. I edited postgresql.conf

Like this:

client_min_messages = notice
#client_min_messages = notice           # values in order of decreasing detail:

Event though it looked like this should be the default.

restarted Postgres with:

/etc/init.d/postgresql restart

But I still do not see this, or see it in the log when I call this function.

Ubuntu 18.04 a Postgresql 11 if that matters.


-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
						-- Benjamin Franklin





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: How to get RAISE messges displayed?
@ 2019-08-30 22:35  stan <stanb@panix.com>
  parent: stan <stanb@panix.com>
  0 siblings, 1 reply; 3+ messages in thread

From: stan @ 2019-08-30 22:35 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

On Fri, Aug 30, 2019 at 06:22:14PM -0400, stan wrote:
> OK, I am doing enough of this to start using some debug error messages.
> 
> I put the following in a function declaration:
> 
> RAISE notice 'Called with %', $1 ;
> 
> But, when I call the function I do not see anything. I edited postgresql.conf
> 
> Like this:
> 
> client_min_messages = notice
> #client_min_messages = notice           # values in order of decreasing detail:
> 
> Event though it looked like this should be the default.
> 
> restarted Postgres with:
> 
> /etc/init.d/postgresql restart
> 
> But I still do not see this, or see it in the log when I call this function.
> 
> Ubuntu 18.04 a Postgresql 11 if that matters.
> 

Got it working.

Not 100% sure what I had wrong.
-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
						-- Benjamin Franklin





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: How to get RAISE messges displayed?
@ 2019-09-02 06:28  Luca Ferrari <fluca1978@gmail.com>
  parent: stan <stanb@panix.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Luca Ferrari @ 2019-09-02 06:28 UTC (permalink / raw)
  To: stan <stanb@panix.com>; +Cc: pgsql-general <pgsql-general@lists.postgresql.org>

On Sat, Aug 31, 2019 at 12:35 AM stan <stanb@panix.com> wrote:
> Got it working.
>
> Not 100% sure what I had wrong.

You can also do, in your session:
set client_min_messages to notice;
without having to change it in the configuration (for all sessions).

Luca





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2019-09-02 06:28 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-08-30 22:22 How to get RAISE messges displayed? stan <stanb@panix.com>
2019-08-30 22:35 ` stan <stanb@panix.com>
2019-09-02 06:28   ` Luca Ferrari <fluca1978@gmail.com>

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