Add note about embedding of view-chains and the interaction with db-extra-search-path

This commit is contained in:
Wolfgang Walther
2020-11-22 18:10:04 -05:00
committed by Steve Chavez
parent fbef0078d5
commit 9f15044e63
+8 -1
View File
@@ -670,7 +670,7 @@ As an example, let's create a view called ``nominations_view`` based on the *nom
FROM
nominations;
Since it contains ``competition_id`` and ``film_id``and each one has a **foreign key** defined in its source tablewe can embed *competitions* and *films*:
Since it contains ``competition_id`` and ``film_id``and each one has a **foreign key** defined in its source tablewe can embed *competitions* and *films*:
.. code-block:: http
@@ -697,6 +697,13 @@ It's also possible to embed `Materialized Views <https://www.postgresql.org/docs
.. _s_proc_embed:
.. _embedding_view_chains:
Embedding Chains of Views
-------------------------
Views can also depend on other views, which in turn depend on the actual source table. For PostgREST to pick up those chains recursively to any depth, all the views must be in the search path, so either in the exposed schema (:ref:`db-schema`) or in one of the schemas set in :ref:`db-extra-search-path`. This does not apply to the source table, which could be in a private schema as well. See :ref:`schema_isolation` for more details.
Embedding on Stored Procedures
------------------------------