> On 20 Feb 2024, at 17:13, Ilyasov Ian wrote:
> Sorry for not answering quickly.
There is no need for any apology, there is no obligation to answer within any
specific timeframe.
> I attached a patch to the letter with changes to take into account Daniel
> Gustafsson's comment.
Looks good on
Sorry for not answering quickly.
Thank you for your comments.
I attached a patch to the letter with changes to take into account Daniel
Gustafsson's comment.
Kind regards,
Ian Ilyasov.
Juniour Software Developer at Postgres Professional
Subject: [PATCH] Integer underflow fix in fprintf in dsa
On Tue, Feb 20, 2024 at 5:30 PM Daniel Gustafsson wrote:
> The message "at least 0 contiguous pages free" reads a bit nonsensical though,
> wouldn't it be preferrable to check for i being zero and print a custom
> message
> for that case? Something like the below untested sketch?
>
> +
> On 20 Feb 2024, at 12:28, Ильясов Ян wrote:
> fprintf(stderr,
>"segment bin %zu (at least %d contiguous pages free):\n",
>i, 1 << (i - 1));
>
> In case i equals zero user will get "at least -2147483648 contiguous pages
> free".
That does indeed seem like an over
Hello hackers,
Using Svace* I think I've found a little bug in src/backend/utils/mmgr/dsa.c.
This bug is presented in REL_12_STABLE, REL_13_STABLE, REL_14_STABLE,
REL_15_STABLE, REL_16_STABLE and master. I see that it was introduced together
with dynamic shared memory areas in the commit
13df76a5