Skip to content

Cannot select field from inherited table #3307

Answered by wolfgangwalther
jaulz asked this question in Q&A
Discussion options

You must be logged in to vote

This is a PostgreSQL thing. When you INHERIT a table, the FKs are not inherited at the same time - thus we can't detect any relationships.

You'll need to add the same FK in the entities and natural_persons tables as well - not only for PostgREST, but also for your data validation.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by wolfgangwalther
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3306 on March 05, 2024 21:16.