1. A method comprising: collecting, by a computing device and in response to an event trigger, query optimizer information including query information, database information, and system information, wherein: the query information includes information about an input query submitted to a query optimizer of the computing device for optimization, the optimization including generating a query plan for the input query, the database information includes a schema of a database being queried by the input query and database statistics, the database statistics including metrics of entries in the database, the system information includes information about the computing device, and the event trigger includes at least one of: a crash of the query optimizer, the input query being a specified query, a system crash, or a request for one or more reproduction objects; loading, by the computing device, the collected information to a reproduction object, the loading comprising storing the input query, the query plan, the database schema, the database statistics, and the system information as components of the reproduction object; and submitting the reproduction object to one or more test computers for analyzing performance of the query optimizer, wherein the collecting and loading are turned on using a configuration command, and wherein, after turning on the collecting and loading, the collecting and loading occur for each subsequent database query until being turned off.