I found some of the varchar column types, in which the histogram_bounds are not being surrounded in double quotes (" ") even in the default implementation.
Ex : c_name column of Customer table
I also found histogram_bounds in which only some strings are surrounded in double quotes and some are not.
Ex : c_address columnof Customer table
Why are there such inconsistencies? How is this determined?
I am trying to implement a functionality that is similar to ANALYZE, but needs to have different values (the values will be valid and is stored in inp->str[][]) for MCV/Histogram Bounds in case the column under consideration is varchar (C Strings). I have written a function dummy_update_attstats with the following changes. Other things remain the same as in update_attstats of ~/src/backend/commands/analyze.c