Re: is there a way

Поиск
Список
Период
Сортировка
От Lamar Owen
Тема Re: is there a way
Дата
Msg-id 200205021020.43496.lamar.owen@wgcr.org
обсуждение исходный текст
Ответ на is there a way  ("Dorward Villaruz" <dorwardv@ntsp.nec.co.jp>)
Список pgsql-general
On Thursday 02 May 2002 01:45 pm, Dorward Villaruz wrote:
> 1) is there a way to time execution of sql statements in postgres without
> using any frontend languages like php ? 2) is there also a way of inserting
> 2000000 records to a table without using any frontend languages like php?

Well, if shell doesn't count as a language, use:
time psql -c $query $database

where $query is the query you want to time (quoted properly, of course) and
$database is the database the query is accessing.

The COPY command does the second part -- see the documentation on details of
data format, file location, syntax and soforth.
--
Lamar Owen
WGCR Internet Radio
1 Peter 4:11

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

Предыдущее
От: Fran Fabrizio
Дата:
Сообщение: Re: Joe Celko Function : problem
Следующее
От: Shaun Thomas
Дата:
Сообщение: Re: What popular, large commercial websites run