slony1-engine.git
12 years agoversioning all symbols in the shared library.
Steve Singer [Fri, 31 May 2013 22:17:41 +0000 (18:17 -0400)]
versioning all symbols in the shared library.

Slony 2.2 allows multiple versions of the shared library to be exist
on the filesystem($libdir) at once.  This means they can be loaded
into the same backend at once, but we need to ensure that the
exported symbols are unique

12 years agoupdating the release notes
Steve Singer [Mon, 27 May 2013 17:35:19 +0000 (13:35 -0400)]
updating the release notes

12 years agoWhen upgrading from an earlier version of 2.2 to a newer version of 2.2
Jan Wieck [Sun, 26 May 2013 14:54:40 +0000 (10:54 -0400)]
When upgrading from an earlier version of 2.2 to a newer version of 2.2
the old shared library (that now has the version number in its name) might
not still be present.  This change avoids having to call C functions as
part of the slonik queries done during a UPDATE FUNCTIONS script.

12 years agoFixing several compiler warnings (unused and
Jan Wieck [Mon, 27 May 2013 14:45:56 +0000 (10:45 -0400)]
Fixing several compiler warnings (unused and
possibly used uninitialized things).

12 years agoMerge remote branch 'origin/master'
Jan Wieck [Thu, 16 May 2013 21:26:38 +0000 (17:26 -0400)]
Merge remote branch 'origin/master'

12 years agoMake log_truncate() SECURITY DEFINER.
Jan Wieck [Thu, 16 May 2013 17:37:35 +0000 (13:37 -0400)]
Make log_truncate() SECURITY DEFINER.

12 years agoMake log_truncate() SECURITY DEFINER.
postgres [Thu, 16 May 2013 17:37:35 +0000 (13:37 -0400)]
Make log_truncate() SECURITY DEFINER.

12 years agoUpdating release notes for bug 286
Steve Singer [Thu, 28 Mar 2013 15:43:12 +0000 (11:43 -0400)]
Updating release notes for bug 286

12 years agoBug 286 PG 9.3 now takes two arguments on LookupExplicitNamespace
Steve Singer [Mon, 18 Mar 2013 20:48:43 +0000 (16:48 -0400)]
Bug 286 PG 9.3 now takes two arguments on LookupExplicitNamespace

Add a configure check to determine if we have the 1 or 2 argument
version of LookupExplicitNamespace and pass the proper number
of arguments

12 years agoMerge branch 'master' of ssh://git.postgresql.org/slony1-engine REL_2_2_0_B3
Jan Wieck [Fri, 15 Feb 2013 16:08:07 +0000 (11:08 -0500)]
Merge branch 'master' of ssh://git.postgresql.org/slony1-engine

12 years agoAdd a regression test that ensures DDL is purging the apply cache.
Jan Wieck [Fri, 15 Feb 2013 14:53:59 +0000 (09:53 -0500)]
Add a regression test that ensures DDL is purging the apply cache.

12 years agoupdates to docs and win32 makefile for MS-Windows.
Steve Singer [Thu, 14 Feb 2013 19:50:40 +0000 (14:50 -0500)]
updates to docs and win32 makefile for MS-Windows.
(cherry picked from commit aee311a97a2b11ab4b555943ae0e49fb21c449ff)

Conflicts:

doc/adminguide/installation.sgml

12 years agofmgr_info() must be called in the applyCacheContext.
Jan Wieck [Wed, 13 Feb 2013 23:13:24 +0000 (18:13 -0500)]
fmgr_info() must be called in the applyCacheContext.

Subsequent calls using the FmgrInfo structure may add more
sub elements to the info. This will be allocated in the same
memory context, the fmgr_info() call was made in. That
context must exist at least long enough as the FmgrInfo
call itself exists.

12 years agofixing bug number
Steve Singer [Fri, 1 Feb 2013 15:43:27 +0000 (10:43 -0500)]
fixing bug number

12 years agoupdating to release 2.2.0 B3
Steve Singer [Thu, 31 Jan 2013 22:12:57 +0000 (17:12 -0500)]
updating to release 2.2.0 B3

12 years agoBug 285 fix move set race condition.
Steve Singer [Thu, 31 Jan 2013 22:10:30 +0000 (17:10 -0500)]
Bug 285 fix move set race condition.

During a move set it is possible on subscriber node, that isn't the
old or new origin, for remoteWorkerThread_$oldorigin to start
processing a SYNC event before the ACCEPT_SET is processed
by the remoteWorkerThread_$neworigin.  If the ACCEPT_SET
transaction then commits before the update sl_setsync
query is executed by the remoteWorkertThread_$oldorigin
the update will update a row for the new origin when
it intends to update the old origin.  This messes up
sl_setsync.

This change will add a condition to the WHERE clause so
a remoteWorkerThread won't UPDATE rows for a different
origin

12 years agoupdating documentation to list more recent postgresql versions
Steve Singer [Mon, 28 Jan 2013 20:28:31 +0000 (15:28 -0500)]
updating documentation to list more recent postgresql versions

12 years agoAdd release note material on bugs 273, 282
Christopher Browne [Thu, 24 Jan 2013 20:19:15 +0000 (15:19 -0500)]
Add release note material on bugs 273, 282

12 years agoMerge branch 'bug282'
Jan Wieck [Wed, 23 Jan 2013 15:49:47 +0000 (10:49 -0500)]
Merge branch 'bug282'

12 years agoMerge branch 'bug273'
Jan Wieck [Wed, 23 Jan 2013 15:49:17 +0000 (10:49 -0500)]
Merge branch 'bug273'

12 years agoBug #284 - fixes to tutorial
Christopher Browne [Thu, 17 Jan 2013 23:00:28 +0000 (18:00 -0500)]
Bug #284 - fixes to tutorial

12 years agoFix for bug273
Jan Wieck [Fri, 14 Dec 2012 20:01:31 +0000 (15:01 -0500)]
Fix for bug273

Do not force the event provider to be part of the providers
unless we don't find any provider at all otherwise.

12 years agoFix for bug282.
Jan Wieck [Fri, 14 Dec 2012 18:24:39 +0000 (13:24 -0500)]
Fix for bug282.

There was a problem with the new COPY protocol when
a data type or domain used in a replicated column
is not in slon's search_path. SPI does not provide
a mechanism to get the namespace name of a columns
data type.

Instead of adding explicit type casting to the apply
queries and handing the data in as TEXT Datums, we
now use the same technique that PL/pgSQL uses at
at least since 8.3 and convert the TEXT datums into
the requested data type ourselves.

12 years agoadditional cleanups for pgport find_my_exec support
Steve Singer [Fri, 7 Dec 2012 20:27:39 +0000 (15:27 -0500)]
additional cleanups for pgport find_my_exec support

Clean up configure messaging and avoid a compiler warning by
checking for HAVE_PGPORT after config.h is included
(cherry picked from commit be933801d527caa7c88df622b6ec351668189281)

Conflicts:

RELEASE
src/slonik/slonik.c

12 years agoAdd back in find_my_exec() support on platforms that include pgport.
Steve Singer [Fri, 7 Dec 2012 20:26:33 +0000 (15:26 -0500)]
Add back in find_my_exec() support on platforms that include pgport.
find_my_exec, a postgresql pgport function is again used to find the
location of the slonik binary to locate the share directory.
This is for installs where the install location is not known at
compile time.

Some distributions don't include pgport, this is disabled by default
if you compile with pgport support set to yes (a configure option/check)
then this will be enabled.

Patch submitted by Sandeep Thakkar <sandeep.thakkar@enterprisedb.com>
(cherry picked from commit b034434e6279da67008402575ed768a666b827a9)

Conflicts:

configure.ac

12 years agoAdd in code to recognize PostgreSQL 9.2 and accept it as a
Christopher Browne [Fri, 30 Nov 2012 22:18:10 +0000 (17:18 -0500)]
Add in code to recognize PostgreSQL 9.2 and accept it as a
supported version, rather than warning that we're not sure

Conflicts:
RELEASE
src/slonik/slonik.c

12 years agoadding altperl fixes to the release notes
Steve Singer [Mon, 12 Nov 2012 15:11:25 +0000 (10:11 -0500)]
adding altperl fixes to the release notes

12 years agoMerge remote branch 'lkmatsumura/altperl_master'
Steve Singer [Mon, 12 Nov 2012 15:06:24 +0000 (10:06 -0500)]
Merge remote branch 'lkmatsumura/altperl_master'

12 years agoupdating release to 2.2.0 b2
Steve Singer [Fri, 31 Aug 2012 13:14:31 +0000 (09:14 -0400)]
updating release to 2.2.0 b2

12 years agoCosmetic commit - trailling spaces
Luiz K. Matsumura [Thu, 8 Nov 2012 23:49:33 +0000 (21:49 -0200)]
Cosmetic commit - trailling spaces

removing trailling spaces

12 years agoBug fix, incorrect variable name
Luiz K. Matsumura [Thu, 8 Nov 2012 23:48:22 +0000 (21:48 -0200)]
Bug fix, incorrect variable name

temporary pgpass file without password because of this bug

12 years agoget_pid() will check to make sure the pid actually exists
Steve Singer [Thu, 8 Nov 2012 19:02:20 +0000 (14:02 -0500)]
get_pid() will check to make sure the pid actually exists

12 years agoinclude pidfile directory in the sample slon.conf
Steve Singer [Thu, 8 Nov 2012 18:03:05 +0000 (13:03 -0500)]
include pidfile directory in the sample slon.conf

12 years agoadd --only-node option to usage message
Steve Singer [Thu, 8 Nov 2012 18:02:18 +0000 (13:02 -0500)]
add --only-node option to usage message

12 years agoset the PGPASSWORD file to read-only, then close and unlink it
Steve Singer [Thu, 8 Nov 2012 17:58:42 +0000 (12:58 -0500)]
set the PGPASSWORD file to read-only, then close and unlink it

12 years agoImplementing pidfile to identify the main process of slony instance:
Luiz K. Matsumura [Wed, 7 Nov 2012 00:38:51 +0000 (22:38 -0200)]
Implementing pidfile to identify the main process of slony instance:

slon_tools.conf-sample - add configuration variables
  . $PIDFILE_DIR : directory where the pid files will be created (default: /var/run/slony1)
  . $PIDFILE_PREFIX : prefix to pidfiles of node instances (default: cluster name)

slon-tools.pm:
 . start_slon : changed to init slon daemon with -p pidfile and added a sleep time
    to give time to slon daemon initialize and create the pid file

 . get_pid: changed to read the pid file to get the pid number

slon_kill.pl:
  . change kill method of slon daemon to get_pid then use kill 15 instead 9 to
    slon daemon remove the pid file properly

slon_watchdog2.pl:
  . Add sleep time before first query status to avoid the watchdog kill slon_daemon
    just immediatelly they started
  . Do not try to kill slon proccess with 9.

12 years agoUsing PGPASSFILE environment variable instead of PGPASSWORD
Luiz K. Matsumura [Tue, 6 Nov 2012 19:26:44 +0000 (17:26 -0200)]
Using PGPASSFILE environment variable instead of PGPASSWORD

Using a temporary pgpass file to store password as recommended by Postgresql documentation

Thanks to Steve Singer review

12 years agoInit script sample using altperl routines
Luiz K. Matsumura [Fri, 26 Oct 2012 20:56:35 +0000 (18:56 -0200)]
Init script sample using altperl routines

Example of a start/stop service script using altperl and a
slon config file example

12 years agoslony_show_configuration can now return cluster name property
Luiz K. Matsumura [Fri, 26 Oct 2012 20:54:03 +0000 (18:54 -0200)]
slony_show_configuration can now return cluster name property

12 years agoNew Watchdog options - verbosity
Luiz K. Matsumura [Fri, 26 Oct 2012 20:53:13 +0000 (18:53 -0200)]
New Watchdog options - verbosity

Implementing new parameters on slon_tools.conf
WATCHDOG_VERSION : select watchdog to start
   1: slon_watchdog
   2: slon_watchdog2

WATCHDOG_VERBOSE: enable/disable verbosity of watchdog logs

START_WATCHDOG and SLEEP_TIME: just declaring since the funcionality
  was already implemented

slon_watchdog2: making the routine functional since some bugs was detected,
  routine updating as changes detected on slon_watchdog

12 years agoImplementing capability of kill only a node on slon_kill
Luiz K. Matsumura [Fri, 26 Oct 2012 20:34:20 +0000 (18:34 -0200)]
Implementing capability of kill only a node on slon_kill

New parameter to kill only processes of one node
Refactoring to create subroutines.
Adjust of commands to grant that they will be sorted by pid values

12 years agoChange get_pid to return the smallest pid
Luiz K. Matsumura [Fri, 26 Oct 2012 20:19:52 +0000 (18:19 -0200)]
Change get_pid to return the smallest pid

get_pid changed to return the smallest pid of processes that match
the regex, probably the main proccess

12 years agoIdentify node on log messages generated by slon_watchdog
Luiz K. Matsumura [Fri, 26 Oct 2012 11:19:18 +0000 (09:19 -0200)]
Identify node on log messages generated by slon_watchdog

12 years agoAdjusts slon_kill command
Luiz K. Matsumura [Fri, 26 Oct 2012 11:18:33 +0000 (09:18 -0200)]
Adjusts slon_kill command

Fix slon_kill regex to match new command format in slon_start
Use slon_tools.conf to identify daemons of current cluster

12 years agoFixing regex expression get_pid
Luiz K. Matsumura [Fri, 26 Oct 2012 11:14:46 +0000 (09:14 -0200)]
Fixing regex expression get_pid

12 years agoAllowing get_pid to accept more generic format of parameter nodeNumber
Luiz K. Matsumura [Thu, 25 Oct 2012 19:34:17 +0000 (17:34 -0200)]
Allowing get_pid to accept more generic format of parameter nodeNumber

change regex to get_pid accept "node1" or "1" as parameter to identify node number

12 years agoDrop get_node_name from slon-tools.pm
Luiz K. Matsumura [Thu, 25 Oct 2012 16:45:02 +0000 (14:45 -0200)]
Drop get_node_name from slon-tools.pm

The function get_node_name seen meaningless...
Changed slon_status to verify if the node is defined by using $DBNAME array
that is a obligatory value.

12 years agoStart slon passing with a slon configuration file
Luiz K. Matsumura [Thu, 25 Oct 2012 14:12:36 +0000 (12:12 -0200)]
Start slon passing with a slon configuration file

Implement a new parameter on node configuration to allow to specify
a slon configuration file to be used to start the slon daemon

adjusted slon_start and get_pid functions to consider the new start string

12 years agoimplementing PGPASSWORD workaround in query_slon_status
Luiz K. Matsumura [Thu, 25 Oct 2012 13:07:19 +0000 (11:07 -0200)]
implementing PGPASSWORD workaround in query_slon_status

If password is defined to node use PGPASSWORD environment variable to allow psql connect with the database

12 years agorevision of node_is_subscribing function
Luiz K. Matsumura [Thu, 25 Oct 2012 12:58:54 +0000 (10:58 -0200)]
revision of node_is_subscribing function

- Type cast bug
- Space on qq and { causing sintax error
- initializing $nodenum parameter
- Creating a workaround in case of password for conection is defined to allow psql to connect
  Used PGPASSWORD enviroment variable.

12 years agoslonik_create_set : adding set name on comment of set
Luiz K. Matsumura [Wed, 24 Oct 2012 20:53:09 +0000 (18:53 -0200)]
slonik_create_set : adding set name on comment of set

Added the unique name of set on the comment of create set comand
to help when inspecting the sets under postgres

12 years agoChanging behaviour of create a subdirectory slony1 under $LOGDIR
Luiz K. Matsumura [Wed, 24 Oct 2012 20:34:59 +0000 (18:34 -0200)]
Changing behaviour of create a subdirectory slony1 under $LOGDIR

Don't create subdirectory slony1 under $LOGDIR to avoid create
a unnecessary depth since we can set $LOGDIR with an appropriate path

12 years agoslony_show_configuration.pl : Implementing possibility to return only a especific...
Luiz K. Matsumura [Wed, 24 Oct 2012 20:14:03 +0000 (18:14 -0200)]
slony_show_configuration.pl : Implementing possibility to return only a especific property on configuration of node

12 years agoPGPool link fix
Christopher Browne [Wed, 31 Oct 2012 20:48:04 +0000 (16:48 -0400)]
PGPool link fix

12 years agoMerge branch 'master' of git://git.postgresql.org/git/slony1-engine
Christopher Browne [Wed, 24 Oct 2012 18:30:30 +0000 (14:30 -0400)]
Merge branch 'master' of git://git.postgresql.org/git/slony1-engine

12 years agoBug #280 - shared library build should use CFLAGS and LDFLAGS
Christopher Browne [Tue, 25 Sep 2012 15:45:33 +0000 (11:45 -0400)]
Bug #280 - shared library build should use CFLAGS and LDFLAGS

Per report from Peter Eisentraut...

Validated that this is consistent with src/makefile/Makefile.linux for Postgres

13 years agoThe tutorial in the documentation has this snippet:
Christopher Browne [Fri, 14 Sep 2012 14:39:59 +0000 (10:39 -0400)]
The tutorial in the documentation has this snippet:
8<-----------------
    #--
    # init the first node.  Its id MUST be 1.  This creates the schema
    # _$CLUSTERNAME containing all replication system specific database
    # objects.
8<-----------------

That hasn't been true, for a while, and, in reviewing the material in the
howto directory, that's all pretty obsolete, and removal-worthy.  Anything
that *is* valid has been drawn into the admin guide, and this material has
been getting steadily less valid over time due to functionality changes.

Also removed the "MUST be 1" from the tutorial in the admin guide, which
was referenced from the older basic tutorial.  And removed howto material
from RPM spec file

13 years agoMerge branch 'master' of ssh://git.postgresql.org/slony1-engine
Christopher Browne [Tue, 4 Sep 2012 21:19:13 +0000 (17:19 -0400)]
Merge branch 'master' of ssh://git.postgresql.org/slony1-engine

13 years agoBug #278 - fix various spelling errors found by Debian lintian
Christopher Browne [Tue, 4 Sep 2012 21:15:57 +0000 (17:15 -0400)]
Bug #278 - fix various spelling errors found by Debian lintian

13 years agoMerge branch 'master' of git://git.postgresql.org/git/slony1-engine
Christopher Browne [Tue, 4 Sep 2012 21:10:11 +0000 (17:10 -0400)]
Merge branch 'master' of git://git.postgresql.org/git/slony1-engine

13 years agoupdating release to 2.2.0 b2
Steve Singer [Fri, 31 Aug 2012 13:14:31 +0000 (09:14 -0400)]
updating release to 2.2.0 b2

13 years agouse numeric error code for detecting unique violations on sl_nodelock
Steve Singer [Thu, 30 Aug 2012 18:49:33 +0000 (14:49 -0400)]
use numeric error code for detecting unique violations on sl_nodelock

The text of the error message has changed slightly in different postgresql
versions, ie 8.3+.  Using the numeric error code will protect us from this.
This fixes bug 276.

13 years agofixed bug 275 - memory leak in monitor thread
Steve Singer [Thu, 23 Aug 2012 17:03:05 +0000 (13:03 -0400)]
fixed bug 275 - memory leak in monitor thread

Patch from Ulrich Weber <ulrich.weber@sophos.com>

13 years agobug 264 - second part.
Steve Singer [Mon, 13 Aug 2012 11:47:42 +0000 (07:47 -0400)]
bug 264 - second part.

This part of the patch was submitted by paulro@yandex.ru

13 years agoupdating release notes, bug 272
Steve Singer [Fri, 10 Aug 2012 20:50:39 +0000 (16:50 -0400)]
updating release notes, bug 272

13 years agoMerge branch 'bug272'
Steve Singer [Fri, 10 Aug 2012 20:48:02 +0000 (16:48 -0400)]
Merge branch 'bug272'

13 years agochecking for insufficient memory
Steve Singer [Fri, 10 Aug 2012 20:46:40 +0000 (16:46 -0400)]
checking for insufficient memory

13 years agoBug 258.
Steve Singer [Tue, 7 Aug 2012 16:58:30 +0000 (12:58 -0400)]
Bug 258.
Obtain an access exclusive lock not an exclusive one.
A concurrent select statement does not seem to block
the exclusive lock (but does block the access exclusive one)
and will block the truncate.

13 years agoUpdating release notes
Steve Singer [Tue, 7 Aug 2012 16:54:20 +0000 (12:54 -0400)]
Updating release notes

13 years agoPossibly resolves bug http://www.slony.info/bugzilla/show_bug.cgi?id=264 where log_ac...
Christopher Browne [Wed, 25 Apr 2012 20:58:40 +0000 (17:58 -0300)]
Possibly resolves bug slony.info/bugzilla/show_bug.cgi?id=264 where log_actionseq values are being generated in random-ish order, which means that subscriptions that take a long, long time tend to have a LOT of log_actionseq values to exclude, which builds into a query so large that it blows out the Postgres query parser.

Imposing by-log_actionseq order should rectify this.

13 years agoRelease notes update
Steve Singer [Wed, 25 Jul 2012 19:01:27 +0000 (15:01 -0400)]
Release notes update

13 years agoDo not delete schemadoc.xml as part of a distclean.
Steve Singer [Sun, 22 Jul 2012 01:42:03 +0000 (21:42 -0400)]
Do not delete schemadoc.xml as part of a distclean.
We will include schemadoc.xml in the tar file as has been traditionally
done in slony 2.0.x. This allows the documentation to be built on machines
that don't have Postgresql running.

13 years agoAdding in documentation section on the KEY option 'set add table'.
Steve Singer [Fri, 20 Jul 2012 15:55:59 +0000 (11:55 -0400)]
Adding in documentation section on the KEY option 'set add table'.
This was improperly removed from the documentation

13 years agoDeal with embedded single quotes inside IN_STRING.
Steve Singer [Thu, 5 Jul 2012 12:12:36 +0000 (08:12 -0400)]
Deal with embedded single quotes inside IN_STRING.
This is part of bug272

13 years agoModifying unit test to trigger bug 272
Steve Singer [Wed, 4 Jul 2012 15:46:04 +0000 (11:46 -0400)]
Modifying unit test to trigger bug 272

13 years agoFixing bug 272.
Steve Singer [Wed, 4 Jul 2012 12:59:53 +0000 (08:59 -0400)]
Fixing bug 272.
Pointers into yytext can't be stored and reused in a later rule
yy_get_next_buffer() might invalidate that pointer.
Instead we allocate our own buffer to store the IN_STRING state.

13 years agoFixes for Win32/MS Visual C. REL_2_2_0_B1
Steve Singer [Thu, 21 Jun 2012 15:47:22 +0000 (11:47 -0400)]
Fixes for Win32/MS Visual C.
Gets slony 2.2 compiling on VC and associated documentation updates.

13 years agoUpdating release notes
Steve Singer [Wed, 20 Jun 2012 17:16:04 +0000 (13:16 -0400)]
Updating release notes

13 years agoAdd notes on how to upgrade from 2.1 to 2.2
Christopher Browne [Wed, 20 Jun 2012 15:32:09 +0000 (11:32 -0400)]
Add notes on how to upgrade from 2.1 to 2.2

13 years agoRevise release note formatting, add reference to bug #137
Christopher Browne [Wed, 20 Jun 2012 14:52:57 +0000 (10:52 -0400)]
Revise release note formatting, add reference to bug #137

13 years agoFixing debug message & typo
Steve Singer [Wed, 20 Jun 2012 14:04:02 +0000 (10:04 -0400)]
Fixing debug message & typo

13 years agoUpdating documentation to reflect the new FAILOVER behaviour
Steve Singer [Mon, 18 Jun 2012 18:52:57 +0000 (14:52 -0400)]
Updating documentation to reflect the new FAILOVER behaviour

13 years agoFixing documentation build errors
Steve Singer [Mon, 18 Jun 2012 17:26:24 +0000 (13:26 -0400)]
Fixing documentation build errors

13 years agoUpdating version number to beta1
Steve Singer [Mon, 18 Jun 2012 13:38:41 +0000 (09:38 -0400)]
Updating version number to beta1

13 years agoBug 270.
Steve Singer [Mon, 18 Jun 2012 13:20:28 +0000 (09:20 -0400)]
Bug 270.
Perform a TRUNCATE .. CASCADE on the replica when we replicate a truncate command.
This is how 2.1 works

13 years agoBug 263
Steve Singer [Tue, 12 Jun 2012 18:33:21 +0000 (14:33 -0400)]
Bug 263

Normally, one should be able to do

./configure --flags ... CPPFLAGS='...' CFLAGS='...' LDFLAGS='...'

With slony, this works for CFLAGS, but CPPFLAGS and LDFLAGS are not recorded in
Makefile.global.  If this were added, some assignments in Makefile.global
because redundant, because the variable already contains the relevant values
from configure.

Patch from Peter Eisentraut

13 years agoFix compile errors/warnings when compiling against pg 9.2
Steve Singer [Wed, 30 May 2012 14:07:00 +0000 (10:07 -0400)]
Fix compile errors/warnings when compiling against pg 9.2

13 years agoBug 268
Steve Singer [Wed, 30 May 2012 14:04:34 +0000 (10:04 -0400)]
Bug 268
Postgresql 9.2 (and later) has changed procpid to be pid in pg_stat_activity.
Use the newer column name when connected to a new pgsql

13 years agoAdditional remerges for bug 248
Steve Singer [Wed, 30 May 2012 21:47:53 +0000 (17:47 -0400)]
Additional remerges for bug 248

13 years agoRemerging bug 248.
Steve Singer [Wed, 30 May 2012 20:47:18 +0000 (16:47 -0400)]
Remerging bug 248.

This was partially unmerged as part of the COPY protocol commits

Stop tracking the sequence name on log shipping targets.
Instead include the sequence name in the log shipping files on
sequence updates.  This avoids the issue of us not adding
new tracking table entries on an enable subscription.

Add an OMIT COPY option to the script to allow
a log shipping target to be upgraded to a new slony version
without reloading all the data.  During an outage you
would drop the $clustername schema from the target
then run slony1_dump.sh with -omit_copy to reinit
the node.

13 years agoMerge branch 'master' of ssh://git.postgresql.org/slony1-engine into bug265
Jan Wieck [Wed, 30 May 2012 20:15:56 +0000 (16:15 -0400)]
Merge branch 'master' of ssh://git.postgresql.org/slony1-engine into bug265

13 years agoAdd in FAQ entry listing various ways to start slon
Christopher Browne [Wed, 16 May 2012 17:01:21 +0000 (13:01 -0400)]
Add in FAQ entry listing various ways to start slon

13 years agoJeff Frost contributed a sample Upstart script; added this to the
Christopher Browne [Wed, 16 May 2012 15:53:34 +0000 (11:53 -0400)]
Jeff Frost contributed a sample Upstart script; added this to the
shared configuration directory, along with a section in the admin
scripts page on documentation.

13 years agoFix for bug 265. PostgreSQL 8.3 does not support the
Jan Wieck [Tue, 15 May 2012 15:16:36 +0000 (11:16 -0400)]
Fix for bug 265. PostgreSQL 8.3 does not support the
array[]::text[] syntax for creating an empty text array.
All PG versions from 8.3 to 9.1 however do support
the syntax '{}'::text[] for doing the same.

13 years agoMerge branch 'master' of git://git.postgresql.org/git/slony1-engine
Christopher Browne [Fri, 11 May 2012 22:31:37 +0000 (18:31 -0400)]
Merge branch 'master' of git://git.postgresql.org/git/slony1-engine

13 years agoFixing syntax error in the example.
Steve Singer [Wed, 2 May 2012 15:30:09 +0000 (11:30 -0400)]
Fixing syntax error in the example.
We use 'cluster name' not 'clustername'.

13 years agoFixing documentation error (The clone finish page
Steve Singer [Fri, 30 Mar 2012 12:28:56 +0000 (08:28 -0400)]
Fixing documentation error (The clone finish page
used 'clone prepare' in the synopsis)

13 years agoRan pgindent against the codebase:
Christopher Browne [Wed, 7 Mar 2012 17:37:11 +0000 (12:37 -0500)]
Ran pgindent against the codebase:

 pgindent /var/lib/postgresql/postgresql/src/tools/pgindent/typedefs.list  src/*/*.{c,h}

13 years agoCOPY protocol makes some slon.conf parameters obsolete, so they should be dropped...
Christopher Browne [Mon, 5 Mar 2012 21:39:56 +0000 (16:39 -0500)]
COPY protocol makes some slon.conf parameters obsolete, so they should be dropped from regression test suite

13 years agoMerge remote branch 'wieck/master'
Jan Wieck [Wed, 29 Feb 2012 19:56:24 +0000 (14:56 -0500)]
Merge remote branch 'wieck/master'