What are some "PROCEDURE ANALYSE" analogues in MySQL 8 and PostgreSQL?
04:27 04 Dec 2018

In older versions of MySQL there was an option to analyze existing tables:

SELECT * FROM  `table_name` PROCEDURE ANALYSE()

That seemed useful, a developer could analyze existing tables, see recommendations (for example use smallint instead of int) and consider some of them.

In MySQL 8.0 PROCEDURE ANALYSE() was removed. The reason I found:

"Reasoning: it was discussed many times that the PROCEDURE ANALYZE syntax is an anachronism and almost unused non-standard syntax extension".

Is this the only reason or analyzing tables automatically is a bad practice (even as just an additional instrument for analyze)?

Also I can't find any analogue of "Procedure Analyse" in PostgreSQL.

I know that I can analyze queries, but I suppose that it is useful to analyze table structure to consider it in architecture of new tables.

mysql postgresql