pgsql: Fix possible crash during FATAL exit from reindexing.

2020-04-21 Thread Tom Lane
Fix possible crash during FATAL exit from reindexing. index.c supposed that it could just use a PG_TRY block to clean up the state associated with an active REINDEX operation. However, that code doesn't run if we do a FATAL exit --- for example, due to a SIGTERM shutdown signal --- while the REIN

pgsql: Fix possible crash during FATAL exit from reindexing.

2020-04-21 Thread Tom Lane
Fix possible crash during FATAL exit from reindexing. index.c supposed that it could just use a PG_TRY block to clean up the state associated with an active REINDEX operation. However, that code doesn't run if we do a FATAL exit --- for example, due to a SIGTERM shutdown signal --- while the REIN

pgsql: Fix possible crash during FATAL exit from reindexing.

2020-04-21 Thread Tom Lane
Fix possible crash during FATAL exit from reindexing. index.c supposed that it could just use a PG_TRY block to clean up the state associated with an active REINDEX operation. However, that code doesn't run if we do a FATAL exit --- for example, due to a SIGTERM shutdown signal --- while the REIN

pgsql: Fix possible crash during FATAL exit from reindexing.

2020-04-21 Thread Tom Lane
Fix possible crash during FATAL exit from reindexing. index.c supposed that it could just use a PG_TRY block to clean up the state associated with an active REINDEX operation. However, that code doesn't run if we do a FATAL exit --- for example, due to a SIGTERM shutdown signal --- while the REIN

pgsql: Fix possible crash during FATAL exit from reindexing.

2020-04-21 Thread Tom Lane
Fix possible crash during FATAL exit from reindexing. index.c supposed that it could just use a PG_TRY block to clean up the state associated with an active REINDEX operation. However, that code doesn't run if we do a FATAL exit --- for example, due to a SIGTERM shutdown signal --- while the REIN

pgsql: Fix possible crash during FATAL exit from reindexing.

2020-04-21 Thread Tom Lane
Fix possible crash during FATAL exit from reindexing. index.c supposed that it could just use a PG_TRY block to clean up the state associated with an active REINDEX operation. However, that code doesn't run if we do a FATAL exit --- for example, due to a SIGTERM shutdown signal --- while the REIN