pgsql: Prevent parser from believing that views have system columns.
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | pgsql: Prevent parser from believing that views have system columns. |
| Дата | |
| Msg-id | E1TR66M-0007H7-Ds@gemulon.postgresql.org обсуждение |
| Список | pgsql-committers |
Prevent parser from believing that views have system columns. Views should not have any pg_attribute entries for system columns. However, we forgot to remove such entries when converting a table to a view. This could lead to crashes later on, if someone attempted to reference such a column, as reported by Kohei KaiGai. This problem is corrected properly in HEAD (by removing the pg_attribute entries during conversion), but in the back branches we need to defend against existing mis-converted views. This fix costs us an extra syscache lookup per system column reference, which is annoying but probably not really measurable in the big scheme of things. Branch ------ REL8_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/2383d6d132ea1908af73f1285c27f22bc8b6065f Modified Files -------------- src/backend/parser/parse_relation.c | 11 +++++++++-- src/test/regress/expected/rules.out | 22 ++++++++++++++++++++++ src/test/regress/sql/rules.sql | 15 +++++++++++++++ 3 files changed, 46 insertions(+), 2 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера