From: Sabin Coanda <sabin.coanda@deuromedia.ro>
To: pgsql-sql@postgresql.org
Subject: Re: How compare current_setting(..) ?
Date: Thu, 22 Feb 2007 15:47:14 +0200
Message-ID: <erk6sq$21jv$1@news.hub.org> (raw)
References: <erjr2t$sdn$1@news.hub.org>
<20070222110353.GA7197@winnie.fuhr.org>
Sorry, it was my fault. The setting was '%t' and a space. I fixed it and it
works well.
Many thanks !
"Michael Fuhr" <mike@fuhr.org> wrote in message
news:20070222110353.GA7197@winnie.fuhr.org...
> 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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
>
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: sabin.coanda@deuromedia.ro
Subject: Re: How compare current_setting(..) ?
In-Reply-To: <erk6sq$21jv$1@news.hub.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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