pgsql: Fix compiler warnings in multivariate MCV code - Mailing list pgsql-committers

From Tomas Vondra
Subject pgsql: Fix compiler warnings in multivariate MCV code
Date
Msg-id E1hAJ0w-0006pT-JS@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix compiler warnings in multivariate MCV code

Compiler warnings were observed on gcc 3.4.6 (on gaur).

The assert is unnecessary, as the indexes are uint16 and so always >= 0.

Reported-by: Tom Lane

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ad3107b97324e0c8cf65932294115b6af9db8ded

Modified Files
--------------
src/backend/statistics/mcv.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Avoid crash in partitionwise join planning under GEQO.
Next
From: Tom Lane
Date:
Subject: pgsql: Speed up planning when partitions can be pruned at plan time.