Added non-atomic SPI connection#1876
Added non-atomic SPI connection#1876YohDeadfall wants to merge 1 commit intopgcentralfoundation:developfrom
Conversation
|
What's the use case for non-atomic SPI? |
|
It's used primarily if not only by language handlers which take that information from the current call. The problem I see is that the native API allows opting-in into non-atomic connections using |
Non-atomic SPI can be quite useful for stored procedures and background workers By the way, I'm curious why pgrx doesn't offer more native support for stored procedures |
It's purely contributor based now, no company owns it or sponsors it. |
Here's my take on making non-atomic SPI connections, but it lacks tests as I don't understand how to properly make them without dealing with portals directly. If I'm not wrong there were tests using a client to issue requests to the server with the required extensions, so it should be like that then.