mirror of
https://github.com/postgres/postgres.git
synced 2025-10-28 11:55:03 +03:00
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 commit264c06820(meaning the text was already misleading when written, evidently by me in96bd67f61). However, it didn't get really bad untilb23cd185fremoved 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