Re: vacuum and row type

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: vacuum and row type
Дата
Msg-id 3177.1307032794@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: vacuum and row type  (Teodor Sigaev <teodor@sigaev.ru>)
Список pgsql-hackers
Teodor Sigaev <teodor@sigaev.ru> writes:
>> I think we could just let this code assume success for type RECORD.  It
>> won't affect VACUUM/ANALYZE, since there are (for reasons that should
>> now be obvious) no table or index columns of anonymous composite types.

> Of course, it's impossible to store anonymous composite type anywhere, but
> we still have possibility to use it in ORDER BY at least, following query works 
> on HEAD but fails with patch:

> select ROW(1, n) as r from generate_series(1,5) as n order by r;

Right, so for type RECORD we should let the parser assume that
comparisons will work.  If the anonymous composite type isn't actually
sortable, it'll fail at runtime, same as now.
        regards, tom lane


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: InitProcGlobal cleanup
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Please test peer (socket ident) auth on *BSD