mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-22 21:59:59 +00:00
After enabling autoscaling, we faced the issue that customers are not able to get the number of CPUs they use at this moment. Therefore I've added these two options: 1. Postgresql function to allow customers to call it whenever they want 2. `compute_ctl` endpoint to show these number in console
7 lines
116 B
SQL
7 lines
116 B
SQL
CREATE FUNCTION num_cpus()
|
|
RETURNS int
|
|
AS 'MODULE_PATHNAME', 'num_cpus'
|
|
LANGUAGE C STRICT
|
|
PARALLEL UNSAFE
|
|
VOLATILE;
|