Re: Missing const in DSA.

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mark G <markg735@gmail.com>
Cc: pgsql-hackers@postgresql.org
Date: 2018-09-23T21:32:17Z
Lists: pgsql-hackers
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.

			regards, tom lane


Commits

  1. Constify dsa_size_class_map and use a better type.