Re: temp tables ORACLE/PGSQL

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: temp tables ORACLE/PGSQL
Дата
Msg-id 42730E0E.6090706@samurai.com
обсуждение исходный текст
Ответ на Re: temp tables ORACLE/PGSQL  (Dennis Sacks <dennis@illusions.com>)
Список pgsql-general
Dennis Sacks wrote:
> The disadvantage is, you'll have to have some process for deleting
> old data from the table, as it will stay around and it will bite you
> when you get the same pg_backend_pid() again down the road.

Rather than use pg_backend_id(), why not just assign session IDs from a
sequence? You would still get the problem of stale session data so you'd
probably still want a periodic cleaner process, but you won't need to
worry about session ID collision.

-Neil

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Tuning queries inside a function
Следующее
От: mmiranda@americatel.com.sv
Дата:
Сообщение: Re: Fatal error