-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pg_catalog.col_description
is very slow
#87947
Comments
Hello, I am Blathers. I am here to help you get the issue triaged. Hoot - a bug! Though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here. I have CC'd a few people who may be able to assist you:
If we have not gotten back to your issue within a few business days, you can try the following:
🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan. |
Thanks for the report! The performance of this should improve in v22.2 - which version were you testing with when you saw this? |
Hey, great news! My tests were with 22.1. |
In the meantime on 22.1, if a rewrite is ok, you could try replacing |
Thanks @DrewKimball ! I tested with that suggestion and my test case (just running a single node locally, with one table in the cluster) dropped from 5.9 seconds to 31ms. |
@DrewKimball should we rename this issue to describe the problem with the join/filter? Or is there already another issue for that? |
I've got a separate issue for decorrelating cases like this one: #88885. I'm not sure if |
Ok great - we can keep this one about |
Describe the problem
Hi! 👋
The
pg_catalog.col_description
function runs very slowly, making any queries that use it take ~20 seconds per invocation.Reproduction
The following SQL query is used to fetch column descriptions for all tables:
Run on a fresh start of the DB with no tables, it takes
25ms
to run.If I add a single table...
then running the above query takes
21.732s
.If I comment out the
pg_catalog.col_description
line, so the end looks like this:Performance is fine again, and this takes
95ms
to run.Expected behavior
Would expect this function to perform much more efficiently.
Additional context
This function is needed for Hasura GraphQL Engine. We are currently working around this by not fetching column descriptions.
Epic CRDB-23454
Jira issue: CRDB-19609
The text was updated successfully, but these errors were encountered: