Search code examples
sqlssmsinformation-schemaamazon-redshift

Redshift option for Information_Schema


Just moved from SSMS to Redshift (using DBeaver) and am wondering if there's a good option for getting table descriptions. In SQL server you could write a great query against information_schema to pull column names, datatypes, etc. Any similar options in Redshift?


Solution

  • The INFORMATION_SCHEMA tables are available in Redshift.

    It may be that your chosen query tool (DBeaver) is hiding the schema in the GUI. However you should still be able to query them as normal.

    This is certainly the case for me when I'm using Navicat. If you want to see the schema then it is visible when using SQL Workbench or SQuirreL.

    2016-04-04: AWS have created a much simpler view that provides complete CREATE TABLE statements including all the Redshift specific stuff. Get them from here: https://github.com/awslabs/amazon-redshift-utils/tree/master/src/AdminViews