Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 2F5E09FB545 for ; Thu, 22 Feb 2007 09:47:11 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 90326-03 for ; Thu, 22 Feb 2007 09:47:05 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 4AD4D9FB4F9 for ; Thu, 22 Feb 2007 09:47:09 -0400 (AST) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 6286930AE2; Thu, 22 Feb 2007 14:47:08 +0100 (MET) From: "Sabin Coanda" X-Newsgroups: pgsql.sql Subject: Re: How compare current_setting(..) ? Date: Thu, 22 Feb 2007 15:47:14 +0200 Organization: Hub.Org Networking Services Lines: 34 Message-ID: References: <20070222110353.GA7197@winnie.fuhr.org> X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original To: pgsql-sql@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/225 X-Sequence-Number: 27559 Sorry, it was my fault. The setting was '%t' and a space. I fixed it and it works well. Many thanks ! "Michael Fuhr" 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 > >