Re: remove log header

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Sabin Coanda" <sabin(dot)coanda(at)deuromedia(dot)ro>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: remove log header
Date: 2009-01-06 16:13:53
Message-ID: 590.1231258433@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Sabin Coanda" <sabin(dot)coanda(at)deuromedia(dot)ro> writes:
> On Windows, I run a script batch file with psql, and I get any log line with
> the following pattern:
> psql://<path_file_name>:4: NOTICE: <log_message>
> I'd like to remove the log header before NOTICE. What should I do ?

If you don't want line numbers at all, I think you can do

psql database <scriptfile

so that psql doesn't know it's a script.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gustavo Rosso 2009-01-06 16:43:15 autovacuum
Previous Message Grzegorz Jaśkiewicz 2009-01-06 16:05:35 Re: Vacuum problems