Re: [v15 beta] pg_upgrade failed if earlier executed with -c switch
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: Daniel Gustafsson <daniel@yesql.se>, Tom Lane <tgl@sss.pgh.pa.us>, tushar <tushar.ahuja@enterprisedb.com>, pgsql-hackers@postgresql.org, Andrew Dunstan <andrew@dunslane.net>
Date: 2022-06-05T00:24:25Z
Lists: pgsql-hackers
On Sat, Jun 04, 2022 at 09:13:46AM -0500, Justin Pryzby wrote: > Maybe that's easy enough to fix just be rearranging verify_directories() or > make_outputdirs(). For the case, I mentioned, yes. > But actually it seems annoying to have to remove the failed outputdir. > It's true that those logs *can* be useful to fix whatever underlying problem, > but I'm afraid the *requirement* to remove the failed outputdir is a nuisance, > even outside of check mode. Well, another error that could happen in the early code paths is EACCES on a custom socket directory specified, and we'd still face the same problem on a follow-up restart. Using a sub-directory structure as Daniel and Tom mention would address all that (if ignoring EEXIST for the BASE_OUTPUTDIR), removing any existing content from the base path when not using --retain. This comes with the disadvantage of bloating the disk on repeated errors, but this last bit would not really be a huge problem, I guess, as it could be more useful to keep the error information around. -- Michael
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Restructure pg_upgrade output directories for better idempotence
- 4fff78f00910 15.0 landed