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 is varchar as can be seen by querying the pg_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

Answer from DotThoughts on Stack Overflow
🌐
AWS
docs.aws.amazon.com › amazon redshift › database developer guide › user-defined functions in amazon redshift
User-defined functions in Amazon Redshift - Amazon Redshift
You can create a custom scalar user-defined function (UDF) using either a SQL SELECT clause or a Python program. The new function is stored in the database and is available for any user with sufficient privileges to run. You run a custom scalar UDF in much the same way as you run existing Amazon ...
🌐
GitHub
github.com › aws-samples › amazon-redshift-udfs
GitHub - aws-samples/amazon-redshift-udfs: A collection of example UDFs for Amazon Redshift. · GitHub
A collection of stored procedures and user-defined functions (UDFs) for Amazon Redshift.
Starred by 244 users
Forked by 73 users
Languages   PLpgSQL 87.6% | Shell 10.9%
People also ask

Does Redshift have functions?
Yes, Amazon Redshift supports user-defined functions (UDFs). These functions can be written in SQL or Python (with the PL/Python extension).
🌐
hevodata.com
hevodata.com › home › learn › data warehousing
Fundamentals of Redshift Functions: Python UDF & SQL UDF with 2 ...
Can I create a function in Redshift?
Yes, you can create functions in Amazon Redshift using SQL or Python. SQL functions can be created with the CREATE FUNCTION statement, and Python functions can be created using the CREATE FUNCTION statement with Python code.
🌐
hevodata.com
hevodata.com › home › learn › data warehousing
Fundamentals of Redshift Functions: Python UDF & SQL UDF with 2 ...
What does AWS Redshift do?
Amazon Redshift is a fully managed, scalable data warehouse service that enables you to run complex queries and perform analytics on large datasets. It uses columnar storage and parallel query execution to efficiently handle large-scale data processing.
🌐
hevodata.com
hevodata.com › home › learn › data warehousing
Fundamentals of Redshift Functions: Python UDF & SQL UDF with 2 ...
🌐
Medium
medium.com › wunderlist-engineering › amazon-redshift-s-udf-b3d4205ae732
Amazon Redshift’s UDF
October 22, 2015 - Amazon Redshift’s UDF As you have probably heard, Amazon released User Defined Functions for Amazon Redshift and now you can write your own stored procedures in Python. I, myself, was looking …
🌐
Hevo
hevodata.com › home › learn › data warehousing
Fundamentals of Redshift Functions: Python UDF & SQL UDF with 2 Examples - Learn | Hevo
January 9, 2026 - When a Scalar Python UDF is called, it contains a Python Programme that executes and returns a single value. The Redshift function used here is CREATE FUNCTION, which creates a new scalar User-Defined Function (UDF).
🌐
AWS
docs.aws.amazon.com › amazon redshift › database developer guide › sql reference › sql commands › create function
CREATE FUNCTION - Amazon Redshift
Creates a new scalar user-defined function (UDF) using either a SQL SELECT clause or a Python program. For more information and examples, see User-defined functions in Amazon Redshift.
🌐
AWS
docs.aws.amazon.com › amazon redshift › database developer guide › user-defined functions in amazon redshift › scalar lambda udfs
Scalar Lambda UDFs - Amazon Redshift
Amazon Redshift can use custom functions defined in AWS Lambda as part of SQL queries. You can write scalar Lambda UDFs in any programming languages supported by Lambda, such as Java, Go, PowerShell, Node.js, C#, Python, and Ruby. Or you can use a custom runtime.
Find elsewhere
🌐
AWS re:Post
repost.aws › articles › ARAG0AgN80SjyvzTH0Ngfjbg › speed-up-redshift-udf-development-and-share-useful-code
Speed up Redshift UDF Development and share useful code | AWS re:Post
January 18, 2023 - There are many options (python, sql, lambda) to create scalar user-defined functions in Amazon Redshift. The AWS documentation details the steps required to create each type, however, the it can be a challenging to get started. The following github repository simplifies the process by providing a framework to creating, testing and managing your functions. The intent of this collection is to provide examples for defining UDFs as well as provide useful functions created by the community which extend Amazon Redshift capabilities and support migrations from legacy DB platforms.
🌐
AWS
docs.aws.amazon.com › amazon redshift › database developer guide › user-defined functions in amazon redshift › scalar sql udfs
Scalar SQL UDFs - Amazon Redshift
A scalar SQL UDF incorporates a SQL SELECT clause that runs when the function is called and returns a single value. The command defines the following parameters:
🌐
Trevor Fox
trevorfox.com › 2020 › 02 › intro-to-sql-udfs-in-redshift
Intro to SQL User-Defined Functions: A Redshift UDF Tutorial • Trevor Fox
March 19, 2023 - Learn how to create, use, and debug Redshift SQL User Defined Functions (UDFs) to add replicability to your SQL data analysis. From Hello World to advanced use!
🌐
BMC Software
bmc.com › blogs › amazon-redshift-udf-python
Creating Redshift User Defined Function (UDF) in Python – BMC Software | Blogs
You can create user defined functions in Amazon Redshift in Python. If you use Amazon Lambda containerless virtual machines, then you can use additional languages. (Using AWS Lambda, you will have some usage costs.
🌐
AWS
docs.aws.amazon.com › amazon redshift › database developer guide › user-defined functions in amazon redshift › scalar python udfs
Scalar Python UDFs - Amazon Redshift
Amazon Redshift will no longer support the creation of new Python UDFs starting Patch 198. Existing Python UDFs will continue to function until June 30, 2026.
🌐
Dwgeek
dwgeek.com › home › redshift user defined functions examples
Redshift User Defined Functions Examples - DWgeek.com
February 22, 2023 - Create a user defined function ... creating user defined functions. You can create custom user-defined functions (UDF) using either SQL SELECT statements or Python program....
🌐
Wagonhq
wagonhq.com › blog › Redshift-UDFs-in-Python
Python UDFs in Amazon Redshift - Wagon
February 1, 2016 - The scalar UDFs that you create will return a single result value for each input value. Once you’ve defined a UDF, you can use it in any SQL statement. One thing to remember is that your UDFs are per-database, meaning that if you have multiple in your Redshift cluster, you’ll need to define your functions in each database.
🌐
GitHub
github.com › PeriscopeData › redshift-udfs
GitHub - PeriscopeData/redshift-udfs: SQL for many helpful Redshift UDFs, and the scripts for generating and testing those UDFs · GitHub
AWS Redshift recently announced support Python-based User Defined Functions. This repository contains SQL for many helpful Redshift UDFs, and the scripts for generating and testing those UDFs.
Starred by 125 users
Forked by 30 users
Languages   Ruby 69.2% | PLpgSQL 30.8%
🌐
GitHub
github.com › aws-samples › aws-redshift-udfs-textanalytics
GitHub - aws-samples/aws-redshift-udfs-textanalytics
This Redshift UDF Lambda provides (i) text translation between languages using Amazon Translate, (ii) text analytics including detection of language, sentiment, entities and PII using Amazon Comprehend, and (iii) redaction of detected entities and PII.
Author   aws-samples
🌐
YouTube
youtube.com › watch
AWS Tutorials - Using Lambda UDF with Amazon Redshift - YouTube
The exercise URL – https://aws-dojo.com/excercises/excercise31Amazon Redshift supports user-defined function (UDF). The function is stored in the database an...
Published   January 8, 2021
🌐
AWS
docs.aws.amazon.com › amazon redshift › database developer guide › user-defined functions in amazon redshift › scalar python udfs › python udf constraints
Python UDF constraints - Amazon Redshift
Amazon Redshift will no longer support the creation of new Python UDFs starting Patch 198. Existing Python UDFs will continue to function until June 30, 2026.
🌐
AWS
docs.aws.amazon.com › amazon redshift › database developer guide › user-defined functions in amazon redshift › scalar python udfs › python udf data types
Python UDF data types - Amazon Redshift
Python UDFs can use any standard Amazon Redshift data type for the input arguments and the function's return value. In addition to the standard data types, UDFs support the data type ANYELEMENT , which Amazon Redshift automatically converts to a standard data type based on the arguments supplied ...