PGRST201 on deleted foreign key #37551
Unanswered
rrcabrera9625
asked this question in
Questions
Replies: 2 comments 10 replies
-
I'm running into the exact same issue. I have reloaded the schema, verified the foreign key does not exist via SQL and through Supabase GUI, and it does not exist, yet the error persists. Very frustrating and no idea how to resolve the issue. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Sometime notify to reset the cache will not work. A Postgres (not REST) bug with notify. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a customer table with a foreign key pointing to the employee table. I recently added new fields also referencing employee, and after that, I started getting the following error:
The problem is, I already removed the new field along with its foreign key and constraint. Still, I keep getting the same error.
As you can see, using the query below, it only returns one foreign key between customer and employee:
I also tried running NOTIFY pgrst, 'reload schema'; — but nothing changed, the error persists.
Also tried project restart
Even tried database restore...
Why is this still happening?
Beta Was this translation helpful? Give feedback.
All reactions