{"id":41766305,"url":"https://github.com/achanda/pg_power","last_synced_at":"2026-01-25T02:35:23.290Z","repository":{"id":268742264,"uuid":"905037695","full_name":"achanda/pg_power","owner":"achanda","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-18T15:56:59.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-18T16:45:12.287Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/achanda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-18T03:18:11.000Z","updated_at":"2024-12-18T15:57:03.000Z","dependencies_parsed_at":"2024-12-18T16:55:49.825Z","dependency_job_id":null,"html_url":"https://github.com/achanda/pg_power","commit_stats":null,"previous_names":["achanda/pg_power"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/achanda/pg_power","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/achanda%2Fpg_power","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/achanda%2Fpg_power/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/achanda%2Fpg_power/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/achanda%2Fpg_power/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/achanda","download_url":"https://codeload.github.com/achanda/pg_power/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/achanda%2Fpg_power/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28742524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T01:40:51.112Z","status":"online","status_checked_at":"2026-01-25T02:00:06.841Z","response_time":113,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-25T02:35:22.685Z","updated_at":"2026-01-25T02:35:23.286Z","avatar_url":"https://github.com/achanda.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e :warning: **Do not run this in production or in any secure system**\n\nTo run this, make sure the postgres binary can read the RAPL file\n\n```\nsudo setcap cap_dac_read_search=+ep /usr/lib/postgresql/14/bin/postgres\n```\n\nSample output from the postgres server\n\n```\nabhishek@guest:~$ /usr/lib/postgresql/14/bin/postgres --config-file=$(pwd)/pgdata/postgresql.conf -D $(pwd)/pgdata -k $(pwd)/pgdata\n2024-12-18 03:13:00.490 GMT [1751699] LOG:  starting PostgreSQL 14.13 (Ubuntu 14.13-0ubuntu0.22.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit\n2024-12-18 03:13:00.490 GMT [1751699] LOG:  listening on IPv6 address \"::1\", port 5432\n2024-12-18 03:13:00.490 GMT [1751699] LOG:  listening on IPv4 address \"127.0.0.1\", port 5432\n2024-12-18 03:13:00.492 GMT [1751699] LOG:  listening on Unix socket \"/home/abhishek/pgdata/.s.PGSQL.5432\"\n2024-12-18 03:13:00.494 GMT [1751700] LOG:  database system was shut down at 2024-12-18 03:12:28 GMT\n2024-12-18 03:13:00.498 GMT [1751699] LOG:  database system is ready to accept connections\n2024-12-18 03:13:09.611 GMT [1751715] LOG:  Query execution starting: 69877598944\n2024-12-18 03:13:09.611 GMT [1751715] STATEMENT:  select 1+1;\n2024-12-18 03:13:09.611 GMT [1751715] LOG:  Query execution completed: 3785\n2024-12-18 03:13:09.611 GMT [1751715] STATEMENT:  select 1+1;\n^C2024-12-18 03:13:21.466 GMT [1751699] LOG:  received fast shutdown request\n2024-12-18 03:13:21.469 GMT [1751699] LOG:  aborting any active transactions\n2024-12-18 03:13:21.469 GMT [1751715] FATAL:  terminating connection due to administrator command\n2024-12-18 03:13:21.471 GMT [1751699] LOG:  background worker \"logical replication launcher\" (PID 1751706) exited with exit code 1\n2024-12-18 03:13:21.472 GMT [1751701] LOG:  shutting down\n2024-12-18 03:13:21.481 GMT [1751699] LOG:  database system is shut down\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fachanda%2Fpg_power","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fachanda%2Fpg_power","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fachanda%2Fpg_power/lists"}