How to View Open-Source Licenses in Amazon Redshift

Galaxy Glossary

How can I see the open-source license list in Amazon Redshift?

Lists third-party components and their licenses bundled with your Redshift cluster.

Sign up for the latest in SQL knowledge from the Galaxy Team!
Welcome to the Galaxy, Guardian!
You'll be receiving a confirmation email

Follow us on twitter :)
Oops! Something went wrong while submitting the form.

Description

Table of Contents

What does the Redshift open-source license query do?

It returns every third-party component shipped with the cluster and the associated open-source license text. This helps legal, security, and engineering teams track compliance easily.

When should I run it?

Run after cluster creation, major version upgrades, or when internal policies require an audit of bundled software.

How do I run the query?

Execute SELECT * FROM svv_redshift_licenses; in any SQL tool connected to the cluster. No extra extensions or privileges are needed beyond basic SELECT access.

What columns are returned?

component – library name. license_name – SPDX identifier. license_text – full license body. version – component version.

Can I filter the result?

Yes. Use WHERE to narrow by component or license. Example: WHERE component ILIKE '%postgres%' to find PostgreSQL-related code.

Example: Verify PostgreSQL license

SELECT license_text
FROM svv_redshift_licenses
WHERE component = 'PostgreSQL'
LIMIT 1;

The query returns the permissive PostgreSQL license so your compliance team can archive it.

Best practices

Store query output in S3 for future audits, automate weekly runs with Amazon EventBridge Scheduler, and review after each ALTER SYSTEM or version upgrade.

Common mistakes

Using an unprivileged user

Users without SELECT on the system view get “permission denied.” Fix with GRANT SELECT ON svv_redshift_licenses TO analyst_role;.

Assuming the list is static

Component versions change during maintenance windows. Re-run the query post-upgrade to capture updated licenses.

Related queries

Check node software versions with SELECT version(); and list cluster parameters with SELECT * FROM pg_catalog.pg_settings;.

Why How to View Open-Source Licenses in Amazon Redshift is important

How to View Open-Source Licenses in Amazon Redshift Example Usage


-- List GPL-licensed components in an e-commerce warehouse
SELECT component, version, license_name
FROM   svv_redshift_licenses
WHERE  license_name LIKE '%GPL%'
ORDER  BY component;

How to View Open-Source Licenses in Amazon Redshift Syntax


-- Basic usage
SELECT *
FROM   svv_redshift_licenses;

-- Filter by component name
SELECT component, license_name
FROM   svv_redshift_licenses
WHERE  component ILIKE '%openssl%';

-- Save output to S3 (spectrum external table pattern)
UNLOAD ('SELECT * FROM svv_redshift_licenses')
TO 's3://compliance-bucket/licenses/'
IAM_ROLE 'arn:aws:iam::123456789012:role/RedshiftUnloadRole'
FORMAT AS CSV;

Common Mistakes

Frequently Asked Questions (FAQs)

Does every Redshift version include svv_redshift_licenses?

The view is available in RA3 clusters running Redshift 1.0.40573 or later. Upgrade older clusters to use it.

Is the license text modifiable?

No. The view is read-only and reflects licenses bundled by AWS. You can, however, export the data for record-keeping.

Does the query impact performance?

The view is lightweight and scans a small internal table; it has negligible impact on running workloads.

Want to learn about other SQL terms?

Trusted by top engineers on high-velocity teams
Aryeo Logo
Assort Health
Curri
Rubie Logo
Bauhealth Logo
Truvideo Logo
Welcome to the Galaxy, Guardian!
You'll be receiving a confirmation email

Follow us on twitter :)
Oops! Something went wrong while submitting the form.