Gabriele Bartolini
83eee2ed96
added some messages to the clone command
2011-02-10 16:08:07 -05:00
Gabriele Bartolini
cb36aaddff
- Added \n
2011-02-10 16:08:07 -05:00
Gabriele Bartolini
3146d2c676
fixed some bugs with standby clone
2011-02-10 16:08:07 -05:00
Gabriele Bartolini
3f1c6a5852
Removed any sprintf/strcpy call and use snprintf/strncpy - Fixed bug with tblspc_dir - added debug messages after every query
2011-02-10 16:08:07 -05:00
Gabriele Bartolini
716a0ae9d3
removed any malloc operation, added t_runtime_options struct
2011-02-10 16:05:03 -05:00
Gabriele Bartolini
7a3be3a2f9
Cleaned log messages (\n at the end of every line)
2011-02-10 15:58:55 -05:00
Gabriele Bartolini
f6a6632169
Added new log system to both repmgr and repmgrd. Needs cleaning, but it is a good starting point
2011-02-10 15:58:55 -05:00
Gabriele Bartolini
2c1eafd7a9
first alpha version for syslog support
2011-02-10 15:56:10 -05:00
Greg Smith
1787cf1c21
Update credits and history to reflect recent merges
2011-02-10 15:19:00 -05:00
Greg Smith
287e2c1a67
Tweak .gitignore to ignore more doc build artifacts
2011-02-10 15:09:18 -05:00
trbs
b487772b84
added note about postgresql-server-dev-9.0 and use libxslt-dev instead of version specific package name
2011-02-10 15:06:09 -05:00
trbs
52313a2d6e
made rsync_options configurable
2011-02-10 15:06:09 -05:00
trbs
814863edf2
use struct for config file information
2011-02-10 15:06:09 -05:00
trbs
e4f431c355
fix line
2011-02-10 15:06:09 -05:00
trbs
c3816d8586
added readme.html to gitignore
2011-02-10 15:05:07 -05:00
trbs
4ea0fc4214
Updated README with Debian/Ubuntu install information
2011-02-10 15:05:07 -05:00
trbs
03ed0e692a
fix strformat order reversal in error message
2011-02-10 15:00:44 -05:00
Daniel Farina
ce21291418
Issue a message when a configuration file is passed unnecessarily
...
Simply intends to set expectations around the fact that a config file
is not used *and* doesn't affect anything material about the standby
clone command.
This uses a notion of "logging level" (like NOTICE) that is not yet
seen this program, but I'll probably introduce that soon.
Signed-off-by: Daniel Farina <daniel@heroku.com >
2011-02-10 03:19:36 -08:00
Daniel Farina
4b007bf4bc
Use a better check for when to issue an error message
...
This patch changes raising the error "You need to use connection
parameters to the master when issuing a STANDBY CLONE command." to
only occur when no host (a global variable, that is abused for at
least two purposes, but is okay in this case) is passed, rather than
when no config file is passed, which is fine for standby clone (which
itself is a wrapper for rsync)
Signed-off-by: Daniel Farina <daniel@heroku.com >
2011-02-10 03:19:30 -08:00
Daniel Farina
da82829659
Avoid checking config file when performing standby clone action
...
Signed-off-by: Daniel Farina <daniel@heroku.com >
2011-02-10 02:10:58 -08:00
Dan Farina
ebbb7c3a47
Fix more quoting: used an overly-quoted copy
...
Signed-off-by: Dan Farina <daniel@heroku.com >
2011-02-07 03:59:18 -08:00
Dan Farina
630d716819
Use the proper freeing method
...
As according to
http://www.postgresql.org/docs/9.0/static/libpq-exec.html#LIBPQ-EXEC-ESCAPE-STRING
Signed-off-by: Dan Farina <daniel@heroku.com >
2011-02-07 03:59:18 -08:00
Dan Farina
c1b84fe9fc
Make some fast hacks to quote schema names
...
Signed-off-by: Dan Farina <drfarina@acm.org >
2011-02-07 03:59:18 -08:00
Dan Farina
bfd3aed33b
Fix a myriad of problems introduced by merging
...
Signed-off-by: Dan Farina <drfarina@acm.org >
2011-02-06 18:32:49 -08:00
Dan Farina
c356f9e97f
Merge remote-tracking branch 'tbrs/master' into heroku
...
Grab the configuration struct changes. It was expeditious to un-do
some of my by-hand line-wrapping that avoids 80 character limit,
though.
Conflicts:
config.c
config.h
repmgr.c
repmgr.h
repmgrd.c
2011-02-04 18:35:56 -08:00
Dan Farina
a52ebc412c
Merge remote-tracking branch 'origin/master' into heroku
...
The Great Whitespace Reconciliation
Conflicts:
check_dir.c
config.c
dbutils.c
repmgr.c
repmgr.h
repmgrd.c
Signed-off-by: Dan Farina <drfarina@acm.org >
2011-02-04 18:27:28 -08:00
Cédric Villemain
fbf97807b8
Remove spurious file
2011-01-27 21:33:09 +01:00
Hannu Krosing
3cce9efac0
Merge branch 'master' of git+ssh://git.2ndquadrant.it/git/repmgr
2011-01-27 10:04:25 +02:00
Hannu Krosing
ec8678379f
Makefile changes for building debian packages, left out of previous commit
2011-01-27 10:02:59 +02:00
Cédric Villemain
d017edbe47
Adding information for debian and --version test
2011-01-27 02:11:05 +01:00
Hannu Krosing
f41ba482eb
dded section on building on Debian and Ubuntu
2011-01-27 01:09:18 +02:00
Hannu Krosing
4c5fad2070
simple support for creating deb file
2011-01-27 00:32:52 +02:00
Greg Smith
0dd31b09dd
Additional notes on 32 vs. 64 build issues
2011-01-22 09:59:43 -05:00
Greg Smith
943dda0ad0
Document potential build issues on RPM
2011-01-22 09:09:37 -05:00
Greg Smith
d4de19bc78
Doc warning: need server restart after config change
2011-01-17 15:38:44 -05:00
trbs
1999b534fd
added note about postgresql-server-dev-9.0 and use libxslt-dev instead of version specific package name
2011-01-11 18:24:17 +01:00
trbs
57169f51cf
made rsync_options configurable
2011-01-08 01:46:39 +01:00
trbs
fc2405f17d
use struct for config file information
2011-01-07 01:36:46 +01:00
trbs
4a0e827464
fix line
2011-01-07 01:32:31 +01:00
trbs
745392e3a2
added readme.html to gitignore
2011-01-06 23:46:21 +01:00
Jaime Casanova
170f519d84
Fixing a message, shouldn't show progname in the middle of a line.
...
Is one message not two.
2010-12-29 00:45:33 -05:00
trbs
cf5717ad59
Updated README with Debian/Ubuntu install information
2010-12-23 15:02:23 +01:00
trbs
cb1192b912
fix strformat order reversal in error message
2010-12-23 15:02:02 +01:00
Dan Farina
156714f3f1
Fix quoting misbehavior
...
Move the single quote in the formatting string to the end of the line.
Signed-off-by: Dan Farina <drfarina@acm.org >
2010-12-23 01:04:05 -08:00
Dan Farina
dd5ac660bf
Comments and cleanup
...
Signed-off-by: Dan Farina <drfarina@acm.org >
2010-12-23 00:55:39 -08:00
Dan Farina
3a430397dc
Avoid overwriting the new password-in-recovery.conf formatting
...
Previously: did that work, then threw it away/overwrote it.
Signed-off-by: Dan Farina <drfarina@acm.org >
2010-12-23 00:55:39 -08:00
Dan Farina
1f098c60ac
Remove dead-ish code
...
This is a leftover after having fixed various problems in the verbose
output here.
Signed-off-by: Dan Farina <drfarina@acm.org >
2010-12-23 00:55:39 -08:00
Dan Farina
0bae682a0d
Fix off-by-one in passing buffer size to xsnprintf
...
This would cause a consistent panic (exit() call) without reason.
This should not enable any overruns (but check my work).
Signed-off-by: Dan Farina <drfarina@acm.org >
2010-12-23 00:55:32 -08:00
Dan Farina
f969dca821
Hack to get passwords in recovery.conf
...
Signed-off-by: Dan Farina <drfarina@acm.org >
2010-12-22 20:10:32 -08:00
Dan Farina
29c39c21f6
Avoid a use-after-free in verbose logging (again)
...
Previously, this print would use memory freed by PQClear previously.
Also allocate/free memory to prevent this tiny memory leak.
Signed-off-by: Dan Farina <drfarina@acm.org >
2010-12-22 20:10:15 -08:00