Re: BUG #18000: Access method used by matview can be dropped leaving broken matview
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Andres Freund <andres@anarazel.de>
Cc: exclusion@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2023-06-27T23:11:51Z
Lists: pgsql-bugs
Attachments
- v2-0001-Fix-dependencies-under-ALTER-TABLE-SET-ACCESS-MET.patch (text/x-diff) patch v2-0001
On Tue, Jun 27, 2023 at 11:23:32AM -0700, Andres Freund wrote: > Should we check changeDependencyFor()'s return value? On a first glance it > looks like it would be an error to return 0 in this case? Agreed. I was wondering if this was worth having in this path (other code paths are rather lax about that), but yes let's do it as there should not be more than one record in pg_depend. -- Michael
Commits
-
Fix pg_depend entry to AMs after ALTER TABLE .. SET ACCESS METHOD
- 93401ec02f40 15.4 landed
- 97d89101045f 16.0 landed