Earlier quoted context omitted.
There could also be a “clean the slate” streaming directive, which means “I started the query again, please scratch what got delivered already”.
That effictively means the client cannot actually start processing the results before everything is received. Because you would have to undo everything you did with the data you received before. So basically this would simply be a non streaming version.
Show HN: pg_flame – flamegraph visualizations of PostgreSQL query plans
31–40 of 46 posts
Re: Show HN: pg_flame – flamegraph visualizations of PostgreSQL query plans
#32edit: Googled it, looks like PostgreSQL maintainers just have an opinion that hints are bad and the planner is good enough:
https://wiki.postgresql.org/wiki/OptimizerHintsDiscussion
There are "Explicit JOINs" but I'm not sure how useful they are:
Re: Show HN: pg_flame – flamegraph visualizations of PostgreSQL query plans
#33A really great feature that the Oracle database has is ability to provide hints to the planner. Is there anything that prevents PostgreSQL from adding this feature? edit: Googled it, looks like PostgreSQL maintainers just have an opinion that hints are bad and the planner is good enough: https://wiki.postgresql.org/wiki/OptimizerHintsDiscussion There are "Explicit JOINs" but I'm not sure how useful they are: https://…
Re: Show HN: pg_flame – flamegraph visualizations of PostgreSQL query plans
#34A really great feature that the Oracle database has is ability to provide hints to the planner. Is there anything that prevents PostgreSQL from adding this feature? edit: Googled it, looks like PostgreSQL maintainers just have an opinion that hints are bad and the planner is good enough: https://wiki.postgresql.org/wiki/OptimizerHintsDiscussion There are "Explicit JOINs" but I'm not sure how useful they are: https://…
On the application I'm currently working on the difference between the two indexes is night and day, the gin index will respond in 100ms, whilst the btree index can be 15secs+. We've resorted to having two columns with the same content, one with a btree index and one with a gin index so that we can explicitly choose which index to hit.
Re: Show HN: pg_flame – flamegraph visualizations of PostgreSQL query plans
#35A really great feature that the Oracle database has is ability to provide hints to the planner. Is there anything that prevents PostgreSQL from adding this feature? edit: Googled it, looks like PostgreSQL maintainers just have an opinion that hints are bad and the planner is good enough: https://wiki.postgresql.org/wiki/OptimizerHintsDiscussion There are "Explicit JOINs" but I'm not sure how useful they are: https://…
Re: Show HN: pg_flame – flamegraph visualizations of PostgreSQL query plans
#36Re: Show HN: pg_flame – flamegraph visualizations of PostgreSQL query plans
#37Earlier quoted context omitted.
Could the workflow done so that you just copy-paste output from a PSQL shell to an online tool?
This is the best tool I know, works pasting only the JSON output: http://tatiyants.com/postgres-query-plan-visualization/ The information density the rendering gives me is way better than the flamegraph.
Re: Show HN: pg_flame – flamegraph visualizations of PostgreSQL query plans
#38A really great feature that the Oracle database has is ability to provide hints to the planner. Is there anything that prevents PostgreSQL from adding this feature? edit: Googled it, looks like PostgreSQL maintainers just have an opinion that hints are bad and the planner is good enough: https://wiki.postgresql.org/wiki/OptimizerHintsDiscussion There are "Explicit JOINs" but I'm not sure how useful they are: https://…
It's unfortunate that it comes off as if maintainers think planner is good enough, because that is demonstrably not true. And from my discussions there is wide agreement that the planner will never be perfect. But agreeing that it's something that needs work is not enough, someone actually has to do the work too. Reality is that implementing any feature to PostgreSQL quality standards is hard work.
Re: Show HN: pg_flame – flamegraph visualizations of PostgreSQL query plans
#39A tool like would be a wonderful addition to the PostgreSQL ecosystem! That being said, this tool won't work well for anything but trivial queries. PostgreSQL query plans have many quirks around CTEs, Loops, etc. that cause problems when trying to determine the true inclusive/exclusive time for each node without forgetting stuff or counting it twice. The only tool that tackles them fairly in my experiences it the goo…
I’ll add a CTE demo with and explanation.
Re: Show HN: pg_flame – flamegraph visualizations of PostgreSQL query plans
#40I love this tool! But generally speaking, the user experience of the PostgreSQL admin workflow could be improved so much. The psql client binary should include visualizations like this even in text mode, so admins don't have to follow a multitude of steps as described in the repo: 1) run query, store results in .json file 2) scp .json file to your dev machine 3) run visualization tool If I already have a psql client…
I never understood the obsession with the graphical display of execution plans (neither in Postgres nor in Oracle). I find the text output much more useful and detailed then any graphical display. Especially when generated with "explain (analyze, buffers, timing) ..." and "track_io_timing" turned on.
tldr; use both as needed