Re: How to pipe the psql copy command to Unix 'Date' command

Поиск
Список
Период
Сортировка
От SHARMILA JOTHIRAJAH
Тема Re: How to pipe the psql copy command to Unix 'Date' command
Дата
Msg-id 413151.4447.qm@web110705.mail.gq1.yahoo.com
обсуждение исходный текст
Ответ на Re: How to pipe the psql copy command to Unix 'Date' command  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: How to pipe the psql copy command to Unix 'Date' command  (Erik Jones <ejones@engineyard.com>)
Список pgsql-general


--- On Thu, 2/19/09, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> From: Tom Lane <tgl@sss.pgh.pa.us>
> Subject: Re: [GENERAL] How to pipe the psql copy command to Unix 'Date' command
> To: sharmi_jo@yahoo.com
> Cc: "General postgres mailing list" <pgsql-general@postgresql.org>
> Date: Thursday, February 19, 2009, 12:31 PM
> SHARMILA JOTHIRAJAH <sharmi_jo@yahoo.com> writes:
> > Hi,
> > I want to find the time taken by this process
> ...retrieving data from oracle database using java and
> copying that to postgres using copy.
> > So I need something like this
>
> > Start_Time|java testCode ...|psql -c "copy dummy
> from stdin with delimiter ',' null
> 'NULL'" test| End_time
>
> time java testCode ...|psql -c "copy dummy from stdin
> with delimiter ',' null 'NULL'" test
>
> Or do you really insist on doing the timestamp subtraction
> by hand?
>
>
No...I would definitely prefer to get the time elapsed between the start of the java program and the end of the copy
command...Is that possible ? If not at least the start and the end time so tht i can do the calculation myself 

Thanks
Sharmila




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: How to pipe the psql copy command to Unix 'Date' command
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Aliasing syntax question