Careful with that, depending on scale. "all packages installed" tends to be a very dynamic fact that has historically put a lot of pressure on PuppetDB performance.
The
_puppet_inventory_1
is split out and handled specially so that it is stored in a table structure that performs better with the nature of the data.