Re: [GENERAL] Strange replication problem - segment restored from archive but still requested from master

2015-05-21 Thread Fujii Masao
the standby tries to start the replication from the starting point of WAL record, i.e., that's the location of the former WAL file. So the already-read WAL file is requested via replication. To address this problem, maybe we can just use the location where the remaining half of WAL record starts from as the replication starting location. We would need to look at carefully the side effect of that change, though. Regards, -- Fujii Masao -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Problem with Postgresql 9.0 streaming replication on Solaris 10 (x86)

2010-10-20 Thread Fujii Masao
> (etc) > > Does anyone have any ideas what the problem may be? I suspect I may be > missing a library somewhere - I can't believe that streaming replication > just doesn't work on Solaris 10. I guess that the version of the libpq library you use is not 9. Regards, -- Fujii

Re: [GENERAL] Failover on Windows

2010-11-01 Thread Fujii Masao
ndby, you have to create the trigger file on the location specified in -t option of pg_standby. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your sub

Re: [GENERAL] Failed archive_command copy - number of attempts configurable?

2010-11-09 Thread Fujii Masao
Forever until the archive will have been available again. BTW, since the primary cannot remove the unarchived WAL file from pg_xlog directory, unless you fix the archive soon, the primary might run out of the disk space and cause a PANIC error. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPH

Re: [GENERAL] Postgresql 9.1 pg_last_xact_replay_timestamp limitations

2010-12-07 Thread Fujii Masao
this function > completely. I couldn't reproduce this. Could you provide a self-contained test case? Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to y

Re: [GENERAL] Postgresql 9.1 pg_last_xact_replay_timestamp limitations

2010-12-08 Thread Fujii Masao
eckpoint rather than NULL in that case? Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Postgresql 9.1 pg_last_xact_replay_timestamp limitations

2010-12-09 Thread Fujii Masao
point? In this case, it seems bad to return the timestamp of the checkpoint whenever there is no replay transaction, since the result timestamp would go back once at least one transaction has been replayed before reaching the checkpoint record. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHO

Re: [GENERAL] Hot Standby pg_xlog problem

2010-12-14 Thread Fujii Masao
before getting PANIC, but that isn't in your log messages. LOG: entering standby mode So I guess you forgot placing recovery.conf in HS server. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (

Re: [GENERAL] Understanding PG9.0 streaming replication feature

2010-12-21 Thread Fujii Masao
sql.org/wiki/Binary_Replication_Tutorial http://wiki.postgresql.org/wiki/Streaming_Replication#How_to_Use Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscr

Re: [GENERAL] did freese in creating a database cluster

2010-12-27 Thread Fujii Masao
grade your database since 7.4 is already end-of-life. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Startup Process Initiated by init proc (Unix)

2010-12-27 Thread Fujii Masao
rocess). > > The steps I am following are as follows, >  - search for trigger file. > - Complete the recovery- rename recovery.conf file. > any step is missing I am not sure. The backtrace of that orphan process would be helpful for the analysis. Regards, -- Fujii Masao NIPPON TE

Re: [GENERAL] Startup Process Initiated by init proc (Unix)

2010-12-27 Thread Fujii Masao
org/wiki/Getting_a_stack_trace_of_a_running_PostgreSQL_backend_on_Linux/BSD Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Maintenance commands on standby servers

2011-02-08 Thread Fujii Masao
y. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Trying out replication: cp cannot stat log file during recovery

2011-04-12 Thread Fujii Masao
master and integrity of the data? When the standby fails to read the WAL file from the archive, it tries to read that from the master via replication connection. So the standby would not skip that file. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] [Solved] Corrupt indexes on slave when using pg_bulkload on master

2013-01-10 Thread Fujii Masao
you might point the author at > http://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=40f908bdcdc726fc11912cd95dfd2f89603d1f37#patch10 > which shows how it needs to be done in 9.0 and later. I reported this problem to the author in offlist. Thanks for the bug report! Regards, -- Fu

Re: [GENERAL] Streaming Replication

2013-01-15 Thread Fujii Masao
ry. Then the startup process reads the WAL records from the pg_xlog directory, and replays them. Regards, -- Fujii Masao -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Strange message from pg_receivexlog

2013-08-21 Thread Fujii Masao
hing about it. I also have a hot standby on another > machine connecting to the same master, but there is nothing strange in > its logs either. > > Any thoughts what it was? Is the value of replication_timeout sufficiently-larger than the status-interval of pg_receivexlog? Regards, --

