Repository navigation
chore: bump xpg - #263
chore: bump xpg#263
Conversation
|
Interestingly it looks like tests are failing now. We bumped postgres minor versions a lot with this. Wondering if this is causing issues here. Threw a breakpoint on and it looks like queries to views no longer trigger the ExecutorStart_hook for whatever reason. Also on the platform it seems like this is basically only used for Postgrest roles. I wonder if this functionality is even needed at this point. @steve-chavez do you have any insight here? |
Right, I think now we need to use the planner hook for the custom errors. But it's confusing to me why this happened on new minor versions, I'd assume this would only happen for pg 19.
Yes, it's needed because of https://github.com/orgs/supabase/discussions/45329. It's still a big breaking change on the supabase platform. I also tried to upstream this feature (ref) piece by piece but left it incomplete due to lack of time. That would certainly be better because overriding errors is quite hackish via extensions today. |
Idk if it's a breaking change if it's already broken lol. Good reason why we should be bumping dependencies regularly. I'm surprised this wasn't caught in the supabase/postgres repo CI. Complicating this is back compatibility. I would not like to have to build/test on every postgres minor version, most postgres extensions only support the latest minor release (afaik). |
😆 Right, but we really need to keep them for guiding the user during this transition of "no privileges by default". TBH since most users are using AI I'm not sure if it's that relevant anymore, so maybe we can drop the feature on a later major release. |
|
(Also open to discussing if these enhanced hints belong in supautils or not, in hindsight it might have been a stretch and should rather live in another extension) |
I feel like there should probably be a discussion about what is supautils and what belongs in it in general. I originally thought that the goal was "provide certain non superusers access to stuff only superusers can do in a safe way". Stuff like this definitely does not belong in that category but im not sure where the boundary is exactly. |
Opened #264 to discuss that. |
|
lldb analysis with breakpoint on function when running when running looking at git blame I think this change happened here postgres/postgres@2242495. It was the result of a CVE which is why this breaking change occurred during a minor release. The commit message states, in part: so it sounds like eventually none of the hint functionality will work. Also it seems like this issue is related to #182 |
7fccb34 to
366f745
Compare
|
The code needed to implement the enhanced hints for views became way too out of scope of this PR. I opened #267 to deal with this. |
366f745 to
4c18cd8
Compare
da23413 to
37aac92
Compare
This PR bumps xpg from 2.5.0 to 2.6.0. Along with this bump comes bumping of every postgres version from the initial release to the most current release. This bumping of the postgres minor versions caused a lot of drift in the required .out.patch files for the core tests.