Copy command Faster than original select

Поиск
Список
Период
Сортировка
От belal
Тема Copy command Faster than original select
Дата
Msg-id 1423211439320-5836886.post@n5.nabble.com
обсуждение исходный текст
Ответы Re: Copy command Faster than original select  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: Copy command Faster than original select  (Igor Neyman <ineyman@perceptron.com>)
Re: Copy command Faster than original select  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
I made complex select using PGAdmin III Query Editor, Postgre server 9.3


select ... from mytable join .. join ... order by ....

I get [Total query runtime: 8841 ms. 43602 rows retrieved.]

but when I use

copy ([same above select]) to '/x.txt'
I get [Query returned successfully: 43602 rows affected, 683 ms execution
time.]

these test made on the same machine as the postgresql server.


can anyone explain huge difference in executing time?

best regards all



--
View this message in context: http://postgresql.nabble.com/Copy-command-Faster-than-original-select-tp5836886.html
Sent from the PostgreSQL - performance mailing list archive at Nabble.com.


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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: working around JSONB's lack of stats?
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Copy command Faster than original select