Thanks to visit codestin.com
Credit goes to www.pgschema.com

Skip to main content
pgschema operates at the schema level. This means it does not support SQL commands that operate the non-schema level objects.

Cluster Level Commands

  • CREATE DATABASE
  • CREATE ROLE
  • CREATE TABLESPACE
  • CREATE USER
Roles stay out of your schema files, but you can still grant to them: plan stubs every role your schema references (GRANT/REVOKE, CREATE POLICY ... TO, ALTER DEFAULT PRIVILEGES FOR ROLE) in its temporary database, provided the role exists on the target database. See Roles.

Database Level Commands

  • CREATE CAST
  • CREATE COLLATION
  • CREATE CONVERSION
  • CREATE EVENT TRIGGER
  • CREATE EXTENSION
  • CREATE FOREIGN DATA WRAPPER
  • CREATE LANGUAGE
  • CREATE OPERATOR
  • CREATE PUBLICATION
  • CREATE SCHEMA
  • CREATE SERVER
  • CREATE SUBSCRIPTION
  • CREATE TEXT SEARCH
  • CREATE USER MAPPING

Schema Level Commands

We plan to support most schema-level commands in the future. Please check other sections for the schema-level database objects that we support right now.

Rename

RENAME is not supported.