From: | Alexandra Wang <alexandra(dot)wang(dot)oss(at)gmail(dot)com> |
---|---|
To: | Michael Paquier <michael(at)paquier(dot)xyz> |
Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net>, Chris Travers <chris(dot)travers(at)stormatics(dot)tech>, Farooq Rashed <farooq(dot)rashed(at)desc(dot)gov(dot)ae>, pgsql-bugs(at)lists(dot)postgresql(dot)org |
Subject: | Re: pg_rewind fails on Windows where tablespaces are used |
Date: | 2024-10-23 16:19:14 |
Message-ID: | CAK98qZ0PLMWRKe=_oHjxwKKDQHZ0wb5ntjiefWpe9V1r8J0b6w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Hi,
I’ve attached fixes in 4 tarballs for branches 12 to 15.
On Wed, Oct 23, 2024 at 9:38 AM Michael Paquier <michael(at)paquier(dot)xyz> wrote:
>
> On Tue, Jul 09, 2024 at 12:01:17PM -0400, Andrew Dunstan wrote:
>
> > The solution I came up with was to backpatch commits c5cb8f3b, 387803d8 and
> > 5fc88c5d53.
>
> The lstat() wrapper for Windows, noted.
In addition to the three commits from Andrew’s solution, I also
backpatched commit f357233c. Without this commit, DROP TABLESPACE for
a non-in-place tablespace would fail with the following error:
drop tablespace regress_tblspacewith;
ERROR: 42501: could not remove symbolic link "pg_tblspc/83531":
Permission denied
LOCATION: destroy_tablespace_directories, tablespace.c:829
I encountered this issue while working on the fix for branch 14 and
running the tablespace regress test. This simple test is not covered
in branch 15’s regress tests, as we started setting
allow_in_place_tablespaces = true since commit d6d317db.
> > The only question in my mind is whether those patches should be
> > backpatched.
> >
> > It's a couple of hundred lines, and I think it's safe, but I'd welcome other
> > opinions. If we are going to backpatch them we should also look at adding to
> > adding tests for use of tablespaces with pg_rewind on the back branches.
> > Ideally we'd get this done in time for the next maintenance release.
>
> Seeing that the commits all go down to v16, meaning that these have
> brewed across 3 minor releases already, I'd like to assume that we
> would have already heard about problems related to them. So that
> seems like a rather safe thing to do at this stage.
I also had to backpatch additional commits for branches 12 to 14, as
follows:
branch 14: e2f0f8ed, af9e6331, and the commits for branch 15
[f357233c, c5cb8f3b, 387803d8, and 5fc88c5d53].
branches 12 & 13: bed90759, 54fb8c7d, de8feb1f, 101c37cd, and the
commits for branch 14.
With these additional commits for branches 12 to 14, I’m not sure if
it’s worth backpatching, or should we backpatch only to branch 15?
I agree with Andrew that if we decide to backpatch these changes, we
should add tests for the pg_rewind issue. Would the pg_rewind TAP
tests be the place for them?
Best,
Alex
Attachment | Content-Type | Size |
---|---|---|
tsfixes15.tgz | application/gzip | 7.6 KB |
tsfixes14.tgz | application/gzip | 14.1 KB |
tsfixes13.tgz | application/gzip | 22.1 KB |
tsfixes12.tgz | application/gzip | 21.1 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2024-10-23 23:03:32 | Re: pg_rewind fails on Windows where tablespaces are used |
Previous Message | PG Bug reporting form | 2024-10-23 15:15:07 | BUG #18669: pg_get_shmem_allocations show wrong memory for 11 structures |