Sergey Burladyan [Thu, 10 May 2012 18:06:18 +0000 (21:06 +0300)]
walmgr: fix backup from slave
Current version improperly remove needed WAL files when creating backup from slave.
The minimum WAL file is file with REDO record, not with latest checkpoint itself.
Marko Kreen [Tue, 13 Mar 2012 14:29:07 +0000 (16:29 +0200)]
Fix typo in NEWS
Marko Kreen [Tue, 13 Mar 2012 08:14:46 +0000 (10:14 +0200)]
v2.1.13
Marko Kreen [Tue, 13 Mar 2012 08:04:41 +0000 (10:04 +0200)]
Make C modules compile on Postgres 9.2
Marko Kreen [Tue, 13 Mar 2012 08:03:55 +0000 (10:03 +0200)]
Make sql/pgq/Makefile properly pass subdir failures
Marko Kreen [Mon, 6 Feb 2012 11:20:57 +0000 (13:20 +0200)]
Use symbolic isolation level constants for psycopg
Psycopg 2.4.2 and 2.4.3 had shuffled the constants
around thus causing data corruption during initial copy.
Psycopg 1.x used numeric constants as part of public api,
thus Skytools was written with numeric constants.
Psycopg current upstream forgot this fact and changed
them freely. The upstream change is rollbacked in 2.4.4.
Convert Skytools to use symbolic constants if possible,
as those are better API and also making it work with
problematic Psycopg versions.
Also use "repeatable read" instead "serializable"
as "serializable" changed meaning in 9.1 and we
want the old meaning.
Marko Kreen [Fri, 18 Nov 2011 09:08:35 +0000 (11:08 +0200)]
pgq: fix unnecessary failures in regtests
Marko Kreen [Tue, 15 Nov 2011 22:49:38 +0000 (00:49 +0200)]
pgq.triggers: Fix potential rare crash.
The bad hash_search(HASH_ENTER) + SPI_execute() pattern
is used here also. Fix it by always properly initializing
the info structure.
[backport from 3.0]
Marko Kreen [Tue, 15 Nov 2011 22:36:55 +0000 (00:36 +0200)]
pgq.insert_event: Fix rare crash
If hash_search(HASH_ENTER) succeeds, but make_plan() fails,
due to statement_timeout/deadlock, then HTAB entry will
contain invalid values which leads to crash on next call.
Fix it by always fully initializing struct before calling make_plan().
Debugged-by: Martin Pihlak
[backport from 3.0]
Sébastien Lardière [Tue, 15 Nov 2011 21:52:51 +0000 (23:52 +0200)]
londiste add-table: make trigger check sql 9.1-compatible
Steve Singer [Thu, 10 Mar 2011 21:16:32 +0000 (16:16 -0500)]
Move the pg_stop_backup() into a finally: block.
Some instances were reported where the base backup failed with some issue
but pg_stop_backup() hadn't been called and had to be called manually.
This should make that less likely
Steve Singer [Thu, 10 Mar 2011 21:26:53 +0000 (16:26 -0500)]
Add support for detecting stale locks and releasing them
instead of aborting
Martin Pihlak [Thu, 13 Jan 2011 13:48:21 +0000 (15:48 +0200)]
remove accidental pkgloader import from walmgr
Martin Pihlak [Thu, 13 Jan 2011 13:46:56 +0000 (15:46 +0200)]
Synch walmgr changes from 3.0 branch.
Dimitri Fontaine [Mon, 15 Nov 2010 16:52:50 +0000 (17:52 +0100)]
Bugfix psycopgwrapper connect_database() to open a cursor before using it
Marko Kreen [Wed, 10 Nov 2010 13:30:21 +0000 (15:30 +0200)]
v2.1.12
Marko Kreen [Wed, 10 Nov 2010 13:28:17 +0000 (15:28 +0200)]
doc/makefile: fixman does not seem to be needed with newer asciidoc/xmlto
Marko Kreen [Wed, 10 Nov 2010 13:23:38 +0000 (15:23 +0200)]
drop old crap from todo.txt
Marko Kreen [Tue, 5 Oct 2010 10:41:07 +0000 (10:41 +0000)]
londiste.version(): bump version to 2.1.12
Marko Kreen [Tue, 5 Oct 2010 10:38:56 +0000 (10:38 +0000)]
more stuff for 2.1.12rc2
Marko Kreen [Tue, 5 Oct 2010 10:31:27 +0000 (10:31 +0000)]
configure: turn asciidoc/xmlto always on when building from CVS/GIT
Forgetting to do so results in build errors, which is annoying.
Backport from 3.0
Marko Kreen [Tue, 5 Oct 2010 10:26:13 +0000 (10:26 +0000)]
txid: on 8.3+ make sure the txid.sql is empty.
Mainly help other regression tests, to not install
wrong txid funcs and avoids errors due to missing file.
Marko Kreen [Tue, 5 Oct 2010 10:23:22 +0000 (10:23 +0000)]
londiste.link: add missing quoting
These functions are unused and obsolete, thus missed
the last round of quoting fixes.
Marko Kreen [Tue, 5 Oct 2010 10:04:38 +0000 (10:04 +0000)]
v2.1.12rc2
Marko Kreen [Mon, 4 Oct 2010 14:34:38 +0000 (14:34 +0000)]
skytools.dbstruct: Support version-specific SQL
Use it to have different SQL for Postgres 9.0
Marko Kreen [Mon, 4 Oct 2010 14:24:28 +0000 (14:24 +0000)]
psycopgwrapper: make sure .server_version is set
Backport from 3.0
Marko Kreen [Mon, 4 Oct 2010 13:26:25 +0000 (13:26 +0000)]
deb90 target
Patch by Sébastien Lardière
Martin Pihlak [Tue, 28 Sep 2010 07:18:48 +0000 (07:18 +0000)]
adjustments for PostgreSQL 9.0 - consider wal_level during setup/stop.
Marko Kreen [Wed, 22 Sep 2010 13:51:46 +0000 (13:51 +0000)]
v2.1.12rc1
Marko Kreen [Wed, 8 Sep 2010 10:26:14 +0000 (10:26 +0000)]
Relnotes for 2.1.12 (thus far)
Marko Kreen [Wed, 8 Sep 2010 10:21:40 +0000 (10:21 +0000)]
logutriga regtest: drop old function before creating custom one
Martin Pihlak [Tue, 27 Jul 2010 09:20:24 +0000 (09:20 +0000)]
- "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.
- Introduce a 'slave_pg_xlog' configuration variable. This
allows master and slave pg_xlog files to be in different
locations. During restore this directory is symlinked to
slave pg_xlog. Patch from Steve Singer.
- Introduce a 'backup_datadir' configuration variable to
control whether the slave data directory is kept or
overwritten during restore. Patch from Steve Singer.
Marko Kreen [Tue, 20 Jul 2010 11:39:57 +0000 (11:39 +0000)]
londiste copy: save & restore index clustering info.
Patch by André Malo, applied with minor cleanup
Marko Kreen [Fri, 25 Jun 2010 08:45:58 +0000 (08:45 +0000)]
londiste: dont send new table/seq list into queue on add
it is not functinally useful, only causes surprise removal
if several 'provider add'+'subscriber add' pairs are
done sequentially quickly enough.
Marko Kreen [Fri, 25 Jun 2010 08:38:41 +0000 (08:38 +0000)]
londiste: make trigger handling compat with 9.0
Marko Kreen [Fri, 25 Jun 2010 07:17:40 +0000 (07:17 +0000)]
londiste repair: use subprocess instead os.popen4 where available
Patch by Shoaib Mir, applied with minor cleanups.
Marko Kreen [Fri, 18 Jun 2010 15:09:05 +0000 (15:09 +0000)]
9.0 compile fix - ScanKeywordLookup has 3 args now
Original patch by Devrim GÜNDÜZ, but replaced autoconf
checking with version checking.
Marko Kreen [Fri, 12 Mar 2010 12:12:44 +0000 (12:12 +0000)]
Fix sys.path hack not to interpret file 'londiste' as module.
Marko Kreen [Wed, 3 Mar 2010 13:44:03 +0000 (13:44 +0000)]
pgqadm: Remove unnecessary JOIN in refresh_queues().
Patch by Artyom Nosov.
Marko Kreen [Wed, 3 Feb 2010 16:29:43 +0000 (16:29 +0000)]
tag 2.1.11
Marko Kreen [Wed, 3 Feb 2010 16:17:05 +0000 (16:17 +0000)]
londiste repair: force LC_ALL=C to get sane sorting
Marko Kreen [Fri, 15 Jan 2010 15:52:26 +0000 (15:52 +0000)]
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:30:05 +0000 (11:30 +0000)]
Redundant pg_auth file synch removed. By Mark Kirkwood.
Marko Kreen [Fri, 4 Dec 2009 11:21:12 +0000 (11:21 +0000)]
news cleanup
Marko Kreen [Fri, 13 Nov 2009 22:19:58 +0000 (22:19 +0000)]
fix "copy from stdout"
Marko Kreen [Tue, 3 Nov 2009 12:42:38 +0000 (12:42 +0000)]
convert server_version_num to int
Marko Kreen [Fri, 30 Oct 2009 16:06:40 +0000 (16:06 +0000)]
prepare for 2.1.11rc1
Marko Kreen [Fri, 30 Oct 2009 15:43:23 +0000 (15:43 +0000)]
debian/: work around --install-layout related braindamage
Additionally, allow 'make debXX PYTHON=YY' by passing the PYTHON value
through various configure steps.
Marko Kreen [Fri, 30 Oct 2009 14:14:57 +0000 (14:14 +0000)]
londiste.subscriber_get_queue_valid_pending_fkeys: stricter check
Disallow automatic restore of fkey to unreplicated table.
Also to replicated table coming from other queue.
Otherwise there is possibility of restoring fk to unsynced table.
Based on report & patch by Hannu Krosing.
Marko Kreen [Fri, 30 Oct 2009 14:03:41 +0000 (14:03 +0000)]
launch_copy: use signal_pidfile instead of path check
Otherwise replay will stall behind stale pidfile.
Marko Kreen [Wed, 28 Oct 2009 14:52:06 +0000 (14:52 +0000)]
pgq.Event: make retry count available as field.
Add 'ev_retry', 'retry' to field map.
Nico Mandery
Marko Kreen [Tue, 27 Oct 2009 13:06:41 +0000 (13:06 +0000)]
londiste: use TRUNCATE ONLY on 8.4+
Plain TRUNCATE was changed to also operate on child tables in 8.4.
Patch by Sergey Konoplev
Marko Kreen [Fri, 23 Oct 2009 12:01:55 +0000 (12:01 +0000)]
Remove ONLY from ADD CONSTRAINT.
Parent table cannot have contraints that the childs do not have.
Marko Kreen [Fri, 23 Oct 2009 11:52:39 +0000 (11:52 +0000)]
Fix deprecationwarning on python 2.6
Seems that for some mystic reason dir(__builtins__) behavour
depends whether it's called in module or not. (in 2.6)
Remote it
Marko Kreen [Wed, 14 Oct 2009 13:54:16 +0000 (13:54 +0000)]
skytools.DBScript: safer pidfile writing
- signal_pidfile: Clarify ValueError error message. Thrown usually
on empty pidfiles, the error messega will now mention the pidfile name.
- run_single_process: restructure pidfile writing, so that
the pidfile is removed if .write() failed, but not when open() failed.
This should avoid the chance that empty pidfiles are hanging around.
Martin Pihlak [Tue, 6 Oct 2009 14:26:21 +0000 (14:26 +0000)]
Fix walmgr not to copy pg_xlog and pg_log contents.
Marko Kreen [Thu, 1 Oct 2009 11:33:19 +0000 (11:33 +0000)]
Add --version switch to all scripts.
Based on patch by Hannu Krosing
Marko Kreen [Thu, 1 Oct 2009 11:21:47 +0000 (11:21 +0000)]
quick testcase for inheritance
Marko Kreen [Thu, 1 Oct 2009 10:44:08 +0000 (10:44 +0000)]
londiste: make copy unlink inherited table from it's parents
Otherwise we cannot drop constraints.
Unlink from childs is not needed, so they are left as-is.
Patch by Hannu Krosing
Marko Kreen [Mon, 21 Sep 2009 11:32:42 +0000 (11:32 +0000)]
sql/pgq: trigger fixes
- pgq.logutriga() did not put custom pkey= value into events.
- pgq.logutriga() and pgq.sqltriga() did allow UPDATE and DELETE
on tables without pkey, running into SQL errors downstream.
They should throw error in such case.
Marko Kreen [Mon, 21 Sep 2009 11:29:34 +0000 (11:29 +0000)]
pgq: "make test" should install also
Dimitri Fontaine [Thu, 17 Sep 2009 09:06:24 +0000 (09:06 +0000)]
little doc typo (--excect-sync)
Dimitri Fontaine [Thu, 17 Sep 2009 09:04:46 +0000 (09:04 +0000)]
pgq.maint_retry_events(): lock table to allow only single mover
Martin Pihlak [Tue, 15 Sep 2009 12:31:27 +0000 (12:31 +0000)]
Resync walmgr from skytools-dev.
This adds:
- symlink handling for pg_log and pg_xlog
- archive_command set to "/bin/true" for restored postgresql.conf
Marko Kreen [Mon, 31 Aug 2009 13:48:54 +0000 (13:48 +0000)]
tag v2.1.10
Marko Kreen [Mon, 17 Aug 2009 12:53:30 +0000 (12:53 +0000)]
tag 2.1.10rc1
Marko Kreen [Mon, 17 Aug 2009 12:51:26 +0000 (12:51 +0000)]
relnotes for 2.1.10
Marko Kreen [Mon, 17 Aug 2009 12:25:32 +0000 (12:25 +0000)]
londiste provider add: detect and warn about dangerous triggers
Postgres runs triggers in alphabetical order, warn about after triggers
that run before londiste one.
Marko Kreen [Mon, 17 Aug 2009 07:54:54 +0000 (07:54 +0000)]
docs: mention log_size, log_count dbscript options
Martin Pihlak [Tue, 21 Jul 2009 11:22:18 +0000 (11:22 +0000)]
Create pg_xlog/archive_status directory for slave restore.
Patch by Mark Kirkwood.
Marko Kreen [Mon, 6 Jul 2009 12:57:24 +0000 (12:57 +0000)]
setval() also needs quoted name
Marko Kreen [Mon, 6 Jul 2009 11:55:14 +0000 (11:55 +0000)]
propely quote seq names when fetching state
Marko Kreen [Fri, 29 May 2009 10:21:32 +0000 (10:21 +0000)]
londiste: add-seq --all should ignore pgq, londiste and temp schemas
Before it also added internal seqs which was not good idea.
Reported by Günther Jedenastik
Marko Kreen [Tue, 28 Apr 2009 22:05:18 +0000 (22:05 +0000)]
Avoid use of 'as', its keyword in python 2.6/3.0
Marko Kreen [Thu, 16 Apr 2009 07:41:15 +0000 (07:41 +0000)]
londiste: make provider add-seq detect existing seqs
Before it got ugly crash.
Also call notify only if some seq was actually added.
Patch by Pierre-Emmanuel André, applied with minor changes.
Marko Kreen [Fri, 20 Mar 2009 08:17:45 +0000 (08:17 +0000)]
--with-asciidoc: survive missing asciidoc or xmlto
Marko Kreen [Fri, 20 Mar 2009 08:16:46 +0000 (08:16 +0000)]
dont try to build xml if xmlto is not installed
Marko Kreen [Fri, 20 Mar 2009 08:07:51 +0000 (08:07 +0000)]
update the deps list, mention --with-asciidoc
Marko Kreen [Fri, 20 Mar 2009 08:00:31 +0000 (08:00 +0000)]
deb: add rsync as dependency to skytools package
Marko Kreen [Fri, 13 Mar 2009 13:51:29 +0000 (13:51 +0000)]
support debs for 8.4
Marko Kreen [Fri, 13 Mar 2009 13:45:05 +0000 (13:45 +0000)]
tag 2.1.9
Marko Kreen [Fri, 13 Mar 2009 13:30:10 +0000 (13:30 +0000)]
Add missing includes for 8.4.
Patch from Devrim Gündüz.
Marko Kreen [Thu, 5 Mar 2009 15:33:43 +0000 (15:33 +0000)]
mention identified quoting fix
Marko Kreen [Thu, 5 Mar 2009 15:32:52 +0000 (15:32 +0000)]
Quote identifiers starting with number.
Patch by Andrew Dunstan.
Marko Kreen [Thu, 26 Feb 2009 14:45:34 +0000 (14:45 +0000)]
tag 2.1.9rc1
Marko Kreen [Thu, 26 Feb 2009 13:08:55 +0000 (13:08 +0000)]
String "no" means missing asciidoc, not ""
Now the logic works properly - asciidoc version
and xmlto are not checked if ASCIIDOC=no.
Martin Pihlak [Thu, 19 Feb 2009 08:17:17 +0000 (08:17 +0000)]
Added a walmgr.py note about config files backup.
Martin Pihlak [Thu, 19 Feb 2009 07:53:50 +0000 (07:53 +0000)]
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.
Dimitri Fontaine [Tue, 10 Feb 2009 10:04:48 +0000 (10:04 +0000)]
Update NEWS file wrt recent Martin's merge from CVS to prepare 2.1.9
Martin Pihlak [Mon, 9 Feb 2009 12:51:49 +0000 (12:51 +0000)]
tests updated to work with 8.3
Martin Pihlak [Mon, 9 Feb 2009 12:39:46 +0000 (12:39 +0000)]
Synched with HEAD.
Martin Pihlak [Mon, 9 Feb 2009 12:19:43 +0000 (12:19 +0000)]
Synched with HEAD.
Dimitri Fontaine [Wed, 4 Feb 2009 14:59:38 +0000 (14:59 +0000)]
Documenting pgq_lazy_fetch londiste config option
Marko Kreen [Mon, 2 Feb 2009 11:51:30 +0000 (11:51 +0000)]
preliminary notes for 2.1.9
Marko Kreen [Mon, 26 Jan 2009 14:46:08 +0000 (14:46 +0000)]
magic_insert: be more flexible about whats dict
Marko Kreen [Mon, 26 Jan 2009 13:59:10 +0000 (13:59 +0000)]
skytools.DBStruct: missing DEFAULT kw for table column
Marko Kreen [Mon, 26 Jan 2009 13:47:06 +0000 (13:47 +0000)]
Fix crash if cache invalidation happens in bad moment.
> There is a race condition between the (re-)initialization
> of the global tbl_cache_ctx structure and the code making
> use of it. It may vanish in between, when the pkey_plan
> is executed and the cache callback fires.
Patch by Florian Wesch and André Malo
Applied with minor modification - instead reloading only
on full cache reset, reload always as invalidation
may happen also per-table basis.
Marko Kreen [Mon, 26 Jan 2009 13:32:08 +0000 (13:32 +0000)]
Fix 'uninitialized variable' warning and potentially wrong code.
Report and original patch by Götz Lange and André Malo.
Marko Kreen [Wed, 7 Jan 2009 15:37:15 +0000 (15:37 +0000)]
fix quoting for constraint add
Marko Kreen [Fri, 2 Jan 2009 09:03:49 +0000 (09:03 +0000)]
missing quoting for truncate