Re: SQL/MED - file_fdw
От
Itagaki Takahiro
Тема
Re: SQL/MED - file_fdw
Дата
Msg-id
AANLkTik9sL0oV=VxjNRaY1mvv2D9Z6QmofSyr0ADL6dy@mail.gmail.com
Ответ на
Re: SQL/MED - file_fdw (Shigeru HANADA)
Список
Дерево обсуждения
Re: SQL/MED - file_fdw "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: SQL/MED - file_fdw Noah Misch <noah@leadboat.com>
Re: SQL/MED - file_fdw Itagaki Takahiro <itagaki.takahiro@gmail.com>
Re: SQL/MED - file_fdw Noah Misch <noah@leadboat.com>
Re: SQL/MED - file_fdw Itagaki Takahiro <itagaki.takahiro@gmail.com>
Re: SQL/MED - file_fdw Noah Misch <noah@leadboat.com>
Re: SQL/MED - file_fdw Itagaki Takahiro <itagaki.takahiro@gmail.com>
Re: SQL/MED - file_fdw Noah Misch <noah@leadboat.com>
Re: SQL/MED - file_fdw Robert Haas <robertmhaas@gmail.com>
Re: SQL/MED - file_fdw "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: SQL/MED - file_fdw Noah Misch <noah@leadboat.com>
Re: SQL/MED - file_fdw "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: SQL/MED - file_fdw "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: SQL/MED - file_fdw Noah Misch <noah@leadboat.com>
Re: SQL/MED - file_fdw "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: SQL/MED - file_fdw Noah Misch <noah@leadboat.com>
Re: SQL/MED - file_fdw Itagaki Takahiro <itagaki.takahiro@gmail.com>
Re: SQL/MED - file_fdw Andrew Dunstan <andrew@dunslane.net>
Re: SQL/MED - file_fdw Itagaki Takahiro <itagaki.takahiro@gmail.com>
Re: SQL/MED - file_fdw "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: SQL/MED - file_fdw Robert Haas <robertmhaas@gmail.com>
Re: SQL/MED - file_fdw Andrew Dunstan <andrew@dunslane.net>
Re: SQL/MED - file_fdw Itagaki Takahiro <itagaki.takahiro@gmail.com>
On Thu, Jan 13, 2011 at 19:00, Shigeru HANADA wrote: > But EndCopyFrom() seems not to be able to release memory which is > allocated in BeginCopy() and BeginCopyFrom(). I found this behavior > by executing a query which generates nested loop plan (outer 1000000 > row * inner 10 row), and at last postgres grows up to 300MB+ from > 108MB (VIRT of top command). > > Attached patch would avoid this leak by adding per-copy context to > CopyState. This would be overkill, and ResetCopyFrom() might be > reasonable though. Good catch. I merged your fix into the attached patch. BTW, why didn't planner choose a materialized plan for the inner loop? FDW scans are typically slower than heap scans or TupleTableslot scans, it seems reasonable for me to add a Materialize node at the top of the inner Foreign Scan, especially when we don't use indexes for the scan keys or join keys. -- Itagaki Takahiro
В списке pgsql-hackers по дате отправления