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

sql: add create_regfoo builtins #28155

Merged
merged 1 commit into from
Aug 1, 2018
Merged

Conversation

jordanlewis
Copy link
Member

These builtins permit explicitly creating the various regfoo types
(regtype, regproc, regclass, etc) with both an OID and a name. This is
required to properly disambiguate the formatting of OID types, without
forcing a re-execution of an introspection query to determine the name
or oid of the regfoo type given only the oid or name.

Release note: None

@jordanlewis jordanlewis requested review from knz, RaduBerinde and a team August 1, 2018 17:12
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@jordanlewis jordanlewis requested a review from a team August 1, 2018 17:35
Copy link
Member

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

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

:lgtm:

I don't think these are useful and safe for general use right? We should probably name theminternal_crdb.XXX

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (and 1 stale)

These builtins permit explicitly creating the various regfoo types
(regtype, regproc, regclass, etc) with both an OID and a name. This is
required to properly disambiguate the formatting of OID types, without
forcing a re-execution of an introspection query to determine the name
or oid of the regfoo type given only the oid or name.

Release note: None
@jordanlewis
Copy link
Member Author

Done. TFTRs

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.

:lgtm: good move

Reviewed 7 of 7 files at r1, 4 of 4 files at r2.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (and 2 stale)

@jordanlewis
Copy link
Member Author

TFTRs!

bors r+

craig bot pushed a commit that referenced this pull request Aug 1, 2018
28155: sql: add create_regfoo builtins r=jordanlewis a=jordanlewis

These builtins permit explicitly creating the various regfoo types
(regtype, regproc, regclass, etc) with both an OID and a name. This is
required to properly disambiguate the formatting of OID types, without
forcing a re-execution of an introspection query to determine the name
or oid of the regfoo type given only the oid or name.

Release note: None

28166: sql: remove noPeers peerGroupChecker r=yuzefovich a=yuzefovich

There is actually no such notion as "no peers."
For some reason, I couldn't match behavior of PG
on some logic tests while working on #26666, so I
thought PG had "no peers" in RANGE mode.

I don't know whether I had a bug at some point and
fixed it later or this problem was resolved with
making all tests produce deterministic results
(see #27635).

Release note: None

28172: storageccl: don't skip row after deleted row r=dt a=dt

We don't need to manually advance the iterator before calling `continue`
since the for loop advances it as well, and doing so means the row
_following_ a deleted row is also skipped.

Fixes #28171.

Release note (bug fix): Fix bug that could skip the row following a deleted row during BACKUP.

Co-authored-by: Jordan Lewis <[email protected]>
Co-authored-by: yuzefovich <[email protected]>
Co-authored-by: David Taylor <[email protected]>
@craig
Copy link
Contributor

craig bot commented Aug 1, 2018

Build succeeded

@craig craig bot merged commit 6ca19b8 into cockroachdb:master Aug 1, 2018
@jordanlewis jordanlewis deleted the create-regfoo branch August 2, 2018 13:55
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.

4 participants