Created
January 14, 2020 09:00
-
-
Save arp242/92b492be6823af71f9e8d24bbc774f71 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
do | |
$do$ | |
begin | |
for i in 1..100 loop | |
update hit_stats hs_outer | |
set title=(select title from hit_stats where hit_stats.site=hs_outer.site and hit_stats.path=hs_outer.path order by hit_stats.day desc limit 1) | |
where title='' and site=i; | |
perform pg_sleep(5); | |
end loop; | |
end | |
$do$; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment