-
-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pgx
shouldn't use register_xact_callback
to help track a transact…
…ion's mutability. This can cause problems if for some reason the pgx extension is unloaded from a running postgres backend as Postgres will still have a pointer to the transaction hook function that has now been unloaded. (#1104) Instead, we can use the current `TransactionId` to determine if the transaction has been mutated, which still allows us (more correctly, even), to ensure Spi sets the `read_only` flag appropriately when executing a statement. This also gets rid of a pgx-specific static.
- Loading branch information
1 parent
9f4ee63
commit a9f248a
Showing
1 changed file
with
43 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters