slony1-engine.git
15 years agoFix for bug #138
Steve Singer [Mon, 23 Aug 2010 17:01:55 +0000 (13:01 -0400)]
Fix for bug #138
Fix synatx in autoconf m4 file to define GROFF
(cherry picked from commit b4f202e3f67e66a311a4a32c6392bb2be3bc05a2)

Conflicts:

RELEASE

15 years ago check fd for negatvie values. Bug 104 proper fix
Steve Singer [Mon, 23 Aug 2010 16:56:32 +0000 (12:56 -0400)]
 check fd for negatvie values. Bug 104 proper fix
(cherry picked from commit 65af4b6002e945c3df977d12b8613b98a379113a)

15 years agogenerated SGML should be ignored by git
Christopher Browne [Tue, 17 Aug 2010 17:12:33 +0000 (13:12 -0400)]
generated SGML should be ignored by git

15 years agoRemove reference to logswitch_weekly(), per email from TAKATSUKA Haruka <harukat...
Christopher Browne [Tue, 17 Aug 2010 17:11:49 +0000 (13:11 -0400)]
Remove reference to logswitch_weekly(), per email from TAKATSUKA Haruka <harukat@sraoss.co.jp> 2010-06-24

15 years agoBug #79 - add better documentation about configure options
Christopher Browne [Mon, 16 Aug 2010 21:24:19 +0000 (17:24 -0400)]
Bug #79 - add better documentation about configure options

15 years agoMaking ducttape scripts executable again.
Jan Wieck [Sat, 14 Aug 2010 03:45:01 +0000 (23:45 -0400)]
Making ducttape scripts executable again.

15 years agoRemoved definition of PGAUTODOC. The variable is set in Makefile.global
Jan Wieck [Fri, 13 Aug 2010 19:42:43 +0000 (15:42 -0400)]
Removed definition of PGAUTODOC. The variable is set in Makefile.global
by configure.

15 years agoMerge branch 'master', remote branch 'origin'
Jan Wieck [Fri, 13 Aug 2010 19:34:10 +0000 (15:34 -0400)]
Merge branch 'master', remote branch 'origin'

15 years agoMore removals of references to TABLE ADD KEY
Christopher Browne [Fri, 13 Aug 2010 19:29:48 +0000 (15:29 -0400)]
More removals of references to TABLE ADD KEY

15 years agocleanup event function HTML should be ignored
Christopher Browne [Fri, 13 Aug 2010 19:29:06 +0000 (15:29 -0400)]
cleanup event function HTML should be ignored

15 years agoTABLE ADD KEY was still indirectly referenced in the documentation in several places...
Christopher Browne [Fri, 13 Aug 2010 19:16:25 +0000 (15:16 -0400)]
TABLE ADD KEY was still indirectly referenced in the documentation in several places.  Cleaning that out

15 years agoMerge branch 'master' into bug-146-HEAD
Christopher Browne [Thu, 12 Aug 2010 17:25:20 +0000 (13:25 -0400)]
Merge branch 'master' into bug-146-HEAD

Conflicts:
src/backend/slony1_funcs.sql
tests/test1/generate_dml.sh

Merged HEAD changes

15 years agoMerge branch 'bug148-head'
Christopher Browne [Thu, 12 Aug 2010 17:08:13 +0000 (13:08 -0400)]
Merge branch 'bug148-head'

15 years agoBug 42:
Steve Singer [Wed, 11 Aug 2010 21:41:18 +0000 (17:41 -0400)]
Bug 42:

The problem is that postgresql_autodoc produces XML but the documentation is
processed using SGML.  SGML does not process the empty tag notation <xref .../>
correctly.  Instead it should be <xref ...> without slash.  I have attached a
patch that fixes up the XML to be valid SGML so the documentation comes out
right.

Patch by Peter Eisentraut

15 years agoMerge branch 'master' of ssh://git.postgresql.org/slony1-engine
Christopher Browne [Wed, 11 Aug 2010 21:36:39 +0000 (17:36 -0400)]
Merge branch 'master' of ssh://git.postgresql.org/slony1-engine

