Re: View definition changes after reloading pg_dump export
В списке pgsql-general по дате отправления:
| От | Wesley Schwengle |
|---|---|
| Тема | Re: View definition changes after reloading pg_dump export |
| Дата | |
| Msg-id | 6310c32a.050a0220.40c46.6019@mx.google.com обсуждение исходный текст |
| Ответ на | Re: View definition changes after reloading pg_dump export (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-general |
On 9/1/22 10:08, Tom Lane wrote: > Wesley Schwengle <wesley.schwengle@xxllnc.nl> writes: >> There is a view that we create and it uses a function and the view >> definition changes between runs. I'm not sure why this is happening, >> does someone know? > > The core reason for the discrepancy is that the parser inserts > implicit coercion steps into your initial, not-very-consistently-typed > query; but the view-dumping logic (ruleutils.c) tends to display > those steps as explicit coercions. Thanks for the clarification, it makes a whole lot of sense. And indeed, when I type the SQL like so ARRAY[foo.bar::text, foo.baz::varchar::text] the view definition does not change between runs. Cheers, Wesley -- Wesley Schwengle, Developer xxllnc Zaaksysteem, https://www.zaaksysteem.nl
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера