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.
Re: [HACKERS] [COMMITTERS] pgsql: Implement table partitioning. |
Список | 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 по дате отправления: