User Documentation
Profile
+ Collaboration diagram for Profile:
About:
This module computes a "profile" of a table or view: a predefined set of aggregates to be run on each column of a table.

The following aggregates will be called on every integer column:

And these on non-integer columns:

Because the input schema of the table or view is unknown, we need to synthesize SQL to suit. This is done either via the profile or profile_full user defined function.

Usage:
Examples:
Implementation Notes:

Because some of the aggregate functions used in profile return multi-dimensional arrays, which are not easily handled in pl/python, we are using array_collapse function to collaps the n-dim arrays to 1-dim arrays. All values of 2 and upper dimensions are separated with ':' character.

See also:
File profile.sql_in documenting SQL functions.