-
-
Notifications
You must be signed in to change notification settings - Fork 303
Adding a flag that forces CREATE OR REPLACE FUNCTION statements
#584
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
Adding a flag that forces CREATE OR REPLACE FUNCTION statements
#584
Conversation
instead of plain `CREATE FUNCTION` statements pgx now produces by default. The new default is potentially less destructive to pre-existing objects and more secure. Unfortunately, it complicates upgrade path when using versioned shared objects.
dd96870 to
40bbfe8
Compare
eeeebbbbrrrr
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.
LGTM. Much appreciated
Thank you! Could you approve the workflow to run? |
Done. |
|
A CLI flag that alters this behavior is a uniform hammer and does not account for other use cases which may want a composition of the two. ( Though this might still be what is desired if all you want is a hammer for now. ) |
|
I have opened #683 which serves as an alternative solution to this problem. |
|
Closing in favor of #683 |
|
I don't want to create more work for you, truly! We just are inevitably going to get "so, how about something that lets me have one function CREATEd and one function REPLACEd?" and then we'll have wanted #683 all along. |
No worries! As I’ve said — we’ll be fine 😅 I completely agree that #683 is more flexible and covers more use cases. |
Adding a flag that forces
CREATE OR REPLACE FUNCTIONstatements instead of plainCREATE FUNCTIONstatements pgx now produces by default.The new default (#554) is potentially less destructive to pre-existing objects and more secure. Unfortunately, it complicates the upgrade path when using versioned shared objects.