Re: Foreign key joins revisited

From: Corey Huinker <corey(dot)huinker(at)gmail(dot)com>
To: Joel Jacobson <joel(at)compiler(dot)org>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Foreign key joins revisited
Date: 2021-12-27 17:22:52
Message-ID: CADkLM=fROz07vZsKpi=WsU=0_qP2AsV6bMEz9k_9ofz6=-cyyQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
>
> First, there is only one FK in permission pointing to role, and we write a
> query leaving out the key columns.
> Then, another different FK in permission pointing to role is later added,
> and our old query is suddenly in trouble.
>
>
We already have that problem with cases where two tables have a common x
column:

SELECT x FROM a, b

so this would be on-brand for the standards body. And worst case scenario
you're just back to the situation you have now.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2021-12-27 17:31:07 Re: default to to ON_ERROR_STOP=on (Re: psql: exit status with multiple -c and -f)
Previous Message Alvaro Herrera 2021-12-27 17:06:18 Re: Column Filtering in Logical Replication