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