[open-ils-commits] r13933 - trunk/Open-ILS/examples (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Aug 28 11:51:55 EDT 2009
Author: miker
Date: 2009-08-28 11:51:52 -0400 (Fri, 28 Aug 2009)
New Revision: 13933
Modified:
trunk/Open-ILS/examples/build-eg-replication.sh
Log:
add the tsearch2 config tables for pg 8.1 and 8.2
Modified: trunk/Open-ILS/examples/build-eg-replication.sh
===================================================================
--- trunk/Open-ILS/examples/build-eg-replication.sh 2009-08-27 13:05:10 UTC (rev 13932)
+++ trunk/Open-ILS/examples/build-eg-replication.sh 2009-08-28 15:51:52 UTC (rev 13933)
@@ -50,17 +50,22 @@
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;
-")
+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
-SEQUENCES=$(psql -tc "select array_to_string(array_accum(schemaname || '.' || relname),' ') from pg_statio_user_sequences;")
+if [ "_$SEQUENCES" == "_" ]; then
+ SEQUENCES=$(psql -tc "select array_to_string(array_accum(schemaname || '.' || relname),' ') from pg_statio_user_sequences;")
+fi
if [ "_$1" == "_" ]; then
More information about the open-ils-commits
mailing list