Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e19f6bc

Browse files
committed
needs_toast_table() should ignore dropped columns.
1 parent 1239a01 commit e19f6bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/commands/tablecmds.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.130 2004/08/31 15:56:39 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.131 2004/08/31 23:27:05 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -5760,6 +5760,8 @@ needs_toast_table(Relation rel)
57605760

57615761
for (i = 0; i < tupdesc->natts; i++)
57625762
{
5763+
if (att[i]->attisdropped)
5764+
continue;
57635765
data_length = att_align(data_length, att[i]->attalign);
57645766
if (att[i]->attlen > 0)
57655767
{

0 commit comments

Comments
 (0)