| От | Grzegorz Jaśkiewicz |
|---|---|
| Тема | Re: Temp table or normal table for performance? |
| Дата | |
| Msg-id | 2f4958ff0908210613w5c777cfcxca301719f539cd50@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: Temp table or normal table for performance? (Jasen Betts <jasen@xnet.co.nz>) |
| Список | pgsql-general |
On Thu, Aug 20, 2009 at 2:43 PM, Jasen Betts<jasen@xnet.co.nz> wrote: > On 2009-08-19, Stephen Cook <sclists@gmail.com> wrote: > >> Let's say I have a function that needs to collect some data from various >> tables and process and sort them to be returned to the user. > > plpgsql functions don't play well with temp tables IME. > there are work-arounds and they are ugly. if you caus use a different > language it could work. it does on 8.3, prior versions have known flow. It makes a lot of sense to use TT if you pass a lot of data back and forth. It makes sense to open transaction, stick data into temp table, and pass that around. Or even, in some cases, for duration of connection - instead of storing data in client app.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера