Skip to content

DBA utility to analyze distinctness of data in a table #3

@jleto

Description

@jleto

Using the n_distinct column from pg_stats create a wrapper function that analyzes a table specified by parameters and returns the distinctness of the data in the columns. This can be used to identify primary and unique keys for database refactoring.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions