-
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
sql: fix deterministic ID generation #86276
sql: fix deterministic ID generation #86276
Conversation
d15ed6f
to
1f5a7e6
Compare
The numbers go down because there were statements that would fail but would have incremented the ID generator sequence because it was non-transactional. |
The code was fooling itself: we often did not re-initialize the eval context and thus we were using the old non-transactional generator. Release justification: Only affects testing code. Release note: None
1f5a7e6
to
f323841
Compare
@chengxiong-ruan PTAL, I reworked some of the UDF tests to avoid hard-coded IDs as inputs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
LANGUAGE SQL | ||
AS $$ | ||
SELECT oid::INT8 - 100000 | ||
FROM pg_proc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an excellent idea!!!
TFTR! bors r+ |
Build succeeded: |
The code was fooling itself: we often did not re-initialize the eval context
and thus we were using the old non-transactional generator.
Release justification: Only affects testing code.
Release note: None