Re: [GENERAL] Re: postmaster.pid still exists after pacemaker stopped postgresql - how to remove

2013-08-26 Thread Fujii Masao
s the database cluster on DRBD, it's better to check the status of DRBD filesystem. Regards, -- Fujii Masao -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Re: postmaster.pid still exists after pacemaker stopped postgresql - how to remove

2013-08-26 Thread Fujii Masao
an switch manually / automatically to TC2. > > Is there more appropriate solution? Would you use something else? Nope. I've heard the similar configuration, though it uses shared disk failover solution instead of DRBD. Regards, -- Fujii Masao -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Last insert/update/delete time for a table

2008-04-25 Thread Fujii Masao
2008/4/25 Aleksander Kmetec - INTERA <[EMAIL PROTECTED]>: > Is there a way to get the time of the last insert, update or delete > statement for a specific table? You can check the time stamp of the file corresponding the table after checkpoint. The relationship between the table name and the file

Re: [GENERAL] clustering without locking

2008-05-02 Thread Fujii Masao
ustering was happening will be out of > order, but that should only be a few. In your proposal, a large amount of dead tuple can be generated in both table and index. This is a serious problem that spoils the effect of clustering. -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATIO

Re: [GENERAL] Replication and fsync

2013-10-24 Thread Fujii Masao
m wrong, is there still danger to the slave > in this kind of setup? No, I think. Regards, -- Fujii Masao -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] replay doesn't catch up with receive on standby

2011-04-18 Thread Fujii Masao
to understand > better what's going on.) Did you run query on the standby? If yes, I guess that query conflict prevented the reply location from advancing. http://www.postgresql.org/docs/9.0/static/hot-standby.html#HOT-STANDBY-CONFLICT Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPH

Re: [GENERAL] replay doesn't catch up with receive on standby

2011-04-18 Thread Fujii Masao
s flushed to the standby. So that WAL record was replayed and the replay location advanced. I guess you observed the above situation. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql.or

Re: [GENERAL] pg_rman in Windows - is it possible?

2011-07-01 Thread Fujii Masao
On Fri, Jul 1, 2011 at 6:18 PM, AI Rumman wrote: > Could anyone please tell me whether I can use pg_rman in my Windows > environment? http://code.google.com/p/pg-rman/wiki/Platforms According to the above page, you cannot use it on Windows. Regards, -- Fujii Masao NIPPON TELEGRA

Re: [GENERAL] streaming replication does not work across datacenter with 20ms latency?

2011-07-25 Thread Fujii Masao
uded in next minor update (i.e., 9.0.5). http://archives.postgresql.org/pgsql-committers/2011-06/msg00101.php Of course, you can avoid the problem by building PostgreSQL with gcc != 4.6.0, I think. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent

Re: [GENERAL] Timeline Conflict

2011-08-02 Thread Fujii Masao
r. In this case, you can re-point S2 as a standby just by changing primary_conninfo in S2's recovery.conf and restarting S2. When S2 restarts, S2 reads the timeline history file which was created by S1 at failover and adjust its timeline ID to S1's. So timeline conflict doesn't happe

Re: [GENERAL] streaming replication: one problem & several questions

2011-08-15 Thread Fujii Masao
e time to run > without a restore_command ? Specifically, what problem are you concerned about? Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Change master to standby

2011-08-17 Thread Fujii Masao
aster, create recovery.conf and start the server as the standby from the backup. I have no idea about other replication method. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql

Re: [GENERAL] streaming replication: one problem & several questions

2011-08-17 Thread Fujii Masao
t advance recovery at all. OTOH, if you set restore_command on the standby and have the shared archive area, the standby can read new WAL file from it by using restore_command and advance recovery. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source S

Re: [GENERAL] synchronous_standby_names with '*'

2011-08-19 Thread Fujii Masao
us_standby_names to '*', "create database" hanged, i.e., was waiting for its WAL to be replicated to the standby. Only standby whose application_name matches synchronous_standby_names can run as synchronous standby. '*' matches any application_name, so '*' m

Re: [GENERAL] synchronous_standby_names with '*'

2011-08-19 Thread Fujii Masao
east one synchronous standby has appeared and its WAL has been replicated to it. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscripti

Re: [GENERAL] synchronous_standby_names with '*'

