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

Category: Redshift

How-To Guides / Redshift

How to export data from Redshift database to a csv file

Use the ‘unload‘ command as shown below to extract data from Redshift database to a csv file. unload (‘SELECT *

Continue reading
How-To Guides / Redshift

How to remove not null constraint from a column in Redshift

Once the table in created – Redshift does not support altering column to remove a not-null constraint defined on a

Continue reading
Redshift

[Amazon](500310) Invalid operation: cannot drop table because other objects depend on it

You might encounter the below error while trying to drop a table from Amazon Redshift database. Error : [Amazon](500310) Invalid

Continue reading
Redshift

[Amazon](500310) Invalid operation: Maximum number of stored procedures allowed exceeded

You might encounter the below message while creating a stored procedure in Amazon Redshift database. Error : [Amazon](500310) Invalid operation:

Continue reading
Redshift

[Amazon](500310) Invalid operation: permission denied for relation

You might encounter the below error while accessing a database object in Redshift database. Error : [Amazon](500310) Invalid operation: permission

Continue reading
How-To Guides / Redshift

How to Refresh a Materialized View in Redshift

Manually Refresh: Below is the syntax to manually refresh a materialized view where mv_name is the name of the materialized

Continue reading
How-To Guides / Redshift

How to drop a constraint in Redshift database

Identify the constraint that you would like to drop using below sql and copy the constraint name. select * from

Continue reading
How-To Guides / Redshift

How to resize a column in Redshift database

Use the below command to modify the column width in Redshift. ALTER TABLE table_name ALTER COLUMN column_name TYPE new_data_type; Example,

Continue reading
How-To Guides / Redshift

How to add not null constraint to a column in Redshift

You can define a column to not accept null values and provide a default value for the column while creating

Continue reading
How-To Guides / Redshift

How to change Sort key of a table in Redshift database

To modify the existing sort key of a table: ALTER TABLE tablename ALTER SORTKEY (columnname); or ALTER TABLE tablename ALTER

Continue reading

Posts pagination

«Previous Posts 1 2 3 4 5 … 11 Next Posts»
  • PostgreSQL Tutorials
  • Redshift Tutorials
WordPress Theme: Maxwell by ThemeZee.