These are commands that can be used to find the functions that an extension imports, so that we know which ones we need to implement for the extension to load.
On Windows, we make use of dumpbin, which is installed alongside Visual Studio (the full version, not Code). We are generally only interested in the functions under postgres.exe, as the library should load other DLLs as necessary.
dumpbin /imports "C:/Program Files/PostgreSQL/15/lib/LIBRARY_NAME.dll"On Linux, we make use of the built-in nm command. We are interested in the U functions that do not have an @ near the end (as those are usually implemented in external libraries).
nm -D -u /usr/lib/postgresql/15/lib/LIBRARY_NAME.so