Re: [Beginner Question]Is there way to test the postgres's kernel function? - Mailing list pgsql-general

From David G. Johnston
Subject Re: [Beginner Question]Is there way to test the postgres's kernel function?
Date
Msg-id CAKFQuwYgNWFacVuq9NV_Hzss9Y=97FRn74AyqqBA1cWdvXRZvA@mail.gmail.com
Whole thread Raw
In response to [Beginner Question]Is there way to test the postgres's kernel function?  ("Wen Yi" <wen-yi@qq.com>)
List pgsql-general
On Mon, Jul 24, 2023 at 2:43 AM Wen Yi <wen-yi@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.


David J.

pgsql-general by date:

Previous
From: Ron
Date:
Subject: Re: Grant all privileges to user on a database
Next
From: "David G. Johnston"
Date:
Subject: Re: Grant all privileges to user on a database