Re: Missing const in DSA.

Thomas Munro <thomas.munro@enterprisedb.com>

From: Thomas Munro <thomas.munro@enterprisedb.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: markg735@gmail.com, Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2018-09-24T00:27:13Z
Lists: pgsql-hackers
On Mon, Sep 24, 2018 at 9:32 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Mark G <markg735@gmail.com> writes:
> > While looking at some of the recent churn in DSA I noticed that
> > dsa_size_class_map should probably be declared const.
>
> +1 ... also, given the contents of the array, "char" seems like
> rather a misnomer.  I'd be happier if it were declared as uint8, say.

+1

-- 
Thomas Munro
http://www.enterprisedb.com


Commits

  1. Constify dsa_size_class_map and use a better type.