mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Revert "Improve compression and storage support with inheritance"
This reverts commit 0413a55699
.
pg_dump cannot currently dump all the structures that are allowed by
this patch. This needs more work in pg_dump and more test coverage.
Discussion: https://www.postgresql.org/message-id/flat/24656cec-d6ef-4d15-8b5b-e8dfc9c833a7@eisentraut.org
This commit is contained in:
@ -1134,14 +1134,15 @@ transformTableLikeClause(CreateStmtContext *cxt, TableLikeClause *table_like_cla
|
||||
|
||||
/* Likewise, copy storage if requested */
|
||||
if (table_like_clause->options & CREATE_TABLE_LIKE_STORAGE)
|
||||
def->storage_name = GetAttributeStorageName(attribute->attstorage);
|
||||
def->storage = attribute->attstorage;
|
||||
else
|
||||
def->storage_name = NULL;
|
||||
def->storage = 0;
|
||||
|
||||
/* Likewise, copy compression if requested */
|
||||
if ((table_like_clause->options & CREATE_TABLE_LIKE_COMPRESSION) != 0
|
||||
&& CompressionMethodIsValid(attribute->attcompression))
|
||||
def->compression = GetCompressionMethodName(attribute->attcompression);
|
||||
def->compression =
|
||||
pstrdup(GetCompressionMethodName(attribute->attcompression));
|
||||
else
|
||||
def->compression = NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user