mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Support writing "CREATE/ALTER TABLE ... SET STORAGE DEFAULT".
We already allow explicitly writing DEFAULT for SET COMPRESSION, so it seems a bit inflexible and non-orthogonal to not have it for STORAGE. Aleksander Alekseev Discussion: https://postgr.es/m/CAJ7c6TMX9ui+6y3TQFaXJYVpZyBukvqhQbVDJ8OUokeLRhtnpA@mail.gmail.com
This commit is contained in:
@ -19311,6 +19311,8 @@ GetAttributeStorage(Oid atttypid, const char *storagemode)
|
||||
cstorage = TYPSTORAGE_EXTENDED;
|
||||
else if (pg_strcasecmp(storagemode, "main") == 0)
|
||||
cstorage = TYPSTORAGE_MAIN;
|
||||
else if (pg_strcasecmp(storagemode, "default") == 0)
|
||||
cstorage = get_typstorage(atttypid);
|
||||
else
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
|
Reference in New Issue
Block a user