Wow, here's a crazy esoteric feature, https://wiki.postgresql.org/wiki/PostgresServerExtensionPoints#Rendezvous_variables Could be the foundation for what those 'postgis-dependent' extensions have been asking for in terms of accessing deserialization functions without having to copy ours into their own library.