From: | Ilya Anfimov <ilan(at)tzirechnoy(dot)com> |
---|---|
To: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: develop a extension with cpp? |
Date: | 2021-11-02 22:11:34 |
Message-ID: | 20211102221133.GA2571211@azor.tzirechnoy.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, Nov 02, 2021 at 01:31:22AM +0000, huangning290(at)yahoo(dot)com wrote:
> Hi
> if i can develop a extension with cpp language?
> regards!
Generally, like in any other language. Write files, use calls
and APIs available inside Postgres, compile it and install to
postgres directory.
The only one I know of as of now is https://github.com/postgrespro/rusmorph
And it's not an example of a well-documented extension, unfortu-
nately.
Hoewever, it works. It's possible that you can find some more
examples on pgxn.org
Also, probably you would need to compile it with
USE_PGXS=1 make with_llvm=no
While the USE_PGXS=1 is a standard way to compile extension out
of the postgres source tree, the with_llvm=no is a workaround of
some bug in the llvm-7, that doesn't allow JIT compilation of C++
code.
From | Date | Subject | |
---|---|---|---|
Next Message | Dmitry Igrishin | 2021-11-02 22:20:07 | Re: develop a extension with cpp? |
Previous Message | Mladen Gogala | 2021-11-02 02:43:29 | Re: ZFS filesystem - supported ? |