SV: Writing Postgres Extensions in C on Windows

From: Niels Jespersen <NJN(at)dst(dot)dk>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, İlyas Derse <ilyasderse(at)gmail(dot)com>
Cc: pgsql-generallists(dot)postgresql(dot)org <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: SV: Writing Postgres Extensions in C on Windows
Date: 2020-01-08 09:17:33
Message-ID: 3967181ED595B445B1E39718204FD4BD0122BFBA09@SRVEXC5.dst.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Nothing special with the code for the extension itself. Same as other platforms. Building is another matter.

I have written about compiling pgaudit on Windows on recent Postgres releases here. This could perhaps supplement the below blog.

https://github.com/njesp/build_pgaudit_on_windows

Regards Niels

-----Oprindelig meddelelse-----
Fra: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Sendt: 7. januar 2020 21:56
Til: İlyas Derse <ilyasderse(at)gmail(dot)com>
Cc: pgsql-generallists.postgresql.org <pgsql-general(at)lists(dot)postgresql(dot)org>
Emne: Re: Writing Postgres Extensions in C on Windows

On Wed, Jan 8, 2020 at 4:32 AM İlyas Derse <ilyasderse(at)gmail(dot)com> wrote:
> I want to register C code to PostgreSql on Windows. So I think, I have to make a extension for PostgreSql. But I did not find to written extension on windows. Do you have an idea ?

I don't do Windows myself but this blog from Craig Ringer looks like a good starting point:

https://www.2ndquadrant.com/en/blog/compiling-postgresql-extensions-visual-studio-windows/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Laurenz Albe 2020-01-08 09:53:50 Re: How to shorten a chain of logically replicated servers
Previous Message İlyas Derse 2020-01-08 07:23:36 Re: Writing Postgres Extensions in C on Windows