On Thu, Aug 27, 2020 at 3:30 PM Daniel Jakots <[email protected]> wrote:
>
> Hi,
>
> I'm chasing a weird behavior with postgresql. Sometimes (it's very
> infrequent) a sql request fails with "could not send data to client:
> Permission denied". I reported the problem on pgsql-general@ [0] and if
> I understood correctly, this happens when pgsql uses send(2) and gets
> EACCES.
>
> According to send(2) this happens when "The connection was blocked by
> pf(4)". I have a cron that modifies a table with
> `pfctl -t TABLE_NAME -Tr -f TABLE_FILE_PATH`
>
> The file is large so it's not exactly immediate. Could pf temporarily
> block new connections while it loads the file? Or am I looking at the
> wrong thing?
>
>
> [0]: https://www.postgresql.org/message-id/20200827111031.5ee46257%40anegada
>
>
> Cheers,
> Daniel
>

pflog0 will tell you what is block if you log it, and can tell you if it is

-- 
--
---------------------------------------------------------------------------------------------------------------------
Knowing is not enough; we must apply. Willing is not enough; we must do

Reply via email to