Re: PL/pgSQL, RAISE and error context

Поиск
Список
Период
Сортировка
От Marko Tiikkaja
Тема Re: PL/pgSQL, RAISE and error context
Дата
Msg-id 54C0E0EC.4000801@joh.to
обсуждение исходный текст
Ответ на Re: PL/pgSQL, RAISE and error context  (Marko Tiikkaja <marko@joh.to>)
Ответы Re: PL/pgSQL, RAISE and error context  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
Hello,

I just heard that there's going to be a fifth CF for 9.5 so I'm trying 
to gather all the patches I'd like to see in 9.5..

On 8/23/13 10:36 AM, I wrote:
> My opinion at this very moment is that we should leave the the DEFAULT
> verbosity alone and add a new one (call it COMPACT or such) with the
> suppressed context for non-ERRORs.

I wonder if a better option would be to add a GUC to control this from 
the server side.  plpgsql.suppress_simple_error_context or such, 
defaulting to false to maintain full backwards compatibility.  That 
could be set to true for development installations and for client 
programs which only care about having all information available, rather 
than readability or aesthetics.

Or is that a stupid idea?  I just think hacking libpq for something like 
this is a huge overkill.


.marko



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Kyotaro HORIGUCHI
Дата:
Сообщение: Re: New CF app: changing email sender
Следующее
От: Robert Haas
Дата:
Сообщение: Re: delta relations in AFTER triggers