15 years agoRemoving admin guide entry for TABLE ADD KEY since the command
Steve Singer [Wed, 11 Aug 2010 21:13:36 +0000 (17:13 -0400)]
Removing admin guide entry for TABLE ADD KEY since the command
no longer exists.
See bug 147
(cherry picked from commit a2c1cd68c242bc8833b599bb7edb8aef730ed27f)

15 years agoBug 147
Steve Singer [Wed, 11 Aug 2010 21:12:23 +0000 (17:12 -0400)]
Bug 147
Remove TABLE ADD KEY from altperl scripts.
Slony-I 2.0.x does not support TABLE ADD KEY so we should not
be generating slonik scripts that try and use it.

Instead generate errors if we find instances where it is required
(cherry picked from commit 9d827a40bf3a1fdaee599628c439870c7d410848)

Conflicts:

RELEASE

15 years ago Fix for bug #127.
Steve Singer [Wed, 11 Aug 2010 21:00:38 +0000 (17:00 -0400)]
Fix for bug #127.
    Generation of syns on leaf nodes (nodes that are not set origins) were disabled some time ago. This reverts
    that commit and re-enables them
(cherry picked from commit 572581c4d80fd95206aed1910fb22d7119aa4be4)

15 years ago Fix for Bug #120.
Steve Singer [Wed, 11 Aug 2010 20:58:56 +0000 (16:58 -0400)]
Fix for Bug #120.
    Call enableNode as part of the CLONE NODE processing. This will start the worker thread for the cloned node.
(cherry picked from commit 0d1a293927805e5728c39f8000031bd698ab49c4)

15 years agoRemove sl_log_1/2 from list of tables to be vacuumed, per comment from Jan in bug #78
Christopher Browne [Wed, 11 Aug 2010 16:29:24 +0000 (12:29 -0400)]
Remove sl_log_1/2 from list of tables to be vacuumed, per comment from Jan in bug #78

15 years agoBug #78
Christopher Browne [Wed, 11 Aug 2010 16:23:52 +0000 (12:23 -0400)]
Bug #78
http://www.slony.info/bugzilla/show_bug.cgi?id=78

"Christopher Browne 2010-06-02 13:20:53 PDT
We should deprecate the "cleanup_deletelogs" parameter in 2.0.5 or so."

15 years agoBug #148
Christopher Browne [Tue, 10 Aug 2010 20:33:29 +0000 (16:33 -0400)]
Bug #148
When ShouldSlonyVacuumTable() asks if a table should be vacuumed, the first test should be:
  Does the table exist altogether???
If not, then there's surely no need to vacuum it
'

15 years agoBug #142 - Minimize security profile
Christopher Browne [Mon, 9 Aug 2010 19:59:19 +0000 (15:59 -0400)]
Bug #142 - Minimize security profile

The two places where superuser access is *truly required* have been
shifted to functions where they could readily be:
 a) Turned into security definers, and
 b) Locked down so only the slony management user(s) can run them

Also added documentation on this to "best practices."

15 years agoAdditional HTML files to be ignored as they are generated from doc tree
Christopher Browne [Mon, 9 Aug 2010 19:58:44 +0000 (15:58 -0400)]
Additional HTML files to be ignored as they are generated from doc tree

15 years ago Fix for bug # 122
Steve Singer [Fri, 6 Aug 2010 18:13:47 +0000 (14:13 -0400)]
Fix for bug # 122

    Print a better error message when using a receiver node id that does not exist
(cherry picked from commit 03db9e0b2c1625aafdaedbf6bf3730c8889cbb2f)

15 years agoBug #141 - removing alterTableRestore()
Christopher Browne [Thu, 5 Aug 2010 16:02:30 +0000 (12:02 -0400)]
Bug #141 - removing alterTableRestore()

- Applying this to HEAD

15 years agoMerge branch 'master' of git://git.postgresql.org/git/slony1-engine into bug-146...
Christopher Browne [Wed, 4 Aug 2010 20:14:00 +0000 (16:14 -0400)]
Merge branch 'master' of git://git.postgresql.org/git/slony1-engine into bug-146-HEAD

