Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore partition table in check_last_maintenance #368

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion check_pgactivity
Original file line number Diff line number Diff line change
Expand Up @@ -5053,9 +5053,11 @@ sub check_last_maintenance {
FROM pg_catalog.pg_stat_database
WHERE datname = current_database()
)
FROM pg_stat_user_tables
FROM pg_stat_user_tables a
JOIN pg_class b on a.relid = b.oid
WHERE schemaname NOT LIKE 'pg_temp_%'
AND schemaname NOT LIKE 'pg_toast_temp_%'
AND relkind <> 'p' -- partitioned table do not have last_* information
}
);

Expand Down