You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support variations of ALTER TABLE ALTER COLUMN like:
ALTER TABLE ALTER COLUMN SET/DROP NOT NULL
ALTER TABLE ALTER COLUMN SET/DROP default
ALTER TABLE ALTER COLUMN SET STORAGE (This should simply log a warning that storage params will be ignored, but the statement should succeed).
The text was updated successfully, but these errors were encountered:
An example of why pg_dump needs this is in #1793. When we have a table with a SERIAL key, the correct behavior (in vanilla Postgres, currently being fixed to occur in YugaByte also) is to make a table with an integer key, create a sequence for that key, and use ALTER TABLE ALTER COLUMN to make the default value of the integer key be the nextval() of that sequence.
Summary:
Usage:
ALTER TABLE ... ALTER COLUMN ... SET DEFAULT ...;
ALTER TABLE ... ALTER COLUMN ... DROP DEFAULT;
Test Plan:
./yb_build.sh --java-test org.yb.pgsql.TestPgRegressFeature
Reviewers: neha
Reviewed By: neha
Subscribers: bogdan, yql
Differential Revision: https://phabricator.dev.yugabyte.com/D7073
Summary:
Usage:
ALTER TABLE ... ALTER COLUMN ... SET NOT NULL
ALTER TABLE ... ALTER COLUMN ... DROP NOT NULL
Test Plan:
./yb_build.sh --java-test org.yb.pgsql.TestPgRegressFeature
Reviewers: neha
Reviewed By: neha
Subscribers: yql
Differential Revision: https://phabricator.dev.yugabyte.com/D7080
Support variations of ALTER TABLE ALTER COLUMN like:
ALTER TABLE ALTER COLUMN SET/DROP NOT NULL
ALTER TABLE ALTER COLUMN SET/DROP default
ALTER TABLE ALTER COLUMN SET STORAGE (This should simply log a warning that storage params will be ignored, but the statement should succeed).
The text was updated successfully, but these errors were encountered: