mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 00:03:57 -04:00 
			
		
		
		
	needs_toast_table() should ignore dropped columns.
This commit is contained in:
		
							parent
							
								
									1239a01a72
								
							
						
					
					
						commit
						e19f6bcf64
					
				| @ -8,7 +8,7 @@ | |||||||
|  * |  * | ||||||
|  * |  * | ||||||
|  * IDENTIFICATION |  * IDENTIFICATION | ||||||
|  *	  $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.130 2004/08/31 15:56:39 tgl Exp $ |  *	  $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.131 2004/08/31 23:27:05 tgl Exp $ | ||||||
|  * |  * | ||||||
|  *------------------------------------------------------------------------- |  *------------------------------------------------------------------------- | ||||||
|  */ |  */ | ||||||
| @ -5760,6 +5760,8 @@ needs_toast_table(Relation rel) | |||||||
| 
 | 
 | ||||||
| 	for (i = 0; i < tupdesc->natts; i++) | 	for (i = 0; i < tupdesc->natts; i++) | ||||||
| 	{ | 	{ | ||||||
|  | 		if (att[i]->attisdropped) | ||||||
|  | 			continue; | ||||||
| 		data_length = att_align(data_length, att[i]->attalign); | 		data_length = att_align(data_length, att[i]->attalign); | ||||||
| 		if (att[i]->attlen > 0) | 		if (att[i]->attlen > 0) | ||||||
| 		{ | 		{ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user