On Fri, Jan 28, 2022 at 11:03 AM Andres Freund <and...@anarazel.de> wrote: > That means every single psql started by 027_stream_regress.pl's pg_regress > takes 2s. Which of course adds up...
That is very surprising, thanks. Will fix. I've been experimenting with reusing psql sessions and backends for queries in TAP tests, since some Windows animals seem to take a significant fraction of a second *per query* due to forking and startup costs. ~100ms or whatever is nothing compared to that ~2000ms silliness, but it still adds up over thousands of queries. I'll post an experimental patch soon, but this discussion has given me the idea that pg_regress might ideally be able to reuse processes too, at least sometimes...