-
Notifications
You must be signed in to change notification settings - Fork 265
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
CREATE OR REPLACE FUNCTION
#1146
Conversation
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.
What will be the bahavior of CREATE OR REPLACE FUNCTION ... IF NOT EXISTS ...
?
It seems like Postgres (https://www.postgresql.org/docs/current/sql-createfunction.html) only allows CREATE OR REPLACE
but not IF NOT EXISTS
for FUNCTION
.
Yes, Postgres only supports ‘OR REPLACE’. I think it does not hurt support both, so did not remove the ‘IF NOT EXISTS’ support. When both are specified, an error message is raised. |
CREATE OR REPALCE FUNCTION
Close #1131