On Monday, October 21, 2024, Кириллов Вячеслав <vkiril...@diasoft.ru> wrote:
> I have a question regarding the behavior of the auto VACUUM in PostgreSQL > in the context of using stored procedures with sub-transactions. > > This is a general usage inquiry not suited to discussion on -hackers. We have a -general mailing list to discuss how to use the product. This list is for discussing patches. > Here is the scenario: we have several stored procedures that modify or > update table data. These procedures use sub-transactions, which are > committed via COMMIT. > > This isn’t how sub-transactions work. They are created mainly by save points and are not independently committed (by the user in SQL). What you are using are full transactions. https://www.postgresql.org/docs/17/plpgsql-transactions.html David J.