-
Notifications
You must be signed in to change notification settings - Fork 466
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
Document how to use crdb_internal #2957
Comments
The pushback here will be that we don't want applications to rely on Maybe the right answer is to ensure that absolutely everything useful in |
Interesting - will see what @bdarnell and @jseldess say too. Re: |
Ah, I see! Yeah, definitely a good idea to show people a representative example or two. But documenting all of its facets will be a lot of effort for little payoff, especially given that it's mostly documented elsewhere (e.g., in the Postgres docs and the SQL standard). Also we have a much nicer |
Adding a comment from @bdarnell:
Closing this as a result. But I'll ping product on identifying useful parts of crdb_internal to put behind |
I spoke with @bdarnell and @jordanlewis about this issue today in service of partitioning. We decided that the cat is out of the proverbial bag and it makes sense to document our internal tables rather than making a crdb_catalog. As @bdarnell notes:
On the topic of backwards compatibility:
|
@awoods187, @bdarnell, since we're deciding to document
And it's a pretty big database, so it will be important to identify which tables are most important for users to know about and when they could/should be used. Who can help with this? Ideally, we would even auto-generate this documentation.
|
My first choice is still to create a I partially withdraw my endorsement of |
@jseldess, it is exposed. The big difference between +1 on the (parts of): we don't need to document all of crdb_internal at this point. I would look toward documenting just the parts that we consider stable. That way, it'll be somewhat more clear to users which parts of the schema are available for programmatic use and which might not be. |
@awoods187, I don't think we'll have the bandwidth to do this for 19.2 unless we de-scope some of the other work happening on the SQL docs team. Are you ok pushing this to later, or is this more urgent than I understand? |
I'm fine with this not making it but I do think we need to do #4978 |
Haven't we build that ability into SQL in 19.2? |
We are building in show statements but those are porcelain and we don't recommend scripting based upon those. For scripting, you'd need to pull a portion of the crdb internal information. |
Some of the work of documenting |
Eventually we'll want a page for But we can probably start with something pretty high-level for
We also reference |
Documenting the
root@localhost:26257/system> select * from crdb_internal.gossip_nodes;
|
When is this scheduled to be addressed? |
@ericharmeling, @awoods187, any insights for @glennfawcett? |
@glennfawcett Thanks for pinging on this. I opened a PR a while back to fill this gap in our docs (#5454), but never got it over the finish line. I'll update that PR within the week and get it back in review. |
In trying to figure out how to read from the
information_schema
table, it was suggested by @benesch that it might be beneficial to teach people how to usecrdb_internal
.Taken from slack:
The text was updated successfully, but these errors were encountered: