26 November 2020

This form moves the table into another schema. Associated indexes, constraints, and sequences owned by table columns are moved as well.

Source code viewer
  1. -- Keep in mind triggers and views.
  2. ALTER TABLE from_schema.table SET SCHEMA to_schema;
Programming Language: PostgreSQL