Anna Akenteva wrote 2020-08-11 13:37: > About the patch: > > 1) There is some code duplication for the exec_command_[sm|si|st|sr] > functions. Plus, it seems weird to separate sm (show matview) from sv > (show view). Perhaps it would be more convenient to combine some of > the code? Maybe by editing the already-existing exec_command_sf_sv() > function.
I've combined most of the functions into one, as the code was mostly duplicated. Had to change the argument from is_func to object type, because the number of values has increased. I've attached a patch with those changes.