Re: Simplify the logic a bit (src/bin/scripts/reindexdb.c) - Mailing list pgsql-hackers

From Ranier Vilela
Subject Re: Simplify the logic a bit (src/bin/scripts/reindexdb.c)
Date
Msg-id CAEudQApLqtdfnSLR6hMgKpva-O+ZuhaYuVf5v9iMxQykda8pOw@mail.gmail.com
Whole thread Raw
In response to Re: Simplify the logic a bit (src/bin/scripts/reindexdb.c)  (Ranier Vilela <ranier.vf@gmail.com>)
Responses Re: Simplify the logic a bit (src/bin/scripts/reindexdb.c)
Re: Simplify the logic a bit (src/bin/scripts/reindexdb.c)
List pgsql-hackers
Em sex., 7 de mar. de 2025 às 16:14, Ranier Vilela <ranier.vf@gmail.com> escreveu:


Em sex., 7 de mar. de 2025 às 16:01, Álvaro Herrera <alvherre@alvh.no-ip.org> escreveu:
On 2025-Mar-07, Álvaro Herrera wrote:

> Anyway, my version of this is attached.  It fixes the problems with your
> patch, but not Orlov's fundamental bug.

And of course I forgot to actually attach the patch.  Good grief.
Test with your v4 patch, on Windows 64 bits.
Rebased against 682c5be

Tests:
reindexdb -U postgres -d postgres -j4 --echo -i foo1 -i foo2 -i bar1 -i bar2 -i baz1 -i baz2 -i baz3 -i baz4 | grep REINDEX
File STDIN:
REINDEX INDEX public.baz4;
REINDEX INDEX public.baz1;
REINDEX INDEX public.baz2;
REINDEX INDEX public.baz3;
REINDEX INDEX public.foo1;
REINDEX INDEX public.foo2;
REINDEX INDEX public.bar1;
REINDEX INDEX public.bar2;

best regards,
Ranier Vilela
Attachment

pgsql-hackers by date:

Previous
From: Álvaro Herrera
Date:
Subject: Re: pg_stat_statements and "IN" conditions
Next
From: Bruce Momjian
Date:
Subject: Re: optimize file transfer in pg_upgrade