[COMMITTERS] pgsql: Fix ruleutils.c for domain-over-array cases, too.
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | [COMMITTERS] pgsql: Fix ruleutils.c for domain-over-array cases, too. |
| Дата | |
| Msg-id | E1dVPgH-00042X-9S@gemulon.postgresql.org обсуждение исходный текст |
| Список | pgsql-committers |
Fix ruleutils.c for domain-over-array cases, too. Further investigation shows that ruleutils isn't quite up to speed either for cases where we have a domain-over-array: it needs to be prepared to look past a CoerceToDomain at the top level of field and element assignments, else it decompiles them incorrectly. Potentially this would result in failure to dump/reload a rule, if it looked like the one in the new test case. (I also added a test for EXPLAIN; that output isn't broken, but clearly we need more test coverage here.) Like commit b1cb32fb6, this bug is reachable in cases we already support, so back-patch all the way. Branch ------ REL9_3_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/aea1a3f0ebfcbe17f3ce89cf4cf9bd20828c199e Modified Files -------------- src/backend/utils/adt/ruleutils.c | 25 ++++++++++++++++++++- src/test/regress/expected/domain.out | 42 ++++++++++++++++++++++++++++++------ src/test/regress/sql/domain.sql | 11 +++++++++- 3 files changed, 69 insertions(+), 9 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера