From ceac7deb6f7bccbf587d2616fa7bcc72a27d1c2c Mon Sep 17 00:00:00 2001 From: Luca Ferrari Date: Mon, 6 Dec 2021 12:00:31 +0100 Subject: Task 2 done in PostgreSQL. Kind of, since there is no support for threading. --- challenge-142/luca-ferrari/postgresql/ch-2.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 challenge-142/luca-ferrari/postgresql/ch-2.sh diff --git a/challenge-142/luca-ferrari/postgresql/ch-2.sh b/challenge-142/luca-ferrari/postgresql/ch-2.sh new file mode 100644 index 0000000000..75ad30e1c8 --- /dev/null +++ b/challenge-142/luca-ferrari/postgresql/ch-2.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +for i in $*; do + psql -At -h miguel -U luca -c "SELECT pg_sleep( $i ); SELECT $i;" testdb & +done + +echo -- cgit