I don't know whats that mean
This commit is contained in:
		
							parent
							
								
									03fc285a92
								
							
						
					
					
						commit
						3beaa97efe
					
				
							
								
								
									
										6
									
								
								fish/fish/functions/pg_oldies.fish
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								fish/fish/functions/pg_oldies.fish
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,6 @@
 | 
			
		||||
function pg_oldies
 | 
			
		||||
  watch -n1 "psql -c \"\
 | 
			
		||||
    select substring(query from 0 for 120) q,\
 | 
			
		||||
    now() - query_start from pg_stat_activity\
 | 
			
		||||
    where state='active' order by query_start limit 20\""
 | 
			
		||||
end
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user