pgsql: Remove _PG_fini()

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove _PG_fini()
Date: 2024-08-20 22:26:00
Message-ID: E1sgXIe-000fdB-LG@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove _PG_fini()

ab02d702ef08 has removed from the backend the code able to support the
unloading of modules, because this has never worked. This removes the
last references to _PG_fini(), that could be used as a callback for
modules to manipulate the stack when unloading a library.

The test module ldap_password_func had the idea to declare it, doing
nothing. The function declaration in fmgr.h is gone.

It was left around in 2022 to avoid breaking extension code, but at this
stage there are also benefits in letting extension developers know that
keeping the unloading code is pointless and this move leads to less
maintenance.

Reviewed-by: Tom Lane, Heikki Linnakangas
Discussion: https://postgr.es/m/ZsQfi0AUJoMF6NSd@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/15c1abd97710d74672e55d53148a0606baa91d18

Modified Files
--------------
src/include/fmgr.h | 11 +++++------
src/test/modules/ldap_password_func/ldap_password_func.c | 7 -------
2 files changed, 5 insertions(+), 13 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2024-08-20 22:33:16 pgsql: Slightly refactor varstr_sortsupport() to improve readability.
Previous Message Alvaro Herrera 2024-08-20 21:54:20 pgsql: Minor wording change in table "JSON Creation Functions"