Skip to content
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

Virtual Schema docs #5454

Closed
wants to merge 1 commit into from
Closed

Virtual Schema docs #5454

wants to merge 1 commit into from

Conversation

ericharmeling
Copy link
Contributor

@ericharmeling ericharmeling commented Sep 18, 2019

Fixes #2957.
Fixes #4978.

This PR includes the following changes:

  • Added page on crdb_internal
  • Updated some terminology on information_schema page
  • Added page on virtual schemas

Note that each entry in the table of crdb_internal tables (new in this PR) notes the stability of the table for programmatic purposes. We need a separate doc that details the API stability policy for all interfaces (i.e. explains what "public", "programmable", and "reserved" all mean, so that part of #4326). Then we can start adding notes about stability for each CRDB interface (as is done here).

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 3 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @awoods187, @ericharmeling, and @knz)


v19.2/crdb-internal.md, line 59 at r1 (raw file):

## Tables in `crdb_internal`

`crdb_internal` includes the following tables:

I agree with your top level comment, we can't include this table without making detailed statements:

  • for which tables, the API stability guarantees we provide
  • which columns are considered "useful" and which we'd like users to avoid.

I don't really think we can avoid delaying #4326 any longer. Maybe one thing we could do is split that page up in smaller pages, so that the bits and pieces that are specifically relevant to crdb_internal become available earlier.

Copy link
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @awoods187, @ericharmeling, and @knz)


v19.2/crdb-internal.md, line 59 at r1 (raw file):

Previously, knz (kena) wrote…

I agree with your top level comment, we can't include this table without making detailed statements:

  • for which tables, the API stability guarantees we provide
  • which columns are considered "useful" and which we'd like users to avoid.

I don't really think we can avoid delaying #4326 any longer. Maybe one thing we could do is split that page up in smaller pages, so that the bits and pieces that are specifically relevant to crdb_internal become available earlier.

sorry I mean we can't avoid delaying the other pr longer.

Copy link
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have refactored #4326 as we discussed separately.
Assuming we adopt that change, I recommend to keep the new page crdb-internal.md you are introduced here alongside the general stability guarantees in introspection-interfaces.md, and cross-link the two pages together.

Reviewed 4 of 4 files at r2.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @awoods187 and @ericharmeling)


v19.2/crdb-internal.md, line 12 at r2 (raw file):

The `crdb_internal` views typically represent objects that the current user has privilege to access. To ensure you can view all the objects in a database, access it as the `root` user.
{{site.data.alerts.end}}

I would suggest another callout here that highlights that crdb_internal contains a mix of public and reserved elements, and that some public elements are non-programmable (with all the cross-references to interface-types.html).


v19.2/crdb-internal.md, line 107 at r2 (raw file):

## See also

- [`SHOW`](show-vars.html)

Cross-reference introspection-interfaces.html here.


v19.2/virtual-schemas.md, line 2 at r2 (raw file):

---
title: Virtual Schemas

I am not yet 100% sold on the idea to extract this information in a separate page.

However, if you do, please remove the redundant paragraphs from the SQL name resolution page, and link from there to here.

@ericharmeling ericharmeling changed the title crdb_internal doc Virtual Schema docs (new crdb_internal doc, changes to information_schema doc) Sep 27, 2019
@ericharmeling ericharmeling changed the title Virtual Schema docs (new crdb_internal doc, changes to information_schema doc) Virtual Schema docs Sep 29, 2019
- Updated terminology on information_schema page
- Added virtual schemas page
@ericharmeling
Copy link
Contributor Author

Closing in favor of #8909.

@ericharmeling ericharmeling deleted the crdb_internal branch April 7, 2021 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document how to capture the status of partitioning Document how to use crdb_internal
3 participants