Re: [HACKERS] Arrays broken on temp tables

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Arrays broken on temp tables
Дата
Msg-id 2914.941922762@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Arrays broken on temp tables  (Bruce Momjian <maillist@candle.pha.pa.us>)
Ответы Re: [HACKERS] Arrays broken on temp tables  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Bruce Momjian <maillist@candle.pha.pa.us> writes:
> Bug confirmed.  Wow, that is strange.  There isn't anything about temp
> table that would suggest this would happen.

I see it too.  explain shows something pretty fishy:

regression=> explain update tmpArray set val[3] = 7;
NOTICE:  QUERY PLAN:

Nested Loop  (cost=43043.00 rows=1000000 width=22) ->  Seq Scan on pg_temp.2904.0  (cost=43.00 rows=1000 width=12) ->
SeqScan on tmparray  (cost=43.00 rows=1000 width=10)
 

EXPLAIN

I'm betting that something in the array code is somehow bypassing the
normal table lookup mechanism, and is managing to see the underlying
temp-table name that should be hidden from it.  Will look further...
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Arrays broken on temp tables
Следующее
От: Charles Tassell
Дата:
Сообщение: Re: [HACKERS] Re: [GENERAL] indexed regex select optimisation missing?