Re: Exposing guc_malloc/strdup/realloc for plugins? - Mailing list pgsql-hackers

From Euler Taveira
Subject Re: Exposing guc_malloc/strdup/realloc for plugins?
Date
Msg-id CAHE3wgi9a7QGPiEwB1f8XEXHw+f=OOQPOsvMXyGEges7=z3OMw@mail.gmail.com
Whole thread Raw
In response to Exposing guc_malloc/strdup/realloc for plugins?  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
2018-05-08 3:46 GMT-03:00 Michael Paquier <michael@paquier.xyz>:
> While hacking on an extension, I have finished by doing things similar
> to guc_malloc & friends for the allocation of a GUC parameter for malloc
> portability.  While that's not really a big deal to copy/paste this
> code, I am wondering if it would make sense to expose them for extension
> developers.  Please see the attached for the simple idea.
>
Although I didn't need similar code on some extensions, code reuse is
always a good goal.


-- 
   Euler Taveira                                   Timbira -
http://www.timbira.com.br/
   PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento


pgsql-hackers by date:

Previous
From: Teodor Sigaev
Date:
Subject: Re: Cast jsonb to numeric, int, float, bool
Next
From: Andrew Dunstan
Date:
Subject: Re: perlcritic and perltidy