Re: remove log header

Поиск
Список
Период
Сортировка
Искать

Re: remove log header

От:
"Grzegorz Jaśkiewicz" <gryzman@gmail.com>
Дата:
On Tue, Jan 6, 2009 at 3:32 PM, Sabin Coanda  wrote:
> Hi there,
>
> On Windows, I run a script batch file with psql, and I get any log line with
> the following pattern:
>
>            psql://:4: NOTICE: 
>
> I'd like to remove the log header before NOTICE. What should I do ?

either write simple program for that, or install gnu utils and treat
it with "sed"

-- 
GJ

Re: remove log header

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
"Sabin Coanda"  writes:
> On Windows, I run a script batch file with psql, and I get any log line with 
> the following pattern:
>             psql://:4: NOTICE: 
> 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 

remove log header

От:
"Sabin Coanda" <sabin.coanda@deuromedia.ro>
Дата:
Hi there,

On Windows, I run a script batch file with psql, and I get any log line with 
the following pattern:

            psql://:4: NOTICE: 

I'd like to remove the log header before NOTICE. What should I do ?

Thanks,
Sabin 


FAQ