Help Center/ GaussDB/ Developer Guide(Centralized_V2.0-8.x)/ FAQ/ Can I query the GaussDB memory usage through SQL statements?
Updated on 2025-05-29 GMT+08:00

Can I query the GaussDB memory usage through SQL statements?

Answer: You can query the context name, level, total size, and available size of the shared memory in the pg_shared_memory_detail view.

Example:

gaussdb=#SELECT * FROM pg_shared_memory_detail;