Re: [COMMITTERS] pgsql: Implement table partitioning.

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: [COMMITTERS] pgsql: Implement table partitioning.
Дата
Msg-id CA+Tgmob8fYhw_kO+T=GUCSvXTZZOx3dc2pxChRYwvqu5JrCvDQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [COMMITTERS] pgsql: Implement table partitioning.  (Stephen Frost <sfrost@snowman.net>)
Ответы Re: [COMMITTERS] pgsql: Implement table partitioning.  (Stephen Frost <sfrost@snowman.net>)
Re: [HACKERS] [COMMITTERS] pgsql: Implement table partitioning.  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
On Thu, Dec 8, 2016 at 1:49 PM, Stephen Frost <sfrost@snowman.net> wrote:
> * Robert Haas (rhaas@postgresql.org) wrote:
>> Implement table partitioning.
>
> My compiler apparently doesn't care for this:
>
> .../src/backend/catalog/partition.c: In function ‘partition_rbound_cmp’:
> .../src/backend/catalog/partition.c:1787:13: warning: ‘cmpval’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
>   if (cmpval == 0 && lower1 != lower2)

So, apparently your compiler doesn't recognize that the loop always
has to execute at least once, because we don't support a table
partitioned on zero attributes.  If you initialize cmpval to 0 at the
top of the function, does that fix it?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Aleksander Alekseev
Дата:
Сообщение: [HACKERS] [PATCH] Refactor "if(strspn(str, ...) == strlen(str)" code
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Implement table partitioning.