Re: POC: converting Lists into arrays

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: POC: converting Lists into arrays
Дата
Msg-id
2305.1562181615@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Andres Freund <andres@anarazel.de>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Alvaro Herrera <alvherre@2ndquadrant.com>
Re: POC: converting Lists into arrays Robert Haas <robertmhaas@gmail.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays David Rowley <david.rowley@2ndquadrant.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Andres Freund <andres@anarazel.de>
Re: POC: converting Lists into arrays Andres Freund <andres@anarazel.de>
Re: POC: converting Lists into arrays Andres Freund <andres@anarazel.de>
Re: POC: converting Lists into arrays Andres Freund <andres@anarazel.de>
Re: POC: converting Lists into arrays Andres Freund <andres@anarazel.de>
Re: POC: converting Lists into arrays Petr Jelinek <petr@2ndquadrant.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Andres Freund <andres@anarazel.de>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Craig Ringer <craig@2ndquadrant.com>
Re: POC: converting Lists into arrays Andres Freund <andres@anarazel.de>
Re: POC: converting Lists into arrays Craig Ringer <craig@2ndquadrant.com>
Re: POC: converting Lists into arrays Fabien COELHO <coelho@cri.ensmp.fr>
Re: POC: converting Lists into arrays Robert Haas <robertmhaas@gmail.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Robert Haas <robertmhaas@gmail.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Andres Freund <andres@anarazel.de>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Andres Freund <andres@anarazel.de>
Re: POC: converting Lists into arrays Peter Geoghegan <pg@bowt.ie>
Re: POC: converting Lists into arrays Andres Freund <andres@anarazel.de>
Re: POC: converting Lists into arrays Peter Geoghegan <pg@bowt.ie>
Re: POC: converting Lists into arrays Andres Freund <andres@anarazel.de>
Re: POC: converting Lists into arrays Peter Geoghegan <pg@bowt.ie>
Re: POC: converting Lists into arrays Peter Geoghegan <pg@bowt.ie>
Re: POC: converting Lists into arrays Andres Freund <andres@anarazel.de>
Re: POC: converting Lists into arrays Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: POC: converting Lists into arrays Andres Freund <andres@anarazel.de>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Andres Freund <andres@anarazel.de>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays David Rowley <david.rowley@2ndquadrant.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays David Rowley <david.rowley@2ndquadrant.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Andres Freund <andres@anarazel.de>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Andres Freund <andres@anarazel.de>
Re: POC: converting Lists into arrays Robert Haas <robertmhaas@gmail.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Andres Freund <andres@anarazel.de>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Andres Freund <andres@anarazel.de>
Re: POC: converting Lists into arrays David Rowley <david.rowley@2ndquadrant.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Andres Freund <andres@anarazel.de>
Re: POC: converting Lists into arrays David Rowley <david.rowley@2ndquadrant.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Bruce Momjian <bruce@momjian.us>
Re: POC: converting Lists into arrays David Rowley <david.rowley@2ndquadrant.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Jesper Pedersen <jesper.pedersen@redhat.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Oleksandr Shulgin <oleksandr.shulgin@zalando.de>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Oleksandr Shulgin <oleksandr.shulgin@zalando.de>
Re: POC: converting Lists into arrays David Rowley <david.rowley@2ndquadrant.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays David Rowley <david.rowley@2ndquadrant.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Alvaro Herrera <alvherre@2ndquadrant.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays David Rowley <david.rowley@2ndquadrant.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays David Rowley <david.rowley@2ndquadrant.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Alvaro Herrera <alvherre@2ndquadrant.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays David Rowley <david.rowley@2ndquadrant.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Daniel Gustafsson <daniel@yesql.se>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays David Rowley <david.rowley@2ndquadrant.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays David Rowley <david.rowley@2ndquadrant.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays David Rowley <david.rowley@2ndquadrant.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays David Rowley <david.rowley@2ndquadrant.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays David Rowley <david.rowley@2ndquadrant.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays David Steele <david@pgmasters.net>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Robert Haas <robertmhaas@gmail.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Peter Geoghegan <pg@bowt.ie>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Alvaro Herrera <alvherre@2ndquadrant.com>
Re: POC: converting Lists into arrays David Rowley <david.rowley@2ndquadrant.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Daniel Gustafsson <daniel@yesql.se>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Jesper Pedersen <jesper.pedersen@redhat.com>
Re: POC: converting Lists into arrays David Rowley <david.rowley@2ndquadrant.com>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: POC: converting Lists into arrays Bruce Momjian <bruce@momjian.us>
Re: POC: converting Lists into arrays Bruce Momjian <bruce@momjian.us>
Re: POC: converting Lists into arrays Peter Geoghegan <pg@bowt.ie>
Re: POC: converting Lists into arrays David Rowley <david.rowley@2ndquadrant.com>
Re: POC: converting Lists into arrays Andres Freund <andres@anarazel.de>
Re: POC: converting Lists into arrays Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: POC: converting Lists into arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: XML/XPath issues: text/CDATA in XMLTABLE, XPath evaluated withwrong context Ramanarayana <raam.soft@gmail.com>
Re: XML/XPath issues: text/CDATA in XMLTABLE, XPath evaluated withwrong context Pavel Stehule <pavel.stehule@gmail.com>
Re: XML/XPath issues: text/CDATA in XMLTABLE, XPath evaluated withwrong context Pavel Stehule <pavel.stehule@gmail.com>
Re: XML/XPath issues: text/CDATA in XMLTABLE, XPath evaluated withwrong context Ramanarayana <raam.soft@gmail.com>
Re: XML/XPath issues: text/CDATA in XMLTABLE, XPath evaluated withwrong context Chapman Flack <chap@anastigmatix.net>
Re: XML/XPath issues: text/CDATA in XMLTABLE, XPath evaluated withwrong context Ramanarayana <raam.soft@gmail.com>
Re: XML/XPath issues: text/CDATA in XMLTABLE, XPath evaluated withwrong context Pavel Stehule <pavel.stehule@gmail.com>
David Rowley  writes:
> I also did some more benchmarking of the patch. ...
> Which makes the patched version 2.2% faster than master on that run.

BTW, further on the subject of performance --- I'm aware of at least
these topics for follow-on patches:

* Fix places that are maintaining arrays parallel to Lists for
access-speed reasons (at least simple_rte_array, append_rel_array,
es_range_table_array).

* Look at places using lcons/list_delete_first to maintain FIFO lists.
The patch makes these O(N^2) for long lists.  If we can reverse the list
order and use lappend/list_truncate instead, it'd be better.  Possibly in
some places the list ordering is critical enough to make this impractical,
but I suspect it's an easy win in most.

* Rationalize places that are using combinations of list_copy and
list_concat, probably by inventing an additional list-concatenation
primitive that modifies neither input.

* Adjust API for list_qsort(), as discussed, to save indirections and
avoid constructing an intermediate pointer array.  I also seem to recall
one place in the planner that's avoiding using list_qsort by manually
flattening a list into an array, qsort'ing, and rebuilding the list :-(

I don't think that any one of these fixes would move the needle very
much on "typical" simple workloads, but it's reasonable to hope that in
aggregate they'd make for a noticeable improvement.  In the meantime,
I'm gratified that the initial patch at least doesn't seem to have lost
any ground.

			regards, tom lane


В списке pgsql-hackers по дате отправления
От: Daniel Gustafsson
Дата:
От: David Fetter
Дата:
Сообщение: Re: Index Skip Scan
FAQ