-
Notifications
You must be signed in to change notification settings - Fork 586
Make function helpers temporay in upgrade/downgrade script #18007
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
base: compatible
Are you sure you want to change the base?
Conversation
|
!ci-build-me |
|
!ci-build-me |
dkijania
left a comment
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.
+1 for using pg_temp.. Why we replaced order of dealing with tables? Is it intentional?
|
Yes, I want the order of 2 scripts completely reversed. I guess there's no big point on it. Which way do you think it's more maintainable? |
|
Can you help me understand why we want to reverse it ? |
|
It doesn't have to. I can revert it if you like. The reason I have put it in this shape is because I have the mental model of DB rollbacks. BEGIN;
UPDATE accounts SET balance = balance - 100 WHERE id = 1;
UPDATE accounts SET balance = balance + 100 WHERE id = 2;
ROLLBACK;Something like this. |
|
ok, understand now. Please add changelog as well. Starting from this pr we will be using pg_temp, maybe it is useful information for some archive operators |
|
!ci-build-me |
As title. so we're not polluting pgsql db.