On Mon, Jul 24, 2023 at 2:43 AM Wen Yi <wen...@qq.com> wrote: > Hi community, > I am learning the kernel of the postgres, and I want to test the > make_relative_path function to know what it's operational principle.(I can > read it's code, and I want to actually run it) > But I really don't know how to do it, wrtite a extension? > > Can someone give me some advice? > > A formal extension seems like overkill. PostgreSQL provides an ability to write customer user-space functions in C. You ought to be able to leverage that for this specific task.
https://www.postgresql.org/docs/current/xfunc-c.html David J.