myschema.mytable ...) then the table is created in the specified
schema. Otherwise it is created in the current schema.
The name of the foreign table must be
- distinct from the name of any other foreign table, table, sequence, index,
- view, or materialized view in the same schema.
+ distinct from the name of any other relation (table, sequence, index, view,
+ materialized view, or foreign table) in the same schema.
The name of the index to be created. No schema name can be included
here; the index is always created in the same schema as its parent
- table. If the name is omitted,
PostgreSQL chooses a
+ table. The name of the index must be distinct from the name of any
+ other relation (table, sequence, index, view, materialized view, or
+ foreign table) in that schema.
+ If the name is omitted,
PostgreSQL chooses a
suitable name based on the parent table's name and the indexed column
name(s).
The name (optionally schema-qualified) of the materialized view to be
- created.
+ created. The name must be distinct from the name of any other relation
+ (table, sequence, index, view, materialized view, or foreign table) in
+ the same schema.
specified schema. Otherwise it is created in the current schema.
Temporary sequences exist in a special schema, so a schema name cannot be
given when creating a temporary sequence.
- The sequence name must be distinct from the name of any other sequence,
- table, index, view, or foreign table in the same schema.
+ The sequence name must be distinct from the name of any other relation
+ (table, sequence, index, view, materialized view, or foreign table) in
+ the same schema.
schema. Otherwise it is created in the current schema. Temporary
tables exist in a special schema, so a schema name cannot be given
when creating a temporary table. The name of the table must be
- distinct from the name of any other table, sequence, index, view,
- or foreign table in the same schema.
+ distinct from the name of any other relation (table, sequence, index, view,
+ materialized view, or foreign table) in the same schema.
schema. Otherwise it is created in the current schema. Temporary
views exist in a special schema, so a schema name cannot be given
when creating a temporary view. The name of the view must be
- distinct from the name of any other view, table, sequence, index or foreign table
- in the same schema.
+ distinct from the name of any other relation (table, sequence, index, view,
+ materialized view, or foreign table) in the same schema.