TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

253 点作者 justinclift3 个月前

8 条评论

cpursley3 个月前
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 个月前
&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 个月前
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 个月前
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 个月前
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 个月前
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 个月前
I’ve wanted to make this for years. I have a doc of saved pg_stat_statement and other queries saved.
sgarland3 个月前
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 未加载