| От | Tom Lane |
|---|---|
| Тема | Re: Using the extract() function in plpgsql |
| Дата | |
| Msg-id | 13712.993672268@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Using the extract() function in plpgsql (Richard Huxton <dev@archonet.com>) |
| Ответы |
Re: Using the extract() function in plpgsql
|
| Список | pgsql-sql |
Richard Huxton <dev@archonet.com> writes:
> 2. bad oid reference - even if we did recreate the table, the reference
> to it is compiled in after the first run. Don't see a way around this one.
You could work around that by making all the queries referencing the
temp table be built up as strings and EXECUTE'd, rather than just
writing them in-line in the plpgsql code. Pretty grotty but it might
serve for now. Eventually plpgsql needs to have a way to discard
query plans that have been obsoleted by DDL changes.
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера