Writing Postgres Extensions in C on Windows

Started by İlyas Derseover 6 years ago4 messagesgeneral
Jump to latest
#1İlyas Derse
ilyasderse@gmail.com

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 ?

Thanks ...

#2Thomas Munro
thomas.munro@gmail.com
In reply to: İlyas Derse (#1)
Re: Writing Postgres Extensions in C on Windows

On Wed, Jan 8, 2020 at 4:32 AM İlyas Derse <ilyasderse@gmail.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/

#3İlyas Derse
ilyasderse@gmail.com
In reply to: Thomas Munro (#2)
Re: Writing Postgres Extensions in C on Windows

Thanks, I'll check it out.

Thomas Munro <thomas.munro@gmail.com>, 7 Oca 2020 Sal, 23:56 tarihinde şunu
yazdı:

Show quoted text

On Wed, Jan 8, 2020 at 4:32 AM İlyas Derse <ilyasderse@gmail.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 reply to: Thomas Munro (#2)
SV: Writing Postgres Extensions in C on Windows

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.munro@gmail.com>
Sendt: 7. januar 2020 21:56
Til: İlyas Derse <ilyasderse@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Emne: Re: Writing Postgres Extensions in C on Windows

On Wed, Jan 8, 2020 at 4:32 AM İlyas Derse <ilyasderse@gmail.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/