pgsql: Fix SPI's handling of errors during transaction commit.

2022-06-22 Thread Tom Lane
Fix SPI's handling of errors during transaction commit. SPI_commit previously left it up to the caller to recover from any error occurring during commit. Since that's complicated and requires use of low-level xact.c facilities, it's not too surprising that no caller got it right. Let's move the

pgsql: Fix SPI's handling of errors during transaction commit.

2022-06-22 Thread Tom Lane
Fix SPI's handling of errors during transaction commit. SPI_commit previously left it up to the caller to recover from any error occurring during commit. Since that's complicated and requires use of low-level xact.c facilities, it's not too surprising that no caller got it right. Let's move the

pgsql: Fix SPI's handling of errors during transaction commit.

2022-06-22 Thread Tom Lane
Fix SPI's handling of errors during transaction commit. SPI_commit previously left it up to the caller to recover from any error occurring during commit. Since that's complicated and requires use of low-level xact.c facilities, it's not too surprising that no caller got it right. Let's move the

pgsql: Fix SPI's handling of errors during transaction commit.

2022-06-22 Thread Tom Lane
Fix SPI's handling of errors during transaction commit. SPI_commit previously left it up to the caller to recover from any error occurring during commit. Since that's complicated and requires use of low-level xact.c facilities, it's not too surprising that no caller got it right. Let's move the

pgsql: Fix SPI's handling of errors during transaction commit.

2022-02-28 Thread Tom Lane
Fix SPI's handling of errors during transaction commit. SPI_commit previously left it up to the caller to recover from any error occurring during commit. Since that's complicated and requires use of low-level xact.c facilities, it's not too surprising that no caller got it right. Let's move the