mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 10:30:33 +03:00 
			
		
		
		
	Cleanup covering infrastructure
- Explicitly forbids opclass, collation and indoptions (like DESC/ASC etc) for including columns. Throw an error if user points that. - Truncated storage arrays for such attributes to store only key atrributes, added assertion checks. - Do not check opfamily and collation for including columns in CompareIndexInfo() Discussion: https://www.postgresql.org/message-id/5ee72852-3c4e-ee35-e2ed-c1d053d45c08@sigaev.ru
This commit is contained in:
		| @@ -1588,9 +1588,6 @@ generateClonedIndexStmt(RangeVar *heapRel, Oid heapRelid, Relation source_idx, | ||||
| 		/* Copy the original index column name */ | ||||
| 		iparam->indexcolname = pstrdup(NameStr(attr->attname)); | ||||
|  | ||||
| 		/* Add the collation name, if non-default */ | ||||
| 		iparam->collation = get_collation(indcollation->values[keyno], keycoltype); | ||||
|  | ||||
| 		index->indexIncludingParams = lappend(index->indexIncludingParams, iparam); | ||||
| 	} | ||||
| 	/* Copy reloptions if any */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user