2011-08-19 Thread Fujii Masao
off". To enable; Set synchronous_standby_names or set synchronous_commit to "on". And then reload the configuration file. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To mak

Re: [GENERAL] FATAL: terminating connection due to conflict with recovery

2011-08-30 Thread Fujii Masao
seems applicable. Increasing max_standby_archive_delay and max_standby_streaming_delay would be helpful to make the query complete. Please see the following manual for details. http://www.postgresql.org/docs/9.0/interactive/hot-standby.html#HOT-STANDBY-CONFLICT Regards, -- Fujii Masao NIP

Re: [GENERAL] master-side counterpart of pg_last_xact_replay_timestamp?

2011-09-07 Thread Fujii Masao
modified file time of the xlog, but I'm hoping there is a better > alternative that I haven't found yet Your complaint makes sense. I'll implement something like pg_last_xact_timestamp() for 9.2. But unfortunately there is no way to know such a timestamp on the master, i

Re: [GENERAL] master-side counterpart of pg_last_xact_replay_timestamp?

2011-09-08 Thread Fujii Masao
On Thu, Sep 8, 2011 at 3:19 PM, Simon Riggs wrote: > On Thu, Sep 8, 2011 at 6:43 AM, Fujii Masao wrote: >> Your complaint makes sense. I'll implement something like >> pg_last_xact_timestamp() for 9.2. But unfortunately there is >> no way to know such a timestamp on th

Re: [GENERAL] Streaming Replication and Firewall

2011-09-29 Thread Fujii Masao
ult settings, it takes about two hours. Setting keepalives parameters in primary_conninfo would help to fix such a problem. http://developer.postgresql.org/pgdocs/postgres/libpq-connect.html Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sen

Re: [GENERAL] How to avoid TimeLine increase / Change on recovery?

2011-10-04 Thread Fujii Masao
On Mon, Oct 3, 2011 at 11:39 PM, senthilnathan wrote: > Is there any way to avoid time line increase /change on recovery No, there is no way to prevent the timeline ID from being incremented at the end of archive recovery. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION

Re: [GENERAL] Disable Streaming Replication without restarting either master or slave

2012-05-29 Thread Fujii Masao
_backend(pid) from pg_stat_replication". Then replication connection will be terminated. The standby tries reconnecting to the master, but which will continue failing until you'll change pg_hba.conf again. Regards, -- Fujii Masao -- Sent via pgsql-general mailing list (pgsql-general@post

Re: [GENERAL] Disable Streaming Replication without restarting either master or slave

2012-05-29 Thread Fujii Masao
upgrades, etc]. > > > Are per-chance looking for pg_xlog_replay_pause() and > pg_xlog_replay_resume() ? Those can pause and resume WAL replay in the standby, but not streaming replication. Even while WAL replay is being paused, WAL can be streamed from the master to the standby. Regar

Re: [GENERAL] Disable Streaming Replication without restarting either master or slave

2012-05-29 Thread Fujii Masao
On Wed, May 30, 2012 at 2:38 AM, Michael Nolan wrote: > > > -- Forwarded message -- > From: Michael Nolan > Date: Tue, May 29, 2012 at 1:37 PM > Subject: Re: [GENERAL] Disable Streaming Replication without restarting > either master or slave > To: Fujii

Re: [GENERAL] Disable Streaming Replication without restarting either master or slave

2012-05-29 Thread Fujii Masao
end SIGTERM signal to currently-running walsender process, e.g., by >>    "select pg_terminate_backend(pid) from pg_stat_replication". > > > Will it be helpful here sending SIGINT instead of killing ? No, walsender ignores SIGINT signal. Regards, -- Fujii Masao -- Sen

Re: [GENERAL] can we avoid pg_basebackup on planned switches?

2012-08-05 Thread Fujii Masao
> Because we're using wal archiving, can we simplify and > leave out step 3? Yes. Regards, -- Fujii Masao -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] can we avoid pg_basebackup on planned switches?

2012-08-07 Thread Fujii Masao
On Mon, Aug 6, 2012 at 3:29 AM, Ben Chobot wrote: > > On Aug 5, 2012, at 11:12 AM, Fujii Masao wrote: > >> On Sat, Jul 28, 2012 at 2:00 AM, Ben Chobot wrote: >>> We make heavy use of streaming replication on PG 9.1 and it's been great for >>> us. We do have

