Get the difference from the previews row, using the LAG
an OVER
keywords which are part of window functions.
This is the first time I've seen this but I'm sure I'm going to need it sometime.
From Julia Evans on twitter
Get the difference from the previews row, using the LAG
an OVER
keywords which are part of window functions.
This is the first time I've seen this but I'm sure I'm going to need it sometime.
From Julia Evans on twitter
Web Design in 4 minutes minimal CSS to create a simple modern web page, with design explanations.
Guide to HTML 5 Head Elements provides good rules and explanations especially about the order of elements to be effective.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- show running queries, oldest first (postgres 10.5) | |
SELECT pid, age(clock_timestamp(), query_start), usename, state, query | |
FROM pg_stat_activity | |
WHERE state != 'idle' AND query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY age desc; |