Re: warning: dereferencing type-punned pointer

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: warning: dereferencing type-punned pointer
Дата
Msg-id 1256529.1721845901@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: warning: dereferencing type-punned pointer  (Peter Eisentraut <peter@eisentraut.org>)
Список pgsql-hackers
Peter Eisentraut <peter@eisentraut.org> writes:
> If you change the member to a pointer

> -   ErrorSaveContext escontext;
> +   ErrorSaveContext *escontext;
>   } JsonExprState;

> and make the required adjustments elsewhere in the code, the warning 
> goes away.

> This arrangement would also appear to be more consistent with other 
> executor nodes (e.g., ExprState, ExprEvalStep), so it might be worth it 
> for consistency in any case.

+1, makes sense to me.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: warning: dereferencing type-punned pointer
Следующее
От: Nathan Bossart
Дата:
Сообщение: Re: improve performance of pg_dump with many sequences