Re: How compare current_setting(..) ?

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: How compare current_setting(..) ?
Дата
Msg-id 20070222110353.GA7197@winnie.fuhr.org
обсуждение исходный текст
Ответ на How compare current_setting(..) ?  ("Sabin Coanda" <sabin.coanda@deuromedia.ro>)
Список pgsql-sql
On Thu, Feb 22, 2007 at 12:25:42PM +0200, Sabin Coanda wrote:
> I'd like to check that my log_line_prefix is set to '%t'.
> I suppose I can check it with the following statement:
>     SELECT current_setting( 'log_line_prefix' )
>     WHERE current_setting( 'log_line_prefix' ) != '%t'
> 
> But it returns every time a row, with '%t', even when log_line_prefix is set 
> to '%t'.
> What's wrong ?

Works here.  Might log_line_prefix have leading or trailing spaces?
What does the following return?

SELECT '<' || current_setting('log_line_prefix') || '>',      length(current_setting('log_line_prefix'));

-- 
Michael Fuhr


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

Предыдущее
От: "Sabin Coanda"
Дата:
Сообщение: How compare current_setting(..) ?
Следующее
От: "A. Kretschmer"
Дата:
Сообщение: Re: [GENERAL] Esay question, about the numeric format