Procedures v1

Description

This page provides information about the procedures in the database.

Note procedures are not parsed for dependencies when they are created (it’s not possible - consider you may be constructing SQL dynamically) and so have no dependency information in the system tables. Redshift/Postgres discovers dependencies at run time; if the procedure tries to access something which does not exist, you get an error.

That’s why there’s no dependencies link.

Columns

Name Type
schema_id int8
schema varchar
procedure_id int8
procedure varchar
arguments_ids varchar
arguments varchar
owner_user_id int4
owner varchar
run as bool
related pages varchar

Column Descriptions

schema_id

The schema ID. This column is emitted in CSV exports only.

schema

The schema name.

procedure_id

The procedure ID. This column is emitted in CSV exports only.

procedure

The procedure name.

arguments_ids

A comma separated string of the data type IDs for the function arguments. This column is emitted in CSV exports only.

arguments

A comma separated string of the base (so not adorned with lengths, precision, scale, etc) data type names for the function arguments.

owner_user_id

The owner user ID. This column is emitted in CSV exports only.

owner

The owner user name.

run as

True if the procedure, when called, runs as if it were called by its owner. False if the procedure, when called, runs as the user who called it.