This page in other versions: 9.1 / 9.2 / 9.3 / 9.4 / current (9.5)  |  Development versions: devel / 9.6  |  Unsupported versions: 7.4 / 8.0 / 8.1 / 8.2 / 8.3 / 8.4 / 9.0

ALTER FUNCTION

Name

ALTER FUNCTION -- change the definition of a function

Synopsis

ALTER FUNCTION name ( [ type [, ...] ] ) RENAME TO newname

Description

ALTER FUNCTION changes the definition of a function. The only functionality is to rename the function.

Parameters

name

The name (optionally schema-qualified) of an existing function.

type

The data type of an argument of the function.

newname

The new name of the function.

Examples

To rename the function sqrt for type integer to square_root:

ALTER FUNCTION sqrt(integer) RENAME TO square_root;

Compatibility

There is an ALTER FUNCTION statement in the SQL standard, but it does not provide the option to rename the function.

Submit correction

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.

Privacy Policy | About PostgreSQL
Copyright © 1996-2016 The PostgreSQL Global Development Group