pgsql: Doc: update CREATE RULE ref page's hoary discussion of views.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Doc: update CREATE RULE ref page's hoary discussion of views.
Дата
Msg-id E1qywPW-003lIq-IN@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Doc: update CREATE RULE ref page's hoary discussion of views.

This text left one with the impression that an ON SELECT rule could
be attached to a plain table, which has not been true since commit
264c06820 (meaning the text was already misleading when written,
evidently by me in 96bd67f61).  However, it didn't get really bad
until b23cd185f removed the convert-a-table-to-a-view logic, which
had made it possible for scripts that thought they were attaching
ON SELECTs to tables to still work.

Rewrite into a form that makes it clear that an ON SELECT rule
is better regarded as an implementation detail of a view.
Pre-v16, point out that adding ON SELECT to a table actually
converts it to a view.

Per bug #18178 from Joshua Uyehara.  Back-patch to all supported
branches.

Discussion: https://postgr.es/m/18178-05534d7064044d2d@postgresql.org

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/111364ec20e1acc497b6925ab8d09fa753892c0b

Modified Files
--------------
doc/src/sgml/ref/create_rule.sgml | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Doc: update CREATE RULE ref page's hoary discussion of views.
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: pg_upgrade: Add missing newline to message