Defining PostgreSQL Procedures

The following properties are applicable to a PostgreSQL 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 New icon in property editors to create a new object to create a new object
    Use Replace Syntax Specifies whether the REPLACE syntax is used  
    Generate Specifies whether a SQL statement for the procedures are 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 which transforms 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

This is optional for SQL conformance, as it applies to all functions, not just external ones.

 

As Stored_Procedure Definition

Specifies a string constant that defines the procedure, the meaning depends on the language. It can be an internal procedure name, the path to an object file, an SQL command, or text in a procedural language.

 

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, that is, the name of the procedure in the C language source code.

 

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 that can be used as a default value if the parameter is not specified. The expression has to be coercible to 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. Also, you can 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 function

 

 

Context

Specifies that the expanded code generation must be performed for the table or view

 

SQL

 

 

Let 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

 

  1. (Optional) Click the Comment tab and enter any comments you want to associate with the object.
  2. (Optional) Click the Where Used tab to view where the object is used within the model.
  3. (Optional) Click the UDP tab to work with user-defined properties for the object.
  4. (Optional) Click the Notes tab to view and edit user notes.
  5. (Optional) Click the Extended Notes tab to view or edit user notes
  6. Click Close.

    The procedure is defined, and the PostgreSQL procedure Editor closes.

For more information, refer to the PostgreSQL documentation.