Re: temporary indexes?

Поиск
Список
Период
Сортировка
От Jim Nasby
Тема Re: temporary indexes?
Дата
Msg-id 56291917.6050903@BlueTreble.com
обсуждение исходный текст
Ответ на Re: temporary indexes?  (Jonathan Vanasco <postgres@2xlp.com>)
Ответы Re: temporary indexes?
Список pgsql-general
On 10/21/15 3:28 PM, Jonathan Vanasco wrote:
>
> On Oct 21, 2015, at 3:42 PM, Adrian Klaver wrote:
>
>> I misunderstood then. The only thing I can think of is to wrap in a transaction, though that presents other issues
withopen transactions and/or errors in the transaction. 
>
> I just explicitly drop.  The convenience of an auto-drop would be a nice backup.
>
> Transactions and table-locking issues are probably why temporary indexes don't exist.

I think it's more that no one has proposed it until now. It probably
wouldn't be terribly hard to add them... the biggest issue would
probably be changing the buffer management code so it didn't assume that
a temporary relation went into temporary buffers. Other than that,
presumably they'd work the same as temp tables.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com


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

Предыдущее
От: Karsten Hilbert
Дата:
Сообщение: Re: ID column naming convention
Следующее
От: Ken Been
Дата:
Сообщение: Re: carray_to_bytea?