0

I am using postgreSQL with pgAdmin 4 and I have created a database function named "fn_test1()". I want to delete this function and before delete this function, I want to create a backup function named "fn_test1_bk()" . Can anyone help me to do this?

1
  • 3
    It is really a shame that people spend all that time writing documentation that no one bothers to read. Alter Function. ALTER FUNCTION name [ ( [ [ argmode ] [ argname ] argtype [, ...] ] ) ] RENAME TO new_name. There is even an example at bottom of page. Kills two birds with one stone. Commented Aug 31, 2022 at 23:43

1 Answer 1

1

If you really want to use PgAdmin for this, you can browse to your function, right click, properties, change the name and save.

enter image description here

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.