Defining PostgreSQL Languages
The following properties are applicable to a PostgreSQL Language object.
Tab |
Section |
Property |
Description |
Additional Information |
---|---|---|---|---|
Name | Specifies the name of the language | |||
Use Replace Syntax | Specifies whether the REPLACE syntax is used | Selecting this option replaces the syntax with the new DDL that is generated during Forward Engineering | ||
Generate | Specifies whether a SQL statement for the table is generated during forward engineering | |||
General | General Options | Is Trusted | Specifies that the language does not grant access to data that the user would not otherwise have | If you omit this keyword, only users with the PostgreSQL superuser privilege can use this language to create new functions. |
Procedural |
Specifies the procedural language |
|||
Call Handler | Specifies a previously registered function that executes procedural language functions. It must be written in a compiled language like C with version 1 call convention and registered with PostgreSQL as a function that takes no arguments and returns the language_handler type. | |||
Inline Handler | Specifies a previously registered function that executes anonymous code blocks (DO commands) in this language. If no inline_handler function is specified, the language does not support anonymous code blocks. | The handler function takes one argument of type internal, representing the DO command’s internal representation, and typically returns void. The return value of the handler is ignored. | ||
Validator |
Specifies the name of previously registered function that validates new functions created in the language. New functions are not checked upon creation if no validator function is specified. |
The validator function takes one argument of type oid, representing the OID of the to-be-created function, and typically returns void. |
- (Optional) Click the Comment tab and enter any comments you want to associate with the object.
- (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 or edit user notes.
- Click Close.
The language is defined, and the PostgreSQL Language Editor closes.
For more information, refer to PostgreSQL documentation.
Copyright © 2024 Quest Software, Inc. |