Re: What happens if I create new threads from within a postgresql function?

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Seref Arikan <serefarikan(at)kurumsalteknoloji(dot)com>
Cc: PG-General Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: What happens if I create new threads from within a postgresql function?
Date: 2013-02-19 15:28:03
Message-ID: CAHyXU0xUvTEH1G0cUfHG59HRm2LoyXKaiphidRW0XrCP9tsgNg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Feb 18, 2013 at 1:59 PM, Seref Arikan
<serefarikan(at)kurumsalteknoloji(dot)com> wrote:
> Hi Merlin,
> My plan is exactly what you've suggested, sending bytea to an external
> server. The networking library I'm using uses threads, and this is where I
> am creating threads.

Well, TBH, I find that odd. I know some network libraries use threads
instead of a more asynchronous model. I can't speak to the
particulars because I don't have them, but my gut is the path you're
going on is fraught with danger. ISTM you're better off doing socket
connection through standard socket calls.

merlin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2013-02-19 15:33:14 Re: subselects vs WITH in views
Previous Message Joe Van Dyk 2013-02-19 15:22:48 Re: subselects vs WITH in views