Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.0(EOL), 10.1(EOL)
-
None
-
10.0.25
Description
Altering column's comment does a full table copy. It should be executed by only changing the frm.
initial issue description follow
This is a new feature request and is similar to this request. http://bugs.mysql.com/bug.php?id=64439
We have multiple mariadb instances managing ~2.5T of our data. We decided to document them using table/column comments. Unfortunately, there isnt an easier way of doing this.
1) Filed a bug regarding altering table comment doing full copy.
MDEV-9103
2) Changing the column comment does the full copy (MDEV-9168)
3) Also, current syntax is error prone since you need to re-declare the data type (MDEV-9878)It would be nice to have the below:
ALTER TABLE 'myTable' ALTER COLUMN `myField` ADD COMMENT 'a comment'Instead of:
ALTER TABLE `myTable` CHANGE `myField` `myField` varchar(20) NOT NULL COMMENT 'my comment'I agree that comments work great, if we have them created while creating the table. But, its almost impossible to update/add them at the later stage for the bigger tables in the production.
Is there a better way of documenting the tables instead of using comments ? Please let me know.
Thanks.
-Bala
Attachments
Issue Links
Activity
Field | Original Value | New Value |
---|---|---|
Issue Type | Task [ 3 ] | Epic [ 5 ] |
Description |
This is a new feature request and is similar to this request. http://bugs.mysql.com/bug.php?id=64439 We have multiple mariadb instances managing ~2.5T of our data. We decided to document them using table/column comments. Unfortunately, there isnt an easier way of doing this. 1) Filed a bug regarding altering table comment doing full copy. https://mariadb.atlassian.net/browse/MDEV-9103 2) Changing the column comment does the full copy. 3) Also, current syntax is error prone since you need to re-declare the data type. It would be nice to have the below: ALTER TABLE 'myTable' ALTER COLUMN `myField` ADD COMMENT 'a comment' Instead of: ALTER TABLE `myTable` CHANGE `myField` `myField` varchar(20) NOT NULL COMMENT 'my comment' I agree that comments work great, if we have them created while creating the table. But, its almost impossible to update/add them at the later stage for the bigger tables in the production. Is there a better way of documenting the tables instead of using comments ? Please let me know. Thanks. -Bala |
This is a new feature request and is similar to this request. http://bugs.mysql.com/bug.php?id=64439
We have multiple mariadb instances managing ~2.5T of our data. We decided to document them using table/column comments. Unfortunately, there isnt an easier way of doing this. 1) Filed a bug regarding altering table comment doing full copy. 2) Changing the column comment does the full copy. 3) Also, current syntax is error prone since you need to re-declare the data type. It would be nice to have the below: ALTER TABLE 'myTable' ALTER COLUMN `myField` ADD COMMENT 'a comment' Instead of: ALTER TABLE `myTable` CHANGE `myField` `myField` varchar(20) NOT NULL COMMENT 'my comment' I agree that comments work great, if we have them created while creating the table. But, its almost impossible to update/add them at the later stage for the bigger tables in the production. Is there a better way of documenting the tables instead of using comments ? Please let me know. Thanks. -Bala |
Issue Type | Epic [ 5 ] | Task [ 3 ] |
Priority | Minor [ 4 ] | Major [ 3 ] |
Issue Type | Task [ 3 ] | Bug [ 1 ] |
Affects Version/s | 10.0 [ 16000 ] | |
Affects Version/s | 10.1 [ 16100 ] |
Fix Version/s | 10.0 [ 16000 ] | |
Fix Version/s | 10.1 [ 16100 ] |
Description |
This is a new feature request and is similar to this request. http://bugs.mysql.com/bug.php?id=64439
We have multiple mariadb instances managing ~2.5T of our data. We decided to document them using table/column comments. Unfortunately, there isnt an easier way of doing this. 1) Filed a bug regarding altering table comment doing full copy. 2) Changing the column comment does the full copy. 3) Also, current syntax is error prone since you need to re-declare the data type. It would be nice to have the below: ALTER TABLE 'myTable' ALTER COLUMN `myField` ADD COMMENT 'a comment' Instead of: ALTER TABLE `myTable` CHANGE `myField` `myField` varchar(20) NOT NULL COMMENT 'my comment' I agree that comments work great, if we have them created while creating the table. But, its almost impossible to update/add them at the later stage for the bigger tables in the production. Is there a better way of documenting the tables instead of using comments ? Please let me know. Thanks. -Bala |
Altering column's comment does a full table copy. It should be executed by only changing the frm.
*initial issue description follow* {quote}This is a new feature request and is similar to this request. http://bugs.mysql.com/bug.php?id=64439 We have multiple mariadb instances managing ~2.5T of our data. We decided to document them using table/column comments. Unfortunately, there isnt an easier way of doing this. 1) Filed a bug regarding altering table comment doing full copy. 2) Changing the column comment does the full copy. 3) Also, current syntax is error prone since you need to re-declare the data type. It would be nice to have the below: ALTER TABLE 'myTable' ALTER COLUMN `myField` ADD COMMENT 'a comment' Instead of: ALTER TABLE `myTable` CHANGE `myField` `myField` varchar(20) NOT NULL COMMENT 'my comment' I agree that comments work great, if we have them created while creating the table. But, its almost impossible to update/add them at the later stage for the bigger tables in the production. Is there a better way of documenting the tables instead of using comments ? Please let me know. Thanks. -Bala{quote} |
Description |
Altering column's comment does a full table copy. It should be executed by only changing the frm.
*initial issue description follow* {quote}This is a new feature request and is similar to this request. http://bugs.mysql.com/bug.php?id=64439 We have multiple mariadb instances managing ~2.5T of our data. We decided to document them using table/column comments. Unfortunately, there isnt an easier way of doing this. 1) Filed a bug regarding altering table comment doing full copy. 2) Changing the column comment does the full copy. 3) Also, current syntax is error prone since you need to re-declare the data type. It would be nice to have the below: ALTER TABLE 'myTable' ALTER COLUMN `myField` ADD COMMENT 'a comment' Instead of: ALTER TABLE `myTable` CHANGE `myField` `myField` varchar(20) NOT NULL COMMENT 'my comment' I agree that comments work great, if we have them created while creating the table. But, its almost impossible to update/add them at the later stage for the bigger tables in the production. Is there a better way of documenting the tables instead of using comments ? Please let me know. Thanks. -Bala{quote} |
Altering column's comment does a full table copy. It should be executed by only changing the frm.
*initial issue description follow* {quote}This is a new feature request and is similar to this request. http://bugs.mysql.com/bug.php?id=64439 We have multiple mariadb instances managing ~2.5T of our data. We decided to document them using table/column comments. Unfortunately, there isnt an easier way of doing this. 1) Filed a bug regarding altering table comment doing full copy. 2) Changing the column comment does the full copy ( 3) Also, current syntax is error prone since you need to re-declare the data type (MDEV-9878) It would be nice to have the below: ALTER TABLE 'myTable' ALTER COLUMN `myField` ADD COMMENT 'a comment' Instead of: ALTER TABLE `myTable` CHANGE `myField` `myField` varchar(20) NOT NULL COMMENT 'my comment' I agree that comments work great, if we have them created while creating the table. But, its almost impossible to update/add them at the later stage for the bigger tables in the production. Is there a better way of documenting the tables instead of using comments ? Please let me know. Thanks. -Bala{quote} |
Summary | Easy/faster way to update column comments. | altering a column comment does a full copy |
Assignee | Sergei Golubchik [ serg ] |
Sprint | 10.0.25 [ 50 ] |
Rank | Ranked lower |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Stalled [ 10000 ] |
Labels | need_feedback |
Fix Version/s | 10.0.25 [ 21701 ] | |
Fix Version/s | 10.1.14 [ 21804 ] | |
Fix Version/s | 10.0 [ 16000 ] | |
Fix Version/s | 10.1 [ 16100 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Labels | need_feedback |
Workflow | MariaDB v3 [ 72702 ] | MariaDB v4 [ 149853 ] |
Seems to be working: