Defining PostgreSQL Stored Procedures
The following properties are applicable to a PostgreSQL Stored Procedure object.
Tab |
Section |
Property |
Description |
Additional Information |
---|---|---|---|---|
Name | Specifies the name of the stored procedure | |||
Schema | Specifies the schema options for the schema generation | Select the schema from the drop-down list or click ![]() |
||
Use Replace Syntax | Specifies whether the REPLACE syntax is used | |||
Generate | Specifies whether a SQL statement for the procedures is generated during forward engineering | |||
General
|
Procedure Options
|
Language Type | Specifies the language in which the procedure is written |
Internal, c, Sql, User Defined: Specifies procedural languages of procedure |
Transform | Lists that transform a call to the procedure should apply. Transforms convert between SQL types and language-specific data types. | |||
Security_Type |
Specifies the privilege used when calling the procedure |
Definer: Indicates that it must use the privileges of the account that defined the procedure Invoker: Indicates that the privileges of the account that invokes the procedure must be used. |
||
External |
Specifies SQL conformance support for procedures |
|
||
As Stored_Procedure Definition |
Specifies a string constant that defines the procedure |
It can represent an internal procedure name, a path to an object file, an SQL command, or procedural language text. |
||
Object File |
Specifies the name of the file containing the dynamically loadable object for C language procedures |
|
||
Link Symbol |
Specifies the procedure’s link symbol |
Represents the name of the procedure in the C source code. If not specified, it defaults to the name of the SQL procedure being defined. |
||
SQL Body |
Specifies the body of a LANGUAGE SQL procedure |
|
||
Parameters
|
|
Parameters |
Specifies the name of the parameter |
|
|
Physical Data Type |
Specifies the return data type of the parameter |
|
|
|
Mode |
Specifies the type of the parameter |
|
|
|
Default Value |
Specifies an expression for a default value if the parameter is not provided. |
This expression must match the argument type of the parameter. Only input (including IN OUT) parameters can have a default value. |
|
Variables
|
|
Variables |
Specifies the name of the variable |
|
|
Variable Value |
Specifies an expression to use as the variable value |
|
|
Code |
|
|
Specifies the template code of the procedure that can include SQL statements and macros |
Use the toolbar to cut, copy, paste, or edit the text. You can also use the Macro Toolbox to select a macro and double-click it to add the macro to the procedure. |
Expanded
|
|
Expanded Code (Read Only) |
Specifies the expanded code of the function |
|
SQL |
|
|
Lets you preview the SQL code used during Forward Engineering |
Use the toolbar to save, print, find and replace, and cut, copy, or paste text |
Object Creation Order |
|
|
Specifies the order of DDL statement generation for functions |
|
- (Optional) Click the Comment tab and enter any comments you want to associate with the object.
- (Optional) Click the Where Used tab to view where the object is used within the model.
- (Optional) Click the UDP tab to work with user-defined properties for the object.
- (Optional) Click the Notes tab to view and edit user notes.
- (Optional) Click the Extended Notes tab to view and edit user notes.
- Click Close.
The procedure is defined, and the PostgreSQL Stored Procedure Editor closes.
For more information, refer to the PostgreSQL documentation.
Copyright © 2025 Quest Software, Inc. |