[PATCH] Honor PG_TEST_NOCLEAN for tempdirs

From: Jacob Champion <jchampion(at)timescale(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: [PATCH] Honor PG_TEST_NOCLEAN for tempdirs
Date: 2023-06-26 23:55:47
Message-ID: CAAWbhmgHtDH1SGZ+Fw05CsXtE0mzTmjbuUxLB9mY9iPKgM6cUw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello,

I was running the test_pg_dump extension suite, and I got annoyed that
I couldn't keep it from deleting its dump artifacts after a successful
run. Here's a patch to make use of PG_TEST_NOCLEAN (which currently
covers the test cluster's base directory) with the Test::Utils
tempdirs too.

(Looks like this idea was also discussed last year [1]; let me know if
I missed any more recent suggestions.)

Thanks,
--Jacob

[1] https://www.postgresql.org/message-id/YyPd9unV14SX2bLF@paquier.xyz

Attachment Content-Type Size
Test-Utils-honor-PG_TEST_NOCLEAN-for-tempdirs.patch text/x-patch 1.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Smith 2023-06-27 01:02:06 Re: [Patch] Use *other* indexes on the subscriber when REPLICA IDENTITY is FULL
Previous Message Vik Fearing 2023-06-26 23:47:44 Re: Fixing tab-complete for dollar-names