From: | Ranier Vilela <ranier(dot)vf(at)gmail(dot)com> |
---|---|
To: | Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
Cc: | Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Simplify the logic a bit (src/bin/scripts/reindexdb.c) |
Date: | 2025-02-14 12:13:38 |
Message-ID: | CAEudQAoaHU-KxgW+e1Mp0c8=Ya4w3w_JN_oDDeLZDqnuVgRxcQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi Álvaro.
Em qui., 13 de fev. de 2025 às 18:38, Álvaro Herrera <
alvherre(at)alvh(dot)no-ip(dot)org> escreveu:
> On 2025-Feb-13, Ranier Vilela wrote:
>
> > Hi.
> >
> > Coverity complained about possible dereference null pointer
> > in *reindex_one_database* function.
> > That's not really true.
> > But the logic is unnecessarily complicated.
>
> Hmm, this code looks quite suspect, but I wonder if instead of (what
> looks more or less like) a straight revert of cc0e7ebd304a as you
> propose, a better fix wouldn't be to split get_parallel_object_list in
> two: get_parallel_table_list for the DATABASE and SCHEMA cases, and
> get_parallel_tabidx_list (or whatever) for the INDEX case. In the first
> case we just return a list of values, but in the latter case we also
> meddle with the input list which becomes an output list ...
>
Sure, I'll try to do it.
best regards,
Ranier Vilela
From | Date | Subject | |
---|---|---|---|
Next Message | Ranier Vilela | 2025-02-14 12:17:09 | Re: pg17.3 PQescapeIdentifier() ignores len |
Previous Message | Nisha Moond | 2025-02-14 12:00:16 | Re: Introduce XID age and inactive timeout based replication slot invalidation |