Is there an easy way to get the list of all UDFs that are available in Redshift? Moreover, I would like to find UDFs with parameter types and search for UDFs by name.
标签:
amazon-redshift
相关问题
- How to generate 12 digit unique number in redshift
- How to handle quoted values in AWS Redshift unload
- psycopg2.ProgrammingError: syntax error at or near
- how can aws glue job upload several tables in reds
- when unloading a table from amazon redshift to s3,
相关文章
- in redshift postgresql can I skip columns with the
- Redshift table update with join
- How to get a list of UDFs in Redshift?
- Sql Alchemy cannot run inside a transaction block
- Alternatives for Athena to query the data on S3
- Copy a datetime with the format rfc822 into redshi
- How should records be formatted for AWS Kinesis Fi
- Return elements of Redshift JSON array on separate
You can query the
pg_proc
table to get all the UDFs available.Filter by name
You can filter by name using the
proname
column:SELECT * FROM pg_proc WHERE proname ILIKE '%<name_here>%';
Filter by parameter type
You can filter by parameter types using the
proargtypes
column:SELECT * FROM pg_proc WHERE proargtypes = 1043;
Here,
1043
isvarchar
as can be seen by querying thepg_type
table:SELECT * FROM pg_type WHERE typname ILIKE '%char%';
Filter by parameter name
You can also filter by parameter name using the
proargnames
column:SELECT * FROM pg_proc WHERE proargnames = ARRAY['foo'];
References:
http://docs.aws.amazon.com/redshift/latest/dg/c_join_PG.html
http://www.postgresql.org/docs/8.0/static/catalog-pg-proc.html