Fix #160, reorder reloading note for functions

This commit is contained in:
steve-chavez
2018-09-20 10:47:52 -05:00
committed by Steve Chávez
parent cf220c5a91
commit 7052446abf
+4 -4
View File
@@ -569,6 +569,10 @@ For instance, assume we have created this function in the database.
SELECT a + b;
$$ LANGUAGE SQL IMMUTABLE STRICT;
.. important::
Whenever you create or change a function you must refresh PostgREST's schema. See the section :ref:`schema_reloading`.
.. note::
Procedures must be declared with named parameters, procedures declared like:
@@ -633,10 +637,6 @@ PostgREST will detect if the function is scalar or table-valued and will shape t
{ "title": "Blade Runner 2049", "rating": 8.1}
]
.. important::
Whenever the function definition changes you must refresh PostgREST's schema for this to work properly. See the section :ref:`schema_reloading`.
A function response can be shaped using the same filters as the ones used for tables and views:
.. code:: http