add the tsearch2 config tables for pg 8.1 and 8.2
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 28 Aug 2009 15:51:52 +0000 (15:51 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 28 Aug 2009 15:51:52 +0000 (15:51 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13933 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/examples/build-eg-replication.sh

index 9da71b7..470abfa 100644 (file)
@@ -50,17 +50,22 @@ if [ "_$PGUSER" == "_" ]; then
   exit
 fi
 
-TABLES=$(psql -tc "
-  select array_to_string(array_accum(table_schema || '.' || table_name),' ')
-    from information_schema.tables
-    where table_schema in (
-      'action', 'actor', 'asset', 'authority', 'auditor', 'biblio', 'config',
-      'container', 'extend_reporter', 'metabib', 'money', 'offline', 'permission',
-      'reporter', 'search', 'stats', 'vandely'
-    ) and table_type = 'BASE TABLE' order by 1;
-")
-
-SEQUENCES=$(psql -tc "select array_to_string(array_accum(schemaname || '.' || relname),' ') from pg_statio_user_sequences;")
+if [ "_$TABLES" == "_" ]; then
+  TABLES=$(psql -tc "
+    select array_to_string(array_accum(table_schema || '.' || table_name),' ')
+      from information_schema.tables
+      where table_schema in (
+        'action', 'actor', 'asset', 'authority', 'auditor', 'biblio', 'config',
+        'container', 'extend_reporter', 'metabib', 'money', 'offline', 'permission',
+        'reporter', 'search', 'stats', 'vandely'
+      ) and table_type = 'BASE TABLE' order by 1;
+  ")
+  TABLES="$TABLES pg_ts_cfg pg_ts_cfgmap"
+fi
+
+if [ "_$SEQUENCES" == "_" ]; then
+  SEQUENCES=$(psql -tc "select array_to_string(array_accum(schemaname || '.' || relname),' ') from pg_statio_user_sequences;")
+fi
 
 
 if [ "_$1" == "_" ]; then