Skip to content

sql: implement pg_lsn operations#105326

Merged
craig[bot] merged 2 commits intocockroachdb:masterfrom
otan-cockroach:dec_op
Jun 26, 2023
Merged

sql: implement pg_lsn operations#105326
craig[bot] merged 2 commits intocockroachdb:masterfrom
otan-cockroach:dec_op

Conversation

@otan
Copy link
Copy Markdown
Contributor

@otan otan commented Jun 22, 2023

sql: add pg_lsn +- decimal operations

Release note (sql change): Add the ability to add numeric values to
LSNs, or sub a decimal value from a LSN.

tree: implement lsn - lsn operation

Release note (sql change): Implement the pg_lsn - pg_lsn = decimal
builtin, which subtracts 2 LSNs to return a decimal.


Informs #105130

Release note (sql change): Add the ability to add numeric values to
LSNs, or sub a decimal value from a LSN.
@otan otan requested review from a team and ZhouXing19 June 22, 2023 06:39
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Release note (sql change): Implement the `pg_lsn - pg_lsn = decimal`
builtin, which subtracts 2 LSNs to return a decimal.
Copy link
Copy Markdown
Collaborator

@ZhouXing19 ZhouXing19 left a comment

Choose a reason for hiding this comment

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

Reviewed 7 of 7 files at r1, 8 of 8 files at r2, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @otan)

@otan
Copy link
Copy Markdown
Contributor Author

otan commented Jun 26, 2023

bors r=zhouxing19

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jun 26, 2023

Build succeeded:

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.

3 participants