Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Show all

PG_PROC

Updated on 2023-10-23 GMT+08:00

PG_PROC records information about functions or procedures.

Table 1 PG_PROC columns

Name

Type

Description

oid

oid

Row identifier (hidden attribute, which must be specified)

proname

name

Function name

pronamespace

oid

OID of the namespace that contains the function

proowner

oid

Owner of the function

prolang

oid

Implementation language or call interface of the function

procost

real

Estimated execution cost

prorows

real

Estimated number of rows that are influenced

provariadic

oid

Data type of parameter element

protransform

regproc

Simplified call method for the function

proisagg

boolean

Whether the function is an aggregate function

  • t (true): yes
  • f (false): no

proiswindow

boolean

Whether the function is a window function

  • t (true): yes
  • f (false): no

prosecdef

boolean

Whether the function is a security definer (or a "setuid" function)

  • t (true): yes
  • f (false): no

proleakproof

boolean

Whether the function has side effects. If no leakproof treatment is provided for parameters, the function throws errors.

  • t (true): There is no side effect.
  • f (false): There are side effects.

proisstrict

boolean

The function returns null if any call parameter is null. In that case, the function is actually not called at all. Functions that are not "strict" must be prepared to process null inputs.

proretset

boolean

The function returns a set (multiple values of a specified data type).

provolatile

"char"

Whether the function's result depends only on its input parameters, or is affected by outside factors.
  • i: for "immutable" functions, which always deliver the same result for the same inputs.
  • s: for "stable" functions, whose results (for fixed inputs) do not change within a scan.
  • v: for "volatile" functions, whose results may change at any time. Use v also for functions with side-effects, so that the engine cannot get optimized if volatile functions are called.

pronargs

smallint

Number of parameters

pronargdefaults

smallint

Number of parameters that have default values

prorettype

oid

Data type of return values

proargtypes

oidvector

Array that stores the data types of function parameters. This array includes only input parameters (including INOUT parameters), and represents the call signature (interface) of the function.

proallargtypes

oid[]

Array that contains the data types of function parameters. This array includes all parameter types (including OUT and INOUT parameters); however, if all the parameters are IN parameters, this column is null. Note that array subscripting is 1-based, whereas for historical reasons, proargtypes is subscripted from 0.

proargmodes

"char"[]

Array with the modes of the function parameters, encoded as follows:

  • i indicates the IN parameter.
  • o indicates the OUT parameter.
  • b indicates the INOUT parameter.
  • v indicates the VARIADIC parameter.

If all the parameters are IN parameters, this column is null. Note that subscripts correspond to positions of proallargtypes, not proargtypes.

proargnames

text[]

Array that stores the names of the function parameters. Parameters without a name are set to empty strings in the array. If none of the parameters have a name, this column is null. Note that subscripts correspond to positions of proallargtypes, not proargtypes.

proargdefaults

pg_node_tree

Expression tree of the default value. This is the list of pronargdefaults elements.

prosrc

text

A definition that describes a function or stored procedure. In an interpreting language, it is the function source code, a link symbol, a file name, or any body content specified when a function or stored procedure is created, depending on how a language or call is used.

probin

text

Additional information about how to call the function. Again, the interpretation is language-specific.

proconfig

text[]

Function's local settings for run-time configuration variables.

proacl

aclitem[]

Access permission. For details, see GRANT and REVOKE.

prodefaultargpos

int2vector

Position of the input parameter of a function with a default value.

fencedmode

boolean

Execution mode of a function, indicating whether the function is executed in fence or not fence mode. If the execution mode is fence, the function is executed in the fork process that is reworked.

In the C function created by the user, the default value of fencedmode is true, indicating the fence mode. For built-in functions in the system, the fencedmode field is set to false, indicating the not fence mode.

proshippable

boolean

Specifies whether the function can be pushed down to DNs for execution. The default value is false.
  • Functions of the IMMUTABLE type can always be pushed down to DNs.
  • Functions of the STABLE or VOLATILE type can be pushed down to DNs only if their attribute is SHIPPABLE.

propackage

boolean

Whether the function supports overloading. The default value is false.

  • t (true): supported.
  • f (false): not supported.

prokind

"char"

Whether the object is a function or a stored procedure

  • 'f' indicates that the object is a function.
  • 'p' indicates that the object is a stored procedure.

proargsrc

text

Describes the parameter input strings of functions or stored procedures that are compatible with Oracle syntax, including parameter comments. The default value is NULL.

proisprivate

boolean

Whether a function is a private function in the package. The default value is false.

propackageid

oid

OID of the package to which the function belongs. If the function is not in the package, the value is 0.

proargtypesext

oidvector_extend

Data type array used to store function parameters when there are a large number of function parameters. This array includes only input parameters (including INOUT parameters), and represents the call signature (interface) of the function.

prodefaultargposext

int2vector_extend

Position of the input parameter with a default value when the function has a large number of parameters.

allargtypes

oidvector

All stored procedure parameters (including input parameters, output parameters, and INOUT parameters), regardless of the parameter type.

allargtypesext

oidvector_extend

Data type array used to store function parameters when there are a large number of function parameters. All parameters (including input parameters, output parameters, and INOUT parameters) are included.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback