Re: [HACKERS] Error running custom plugin: “output plugins have to declare the _PG_output_plugin_init symbol” - Mailing list pgsql-hackers

From Ashutosh Bapat
Subject Re: [HACKERS] Error running custom plugin: “output plugins have to declare the _PG_output_plugin_init symbol”
Date
Msg-id CAFjFpReJUtkEX7r496wm4JvP8iZKxcGNRR+djOZUV8dDwMendw@mail.gmail.com
Whole thread Raw
In response to Re: Error running custom plugin: “output plugins have to declare the _PG_output_plugin_init symbol”  (valeriof <valerio_farruggio@hotmail.com>)
Responses Re: Error running custom plugin: “output plugins have to declare the _PG_output_plugin_init symbol”  (valeriof <valerio_farruggio@hotmail.com>)
List pgsql-hackers
On Tue, Sep 20, 2016 at 4:32 PM, valeriof <valerio_farruggio@hotmail.com> wrote:
> Hi Ashutosh,
> Thank you for your answer. At the end I realized that the PGDLLEXPORT
> keyword was missing from the functions definitions.
>
> As a side question, what are the options to debug the plugin while it's
> being executing? I've seen a debug plugin for Postgres but it seems more for
> SQL functions and stored procedures. Is it possible to attach the process
> from Visual Studio debugger?
>

I have never used Visual Studio, but you might find something useful
at https://wiki.postgresql.org/wiki/Getting_a_stack_trace_of_a_running_PostgreSQL_backend_on_Windows.

--
Best Wishes,
Ashutosh Bapat
EnterpriseDB Corporation
The Postgres Database Company



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Tracking wait event for latches
Next
From: Amit Kapila
Date:
Subject: Re: Write Ahead Logging for Hash Indexes