Re: [GENERAL] When do archived WAL files gets removed after wal_keep_segments changed?

2012-11-02 Thread Fujii Masao
but the number of archived WAL segments just increased to 1018. wal_keep_segments affects the WAL files in pg_xlog directory, not archive directory. When and how to remove archived files is basically responsibility of a user. Regards, -- Fujii Masao -- Sent via pgsql-general mailing list

Re: [GENERAL] Archiver not picking up changes to archive_command

2010-05-10 Thread Fujii Masao
IGHUP once > per outer loop, so the change would only take effect once you catch up, > which is not going to help much in this case.  Possibly we should change > it to check for SIGHUP after each archive_command execution. +1 Here is the simple patch to do so. Regards, -- Fujii Masao

Re: [GENERAL] archive_command

2010-06-01 Thread Fujii Masao
ed the following > command, but it did not work: > > archive_command = 'if not exist C:\\pgsql\\backup_in_progress || copy > %p C:\\pgsqlarchive\\%f' You want to take "standalone hot backup" instead of normal one? If not, you don't need to check the file &

Re: [GENERAL] LINE 1: IDENTIFY_SYSTEM error infinitum

2010-06-30 Thread Fujii Masao
FY_SYSTEM" systemid | timeline -+-- 5488763631978937207 |1 (1 row) Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] LINE 1: IDENTIFY_SYSTEM error infinitum

2010-06-30 Thread Fujii Masao
On Thu, Jul 1, 2010 at 1:02 PM, Tom Lane wrote: > Fujii Masao writes: >> Hmm... you'd like to get the system identifier from the postgres >> server via SQL rather than starting replication? If so, you can do >> that by adding replication entry into pg_hba.conf and p

Re: [GENERAL] Queries about PostgreSQL PITR

2010-07-11 Thread Fujii Masao
very process once more, and provide > a couple of minutes > earlier time as recovery_target_time. How about setting recovery_target_timeline to the old timeline ID (= 1)? http://www.postgresql.org/docs/8.4/static/continuous-archiving.html#RECOVERY-TARGET-TIMELINE Regards, -- Fujii Masao N

Re: [GENERAL] Queries about PostgreSQL PITR

2010-07-12 Thread Fujii Masao
> timeline etc? May be doing the recovery in debug/logging mode or something > like that? xlogviewer reads WAL files and displays the contents of them. But it's been inactive for several years, so I'm not sure if it's available now. http://pgfoundry.org/projects/xlogviewer/ R

Re: [GENERAL] Application name and psql in 9.0

2010-08-05 Thread Fujii Masao
2010/8/6 Devrim GÜNDÜZ : > Why can't I see psql there? Is it just because that logging is performed > just before detecting application name? Yes. The backend checks whether target database exists, before processing application name. Regards, -- Fujii Masao NIPPON TELEGRAPH AN

Re: [GENERAL] pg 9.0, streaming replication, fail over and fail back strategies

2010-08-09 Thread Fujii Masao
nk. Since any of them prevents the master from running queries from the client, we should cause a failover. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to

Re: [GENERAL] Checking for stale reads on hot standby

2010-09-26 Thread Fujii Masao
be called instead of pg_last_xlog_receive_location. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] [9.0] hot standby plus streaming replication

2010-10-01 Thread Fujii Masao
master. You can specify how many WAL files you'd keep in the master by using wal_keep_segments parameter. http://developer.postgresql.org/pgdocs/postgres/runtime-config-wal.html#RUNTIME-CONFIG-REPLICATION Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Sourc

Re: [GENERAL] streaming replication question

2010-10-04 Thread Fujii Masao
000EA" from archive > LOG:  redo starts at 25/EA87BA18 > FATAL:  too many KnownAssignedXids > CONTEXT:  xlog redo insert: rel 1663/16399/303892827; tid 1503/119 > LOG:  startup process (PID 20693) exited with exit code 1 > LOG:  terminating any other active server processes

Re: [GENERAL] streaming replication question

2010-10-04 Thread Fujii Masao
WAL files, and I'm now proposing that. http://archives.postgresql.org/pgsql-hackers/2010-09/msg02040.php Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] streaming replication question

2010-10-05 Thread Fujii Masao
So you don't need to change wal_level and hot_standby parameters. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] How to analyze the output of debug_print_plan

