Re: [HACKERS] Rust bindings to pgtypes lib - Mailing list pgsql-hackers

From Andres Freund
Subject Re: [HACKERS] Rust bindings to pgtypes lib
Date
Msg-id 20170706182933.oupg4rf42bgu5csn@alap3.anarazel.de
Whole thread Raw
In response to Re: [HACKERS] Rust bindings to pgtypes lib  (Michael Meskes <meskes@postgresql.org>)
Responses Re: [HACKERS] Rust bindings to pgtypes lib
Re: [HACKERS] Rust bindings to pgtypes lib
List pgsql-hackers
Hi,

On 2017-07-06 20:26:29 +0200, Michael Meskes wrote:
> > But is this possible, or feasible? I see that the makefile refers to 
> 
> Possible yes, but in general I'm not a big fan of duplicating code. I
> spend too much time to keep those copies in sync.

Indeed. I'm quite strongly against exposing / using pgtypeslib in more
places. If anything it should be phased out. Because that code is
definitely not always kept up2date, and it's a lot of work to do so.  If
anything the code should be rewritten to *not* require so much
duplication, then we could talk.


> > How much of the source tree would I have to carve out?
> > Or from another perspective; how do other language (if any) solve this?
> 
> I'm not aware of any other language binding for pgtypeslib.

Some people use http://libpqtypes.esilo.com/

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Michael Meskes
Date:
Subject: Re: [HACKERS] Rust bindings to pgtypes lib
Next
From: Alvaro Herrera
Date:
Subject: Re: [HACKERS] [COMMITTERS] pgsql: pg_test_timing: Add NLS