Re: [Beginner Question]Is there way to test the postgres's kernel function?

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: [Beginner Question]Is there way to test the postgres's kernel function?
Дата
Msg-id CAKFQuwYgNWFacVuq9NV_Hzss9Y=97FRn74AyqqBA1cWdvXRZvA@mail.gmail.com
обсуждение исходный текст
Ответ на [Beginner Question]Is there way to test the postgres's kernel function?  ("Wen Yi" <wen-yi@qq.com>)
Список 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 по дате отправления:

Предыдущее
От: Ron
Дата:
Сообщение: Re: Grant all privileges to user on a database
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Grant all privileges to user on a database