mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
Avoid index rebuild for no-rewrite ALTER TABLE .. ALTER TYPE.
Noah Misch. Review and minor cosmetic changes by me.
This commit is contained in:
@@ -649,6 +649,8 @@ UpdateIndexRelation(Oid indexoid,
|
||||
* indexRelationId: normally, pass InvalidOid to let this routine
|
||||
* generate an OID for the index. During bootstrap this may be
|
||||
* nonzero to specify a preselected OID.
|
||||
* relFileNode: normally, pass InvalidOid to get new storage. May be
|
||||
* nonzero to attach an existing valid build.
|
||||
* indexInfo: same info executor uses to insert into the index
|
||||
* indexColNames: column names to use for index (List of char *)
|
||||
* accessMethodObjectId: OID of index AM to use
|
||||
@@ -674,6 +676,7 @@ Oid
|
||||
index_create(Relation heapRelation,
|
||||
const char *indexRelationName,
|
||||
Oid indexRelationId,
|
||||
Oid relFileNode,
|
||||
IndexInfo *indexInfo,
|
||||
List *indexColNames,
|
||||
Oid accessMethodObjectId,
|
||||
@@ -813,6 +816,7 @@ index_create(Relation heapRelation,
|
||||
namespaceId,
|
||||
tableSpaceId,
|
||||
indexRelationId,
|
||||
relFileNode,
|
||||
indexTupDesc,
|
||||
RELKIND_INDEX,
|
||||
relpersistence,
|
||||
|
||||
Reference in New Issue
Block a user