Re: Copy command Faster than original select

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: Copy command Faster than original select
Дата
Msg-id CAFj8pRDkenXG8-cAMuGNgyjoR9Ne+RRA5xdz1DWiuLqWDdKX7g@mail.gmail.com
обсуждение исходный текст
Ответ на Copy command Faster than original select  (belal <belalhamed@gmail.com>)
Ответы Re: Copy command Faster than original select  (Belal Al-Hamed <belalhamed@gmail.com>)
Список pgsql-performance
Hi

2015-02-06 9:30 GMT+01:00 belal <belalhamed@gmail.com>:
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?

probably terrible uneffective execution plan

can you send a explain analyze of your slow query?

Regards

Pavel

 

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.


--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance

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

Предыдущее
От: belal
Дата:
Сообщение: Copy command Faster than original select
Следующее
От: Belal Al-Hamed
Дата:
Сообщение: Re: Copy command Faster than original select