Skip to content

duplicate-body (GN039)#

Automatic fix is not available.

What it does#

Checks functions and procedures that specify both an AS clause and an SQL-standard body.

Why not?#

PostgreSQL rejects declarations with both body forms, regardless of their language or contents.

When should you?#

Never.

Use instead:#

Specify only the intended body, using either an AS clause or an SQL-standard body.