Re: ResourceOwner refactoring

Heikki Linnakangas <hlinnaka@iki.fi>

From: Heikki Linnakangas <hlinnaka@iki.fi>
To: "Anton A. Melnikov" <a.melnikov@postgrespro.ru>
Cc: Peter Eisentraut <peter@eisentraut.org>, Aleksander Alekseev <aleksander@timescale.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>, Julien Rouhaud <rjuju123@gmail.com>, Robert Haas <robertmhaas@gmail.com>, Andres Freund <andres@anarazel.de>
Date: 2024-01-16T11:54:53Z
Lists: pgsql-hackers
On 16/01/2024 13:23, Anton A. Melnikov wrote:
> Hello!
> 
> Found possibly missing PGDLLIMPORT in the definition of the
> 
> extern const ResourceOwnerDesc buffer_io_resowner_desc;
> and
> extern const ResourceOwnerDesc buffer_pin_resowner_desc;
> 
> callbacks in the src/include/storage/buf_internals.h
> 
> Please take a look on it.

Fixed, thanks. mark_pgdllimport.pl also highlighted two new variables in 
walsummarizer.h, fixed those too.

-- 
Heikki Linnakangas
Neon (https://neon.tech)




Commits

  1. Make RelationFlushRelation() work without ResourceOwner during abort

  2. Fix bug in bulk extending temp relation after failure

  3. Add missing PGDLLIMPORT markings

  4. Add test_dsa module.

  5. Clear CurrentResourceOwner earlier in CommitTransaction.

  6. Fix dsa.c with different resource owners.

  7. Fix bug in the new ResourceOwner implementation.

  8. Change pgcrypto to use the new ResourceOwner mechanism.

  9. Use a faster hash function in resource owners.

  10. Make ResourceOwners more easily extensible.

  11. Move a few ResourceOwnerEnlarge() calls for safety and clarity.