HTMLS = londiste.cmdline.html londiste.config.html README.html INSTALL.html \
londiste.ref.html TODO.html pgq-sql.html pgq-admin.html pgq-nodupes.html \
- $(SCRIPT_HTMLS) faq.html set.notes.html newadm.html skytools3.html devnotes.html
+ $(SCRIPT_HTMLS) faq.html set.notes.html qadmin.html skytools3.html devnotes.html
SCRIPT_TXTS = walmgr.txt cube_dispatcher.txt table_dispatcher.txt \
queue_mover.txt queue_splitter.txt bulk_loader.txt \
-= newadm =
+= qadmin =
== Goal ==
== Smaller Open Questions ==
-* What arguments should newadm accept from command line?
+* What arguments should qadmin accept from command line?
- psql-style: newadm [switches] [dbname [username]]
- ssh-style: newadm [switches] [command [args]]
+ psql-style: qadmin [switches] [dbname [username]]
+ ssh-style: qadmin [switches] [command [args]]
* Command style and syntax.
- Tab-completion of quoted idents. (?)
- Multi-line commands. (?)
-* Cascading: It would be useful to also have cascading commands available in newadm.
+* Cascading: It would be useful to also have cascading commands available in qadmin.
( SWITCHOVER / CREATE NODE / PAUSE NODE / CHANGE PROVIDER ).
But currently they are implemented using DBScript framework. And
we don't want to have several implementations of the commands.
There seems to be 2 ways forward:
- - Convert newadm to DBScript. It is possible to make config-less DBScript.
- - Implement command under newadm in non-DBScript way and make
- CascadeAdmin call newadm implementation.
+ - Convert qadmin to DBScript. It is possible to make config-less DBScript.
+ - Implement command under qadmin in non-DBScript way and make
+ CascadeAdmin call qadmin implementation.
-* Londiste: It seems to be good idea to make Londiste management also available in newadm.
+* Londiste: It seems to be good idea to make Londiste management also available in qadmin.
- LONDISTE ADD|REMOVE TABLE <tbl>
- LONDISTE ADD|REMOVE SEQUENCE <seq>
- LONDISTE SHOW TABLES / SHOW LONDISTE TABLES / SHOW TABLES ?
---------------
* Skytools 3 todo list: TODO.txt
-* Newadm design and todo list: newadm.txt
+* Newadm design and todo list: qadmin.txt
* Technical notes about cascading: set.notes.txt
* Notes for contributors: devnotes.txt
__version__ = '0.1'
cmdline_usage = '''\
-Usage: newadm [switches]
+Usage: qadmin [switches]
Initial connection options:
-h host
print cmdline_usage
sys.exit(0)
elif o == "--version":
- print "newadm version %s" % __version__
+ print "qadmin version %s" % __version__
sys.exit(0)
elif o == "-h":
cstr_map['host'] = a
readline.parse_and_bind('tab: complete')
readline.set_completer(self.rl_completer_safe)
#print 'delims: ', repr(readline.get_completer_delims())
- hist_file = os.path.expanduser("~/.newadm_history")
+ hist_file = os.path.expanduser("~/.qadmin_history")
try:
readline.read_history_file(hist_file)
except IOError:
package_dir = {'': 'python'},
packages = ['skytools', 'londiste', 'pgq', 'pgq.cascade'],
scripts = ['python/londiste.py',
- 'python/newadm.py',
+ 'python/qadmin.py',
'python/pgqadm.py',
'python/walmgr.py',
'scripts/bulk_loader.py',