Martin Pihlak [Tue, 27 Jul 2010 07:33:20 +0000 (10:33 +0300)]
walmgr.py: add --version option
Martin Pihlak [Tue, 27 Jul 2010 07:27:10 +0000 (10:27 +0300)]
Simplify the cleanup logic for partial wals.
Martin Pihlak [Tue, 27 Jul 2010 07:18:35 +0000 (10:18 +0300)]
"walmgr.py sync" now omits unneeded WAL segments if the
database has been cleanly shut down. This greatly reduces
sync time during planned swithcovers as usually there
is only a single WAL file to be synched to slave.
Martin Pihlak [Tue, 27 Jul 2010 07:18:26 +0000 (10:18 +0300)]
more files to ignore
Martin Pihlak [Tue, 27 Jul 2010 06:47:22 +0000 (09:47 +0300)]
Merge branch 'master' of git://github.com/markokr/skytools-dev
Marko Kreen [Tue, 20 Jul 2010 14:37:25 +0000 (17:37 +0300)]
Configurable suffix support.
Apply suffix also to manpages, SQL and doc directories
Marko Kreen [Tue, 20 Jul 2010 14:34:05 +0000 (17:34 +0300)]
dbstruct: save & restore clustering info
Original patch by André Malo, applied with minor modifications
Marko Kreen [Mon, 19 Jul 2010 11:20:33 +0000 (14:20 +0300)]
skytools: export parse_sqltriga_sql
Marko Kreen [Mon, 19 Jul 2010 11:18:46 +0000 (14:18 +0300)]
londiste: avoid zombie processes with P_WAIT
os.spawn(P_NOWAIT) leaves zombie childs. P_WAIT is safe
to use here, as child should daemonize itself anyway.
Marko Kreen [Tue, 13 Jul 2010 11:48:41 +0000 (14:48 +0300)]
qadmin: exit command
Martin Pihlak [Mon, 19 Jul 2010 07:12:41 +0000 (10:12 +0300)]
Merge commit 'upstream/master'
Marko Kreen [Fri, 9 Jul 2010 10:18:37 +0000 (13:18 +0300)]
deb: accept modules-9.0
Marko Kreen [Fri, 9 Jul 2010 10:14:58 +0000 (13:14 +0300)]
deb: Lets see what happens if package is named skytools3.
Marko Kreen [Fri, 9 Jul 2010 10:14:14 +0000 (13:14 +0300)]
Clean ./build before install to avoid pkgloader installing too much.
Marko Kreen [Fri, 9 Jul 2010 10:06:38 +0000 (13:06 +0300)]
Fix tgargs initialization for pgq.logtriga()
Marko Kreen [Tue, 6 Jul 2010 12:27:50 +0000 (15:27 +0300)]
pgq_node.drop_node(): drop queue
Marko Kreen [Tue, 6 Jul 2010 12:23:49 +0000 (15:23 +0300)]
londiste.global_add_table(): catch unique_violation
To avoid failure when both setup and replay add the table.
Marko Kreen [Mon, 28 Jun 2010 11:49:07 +0000 (14:49 +0300)]
skytools.parse_sqltriga_sql(): extract PK field names
Marko Kreen [Mon, 28 Jun 2010 08:10:29 +0000 (11:10 +0300)]
Move querybuilder code into separate file and refresh with some new code.
Marko Kreen [Fri, 25 Jun 2010 11:35:56 +0000 (14:35 +0300)]
deb: deb90, keep debugging info.
It does not make sense to strip server packages.
Marko Kreen [Thu, 10 Jun 2010 14:30:27 +0000 (17:30 +0300)]
Tune pylint quieter, to be more useful.
Marko Kreen [Thu, 3 Jun 2010 15:11:19 +0000 (18:11 +0300)]
Update londiste test with new script names
Marko Kreen [Fri, 25 Jun 2010 11:19:37 +0000 (14:19 +0300)]
pgqd: dont complain about 'no pgq' too loudly
Marko Kreen [Fri, 25 Jun 2010 10:08:22 +0000 (13:08 +0300)]
qadmin: max_cnt->max_count as thats what is accepted by ALTER.
Marko Kreen [Wed, 23 Jun 2010 14:12:58 +0000 (17:12 +0300)]
londiste: add compare/repair params to --ini
Marko Kreen [Wed, 23 Jun 2010 14:11:03 +0000 (17:11 +0300)]
londiste compare: calculate checksum
Also allow specify format string.
Patch by Hannu Krosing
Marko Kreen [Tue, 15 Jun 2010 12:25:02 +0000 (15:25 +0300)]
skytools.Config: .options() and .has_options() methods.
Marko Kreen [Wed, 23 Jun 2010 13:35:33 +0000 (16:35 +0300)]
Fix double install on debian.
Marko Kreen [Fri, 11 Jun 2010 11:25:39 +0000 (14:25 +0300)]
pgq.Consumer: Provide self.batch_info with batch details
Marko Kreen [Thu, 10 Jun 2010 14:35:04 +0000 (17:35 +0300)]
sql/londiste: set client_min_messages = 'warning' for regtest
Marko Kreen [Thu, 10 Jun 2010 14:28:37 +0000 (17:28 +0300)]
londiste.local_add_table(): skip triggers on leaf node
Marko Kreen [Thu, 10 Jun 2010 14:26:06 +0000 (17:26 +0300)]
pgq_node.is_leaf_node()
helper function to detect leaf node.
Marko Kreen [Wed, 9 Jun 2010 13:09:37 +0000 (16:09 +0300)]
dont install pgq.logtriga()
Marko Kreen [Wed, 9 Jun 2010 10:33:33 +0000 (13:33 +0300)]
installer_find_file: stop searching from cwd
It was fine for some testing, but not for serious usage.
Marko Kreen [Tue, 8 Jun 2010 11:20:30 +0000 (14:20 +0300)]
pgq/cascade: when reporting batch pos problem, allow None
Marko Kreen [Thu, 3 Jun 2010 15:01:52 +0000 (18:01 +0300)]
pgqd: Detect and remove dropped databases.
Marko Kreen [Thu, 3 Jun 2010 14:05:39 +0000 (17:05 +0300)]
pgq_node.set_consumer_error: ignore error for unknown consumer
Marko Kreen [Thu, 3 Jun 2010 14:01:17 +0000 (17:01 +0300)]
Install queue_splitter
Marko Kreen [Tue, 1 Jun 2010 14:25:28 +0000 (17:25 +0300)]
londiste.local_add_table: use pg_trigger instead of information_schema
information_schema uses ordinary strings as trigger names, so the
sorting order is random due to locale rules.
Marko Kreen [Tue, 1 Jun 2010 14:20:49 +0000 (17:20 +0300)]
pgq,londite: support install over skytools 2
Marko Kreen [Tue, 1 Jun 2010 13:55:29 +0000 (16:55 +0300)]
skytools.DBObject: remove duplicated file find logic
Marko Kreen [Thu, 13 May 2010 09:14:23 +0000 (12:14 +0300)]
doc: move dox generation from apiupload to apidoc
Marko Kreen [Tue, 11 May 2010 12:31:21 +0000 (15:31 +0300)]
pkgloader: avoid supressing any import errors
Marko Kreen [Tue, 11 May 2010 12:28:06 +0000 (15:28 +0300)]
sql/pgq: compat with 9.0 bytea format
Marko Kreen [Tue, 11 May 2010 12:27:22 +0000 (15:27 +0300)]
pgq_quote_ident: compat with newer ScanKeywordLookup
Also avoid quoting unreserved names
Marko Kreen [Tue, 11 May 2010 12:25:31 +0000 (15:25 +0300)]
sql/londiste: 9.0 compat
- londiste.get_table_list(): qualify argument refs with function name
- regtest: load plpgsql ourself
- regtest: avoid contrib_regression on older postgres
Marko Kreen [Mon, 10 May 2010 12:25:56 +0000 (15:25 +0300)]
londiste.local_remove_table: dynamically detect triggers to be dropped.
Marko Kreen [Mon, 10 May 2010 08:42:34 +0000 (11:42 +0300)]
pgq/triggers: Survive setup errors better
Marko Kreen [Mon, 10 May 2010 08:38:56 +0000 (11:38 +0300)]
londiste add-table: pass --skip-truncate to copy process
Marko Kreen [Fri, 7 May 2010 11:30:32 +0000 (14:30 +0300)]
londiste add-table: --trigger-arg switch to set custom params
Marko Kreen [Fri, 7 May 2010 11:13:14 +0000 (14:13 +0300)]
refresh libusual
Marko Kreen [Fri, 7 May 2010 11:12:51 +0000 (14:12 +0300)]
londiste: test custom args
Marko Kreen [Fri, 7 May 2010 11:05:53 +0000 (14:05 +0300)]
londiste: regtest: avoid 'data', seems its dirty word now
Marko Kreen [Fri, 7 May 2010 10:50:09 +0000 (13:50 +0300)]
pgq_node: update regtest with new fields
Marko Kreen [Fri, 7 May 2010 10:41:50 +0000 (13:41 +0300)]
pgq: random naturaldocs 1.4 changes
Marko Kreen [Fri, 7 May 2010 10:24:00 +0000 (13:24 +0300)]
londiste.local_add_table: allow custom args to triggers
Marko Kreen [Fri, 7 May 2010 10:23:26 +0000 (13:23 +0300)]
pgq_node.register_consumer: update existing reg info, instead erroring out
Marko Kreen [Fri, 7 May 2010 10:01:00 +0000 (13:01 +0300)]
pgq: tune regtest to autovacuum=on, which is more common
Marko Kreen [Thu, 6 May 2010 09:37:25 +0000 (12:37 +0300)]
pgq/triggers: Custom SQL expressions for field values
Move fields around for caching the trigger arguments
and cached plans for override queries.
Marko Kreen [Wed, 28 Apr 2010 10:05:46 +0000 (13:05 +0300)]
pgq.Consumer: remove hardwired cursor name
Marko Kreen [Wed, 28 Apr 2010 09:49:56 +0000 (12:49 +0300)]
pgq.get_batch_cursor: no need to calculate row count
Marko Kreen [Tue, 27 Apr 2010 12:53:20 +0000 (15:53 +0300)]
pgqd: fix maint function names.
Marko Kreen [Tue, 27 Apr 2010 12:43:16 +0000 (15:43 +0300)]
refresh libusual, add WFLAGS to CFLAGS
Marko Kreen [Tue, 27 Apr 2010 12:42:17 +0000 (15:42 +0300)]
pgqd: fix help string, detect --help
Marko Kreen [Tue, 27 Apr 2010 10:41:49 +0000 (13:41 +0300)]
Require [londiste3] in londiste config.
Marko Kreen [Tue, 27 Apr 2010 10:39:09 +0000 (13:39 +0300)]
install: add suffix '3' to scripts that conflict with skytools 2
Marko Kreen [Mon, 12 Apr 2010 11:35:04 +0000 (14:35 +0300)]
refresh libusual
Marko Kreen [Fri, 12 Mar 2010 13:33:01 +0000 (15:33 +0200)]
refresh libusual, sync pgqd with changes in pgsocket
Marko Kreen [Fri, 12 Mar 2010 13:14:16 +0000 (15:14 +0200)]
pgq upgrade: missed few obsoleted functions
Marko Kreen [Fri, 12 Mar 2010 13:03:31 +0000 (15:03 +0200)]
Makefile: add configure.ac -> lib/m4/usual.m4 dependency
Marko Kreen [Fri, 12 Mar 2010 13:02:46 +0000 (15:02 +0200)]
pgq: 2.1.x to 3.0 upgrade script
Marko Kreen [Fri, 12 Mar 2010 12:17:31 +0000 (14:17 +0200)]
skytools.parse_pgarray(): ignore dimension prefix
Marko Kreen [Fri, 12 Mar 2010 12:16:07 +0000 (14:16 +0200)]
pgqd: Add switch to show template config.
Martin Pihlak [Fri, 5 Feb 2010 13:56:19 +0000 (15:56 +0200)]
Fix slave_cleanup() so that partial files are not prematurely removed.
Marko Kreen [Tue, 19 Jan 2010 13:28:03 +0000 (15:28 +0200)]
pgq/triggers: sprintf->snprintf
Marko Kreen [Fri, 15 Jan 2010 15:39:57 +0000 (17:39 +0200)]
pgq/triggers: Fix crash in case invalidate happens from signal handler.
Currently code assumed the invalidate happens only from per-query checks,
but this seems not to be the case.
Fix it by moving reset code out from invalidate callback.
Also old code seemed to leak htab per full reset, because it assumed
to be located under cache context, but init code did not assign it there.
Thanks to Andrew Dunstan for the report.
Martin Pihlak [Tue, 29 Dec 2009 11:32:15 +0000 (13:32 +0200)]
Redundant pg_auth file synch removed. By Mark Kirkwood.
Marko Kreen [Fri, 11 Dec 2009 14:57:17 +0000 (16:57 +0200)]
New python module: skytools.timeutil
ATM contains FixedOffsetTimezone class and parse_iso_timestamp()
function, which are sadly missing from core Python.
Marko Kreen [Fri, 11 Dec 2009 14:21:29 +0000 (16:21 +0200)]
refresh libusual
Marko Kreen [Sat, 5 Dec 2009 16:20:06 +0000 (18:20 +0200)]
sql/ticker: use usual/pgsocket for connection handling
the connection.c was already generalized and moved to libusual.
make the ticker use it now.
Marko Kreen [Fri, 4 Dec 2009 16:19:00 +0000 (18:19 +0200)]
fix londiste import
Marko Kreen [Fri, 4 Dec 2009 15:50:36 +0000 (17:50 +0200)]
temporarily install only minimal number of scripts
Marko Kreen [Fri, 4 Dec 2009 15:28:50 +0000 (17:28 +0200)]
pgq/ticker: fix leaks
- make connection.c responsible for freeing PGresult
- free strlist
- make SIGINT free allocated resources
Marko Kreen [Fri, 4 Dec 2009 11:46:58 +0000 (13:46 +0200)]
pgq/triggers: tag pgq.logtriga() as obsolete.
Plus few other docstring cleanups.
Marko Kreen [Fri, 4 Dec 2009 11:26:03 +0000 (13:26 +0200)]
pgq_coop: test if main consumer has batch open
Marko Kreen [Fri, 4 Dec 2009 11:25:12 +0000 (13:25 +0200)]
fix qadmin todo items
Marko Kreen [Thu, 3 Dec 2009 15:48:10 +0000 (17:48 +0200)]
DBScript: move self.args check for config to load_config()
This allows config-less scripts to override it.
Marko Kreen [Thu, 3 Dec 2009 15:27:53 +0000 (17:27 +0200)]
DBScript.run_func_safely: stop playing with prefer_looping
Precalculating 'prefer_looping' does not work as the parameters
may be changed inside called function.
Marko Kreen [Thu, 3 Dec 2009 15:13:52 +0000 (17:13 +0200)]
DBscript.sleep(): wrapper around time.sleep()
This will allow smarter handling of sleep time in the future.
Eg. wake up on notice from db.
Marko Kreen [Thu, 3 Dec 2009 14:45:26 +0000 (16:45 +0200)]
DBScript: quick exit on MemoryError
Marko Kreen [Thu, 3 Dec 2009 14:44:37 +0000 (16:44 +0200)]
skytools.connect_database: avoid tuning keepalive on unix socket
Marko Kreen [Thu, 3 Dec 2009 14:44:02 +0000 (16:44 +0200)]
skytools.Config: allow missing filename
Marko Kreen [Fri, 27 Nov 2009 09:59:04 +0000 (11:59 +0200)]
Merge remote branch 'martin/master'
Martin Pihlak [Fri, 27 Nov 2009 09:34:23 +0000 (11:34 +0200)]
pgq.sqltriga/pgq.logutriga now fire in origin and replica roles.
This allows 'ENABLE ALWAYS' and 'ENABLE REPLICA' triggers to
fire on the target side. Previous behaviour was to only fire in
origin role.
Martin Pihlak [Fri, 27 Nov 2009 09:09:04 +0000 (11:09 +0200)]
Merge branch 'master' of git://github.com/markokr/skytools-dev
Marko Kreen [Tue, 24 Nov 2009 15:43:33 +0000 (17:43 +0200)]
qadmin: parser cleanup, make * optional.
Marko Kreen [Tue, 24 Nov 2009 15:16:41 +0000 (17:16 +0200)]
sql/pgq: make pgq.logutriga() ignore UPDATE when only ignored fields change
previously it behaved differently from sqltriga, as it did not need
to analyze which field change. but it's better if it acts like
sqltriga when field ignoring is used.
Marko Kreen [Tue, 24 Nov 2009 14:54:40 +0000 (16:54 +0200)]
sql/pgq: update regtest for get_batch_cursor() change
Marko Kreen [Tue, 24 Nov 2009 13:55:09 +0000 (15:55 +0200)]
psycopgwrapper: Activate TCP keepalive on database connections
Turn on keepalive by default, to avoid hanged scripts in case of
network problems.
Also tune the keepalive timeouts smaller, on Linux at least,
so that the error happens after 5 min blackout.
(4 min idle + 4x15sec keepalive pings)
Martin Pihlak [Fri, 6 Nov 2009 08:57:06 +0000 (10:57 +0200)]
Merge branch 'master' of git://github.com/markokr/skytools-dev