Conflicts:
config.h.in

15 years agoInitial swing at removing cleanup_deletelogs
Christopher Browne [Wed, 4 Aug 2010 20:13:19 +0000 (16:13 -0400)]
Initial swing at removing cleanup_deletelogs

15 years agoMake scripts executable
Christopher Browne [Wed, 4 Aug 2010 20:12:33 +0000 (16:12 -0400)]
Make scripts executable

15 years agoChanging version number
Christopher Browne [Wed, 4 Aug 2010 20:11:41 +0000 (16:11 -0400)]
Changing version number

15 years agoMake shell scripts executable - expected by tests
Christopher Browne [Wed, 4 Aug 2010 20:08:21 +0000 (16:08 -0400)]
Make shell scripts executable - expected by tests

15 years agoSet version number to 2.1.0 for HEAD
Christopher Browne [Wed, 4 Aug 2010 20:07:58 +0000 (16:07 -0400)]
Set version number to 2.1.0 for HEAD

15 years agoAdd more generated files to .gitignore
Christopher Browne [Wed, 4 Aug 2010 20:06:49 +0000 (16:06 -0400)]
Add more generated files to .gitignore

15 years agoAdd FAQ describing recent SSL-related problem experienced by Karl
Christopher Browne [Wed, 4 Aug 2010 18:58:31 +0000 (14:58 -0400)]
Add FAQ describing recent SSL-related problem experienced by Karl
Denninger

15 years agoDocumentation updates. Mostly typos and minor corrections.
Steve Singer [Wed, 4 Aug 2010 14:13:48 +0000 (10:13 -0400)]
Documentation updates. Mostly typos and minor corrections.
These changes are based on a list of issues submitted by
Tomonari Katsumata, NTT Open Source Software Center

Thanks

15 years agoFixed some broken logic in failedNode()
Steve Singer [Thu, 29 Jul 2010 15:37:44 +0000 (11:37 -0400)]
Fixed some broken logic in failedNode()

It apparently never supported failing over to nodes that are not
a direct subscriber to the failed node.

Jan
(cherry picked from commit 2705654ec3dcb0381afef591756170c6de8f8ce2)

Conflicts:

src/backend/slony1_funcs.sql

15 years agoUpdating version number to 2.0.4
Steve Singer [Wed, 28 Jul 2010 21:12:32 +0000 (17:12 -0400)]
Updating version number to 2.0.4

No longer generate warning of a unsupported version with Pg 9.0
(cherry picked from commit 2d645b3fa1716d649345e8edbb27b188d9505728)

Conflicts:

config.h.in
src/backend/slony1_funcs.sql
src/slonik/slonik.c

15 years agoBug #95 - http://www.slony.info/bugzilla/show_bug.cgi?id=95
Steve Singer [Wed, 28 Jul 2010 21:09:27 +0000 (17:09 -0400)]
Bug #95 - slony.info/bugzilla/show_bug.cgi?id=95

There are two calls to the postgres function subscribeSet_int(integer, integer,
integer, boolean, boolean) in slony1-engine/src/slonik/slonik.c

Both calls do not pass in the last boolean input (the new OMIT COPY parameter)
and hence you get errors.  We have only seen it when using slonik_store_node
but looking at the code it could also happen in slonik_failed_node.
(cherry picked from commit ba90f82da5778648e53d0d742b1fa89901a794e8)

Conflicts:

src/slonik/slonik.c

15 years agoAdd in OMIT COPY option to SUBSCRIBE SET in support of upgrading from
Steve Singer [Wed, 28 Jul 2010 21:06:12 +0000 (17:06 -0400)]
Add in OMIT COPY option to SUBSCRIBE SET in support of upgrading from
elder Slony-I versions.
(cherry picked from commit dc3f318983213f8fb90eec0545e60dff61f1f55d)

Conflicts:

doc/adminguide/adminscripts.sgml
doc/adminguide/intro.sgml
doc/adminguide/slonyupgrade.sgml
src/backend/slony1_funcs.sql
src/slon/remote_worker.c
src/slonik/parser.y
src/slonik/scan.l
src/slonik/slonik.c
src/slonik/slonik.h
tests/run_test.sh

