RE: Extension development

2019-11-13 Thread Yonatan Misgan
nmisga...@gmail.com<mailto:yonathanmisga...@gmail.com> Tel: (+251)-911180185 (mob) From: Ahsan Hadi Sent: Tuesday, November 12, 2019 10:50:23 PM To: Yonatan Misgan Cc: pgsql-hackers@lists.postgresql.org Subject: Re: Extension development Hi Yonatan, Yo

Re: Extension development

2019-11-12 Thread Ahsan Hadi
Hi Yonatan, You can follow this blog for creating your own extension in PostgreSQL.. https://www.highgo.ca/2019/10/01/a-guide-to-create-user-defined-extension-modules-to-postgres/ -- Ahsan On Tue, Nov 12, 2019 at 11:54 AM Yonatan Misgan wrote: > I am developed my own PostgreSQL extension for

Re: Extension development

2019-11-12 Thread Jeevan Ladhe
Hi Yonatan, Here is an attempt to explain the components of the extension: Makefile: Makefile provides a way to compile your C code. Postgres provides an infrastructure called PGXS for building the extensions against installed Postgres server. More of this can be found in official documentation[1

Re: Extension development

2019-08-15 Thread Thomas Munro
On Fri, Aug 16, 2019 at 10:55 AM Chapman Flack wrote: > On 08/15/19 02:58, Yonatan Misgan wrote: > > From this source code how can I get only the year to convert my own > > calendar year. I need this because Ethiopian calendar is totally differ > > from GC in terms of day, month and year. > > I f

Re: Extension development

2019-08-15 Thread Chapman Flack
On 08/15/19 02:58, Yonatan Misgan wrote: > From this source code how can I get only the year to convert my own > calendar year. I need this because Ethiopian calendar is totally differ > from GC in terms of day, month and year. I find myself wondering whether getting only the year is sufficient

Re: Extension development

2019-08-15 Thread Tomas Vondra
On Thu, Aug 15, 2019 at 06:58:07AM +, Yonatan Misgan wrote: Hello, I am trying to develop calendar extension for PostgreSQL but there is a difficulties on how to get day, month and year from PostgreSQL source code because when am read the PostgreSQL source code it uses DateADT as a data type