Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

perf: optimize tables query#542

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
psteinroe merged 1 commit intosupabase-community:mainfromaokiji:main
Sep 29, 2025
Merged
Show file tree
Hide file tree
Changes fromall 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

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

15 changes: 3 additions & 12 deletionscrates/pgt_schema_cache/src/queries/tables.sql
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -11,16 +11,15 @@ select
when c.relreplident = 'f' then 'FULL'
else 'NOTHING'
end as "replica_identity!",
pg_total_relation_size(format('%I.%I', nc.nspname, c.relname)) :: int8 as "bytes!",
pg_size_pretty(
pg_total_relation_size(format('%I.%I', nc.nspname, c.relname))
) as "size!",
relation_size:: int8 as "bytes!",
pg_size_pretty(relation_size) as "size!",
pg_stat_get_live_tuples(c.oid) as "live_rows_estimate!",
pg_stat_get_dead_tuples(c.oid) as "dead_rows_estimate!",
obj_description(c.oid) as comment
from
pg_namespace nc
join pg_class c on nc.oid = c.relnamespace
cross join lateral pg_total_relation_size(c.oid) relation_size
where
c.relkind in ('r', 'p', 'v', 'm')
and not pg_is_other_temp_schema(nc.oid)
Expand All@@ -32,11 +31,3 @@ where
)
or has_any_column_privilege(c.oid, 'SELECT, INSERT, UPDATE, REFERENCES')
)
group by
c.oid,
c.relname,
c.relkind,
c.relrowsecurity,
c.relforcerowsecurity,
c.relreplident,
nc.nspname;

[8]ページ先頭

©2009-2025 Movatter.jp