Search
 
SCRIPT & CODE EXAMPLE
 

SQL

postgres get running query

--Version > 9.2
SELECT pid, age(clock_timestamp(), query_start), usename, query 
FROM pg_stat_activity 
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' 
ORDER BY query_start desc;
Comment

PREVIOUS NEXT
Code Example
Sql :: brew restart mysql 
Sql :: dbms_scheduler drop_job 
Sql :: service postgres status 
Sql :: oracle see column type 
Sql :: installing mysql 
Sql :: how to truncate table with foreign key constraint 
Sql :: django.core.exceptions.ImproperlyConfigured: mysqlclient 1.4.0 or newer is required; you have 0.10.1. 
Sql :: start postgresql 
Sql :: Enter into postgresql database,create user and grant Access 
Sql :: delete sql row by id 
Sql :: sql server conection string 
Sql :: display all databases 
Sql :: sql now - 1 day 
Sql :: postgresql calculate age from birthdate 
Sql :: mysql command line xampp ubuntu 
Sql :: postgres add not null to existing column 
Sql :: oracle apex version view 
Sql :: oracle select first 10 rows 
Sql :: oracle find text in functions 
Sql :: get year from date postgres 
Sql :: mysql allow remote connections 
Sql :: sql between date range 
Sql :: [2021-10-05T13:43:48.961Z] error Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client 
Sql :: how to check all scheduled jobs in oracle 
Sql :: file /etc/init.d/mysql not exists 
Sql :: add column in mysq 
Sql :: mysql set field unique 
Sql :: how much every mysql database record takes from diskspace 
Sql :: set statiscis on in ssms 
Sql :: sql copy table structure 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =