- Notifications
You must be signed in to change notification settings - Fork5
Commit87f2ad1
committed
Fix plpgsql to release SPI plans when a function or DO block is freed.
This fixes the gripe I made a few months ago about DO blocks gettingslower with repeated use. At least, it fixes it for the case wherethe DO block isn't aborted by an error. We could try runningplpgsql_free_function_memory() even during error exit, but that seemsa bit scary since it makes a lot of presumptions about the datastructures being in good shape. It's probably reasonable to assumethat repeated failures of DO blocks isn't a performance-critical case.1 parentde592e2 commit87f2ad1
File tree
4 files changed
+411
-5
lines changed- src/pl/plpgsql/src
4 files changed
+411
-5
lines changedLines changed: 2 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2417 | 2417 |
| |
2418 | 2418 |
| |
2419 | 2419 |
| |
2420 |
| - | |
2421 |
| - | |
2422 |
| - | |
2423 |
| - | |
2424 |
| - | |
| 2420 | + | |
| 2421 | + | |
2425 | 2422 |
| |
2426 | 2423 |
| |
2427 | 2424 |
| |
|
0 commit comments
Comments
(0)