Skip to content

Instantly share code, notes, and snippets.

View blad's full-sized avatar
👾
👾 👾 👾👾 👾 👾 👾 👾

Bladymir Tellez blad

👾
👾 👾 👾👾 👾 👾 👾 👾
View GitHub Profile
@blad
blad / postgres_queries_and_commands.sql
Created July 27, 2018 01:39 — 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%'
@blad
blad / keybase.md
Created May 18, 2016 15:47
keybase.md

Keybase proof

I hereby claim:

  • I am blad on github.
  • I am btellez (https://keybase.io/btellez) on keybase.
  • I have a public key whose fingerprint is B4BE BFD4 EA0C 8EAA 955B 2A86 4CF6 EF8F CC85 3F7D

To claim this, I am signing this object: