diff options
| author | Peter Eisentraut | 2024-02-20 10:10:59 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2024-02-20 10:10:59 +0000 |
| commit | 74563f6b90216180fc13649725179fc119dddeb5 (patch) | |
| tree | db420dbac5843e3ba963da90447b0b0533515a79 /src/include | |
| parent | d2ca9a50b5b99ef29aa65b68b5e6ddb253fbb04a (diff) | |
Revert "Improve compression and storage support with inheritance"
This reverts commit 0413a556990ba628a3de8a0b58be020fd9a14ed0.
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
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/catalog/pg_type.h | 2 | ||||
| -rw-r--r-- | src/include/nodes/parsenodes.h | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/include/catalog/pg_type.h b/src/include/catalog/pg_type.h index 38ca1174806..e9259697321 100644 --- a/src/include/catalog/pg_type.h +++ b/src/include/catalog/pg_type.h @@ -404,6 +404,4 @@ extern bool moveArrayTypeName(Oid typeOid, const char *typeName, extern char *makeMultirangeTypeName(const char *rangeTypeName, Oid typeNamespace); -extern const char *GetAttributeStorageName(char storage); - #endif /* PG_TYPE_H */ diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index d5b08ded446..476d55dd240 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -712,12 +712,13 @@ typedef struct ColumnDef NodeTag type; char *colname; /* name of column */ TypeName *typeName; /* type of column */ - const char *compression; /* compression method for column */ + char *compression; /* compression method for column */ int inhcount; /* number of times column is inherited */ bool is_local; /* column has local (non-inherited) def'n */ bool is_not_null; /* NOT NULL constraint specified? */ bool is_from_type; /* column definition came from table type */ - const char *storage_name; /* attstorage setting name or NULL for default */ + char storage; /* attstorage setting, or 0 for default */ + char *storage_name; /* attstorage setting name or NULL for default */ Node *raw_default; /* default value (untransformed parse tree) */ Node *cooked_default; /* default value (transformed expr tree) */ char identity; /* attidentity setting */ |
