Re: distinguish index cost component from table component
Justin Pryzby <pryzby@telsasoft.com>
From: Justin Pryzby <pryzby@telsasoft.com>
To: Jeff Janes <jeff.janes@gmail.com>
Cc: pgsql-performance@postgresql.org
Date: 2020-01-03T16:03:15Z
Lists: pgsql-hackers, pgsql-performance
Attachments
- v1-0001-explain-show-index_total_cost.patch (text/x-diff)
On Fri, Jan 03, 2020 at 09:33:35AM -0500, Jeff Janes wrote: > Of course this doesn't really answer your question, as the > separately-reported costs of a bitmap heap and bitmap index scan are > unlikely to match what the costs would be of a regular index scan, if they > were reported separately. I think the cost of index component of bitmap scan would be exactly the same as the cost of the original indexscan. >> Or maybe explain should report it. > > I wouldn't be optimistic about getting such a backwards-incompatible change > accepted (plus it would surely add some small accounting overhead, which > again would probably not be acceptable). But if you do enough tuning work, > perhaps it would be worth carrying an out-of-tree patch to implement that. > I wouldn't be so interested in writing such a patch, but would be > interested in using one were it available somewhere. I did the attached in the simplest possible way. If it's somehow possible get the path's index_total_cost from the plan, then there'd be no additional overhead. Justin
Commits
-
Doc: Fix list of storage parameters available for ALTER TABLE
- b9a9cb1bfd6e 10.12 landed
- b9988facaec8 11.7 landed
- c4c76d198e3d 12.2 landed
- 6de7bcb76f65 13.0 landed
-
Enhance docs for ALTER TABLE lock levels of storage parms
- 6f3a13ff058f 10.0 cited
-
Reduce lock levels for table storage params related to planning
- 21d4e2e20656 10.0 cited
-
Reduce lock levels for ALTER TABLE SET autovacuum storage options
- 47167b7907a8 9.6.0 cited
-
Reduce lock levels of some ALTER TABLE cmds
- e5550d5fec66 9.4.0 cited
-
Reduce lock levels of CREATE TRIGGER and some ALTER TABLE, CREATE RULE actions.
- 2dbbda02e7e6 9.1.0 cited
-
Support ALTER TABLESPACE name SET/RESET ( tablespace_options ).
- d86d51a95810 9.0.0 cited