Marko Kreen [Fri, 13 Mar 2009 09:40:31 +0000 (11:40 +0200)]
newadm.txt: refresh and mention pending issues
Marko Kreen [Fri, 13 Mar 2009 09:39:47 +0000 (11:39 +0200)]
newadm: SHOW HELP
Marko Kreen [Wed, 11 Mar 2009 13:53:05 +0000 (15:53 +0200)]
newadm: more commands work now
- register
- unregister
- create queue
- drop queue
- show batch
- show queue
Marko Kreen [Mon, 9 Mar 2009 16:17:05 +0000 (18:17 +0200)]
experimental newadm code
Marko Kreen [Mon, 9 Mar 2009 07:03:16 +0000 (09:03 +0200)]
todo: update
Marko Kreen [Tue, 17 Feb 2009 12:22:58 +0000 (14:22 +0200)]
tests for combined queue_loader
Marko Kreen [Mon, 9 Mar 2009 06:59:03 +0000 (08:59 +0200)]
parsing.py: export sql_tokenizer, tag errors
Marko Kreen [Mon, 9 Mar 2009 06:58:14 +0000 (08:58 +0200)]
proper error message in pgq_code.create_node()
Marko Kreen [Mon, 9 Mar 2009 06:57:33 +0000 (08:57 +0200)]
psycopgwrapper: export connect_database()
Marko Kreen [Mon, 2 Mar 2009 09:09:07 +0000 (11:09 +0200)]
pgq: disable manual vacuuming if autovacuum works
Martin Pihlak [Fri, 6 Mar 2009 14:06:10 +0000 (16:06 +0200)]
log message fix.
Martin Pihlak [Fri, 6 Mar 2009 13:57:58 +0000 (15:57 +0200)]
add-table improvements.
Martin Pihlak [Fri, 6 Mar 2009 13:42:38 +0000 (15:42 +0200)]
add-seq improvements
Martin Pihlak [Thu, 5 Mar 2009 10:15:38 +0000 (12:15 +0200)]
- bring londiste.ini up to date
- bring londiste help message more up to date
- add --help hint for DBScript start error msg
- bump pgq version to 3.0devel
Martin Pihlak [Thu, 19 Feb 2009 10:20:29 +0000 (12:20 +0200)]
Merge branch 'master' of git://github.com/markokr/skytools-dev
Martin Pihlak [Wed, 18 Feb 2009 15:03:01 +0000 (23:03 +0800)]
Handle PostgreSQL configuration files as part of backup/restore.
New configuration variables for the config locations plus the
documentation changes.
Mark Kirkwoord, with some editorialization by me.
Signed-off-by: Marko Kreen <markokr@gmail.com>
Martin Pihlak [Wed, 18 Feb 2009 15:03:01 +0000 (17:03 +0200)]
Handle PostgreSQL configuration files as part of backup/restore.
New configuration variables for the config locations plus the
documentation changes.
Mark Kirkwoord, with some editorialization by me.
Martin Pihlak [Tue, 17 Feb 2009 15:16:54 +0000 (17:16 +0200)]
Merge branch 'master' of git://github.com/markokr/skytools-dev
Marko Kreen [Tue, 17 Feb 2009 15:10:33 +0000 (17:10 +0200)]
Combined queue_loader
Merge table_dispatcher, cube_dispatcher and bulk_loader together
Marko Kreen [Tue, 17 Feb 2009 11:16:27 +0000 (13:16 +0200)]
plainworker: process_remote_event takes cursors not dbs
Marko Kreen [Mon, 16 Feb 2009 17:55:39 +0000 (19:55 +0200)]
New UsageError exception class.
When thrown, the DBScript will just print the error message,
without traceback and any additional noise
To be used to show user simple error messages.
Can be used to build own Exception classes.
Marko Kreen [Mon, 16 Feb 2009 17:12:28 +0000 (19:12 +0200)]
Add skytools.exists_temp_table() to test if temp table exists.
Marko Kreen [Tue, 17 Feb 2009 15:00:53 +0000 (17:00 +0200)]
CascadeAdmin: check if --provider is set
This needs to be tested early or rather confusing
error messages will appear.
Martin Pihlak [Tue, 17 Feb 2009 14:50:13 +0000 (16:50 +0200)]
Merge branch 'master' of git://github.com/markokr/skytools-dev
Martin Pihlak [Tue, 17 Feb 2009 09:03:56 +0000 (17:03 +0800)]
test fixes.
Signed-off-by: Marko Kreen <markokr@gmail.com>
Martin Pihlak [Tue, 17 Feb 2009 09:03:56 +0000 (11:03 +0200)]
test fixes.
Marko Kreen [Mon, 16 Feb 2009 13:15:17 +0000 (15:15 +0200)]
test installed code not code in source dir
Marko Kreen [Mon, 16 Feb 2009 13:10:08 +0000 (15:10 +0200)]
build fixes:
- install pgq.cascade package
- use proper date format in debian/changelog
Marko Kreen [Fri, 13 Feb 2009 15:13:59 +0000 (17:13 +0200)]
remove obsolete files
Marko Kreen [Fri, 13 Feb 2009 11:46:37 +0000 (13:46 +0200)]
Various doc updates.
Marko Kreen [Fri, 13 Feb 2009 12:21:09 +0000 (14:21 +0200)]
build system update
- make check target to use pychecker on codebase
- configure switch to install user-runnable python
scripts without .py extension
- reset debian/changelog
- deb: drop psycopg1, pg8.0, pg8.1
Marko Kreen [Fri, 13 Feb 2009 11:57:58 +0000 (13:57 +0200)]
scripts/ update, mostly from 2.1-stable
Some docsrting updates also.
Dispatchers have not upgraded for cascading yet.
Marko Kreen [Fri, 13 Feb 2009 11:43:01 +0000 (13:43 +0200)]
new tests for cascading
Marko Kreen [Fri, 13 Feb 2009 11:14:37 +0000 (13:14 +0200)]
python/londiste rewrite for cascading
New features:
- Cascading
- 'execute' command for running SQL scripts on nodes
- Parallel COPY
- Partition merge
- Sequences are pushed from root
- Rename 'add' command to 'add-table'
- --create switch to add-seq / add-table
also drop the never-implemented file-based transport classes.
Marko Kreen [Fri, 13 Feb 2009 12:16:59 +0000 (14:16 +0200)]
python/pgq update
- remove the obsolete setconsumer stuff
- New CascadedConsumer / CascadedWorker classes,
that are based on regular pgq.Consumer
- move RemoteConsumer / SerialConsumer out of pgq/consumer.py
pgq.Consumer:
- rename conf params and instance variables:
pgq_queue_name -> queue_name
pgq_consumer_id -> consumer_name
- disable automatic registration on the queue,
now script needs to be called with switches --register / --unregister
- drop code to read from multiple-queues at once
pgq.ticker:
- drop event seq tracking code, this is now done in db
Marko Kreen [Fri, 13 Feb 2009 10:49:38 +0000 (12:49 +0200)]
Rewrite sql/londiste for cascading.
Noteworthy changes:
- EXECUTE
- Parallel copy from partitions into single table.
- Sequences are now pushed, instead of pulled.
Root node will periodically send values with reasonable
safety-room into queue.
Marko Kreen [Fri, 13 Feb 2009 10:46:44 +0000 (12:46 +0200)]
Rewrite sql/pgq_set as sql/pgq_node
Main change is that there is no 'set' concept anymore.
Everything is queue-based.
Marko Kreen [Fri, 13 Feb 2009 10:29:12 +0000 (12:29 +0200)]
sql/pgq update
structure:
- event_seq field for pgq.tick table, to store last value
from event_id_seq
- 'disabled' field for pgq.queue, which can disable any
direct inserts to queue. inserts are allowed only
if session_role = 'replica'
functions:
- pgq.next_batch_info() as next_batch() but returns full details
- pgq.ticker(): now contains ticker logic that previously
was located in python code - it uses the event_seq field
in tick table to know about last sequence value
- pgq.insert_event_raw() - check disabled flag
- pgq.seq_getval() / pgq.seq_setval() functions for safe
sequence variable manipulation
- remove denytriga, now regular triggers can play the role
- use OUT parameters instead of ret types
- pgq.force_tick(): silently ignore the request on disabled queues
- pgq.maint_retry_events(): fwd port bugfix from 2.1-stable
- pgq.maint_rotate_tables(): cleanup from 2.1-stable
- pgq.maint_tables_to_vacuum(): add more tables
- triggers/common.c: bugfix from 2.1-stable
Marko Kreen [Fri, 13 Feb 2009 10:03:53 +0000 (12:03 +0200)]
python/skytools update
- docstrings
- some preliminary python 3.0 compat (var names, print())
- sync with 2.1-stable
adminscript:
- move exec_cmd function to dbscript
dbstruct:
- support sequnces. SERIAL columns are not automatically created,
but the link beteween column and sequence is.
psycopgwrapper:
- drop support for psycopg1
- beginnings of quick DB-API / DictRow description.
quoting:
- new unquote_fqident() function, reverse of quote_fqident()
- quote_statement() accepts both row and dict
dbscript:
- catch startup errors
- use log.exception for exceptions, will result in nicer logs
sqltools:
- exists_sequence()
_pyquoting:
- fix typo in variable name
Marko Kreen [Thu, 12 Feb 2009 14:41:38 +0000 (16:41 +0200)]
tag the tree as 3.0-git
Martin Pihlak [Fri, 30 Jan 2009 12:36:55 +0000 (12:36 +0000)]
If possible, use %r in restore_command. Based on patch by
Mark Kirkwood and Omar Kilani.
Martin Pihlak [Mon, 26 Jan 2009 21:33:42 +0000 (21:33 +0000)]
fix a crash in master_stop if pidfile not present in config file.
from Mark Kirkwood.
Martin Pihlak [Mon, 26 Jan 2009 13:51:46 +0000 (13:51 +0000)]
- documentation update.
- upgraded configuration to use 8.3
Martin Pihlak [Thu, 22 Jan 2009 18:25:41 +0000 (18:25 +0000)]
bugfix for archive_mode detection.
Martin Pihlak [Thu, 22 Jan 2009 17:46:27 +0000 (17:46 +0000)]
- improved archive_mode handling, loosely based on patch by Mark Kirkwood
- replaced os.system with exec_system, that pays attention to 'not_really'
- separate class for the configuration modifier
Marko Kreen [Thu, 8 Jan 2009 20:14:16 +0000 (20:14 +0000)]
skytools.DBScript: better pidfile handling (from 2.2)
Marko Kreen [Thu, 8 Jan 2009 20:09:05 +0000 (20:09 +0000)]
skytools.full_copy(): quoting, copy_expert (from 2.2)
Marko Kreen [Thu, 8 Jan 2009 20:03:03 +0000 (20:03 +0000)]
skytools.magic_insert: quoting, work on DictRow
Marko Kreen [Thu, 8 Jan 2009 19:59:11 +0000 (19:59 +0000)]
skytools.quote_statement: accept arg list (from 2.2)
Marko Kreen [Thu, 8 Jan 2009 19:56:00 +0000 (19:56 +0000)]
skytools.dbstruct: import quoting from 2.2 branch
Marko Kreen [Mon, 29 Dec 2008 16:43:27 +0000 (16:43 +0000)]
Fix cquoting crash with Decimal() type.
Seems there can be types which have buffer operations struct,
but no function pointers. So check also for called functions.
Martin Pihlak [Fri, 28 Nov 2008 13:27:38 +0000 (13:27 +0000)]
WalMgr changes:
- Added recovery restart point handling, retain WAL files since the last
restart point. Additional slave config parameter "slave_bin" for specifying
location for postgres binaries.
- Slave backup now creates backup_label and history files.
Martin Pihlak [Wed, 17 Sep 2008 10:48:19 +0000 (10:48 +0000)]
- s/self.jobs/jobs/ in "reload"
- fix "start" error message when job is already running
Marko Kreen [Wed, 17 Sep 2008 10:37:50 +0000 (10:37 +0000)]
proper quoting for dispatcher scripts
Martin Pihlak [Fri, 20 Jun 2008 08:05:58 +0000 (08:05 +0000)]
- improved error messages on startup if no config file specified.
- walmgr.py stop now also stops syncdaemon
- pg_auth file is copied to slave as part of archiving. restored during boot.
- cleanup in remote_walmgr() to always pass config file to slave walmgr.
- master_backup() now reports exceptions.
Marko Kreen [Wed, 18 Jun 2008 09:17:00 +0000 (09:17 +0000)]
import typo fix from -stable, restore stat_add
to keep the differences minimal
Marko Kreen [Wed, 18 Jun 2008 09:15:50 +0000 (09:15 +0000)]
DBScript.stat_add - keep the old function for compat
Marko Kreen [Wed, 30 Apr 2008 14:28:42 +0000 (14:28 +0000)]
add new files
Marko Kreen [Wed, 30 Apr 2008 14:24:01 +0000 (14:24 +0000)]
cascading work:
- let AdminScript detect number of args by introspection
- track event_id_seq downstream
- on rename update subscribers too
- slightly more fleshed out switchover
Marko Kreen [Wed, 30 Apr 2008 14:20:22 +0000 (14:20 +0000)]
Postgres 8.0.x requires <utils/hsearch.h> for oid_hash.
Per report by Marcin Stępnicki
Marko Kreen [Wed, 30 Apr 2008 14:18:55 +0000 (14:18 +0000)]
test/londiste: create sys dir if not exists
Marko Kreen [Wed, 30 Apr 2008 14:17:26 +0000 (14:17 +0000)]
set tags as phony target
Marko Kreen [Fri, 25 Apr 2008 14:48:32 +0000 (14:48 +0000)]
pgq_set: pause/resume/change-provider/rename-node work now
Marko Kreen [Fri, 25 Apr 2008 14:45:53 +0000 (14:45 +0000)]
skytools.quote_statement(): support list/tuple args too
Marko Kreen [Fri, 25 Apr 2008 14:42:51 +0000 (14:42 +0000)]
doc update
Marko Kreen [Wed, 23 Apr 2008 15:12:27 +0000 (15:12 +0000)]
tests/londiste: clean sys dir more
Marko Kreen [Wed, 23 Apr 2008 15:11:58 +0000 (15:11 +0000)]
sql/pgq: convert pgq.get_batch_info() to use out parameters
Marko Kreen [Wed, 23 Apr 2008 15:07:04 +0000 (15:07 +0000)]
python/pgq: more set work
- use worker_name == node_name
- make status command show lag
- pass root tick_time downstream
Marko Kreen [Wed, 23 Apr 2008 15:04:10 +0000 (15:04 +0000)]
sql/pgq_set: remove explicit node worker name, it will be equal to node_name
Marko Kreen [Wed, 23 Apr 2008 15:01:09 +0000 (15:01 +0000)]
sql/pgq: allow external ticker to specify tick_time
Marko Kreen [Wed, 23 Apr 2008 15:00:11 +0000 (15:00 +0000)]
pgq.event: forgot to export EV_UNTAGGED
Marko Kreen [Tue, 22 Apr 2008 12:57:22 +0000 (12:57 +0000)]
forgot couple files
Marko Kreen [Tue, 22 Apr 2008 12:46:13 +0000 (12:46 +0000)]
more pgq_set/londiste cleanup
Marko Kreen [Tue, 22 Apr 2008 12:45:35 +0000 (12:45 +0000)]
pgq.Consumer - complain on untagged events, instead of sending them to retry queue
Marko Kreen [Tue, 22 Apr 2008 12:44:08 +0000 (12:44 +0000)]
parse_logtriga_sql - epydoc complained on bad docstring
Marko Kreen [Tue, 22 Apr 2008 12:42:47 +0000 (12:42 +0000)]
move common db patterns to skytools.adminscript module
Marko Kreen [Tue, 22 Apr 2008 12:41:05 +0000 (12:41 +0000)]
python: rework imports to get better docs...
Marko Kreen [Tue, 22 Apr 2008 12:39:18 +0000 (12:39 +0000)]
doc/Makefile: use standard epydoc launcher
Marko Kreen [Tue, 22 Apr 2008 12:38:31 +0000 (12:38 +0000)]
make tags file for python
Marko Kreen [Thu, 17 Apr 2008 13:23:19 +0000 (13:23 +0000)]
fix retry/failed event handling in pgq.Consumer
Marko Kreen [Thu, 17 Apr 2008 09:22:06 +0000 (09:22 +0000)]
more londiste work
- parallel copy
- dont error out in 'copy' when columns differ - its add-table problem
- test big cascade with lot of tables
Marko Kreen [Thu, 17 Apr 2008 09:20:12 +0000 (09:20 +0000)]
todo update
Marko Kreen [Thu, 17 Apr 2008 09:19:42 +0000 (09:19 +0000)]
dont log so excessively
Marko Kreen [Thu, 17 Apr 2008 09:19:13 +0000 (09:19 +0000)]
forget db completely on close_database() to allow location change
Marko Kreen [Wed, 16 Apr 2008 09:55:41 +0000 (09:55 +0000)]
fix more bugs - stats, trigger type
Marko Kreen [Tue, 15 Apr 2008 13:11:08 +0000 (13:11 +0000)]
todo update
Marko Kreen [Tue, 15 Apr 2008 13:03:46 +0000 (13:03 +0000)]
wrong file
Marko Kreen [Tue, 15 Apr 2008 13:02:47 +0000 (13:02 +0000)]
more setconsumer/londiste work.
simple init/event processing/copy seems to work.
Marko Kreen [Tue, 15 Apr 2008 06:24:22 +0000 (06:24 +0000)]
Use $(MAKE) consistently instead of plain 'make'.
Patch by Pierre-Emmanuel André
Marko Kreen [Fri, 11 Apr 2008 13:58:31 +0000 (13:58 +0000)]
drop support for psycopg1
Marko Kreen [Fri, 11 Apr 2008 13:54:09 +0000 (13:54 +0000)]
fix root notifications
Marko Kreen [Fri, 11 Apr 2008 13:41:34 +0000 (13:41 +0000)]
send events
Marko Kreen [Fri, 11 Apr 2008 12:34:13 +0000 (12:34 +0000)]
use empty DESTDIR
Marko Kreen [Fri, 11 Apr 2008 12:33:14 +0000 (12:33 +0000)]
more test
Marko Kreen [Fri, 11 Apr 2008 12:32:10 +0000 (12:32 +0000)]
txid: install dummy empty txid.sql on 8.3
Marko Kreen [Fri, 11 Apr 2008 12:28:28 +0000 (12:28 +0000)]
set registration functions
Marko Kreen [Fri, 11 Apr 2008 12:27:38 +0000 (12:27 +0000)]
triggers kinda work
Marko Kreen [Fri, 11 Apr 2008 12:24:47 +0000 (12:24 +0000)]
pgq.denytriga - simple deny trigger
Marko Kreen [Mon, 7 Apr 2008 07:01:12 +0000 (07:01 +0000)]
remove debug print
Marko Kreen [Sat, 5 Apr 2008 17:37:19 +0000 (17:37 +0000)]
proper messages, fq name