Skip to content

Instantly share code, notes, and snippets.

View simon-contreras-deel's full-sized avatar
🤘

Simon Martín simon-contreras-deel

🤘
View GitHub Profile
@dgaubert
dgaubert / cheatsheet-postgresql-monitoring.md
Last active September 13, 2023 07:56
Cheatsheet: PostgreSQL Monitoring

Cheatsheet: PostgreSQL Monitoring

To query these metrics, you must be logged into PostgreSQL as a user that has read access to pg_stat_database

Useful psql commands

  • Check version of PostgreSQL: SELECT version();
  • Show location of postgresql.conf file (requires superuser privileges): SHOW config_file;
  • Show location of data directory (requires superuser privileges): SHOW data_directory;
  • Show location of log directory (may be a path relative to data directory, requires superuser privileges): SHOW log_directory;
@clhenrick
clhenrick / README.md
Last active September 25, 2024 08:26
PostgreSQL & PostGIS cheatsheet (a work in progress)
@listochkin
listochkin / node-command-line-options.txt
Created April 17, 2014 11:00
Node V8 GC-related options
--log_gc (Log heap samples on garbage collection for the hp2ps tool.)
type: bool default: false
--expose_gc (expose gc extension)
type: bool default: false
--max_new_space_size (max size of the new generation (in kBytes))
type: int default: 0
--max_old_space_size (max size of the old generation (in Mbytes))
type: int default: 0
--max_executable_size (max size of executable memory (in Mbytes))
type: int default: 0