Skip to content

AWS bytes

  • Cheat Sheets
  • Concepts
    • Show All
    • S3 Concepts
  • How-To Guides
    • Show all
    • EC2
    • EBS
    • S3
    • Redshift
    • IAM
    • SQS
    • CloudWatch
    • Billing
  • CLI Guides
  • Contact Us
  • Tutorials
  • Interview Questions
  • Postgresql
How-To Guides / Redshift

How to view table definition in Redshift Database

You can query the PG_TABLE_DEF system catalog view to view the definition of a table in Redshift database. SELECT *

Continue reading
How-To Guides / Redshift

How to list all Stored Procedures in Redshift database

You can query the system catalog view pg_proc_info to list all the stored procedures in a Redshift database. pg_proc_info view

Continue reading
Postgresql

Postgresql – how to declare a variable

Syntax: A variable declaration requires a variable name and a data type. Example: You can optionally specify a default value

Continue reading
Postgresql

PostgreSQL Tutorials

Continue reading
How-To Guides / Redshift

Coalesce function in Redshift database

In Redshift database, COALESCE is the alias for NVL function. Both NVL and COALESCE return the same output. NVL returns

Continue reading
How-To Guides / Redshift

How to concatenate columns in Redshift database

Concatenation of values can be done either by using the concatenation operator || or the CONCAT function. Resulting output is

Continue reading
How-To Guides / Redshift

View and modify current_schema and search_path in Redshift database

Run the below select statement to view the ‘current schema’. ‘Current schema’ is the default schema for database object creation

Continue reading
Postgresql

PostgreSQL – Revoke super user privileges

You can revoke the super user privileges previously granted to a database user by running the below sql command where username is

Continue reading
How-To Guides / Redshift

How to get the list of all User Defined Functions in Redshift database

You can query the pg_proc_info system catalog view to list all the user defined functions in a redshift database. pg_proc_info

Continue reading
How-To Guides / Redshift

How to extract the ddl of a function in Redshift database

You can query the pg_proc system catalog table to view the definition of a user defined function(UDF) in Redshift database

Continue reading

Posts pagination

«Previous Posts 1 … 9 10 11 12 13 … 33 Next Posts»
  • PostgreSQL Tutorials
  • Redshift Tutorials
WordPress Theme: Maxwell by ThemeZee.