Skip to main content

performance_lints

Creates, updates, deletes, gets or lists a performance_lints resource.

Overview​

Nameperformance_lints
TypeResource
Idsupabase.advisors.performance_lints

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestring (unindexed_foreign_keys, auth_users_exposed, auth_rls_initplan, no_primary_key, unused_index, multiple_permissive_policies, policy_exists_rls_disabled, rls_enabled_no_policy, duplicate_index, security_definer_view, function_search_path_mutable, rls_disabled_in_public, extension_in_public, rls_references_user_metadata, materialized_view_in_api, foreign_table_in_api, unsupported_reg_types, auth_otp_long_expiry, auth_otp_short_length, ssl_not_enforced, log_connections_not_enabled, network_restrictions_not_set, password_requirements_min_length, pitr_not_enabled, auth_leaked_password_protection, auth_insufficient_mfa_options, auth_password_policy_missing, leaked_service_key, no_backup_admin, vulnerable_postgres_version, db_not_reachable, db_connection_failing, db_connection_limit_reached, instance_telemetry_lost, instance_db_down, instance_alert_firing, log_service_error_rate_high, project_not_active, advisor_check_unavailable)
cache_keystring
categoriesarray
descriptionstring
detailstring
facingstring (EXTERNAL)
levelstring (ERROR, WARN, INFO)
metadataobject
observed_atstring (date-time) (pattern: <code>^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:.\d+)?)?(?:Z))$</code>)
remediationstring
titlestring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectrefThis is an experimental endpoint. It is subject to change or removal in future versions. Use it with caution, as it may not remain supported or stable.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
refstringSupabase project reference (the Project ID shown in the dashboard under Settings -> General; 20 lowercase letters). Resolved from the SUPABASE_PROJECT_ID environment variable when it is set (x-stackQL-envVar); otherwise it must be supplied on every project-scoped query as WHERE ref = '<ref>'. A WHERE value always takes precedence over the environment. (x-stackQL-envVar: SUPABASE_PROJECT_ID)

SELECT examples​

This is an experimental endpoint. It is subject to change or removal in future versions. Use it with caution, as it may not remain supported or stable.

SELECT
name,
cache_key,
categories,
description,
detail,
facing,
level,
metadata,
observed_at,
remediation,
title
FROM supabase.advisors.performance_lints
WHERE ref = '{{ ref }}' -- required unless SUPABASE_PROJECT_ID is set
;