Re: Entities created in one query not available in another in extended protocol

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Shay Rojansky <roji(at)roji(dot)org>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Entities created in one query not available in another in extended protocol
Date: 2015-06-14 15:31:25
Message-ID: 9350.1434295885@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Shay Rojansky <roji(at)roji(dot)org> writes:
> [ rely on non-blocking sockets to avoid deadlock ]

Yeah, that's pretty much the approach libpq has taken: write (or read)
when you can, but press on when you can't.

> The main issue I'm concerned about
> is SSL/TLS, which is a layer on top of the sockets and which might not work
> well with non-blocking sockets...

We have not had word of any such problem with libpq. It's possible that
the intersection of SSL users with non-blocking-mode users is nil, but
I kinda doubt that. You do need to interpret openssl's return codes
correctly ...

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2015-06-14 15:36:44 Re: On columnar storage
Previous Message Tomas Vondra 2015-06-14 15:30:10 Re: On columnar storage