|
9 | 9 | *
|
10 | 10 | *
|
11 | 11 | * IDENTIFICATION
|
12 |
| - * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.91 2002/05/21 22:05:54 tgl Exp $ |
| 12 | + * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.92 2002/05/25 16:30:59 tgl Exp $ |
13 | 13 | *
|
14 | 14 | *-------------------------------------------------------------------------
|
15 | 15 | */
|
@@ -505,6 +505,20 @@ AlterDatabaseSet(AlterDatabaseSetStmt *stmt)
|
505 | 505 | newtuple=heap_modifytuple(tuple,rel,repl_val,repl_null,repl_repl);
|
506 | 506 | simple_heap_update(rel,&tuple->t_self,newtuple);
|
507 | 507 |
|
| 508 | +/* |
| 509 | + * Update indexes |
| 510 | + */ |
| 511 | +if (RelationGetForm(rel)->relhasindex) |
| 512 | +{ |
| 513 | +Relationidescs[Num_pg_database_indices]; |
| 514 | + |
| 515 | +CatalogOpenIndices(Num_pg_database_indices, |
| 516 | +Name_pg_database_indices,idescs); |
| 517 | +CatalogIndexInsert(idescs,Num_pg_database_indices,rel, |
| 518 | +newtuple); |
| 519 | +CatalogCloseIndices(Num_pg_database_indices,idescs); |
| 520 | +} |
| 521 | + |
508 | 522 | heap_endscan(scan);
|
509 | 523 | heap_close(rel,RowExclusiveLock);
|
510 | 524 | }
|
|