Error in getting top 10 biggest table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi  , 


I am executing below query to get top 10 biggest size table but getting error

SELECT table_name,pg_relation_size(table_schema || '.' || table_name) as size FROM information_schema.tables WHERE table_schema NOT IN ('information_schema', 'pg_catalog') ORDER BY size DESC LIMIT 10;

ERROR:  relation "public.contacts" does not exist

Original Table : Contacts

It seems problem is with CAPS letter in Postgres table .

So any possibilities to execute this Caps letter table without any error

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux