| From: | Merlin Moncure <mmoncure(at)gmail(dot)com> |
|---|---|
| To: | İlyas Derse <ilyasderse(at)gmail(dot)com> |
| Cc: | "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: WaitForMultipleObjects in C Extension |
| Date: | 2020-01-14 14:28:47 |
| Message-ID: | CAHyXU0xvDfXdoz-WWFwjCw+sAOz4+PM3NwyRvQo+h7udrV26oQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Tue, Jan 14, 2020 at 1:39 AM İlyas Derse <ilyasderse(at)gmail(dot)com> wrote:
>
> Hi guys I need your experiences. I made an Extension in C. When I stop the query on PostgreSQL,I want to control my extension's result with use cases in C.So I think , I should use WaitForMultipleObjects. Is there a like a SignalObjectHandle() ? By the way I'm using Windows.
Are you using threading in your extension? This is something to avoid
except in very specific cases, particularly using native calls.
merlin
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Marco Ippolito | 2020-01-14 16:33:21 | Error retrieving PostgreSQL DB information with Coturn |
| Previous Message | Tom Lane | 2020-01-14 13:44:41 | Re: How to log pg_terminate_backend() calls |