15 years agoPerform a va_copy and use the copy in the loop that uses va_args.
Steve Singer [Wed, 28 Jul 2010 20:27:19 +0000 (16:27 -0400)]
Perform a va_copy and use the copy in the loop that uses va_args.
You are not allowed to use va_args multiple times.

Fix for bug # 55

Patch submitted by Paul Cannon
(cherry picked from commit f98048352362c990d51a694583bfaa78736cd33b)

Conflicts:

src/slon/misc.c

15 years agoUpdating supportted Pg versions
Steve Singer [Wed, 28 Jul 2010 20:21:22 +0000 (16:21 -0400)]
Updating supportted Pg versions
(cherry picked from commit 1a5b4d6e2df472a7ae0889661ff81f4c8afeb486)

Conflicts:

INSTALL

15 years agoImprove comment about "missing function" - the problem could be that
Steve Singer [Wed, 28 Jul 2010 20:20:19 +0000 (16:20 -0400)]
Improve comment about "missing function" - the problem could be that
libpq wasn't found, not just that you're on some grossly ancient version
of PostgreSQL
(cherry picked from commit 8e510f21fa35358a1b50c5c3c60486c6c56c6fc6)

15 years agoRemove direct uses of yyleng and instead use the function yyget_leng()
Steve Singer [Wed, 28 Jul 2010 20:19:26 +0000 (16:19 -0400)]
Remove direct uses of yyleng and instead use the function yyget_leng()
More recent versions of flex have changed yyleng from an int to a size_t.
By using the function we will let the compiler do the conversion if required
on the function result.

We also add an explicit object for scan.o instead of including it at the
bottom of parser.y because we need to generate and include a header for
the scanner (scan.h) so we have the explicit(and correct) definitions of
the yyyget_leng() function.

A autoconf check to ensure that a version of flex with yyget_leng() is
available has also been added.
(cherry picked from commit b44f967e2c62c60f5a2448ce1c4d5afd878922bf)

Conflicts:

RELEASE
configure
configure.ac
src/slonik/Makefile
src/slonik/parser.y
src/slonik/scan.l
src/slonik/slonik.h
src/slony_logshipper/Makefile
src/slony_logshipper/parser.y
src/slony_logshipper/scan.l

15 years agoBug 140
Steve Singer [Thu, 22 Jul 2010 20:53:14 +0000 (16:53 -0400)]
Bug 140

The perl module is actually called DBD:Pg not DBI:Pg
Reported by Peter Eisentraut

15 years agoFix compile issues on win32
Steve Singer [Mon, 19 Jul 2010 14:29:04 +0000 (10:29 -0400)]
Fix compile issues on win32
Patch by Hiroshi Saito

15 years agoRemove all CVS ID tags obsolete in Git
Christopher Browne [Fri, 16 Jul 2010 22:25:24 +0000 (18:25 -0400)]
Remove all CVS ID tags obsolete in Git

15 years agoRemove configure, as it is a generated file
Christopher Browne [Fri, 16 Jul 2010 16:54:17 +0000 (12:54 -0400)]
Remove configure, as it is a generated file

15 years agoAdd reference to Bucardo-related tool
Christopher Browne [Fri, 16 Jul 2010 15:35:53 +0000 (11:35 -0400)]
Add reference to Bucardo-related tool

Per email from Aleksey Tsalolikhin <atsaloli.tech@gmail.com> on
mailing list.

15 years agoRevise release checklist to indicate Git-oriented procedures.
Christopher Browne [Fri, 16 Jul 2010 15:25:24 +0000 (11:25 -0400)]
Revise release checklist to indicate Git-oriented procedures.

Steps that talk about distclean cleaning out .cvsignore have been
removed, as this seems to be nonsense:

 a) It doesn't seem to be actually done in the makefiles
 b) It's certainly obsolete, as we're not using CVS anymore

15 years agoRevise .cvsignore files --> .gitignore
Christopher Browne [Fri, 16 Jul 2010 15:14:49 +0000 (11:14 -0400)]
Revise .cvsignore files --> .gitignore