2008-08-13 Thread Fujii Masao
Hi, In order to check the plan of PreparedStatement, I'm going to analyze the output of debug_print_plan. But, since its output is very complicated, it's difficult to analyze it. Please let me know the method and tool which analyze it easily. -- Fujii Masao NIPPON TELEGRAPH AND

Re: [GENERAL] Switch off PITR

2008-12-03 Thread Fujii Masao
re 10 .ready files in pg_xlog/archive_status, you might have to wait for the reloading until the archiver finish archiving 10 WAL files. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgres

Re: [GENERAL] in transaction - safest way to kill

2008-12-05 Thread Fujii Masao
On Fri, Dec 5, 2008 at 11:25 PM, Glyn Astill <[EMAIL PROTECTED]> wrote: > > select pg_cancel_backend(); No, pg_cancel_backend() cancels only *query*, and doesn't kill idle in transaction. I think that killing the backend (idle in transaction) with SIGTERM is better way. Regards,

Re: [GENERAL] timestams in the the pg_standby output

2010-01-04 Thread Fujii Masao
pt which adds the timestamp into the head of the output by using awk, perl, etc. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://w

Re: [GENERAL] WAL archiving is stuck on an old file that was deleted -- how to get it going again? (8.4.2)

2010-01-06 Thread Fujii Masao
hose .ready file exists in archive_status directory. And, note that you must get out of the archiving problem *before* making a new base backup because pg_stop_backup() waits until the last WAL file filled during backup has been archived. Otherwise, pg_stop_backup() would get stuck. Regards, -- F

Re: [GENERAL] equivalent to "replication_timeout" on standby server

2011-11-03 Thread Fujii Masao
e termination of connection from the standby server. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] equivalent to "replication_timeout" on standby server

2011-11-06 Thread Fujii Masao
t a full sync may be > required). The standby periodically tries reconnecting to the master after it detects the termination of replication connection. So even after prolonged disconnect, replication can automatically resume. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT

Re: [GENERAL] Streaming Replication woes

2011-11-06 Thread Fujii Masao
if you granted the "postgres" user the superuser privilege by using ALTER ROLE, the replication privilege would not be granted. You can check whether the "postgres" user has the replication privilege by executing "\du" command. Regards, -- Fujii Masao NIPPON TE

Re: [GENERAL] Streaming Replication woes

2011-11-08 Thread Fujii Masao
ated by pg_dumpall in 9.0 instead of 9.1? If yes, that dump file would contain the "ALTER ROLE postgres" command and revoke the replication privilege, I guess. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general m

Re: [GENERAL] recovery_target_timeline and multiple slave behavior when master fails

2011-12-18 Thread Fujii Masao
eed to have the shared archive directory. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] [ADMIN] PG synchronous replication and unresponsive slave

2012-01-16 Thread Fujii Masao
veness ? tcp connection timeouts, replication timeouts all >>> detect the failures, but i want to run some corrective action on these >>> failure detection. PostgreSQL doesn't have such a capability, but pgpool-II might have. Can you ask that in pgpool-II mailing-list? Rega

Re: [GENERAL] Does Version 9.1 Streaming Replication Supports Multi-Master?

2012-01-17 Thread Fujii Masao
Postgres-XC. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] [ADMIN] PG synchronous replication and unresponsive slave

2012-01-17 Thread Fujii Masao
t as a replication itself. You can health-check, do failover if necessary and manage the PostgreSQL replication by using pgpool-II. AFAIK pgpool-II has such an operation mode. But you are still not comfortable in using pgpool-II in that way? Regards, -- Fujii Masao NIPPON TELEGRAPH AND TEL

Re: [GENERAL] [ADMIN] PG synchronous replication and unresponsive slave

2012-01-17 Thread Fujii Masao
stat_replication or not. But I have no good idea about the way to automatically run some action like reload of the configuration file on the failure detection. Maybe you need to implement that on your own... Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source S

Re: [GENERAL] synchronous replication: blocking commit on the master

2012-02-28 Thread Fujii Masao
etting synchronous_commit to local can prevent new transactions (which are executed after setting synchronous_commit to local) from being blocked, but cannot resume the already-blocking transactions. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] restore_command is not running on my standby

2012-03-13 Thread Fujii Masao
bled there, you should get the following log message at the start of recovery: LOG: entering standby mode But you didn't get such message. So I guess that PostgreSQL failed to read recovery.conf and could not run restore_command because of wrong location of recovery.conf. Regards,

