[Groonga-commit] groonga/wikipedia-search at 85da646 [master] Fix syntax error by bash

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Nov 14 00:55:39 JST 2016


Kouhei Sutou	2016-11-14 00:55:39 +0900 (Mon, 14 Nov 2016)

  New Revision: 85da646f6ee2e314d315e792134ab002a4726c00
  https://github.com/groonga/wikipedia-search/commit/85da646f6ee2e314d315e792134ab002a4726c00

  Message:
    Fix syntax error by bash

  Modified files:
    benchmark/centos7/postgresql.sh

  Modified: benchmark/centos7/postgresql.sh (+2 -4)
===================================================================
--- benchmark/centos7/postgresql.sh    2016-11-14 00:52:36 +0900 (76599ae)
+++ benchmark/centos7/postgresql.sh    2016-11-14 00:55:39 +0900 (69f1fed)
@@ -233,8 +233,7 @@ load_data_pgroonga()
       sh -c "du -hsc /var/lib/pgsql/${pg_version}/data/base/$(database_oid ${pgroonga_db})/*"
 
   echo "PGroonga: data: load: statistics"
-  select=$(cat <<EOF)
-SELECT
+select="SELECT
     AVG(char_length(title)) as title_char_length_avg,
     MIN(char_length(title)) as title_char_length_min,
     MAX(char_length(title)) as title_char_length_max,
@@ -248,8 +247,7 @@ SELECT
     MIN(octet_length(text)) as text_byte_length_min,
     MAX(octet_length(text)) as text_byte_length_max
   FROM
-    wikipedia;
-EOF
+    wikipedia;"
   run sudo -u postgres -H psql --echo-queries -d ${pgroonga_db} \
       --command "\\timing" \
       --command "${select}"
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-commit mailing list
Back to archive index