Re: Postgrest over foreign data wrapper

2019-02-13 Thread Michael Lewis
Ah. I didn't realize Postgrest was something, rather than just a typo. An fkey to a foreign table is not supported. Related- https://dba.stackexchange.com/questions/138591/foreign-key-references-constraint-on-postgresql-foreign-data-wrapper *Michael Lewis | Software Engineer* *Entrata* *c: **6

Re: Postgrest over foreign data wrapper

2019-02-13 Thread Adrian Klaver
On 2/13/19 1:36 PM, Michael Lewis wrote: You don't need an fkey to write a select statement with a join. I think I must be missing something. Are you wanting it to enforce integrity Me to until I looked at this: http://postgrest.org/en/v5.2/api.html#resource-embedding "PostgREST can also det

Re: Postgrest over foreign data wrapper

2019-02-13 Thread Michael Lewis
You don't need an fkey to write a select statement with a join. I think I must be missing something. Are you wanting it to enforce integrity across the dblink? Or are you adding an fkey with the assumption that you will get an index? *Michael Lewis | Software Engineer* *Entrata* *c: **619.370.8

Re: Postgrest over foreign data wrapper

2019-02-13 Thread Adrian Klaver
On 2/13/19 1:04 PM, adrien ruffie wrote: we have a tricky problem with my colleague. We have to database db1 and db2 linked by a foreign data wrapper connection. 1 table "contractline" in db1 and "contract" in db2. We use postgrest in order to request db2 via CURL. But we

Postgrest over foreign data wrapper

2019-02-13 Thread adrien ruffie
we have a tricky problem with my colleague. We have to database db1 and db2 linked by a foreign data wrapper connection. 1 table "contractline" in db1 and "contract" in db2. We use postgrest in order to request db2 via CURL. But we want to add a link between previous tables. In db2 we have a fore