To ensure consistency of a sharded database, Shardman imposes some restrictions on SQL commands executed.
ALTER TABLE
Limitations
ALTER TABLE
is prohibited for global tables.
ALTER TABLE is prohibited for
partitions of sharded tables.
All forms of ALTER TABLE are prohibited for
sharded tables except these:
ALTER TABLE OWNER is allowed, and it
changes the owner of all partitions of the sharded table.
SET/DROP NOT NULL
is allowed.
ADD COLUMN and DROP COLUMN
are allowed except adding columns of
serial types.
CREATE TABLE
Limitations
All limitations for ALTER TABLE apply.
A temporary table cannot be created as sharded.
DROP TABLE
LimitationsSharded tables and local tables cannot be dropped in the same statement.
Partitions of a sharded table cannot be dropped.
CREATE INDEX CONCURENTLY
is prohibited for sharded tables.