Re: [GENERAL] [streaming replication] 9.1.3 streaming replication bug ?

2012-04-10 Thread Fujii Masao
wal_keep_segments is only for offline async standby actually. What if synchronous_commit is set to local or async? Regards, -- Fujii Masao -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] [streaming replication] 9.1.3 streaming replication bug ?

2012-04-10 Thread Fujii Masao
ch Increase checkpoint_segments. In this setting, I guess checkpoints run too frequently in heavy load, and WAL files are removed too aggressively. Regards, -- Fujii Masao -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] 9.1.3 Standby catchup mode

2012-04-10 Thread Fujii Masao
case of a slave failure I could use a weekly backup and let the > catchup mode do the rest? Or does that only work if you use WAL archive? Or increase wal_keep_segments to high so that all WAL files which the standby requests are guaranteed to exist in the pg_xlog directory of the master. Regard

Re: [GENERAL] [streaming replication] 9.1.3 streaming replication bug ?

2012-04-11 Thread Fujii Masao
e and implement the patch. Regards, -- Fujii Masao -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] [streaming replication] 9.1.3 streaming replication bug ?

2012-04-11 Thread Fujii Masao
On Thu, Apr 12, 2012 at 12:56 AM, Fujii Masao wrote: > On Wed, Apr 11, 2012 at 3:31 PM, 乔志强 wrote: >> So in sync streaming replication, if master delete WAL before sent to the >> only standby, all transaction will fail forever, >> "the master tries to avoid a PANIC err

Re: [HACKERS] [GENERAL] [streaming replication] 9.1.3 streaming replication bug ?

2012-04-12 Thread Fujii Masao
icular standby should no longer be included? Probably the latter. So as Robert pointed out, we need neat API to register and drop the standby. Though I have no good idea about this.. BTW, I have another idea about wal_keep_segments problem. http://archives.postgresql.org/message-id/AANLkTinN=xspoo

Re: [GENERAL] pgstat wait timeout

2012-04-20 Thread Fujii Masao
; pgstat.c:3807 > > I searched and to fix it it was recommended to disable autovacuum, I did it > and it worked, but how can I fix it without disabling autovacuum?. This might be alleviated by setting stats_temp_directory to point to a ramdisk. Regards, -- Fujii Masao -- Sent via pgs

Re: [GENERAL] Streaming replication: sequences on slave seemingly ahead of sequences on master

2012-05-07 Thread Fujii Masao
searched the behavior a bit; in particular I believe this can be > adjusted with the sequence CACHE setting. No. That behavior is caused by the hard-coded value SEQ_LOG_VALS (= 32 in sequence.c) rather than CACHE setting. Regards, -- Fujii Masao -- Sent via pgsql-general mailing list (pgsql-

Re: [GENERAL] tcp_keepalives_idle setting

2008-12-10 Thread Fujii Masao
me behaviour as > Henry. > I'm trying to find out if Mac OS belongs to those platforms that doesn't > allow adjustment of the TCP keepalive parameters from userspace, and if so, > how i can change the systems settings as root. Do you use TCP/IP socket when you execute SHOW AL

Re: [GENERAL] New 8.4 hot standby feature

2009-01-27 Thread Fujii Masao
frequently, they cannot be applied until the log file fills. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] New 8.4 hot standby feature

2009-01-28 Thread Fujii Masao
Hi, On Thu, Jan 29, 2009 at 12:23 AM, Jason Long wrote: > Is pg_clearxlogtail going to be in contrib or integrated in some other way? I also hope so. The related topic was discussed before. http://archives.postgresql.org/pgsql-hackers/2009-01/msg00639.php Regards, -- Fujii Masao NIP

Re: [GENERAL] speaking of 8.4...

2009-02-24 Thread Fujii Masao
Hi, On Tue, Feb 24, 2009 at 5:16 AM, John R Pierce wrote: > is it looking like the simple replication will make it into 8.4? You mean the built-in synchronous replication feature? If so, no. It was decided that synch-rep will be postponed to 8.5. Regards, -- Fujii Masao NIPPON TELEGRAPH

Re: [GENERAL] PITR - warm standby switchover question

2009-04-15 Thread Fujii Masao
ically renamed recovery.done by postgres at the end of recovery, which would prevent accidentally restarting warm-standby. So, you don't need to delete or rename recovery.conf by hand after recovery. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software C