TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

PgAssistant: OSS tool to help devs understand and optimize PG performance

253 pointsby justinclift3 months ago

8 comments

cpursley3 months ago
Neat! Just added it to my &quot;Postgres Is Enough&quot; gist:<p><a href="https:&#x2F;&#x2F;gist.github.com&#x2F;cpursley&#x2F;c8fb81fe8a7e5df038158bdfe0f06dbb#performance-tuning" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;cpursley&#x2F;c8fb81fe8a7e5df038158bdfe0f...</a>
评论 #43033697 未加载
ggregoire3 months ago
&gt; OpenAI helper: If you have an OpenAI account, the interface can query OpenAI to help you understand your query plan and optimize your SQL queries<p>How good are LLMs at optimizing queries? Do they just give basic advices like &quot;try adding an index there&quot; or can they do more?<p>I guess it would need to cross the results of the explain analyze with at least the DDLs of the table (including partitions, indexes, triggers, etc), and like the sizes of the tables and the rate of reads&#x2F;writes of the tables in some cases, to be able to &quot;understand&quot; and &quot;reason&quot; about what&#x27;s going on and offer meaningful advices (e.g. proposing design changes for the tables).<p>I don&#x27;t see how a generic LLM would be able to do that, but maybe another type of model trained for this task and with access to all the information it needs?
评论 #43027227 未加载
评论 #43027107 未加载
评论 #43027190 未加载
评论 #43027125 未加载
评论 #43027952 未加载
评论 #43027512 未加载
评论 #43034135 未加载
dewey3 months ago
The screenshot section in the README seems to be empty. Would&#x27;ve been interesting to see that. There&#x27;s many tools that do similar things like <a href="https:&#x2F;&#x2F;github.com&#x2F;ankane&#x2F;pghero">https:&#x2F;&#x2F;github.com&#x2F;ankane&#x2F;pghero</a> or some tools here: <a href="https:&#x2F;&#x2F;gitlab.com&#x2F;postgres-ai" rel="nofollow">https:&#x2F;&#x2F;gitlab.com&#x2F;postgres-ai</a>
评论 #43026386 未加载
znpy3 months ago
honest question: does anybody know a good book&#x2F;tutorial&#x2F;source&#x2F;whatever on becoming a postgresql DBA ?<p>most of the material i see is written for people that want to write applications that work with postgresql, not on how to proficiently manage postgresql itself.
评论 #43027464 未加载
评论 #43029903 未加载
评论 #43027465 未加载
评论 #43027866 未加载
评论 #43032829 未加载
评论 #43034600 未加载
Olshansky3 months ago
Added this to the performance tuning section: <a href="https:&#x2F;&#x2F;github.com&#x2F;Olshansk&#x2F;postgres_for_everything?tab=readme-ov-file#performance-tuning">https:&#x2F;&#x2F;github.com&#x2F;Olshansk&#x2F;postgres_for_everything?tab=read...</a>
评论 #43036778 未加载
booleanbetrayal3 months ago
This reminds me of a less feature-rich version of PgAnalyze, but it&#x27;s always nice to have alternative OSS options for this sort of optimization work.
scosman3 months ago
I’ve wanted to make this for years. I have a doc of saved pg_stat_statement and other queries saved.
sgarland3 months ago
Your screenshot for issues found show indices being created with CREATE INDEX. If someone runs that on a prod DB with a large table, they’re gonna have a bad time. You should have it suggest CREATE INDEX CONCURRENTLY.<p>Also, if I’m being honest, it’s a little off-putting to see a tool giving advice on Postgres and not differentiating between those two.
评论 #43035609 未加载
评论 #43037044 未加载