Skip site navigation (1) Skip section navigation (2)

Re: log_error_verbosity function display

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: log_error_verbosity function display
Date: 2010-02-11 03:17:10
Message-ID: (view raw or whole thread)
Lists: pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <bruce(at)momjian(dot)us> writes:
> > Right now, log_error_verbosity displays the source code error location
> > in this format:
> > 	LOCATION:  parserOpenTable, parse_relation.c:858
> > I think it would be clearer to add '()' next to the function name.  We
> > use '() to display function names in our docs and I think using '()'
> > would clarify the output, e.g.:
> > 	LOCATION:  parserOpenTable(), parse_relation.c:858
> Seems like a waste of log space to me.  The convention about writing ()
> to decorate function names is hardly universal, and anyway it's mainly
> useful to mark things that the reader might not realize are function
> names.  This can't be anything else.

I suggested it because it wasn't obvious to me it was a function name,
so I figured others might not recognize it.  Remember, we deal with the
C code all the time so we have to consider how the general user would
see it.

  Bruce Momjian  <bruce(at)momjian(dot)us>

  + If your life is a hard drive, Christ can be your backup. +

In response to


pgsql-hackers by date

Next:From: Tom LaneDate: 2010-02-11 03:17:14
Subject: Re: Confusion over Python drivers {license}
Previous:From: Bruce MomjianDate: 2010-02-11 03:15:01
Subject: Re: Avoiding bad prepared-statement plans.

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group