outgoing TCP from custom background worker?

From: Tobias Oberstein <tobias(dot)oberstein(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: outgoing TCP from custom background worker?
Date: 2013-04-27 13:19:00
Message-ID: 517BD044.30803@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

is it possible to create and process an outgoing TCP connection from
within a custom background worker process?

Something like:

// upon worker startup, enter loop ..
conn = connectTCP("myhost");
while (data = conn.read()) {
parse(data);
// do SQL stuff via SPI and using "data", producing "res"
conn.send(res);
}

Thanks!

Tobias

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2013-04-27 15:20:04 Re: Optimizing bulk update performance
Previous Message Jov 2013-04-27 11:25:29 Re: Basic question on recovery and disk snapshotting