In many cases, existing .cvsignore files need only be renamed.

In a few cases, new .gitignore files needed to be created as there
wasn't a .cvsignore file (e.g. - for doc/adminguide, src/parsestatements).

Some were missing material (e.g. - src/slon didn't have enough in it).

15 years agoRevise text about the growth of communications costs to temper wording
Christopher Browne [Fri, 9 Jul 2010 18:40:13 +0000 (18:40 +0000)]
Revise text about the growth of communications costs to temper wording
that has tended to lead to people saying wild things about Slony-I
performance.

15 years agoschemadoc.xml is a generated file, so remove it from SCM
Christopher Browne [Fri, 9 Jul 2010 18:38:24 +0000 (18:38 +0000)]
schemadoc.xml is a generated file, so remove it from SCM

15 years agoChange rules to generate schemadoc.xml automatically, and change "make clean"
Christopher Browne [Fri, 9 Jul 2010 18:37:43 +0000 (18:37 +0000)]
Change rules to generate schemadoc.xml automatically, and change "make clean"
to remove it.

15 years agofixing output message per report by Gurjeet Singh
Steve Singer [Fri, 9 Jul 2010 13:32:05 +0000 (13:32 +0000)]
fixing output message per report by Gurjeet Singh

15 years agoFix script name in help text.
Devrim GUNDUZ [Fri, 9 Jul 2010 07:10:08 +0000 (07:10 +0000)]
Fix script name in help text.

15 years agorelease sl_config_lock before sleeping
Steve Singer [Wed, 7 Jul 2010 14:45:27 +0000 (14:45 +0000)]
release sl_config_lock before sleeping

See bug # 135, slon appeared to be waiting to get a sl_config_lock
that the same slon process was already holding.
slon kept sleeping waiting for a sync to catch up.
Not holding the lock when we sleep should allow
other threads to obtain the lock.

Merged from 2.0

15 years agoLog shipping fixes
Steve Singer [Wed, 7 Jul 2010 14:39:22 +0000 (14:39 +0000)]
Log shipping fixes
-
-Proper fix for checking for the proper return code to indicate no files
are queued for processing. This will allow log_shipper to sleep waiting for
more work when no files are ready for processing.  The previous commit was
the wrong commit.

Merged from 2.0

15 years agoLog shipping fixes
Steve Singer [Wed, 7 Jul 2010 14:33:28 +0000 (14:33 +0000)]
Log shipping fixes
-slony1_dump.sh now generates a .sql file that restores in replica mode
so triggers don't fire.  It will also truncate tables before restoring
to them
-Check for the proper return code to indicate no files are queued for
processing. This will allow log_shipper to sleep waiting for more work
when no files are ready for processing.

Merged from 2.0

15 years agoIn 8.4 and above use TRUNCATE ONLY instead of TRUNCATE when
Steve Singer [Mon, 5 Jul 2010 15:06:04 +0000 (15:06 +0000)]
In 8.4 and above use TRUNCATE ONLY instead of TRUNCATE when
cleaning out tables before a subscription.  TRUNCATE ONLY
behaves as TRUNCTE did in 8.3.

This fixes bug # 118 - subscribing to a set with an inherited
table  where the inheriting table has a lower tab_id than the
parent table deletes all of the data in the parent table

Merged from 2.0 branch

15 years ago-Added slonik_add_node altperl script
Steve Singer [Wed, 30 Jun 2010 14:37:47 +0000 (14:37 +0000)]
-Added slonik_add_node altperl script

-Slonik_drop_node now takes an event node

-Changes to the message printed in slon_kill.

Patch by Gurjeet Singh
Merged from 2.0 branch

15 years agoFix for bug #43
Steve Singer [Wed, 30 Jun 2010 14:04:57 +0000 (14:04 +0000)]
Fix for bug #43
Use get_set more consistently in the perl tools.
Patch by Peter Eisentraut.

Merged from 2.0

15 years agoFix for bug #104
Steve Singer [Mon, 28 Jun 2010 15:46:29 +0000 (15:46 +0000)]
Fix for bug #104
Check for NULL file descriptors before performing actions on them.

Merging from 2.0 STABLE branch

15 years agoMemory leak fixes submittedb by Ulrich Weber
Steve Singer [Tue, 1 Jun 2010 15:15:33 +0000 (15:15 +0000)]
Memory leak fixes submittedb by Ulrich Weber
http://lists.slony.info/pipermail/slony1-hackers/2010-April/000321.html

Merged from REL_2_0_STABLE

15 years agoDocumentation clarification, submitted by singh.gurjeet@gmail.com
Steve Singer [Tue, 25 May 2010 13:29:21 +0000 (13:29 +0000)]
Documentation clarification, submitted by singh.gurjeet@gmail.com

15 years agoClarifying documentation to be clear that 'DROP SCHEMA' must be
Steve Singer [Mon, 17 May 2010 18:21:00 +0000 (18:21 +0000)]
Clarifying documentation to be clear that 'DROP SCHEMA' must be
used to drop the slony schema.

15 years agoThe variable name is wrong (syntax error on execution). Switched to correct
Steve Singer [Mon, 17 May 2010 17:16:29 +0000 (17:16 +0000)]
The variable name is wrong (syntax error on execution).  Switched to correct
variable name.

Merged from REL_2_0_STABLE branch

15 years agoBug # 119
Steve Singer [Thu, 13 May 2010 19:41:40 +0000 (19:41 +0000)]
Bug # 119

cloneNodeFinish() called updateRelOid() that was looking at tab_id in
sl_sequence but the column is named seq_id

Report/patch from Chirag Dave (cdave@ca.afilias.info)

Merge from REL_2_0_STABLE

15 years agoGet rid of *some* references to gborg, and point them to new website.
Devrim GUNDUZ [Mon, 3 May 2010 05:56:17 +0000 (05:56 +0000)]
Get rid of *some* references to gborg, and point them to new website.

15 years agoUpdate supported platforms list, and update mailing list URL
Devrim GUNDUZ [Mon, 3 May 2010 05:52:03 +0000 (05:52 +0000)]
Update supported platforms list, and update mailing list URL

15 years agoThe patch for an issue reported on the mailing list where
Jan Wieck [Fri, 30 Apr 2010 23:15:55 +0000 (23:15 +0000)]
The patch for an issue reported on the mailing list where
tuples with large rows where causing data corruption (reported
as invalid utf8 characters) because the memory was freed while
it was still being used.

This issue was introduced with 1.176.2.8 on Feb 11 2010

15 years agoFix shebang, per #108.
Devrim GUNDUZ [Sun, 18 Apr 2010 09:12:26 +0000 (09:12 +0000)]
Fix shebang, per #108.

15 years agoFix sgml error.
Devrim GUNDUZ [Sat, 10 Apr 2010 12:39:42 +0000 (12:39 +0000)]
Fix sgml error.

15 years agoFixed some obsolete prerequisites.
David Fetter [Thu, 1 Apr 2010 17:26:54 +0000 (17:26 +0000)]
Fixed some obsolete prerequisites.

15 years agoAdd notes about bug #55 to test which exercises the fix
Christopher Browne [Wed, 31 Mar 2010 18:10:16 +0000 (18:10 +0000)]
Add notes about bug #55 to test which exercises the fix

15 years agoSPI_getbinval() was being passed a NULL, which PostgreSQL 8.5 no longer
Christopher Browne [Tue, 16 Feb 2010 16:58:22 +0000 (16:58 +0000)]
SPI_getbinval() was being passed a NULL, which PostgreSQL 8.5 no longer
accepts.  Add isnull variable in the relevant code block so there's a place
to stow the bool result.

Reason for this noted by Alvaro Herrera - thanks!

15 years agoPort fixes in 2.0 to HEAD...
Christopher Browne [Fri, 12 Feb 2010 17:16:05 +0000 (17:16 +0000)]
Port fixes in 2.0 to HEAD...

1.  Inapropos number of parms for insert to confirmations table

2.  Change UPDATEs that break as of 9.0

15 years agoBug #106 - change error message for session configuration failure
Christopher Browne [Thu, 11 Feb 2010 23:09:47 +0000 (23:09 +0000)]
Bug #106 - change error message for session configuration failure

15 years agoApply to HEAD...
Christopher Browne [Thu, 11 Feb 2010 21:11:17 +0000 (21:11 +0000)]
Apply to HEAD...

Gwyn Connor pointed out a sprintf() abuse...

When log entries are generated, we're passing outbuf both as buffer and as
a source of data.  Behaviour is undefined on some systems, notably including
Gentoo Linux.

Change:  Make sure there are buffers for the date + process, fill them, and
reference them.

15 years ago"if" should be "else if" as noticed by Richard Yen
Christopher Browne [Thu, 11 Feb 2010 19:36:31 +0000 (19:36 +0000)]
"if" should be "else if" as noticed by Richard Yen

15 years agoMemory leak changes (as made in 2.0) per Ulrich Weber, changed for 2.0/HEAD
Christopher Browne [Thu, 11 Feb 2010 19:36:08 +0000 (19:36 +0000)]
Memory leak changes (as made in 2.0) per Ulrich Weber, changed for 2.0/HEAD

http://lists.slony.info/pipermail/slony1-hackers/2010-January/000292.html

15 years agoAdd docs that SERIALTABLES is no longer supported in Slony-I 2.0.
Christopher Browne [Thu, 11 Feb 2010 17:57:18 +0000 (17:57 +0000)]
Add docs that SERIALTABLES is no longer supported in Slony-I 2.0.

per bug #107

15 years agoAdd notes on dealing with bison/flex mismatch
Christopher Browne [Thu, 11 Feb 2010 17:51:16 +0000 (17:51 +0000)]
Add notes on dealing with bison/flex mismatch

15 years agoBug #110 - some quoting problems
Christopher Browne [Wed, 10 Feb 2010 22:50:33 +0000 (22:50 +0000)]
Bug #110 - some quoting problems

15 years agoChanged dbutils to use INT64_FORMAT and int64 for handling %L.
Christopher Browne [Wed, 9 Dec 2009 20:58:02 +0000 (20:58 +0000)]
Changed dbutils to use INT64_FORMAT and int64 for handling %L.

- Apply to HEAD

15 years agoApply Jan's change from 1.2 branch - buffer overrun
Christopher Browne [Wed, 9 Dec 2009 20:54:38 +0000 (20:54 +0000)]
Apply Jan's change from 1.2 branch - buffer overrun

15 years agoUse int64 rather than long long; that's what PG uses for xids...
Christopher Browne [Wed, 9 Dec 2009 20:50:25 +0000 (20:50 +0000)]
Use int64 rather than long long; that's what PG uses for xids...

15 years agoAs in 2.0 branch, needed to change autoconf + slony1_funcs.c to reflect that
Christopher Browne [Fri, 27 Nov 2009 20:21:22 +0000 (20:21 +0000)]
As in 2.0 branch, needed to change autoconf + slony1_funcs.c to reflect that
in PG 8.5, ScanKeywordLookup has 3 parms, not 1

15 years agoApply fix for bug #103 to HEAD
Christopher Browne [Thu, 26 Nov 2009 18:09:17 +0000 (18:09 +0000)]
Apply fix for bug #103 to HEAD

16 years agoFix 8.4-ism as found by Jeff Trout...
Christopher Browne [Fri, 23 Oct 2009 21:18:21 +0000 (21:18 +0000)]
Fix 8.4-ism as found by Jeff Trout...

In a nutshell in the event loop we start a transaction, then if we are not an accept set event we lock the config lock table.  We then zero out query1. (this is in remote_worker.c).

The ENABLE_SUBSCRIPTION event runs in a while(true) loop.
First it executes query1 (which thanks to the above, is empty), then tries to copy_set.  If copy_set fails for whatever reason we ROLLBACK our local conn (query2) and then loop.

The problem with this is when we come back around in the next look we're outside of a transaction and one won't be started because query1 is reset.  This causes LOCK TABLE to barf on PG8.4.  You are forever stuck until you restart slon.  This also explains another problem I've seen a couple times.

We subscribe to a set with say 3 tables.
The initial subscription fails due to an earlier txn wait.
We copy the first table of hte set successfully.
Then the second table fails to copy due to some DDL issue (perhaps for some reason a PK or column is missing).  We issue a rollback but since we are not in a txn, nothing happens. The event does not suceed so we try again
What happens next is since our previous work wasn't rolled back slony sees we've already got teh deny trigger & friends on the first table and barfs.   Cue infinite loop fixed only by shutting down slon and playing with the sl_ tables.

This patch keeps a count of how many retries we've had on this copy_set.  If we are on retry > 0 then we re-issue a start transaction, set islolation, and lock the config table. My testing has showed that this works.

16 years agoBug #98 - need WAIT ON parameter in slonik code generated by slonik_move_set
Christopher Browne [Wed, 21 Oct 2009 13:32:08 +0000 (13:32 +0000)]
Bug #98 - need WAIT ON parameter in slonik code generated by slonik_move_set
altperl script.

http://www.slony.info/bugzilla/show_bug.cgi?id=98

16 years agoinsert into sl_setsync upon FAILOVER had values() clause based on the
Christopher Browne [Wed, 21 Oct 2009 13:07:07 +0000 (13:07 +0000)]
insert into sl_setsync upon FAILOVER had values() clause based on the
pre-2.0 schema; fix to use 2.0.

As reported by Cyril Scetbon, bug #97

16 years agoUPGRADE FUNCTIONS failing because functions had their return types changed.
Christopher Browne [Wed, 21 Oct 2009 12:55:04 +0000 (12:55 +0000)]
UPGRADE FUNCTIONS failing because functions had their return types changed.
Added in "DROP FUNCTION IF EXISTS" (fine in 8.3+) in
src/backend/slony1_funcs.sql to rectify this.

Problem reported by Glyn Astill

16 years agoAdd missing arg to subscribeset_int() call - per bug report on list
Christopher Browne [Wed, 23 Sep 2009 16:22:52 +0000 (16:22 +0000)]
Add missing arg to subscribeset_int() call - per bug report on list

16 years agoAs observed by Bernd Helmle, cloneNodePrepare returns an event ID, and
Christopher Browne [Wed, 23 Sep 2009 16:15:02 +0000 (16:15 +0000)]
As observed by Bernd Helmle, cloneNodePrepare returns an event ID, and
hence should return BIGINT

16 years agoAdd 8.3 function to check if tables are handled by autovac, or if slon
Christopher Browne [Mon, 31 Aug 2009 15:16:21 +0000 (15:16 +0000)]
Add 8.3 function to check if tables are handled by autovac, or if slon
should vacuum them itself

16 years agoClarify that the EVENT NODE for STORE NODE must be an existing node, not
Christopher Browne [Tue, 25 Aug 2009 17:18:39 +0000 (17:18 +0000)]
Clarify that the EVENT NODE for STORE NODE must be an existing node, not
the newly-added node.

16 years agoAdd $Id$ tag
Devrim GUNDUZ [Thu, 20 Aug 2009 09:22:27 +0000 (09:22 +0000)]
Add $Id$ tag

16 years agoAdd slon_status command.
Devrim GUNDUZ [Thu, 20 Aug 2009 09:21:16 +0000 (09:21 +0000)]
Add slon_status command.

Usage:

=======================

# slon_status
Usage: slon_status [--config file] node#

    --config file    Location of the slon_tools.conf file

# slon_status 3
Slon is running for the 'replica' cluster.
# slon_status 6
There is no such node.

=======================

Documentation will come later.

16 years agoChange default $LOGDIR, so that distros won't need to patch it.
Devrim GUNDUZ [Mon, 17 Aug 2009 22:21:04 +0000 (22:21 +0000)]
Change default $LOGDIR, so that distros won't need to patch it.

16 years agoFix init script, so that log directory path will match upstream.
Devrim GUNDUZ [Mon, 17 Aug 2009 21:19:24 +0000 (21:19 +0000)]
Fix init script, so that log directory path will match upstream.