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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to pipe the psql copy command to Unix 'Date' command
Дата
Msg-id 10000.1235064676@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to pipe the psql copy command to Unix 'Date' command  (SHARMILA JOTHIRAJAH <sharmi_jo@yahoo.com>)
Ответы Re: How to pipe the psql copy command to Unix 'Date' command  (SHARMILA JOTHIRAJAH <sharmi_jo@yahoo.com>)
Список pgsql-general
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
postgresusing 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?

            regards, tom lane

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

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