Skip to content

Instantly share code, notes, and snippets.

@apazzolini
apazzolini / # neovim - 2019-10-10_11-59-53.txt
Created October 10, 2019 17:00
neovim on macOS 10.14.6 - Homebrew build logs
Homebrew build logs for neovim on macOS 10.14.6
Build date: 2019-10-10 11:59:53
@apazzolini
apazzolini / postgres_queries_and_commands.sql
Created July 17, 2018 17:09 — forked from rgreenjr/postgres_queries_and_commands.sql
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(query_start, clock_timestamp()), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(query_start, clock_timestamp()), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'