pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
develop a extension with cpp?
4+ messages / 3 participants
[nested] [flat]

* develop a extension with cpp?
@ 2021-11-02 01:31  huangning290@yahoo.com <huangning290@yahoo.com>
  0 siblings, 2 replies; 4+ messages in thread

From: huangning290@yahoo.com @ 2021-11-02 01:31 UTC (permalink / raw)
  To: pgsql-general

Hi    if i can develop a extension with cpp language?















regards!

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: develop a extension with cpp?
@ 2021-11-02 22:11  Ilya Anfimov <ilan@tzirechnoy.com>
  parent: huangning290@yahoo.com <huangning290@yahoo.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Ilya Anfimov @ 2021-11-02 22:11 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

On Tue, Nov 02, 2021 at 01:31:22AM +0000, huangning290@yahoo.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.






^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: develop a extension with cpp?
@ 2021-11-02 22:20  Dmitry Igrishin <dmitigr@gmail.com>
  parent: huangning290@yahoo.com <huangning290@yahoo.com>
  1 sibling, 1 reply; 4+ messages in thread

From: Dmitry Igrishin @ 2021-11-02 22:20 UTC (permalink / raw)
  To: huangning290@yahoo.com <huangning290@yahoo.com>; +Cc: pgsql-general

вт, 2 нояб. 2021 г. в 20:12, huangning290@yahoo.com <huangning290@yahoo.com>:
>
> Hi
>     if i can develop a extension with cpp language?
Sure, you can. Please, see example -- https://github.com/dmitigr/pgnso





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: develop a extension with cpp?
@ 2021-11-03 01:28  huangning290@yahoo.com <huangning290@yahoo.com>
  parent: Dmitry Igrishin <dmitigr@gmail.com>
  0 siblings, 0 replies; 4+ messages in thread

From: huangning290@yahoo.com @ 2021-11-03 01:28 UTC (permalink / raw)
  To: Dmitry Igrishin <dmitigr@gmail.com>; +Cc: pgsql-general

Thank you.  

    On Wednesday, November 3, 2021, 06:20:18 AM GMT+8, Dmitry Igrishin <dmitigr@gmail.com> wrote:  
 
 вт, 2 нояб. 2021 г. в 20:12, huangning290@yahoo.com <huangning290@yahoo.com>:
>
> Hi
>    if i can develop a extension with cpp language?
Sure, you can. Please, see example -- https://github.com/dmitigr/pgnso
  

^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2021-11-03 01:28 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-11-02 01:31 develop a extension with cpp? huangning290@yahoo.com <huangning290@yahoo.com>
2021-11-02 22:11 ` Ilya Anfimov <ilan@tzirechnoy.com>
2021-11-02 22:20 ` Dmitry Igrishin <dmitigr@gmail.com>
2021-11-03 01:28   ` huangning290@yahoo.com <huangning290@yahoo.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox