Skip to content

dolthub/pg_extension

Repository files navigation

Finding Extension Function Imports

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.

Windows

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"

Linux

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

About

This is to support extensions in DoltgreSQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published