On Wed, Feb 10, 2010 at 4:47 AM, Heikki Linnakangas
wrote:
> Here's what I came up with. Translatability indeed makes it pretty hard,
> I ended up copy-pasting.
>
> BTW, I don't think I'm going to bother or risk back-patching this. It
> was harmless, and for forensic purposes all the information w
Heikki Linnakangas escribió:
> Here's what I came up with. Translatability indeed makes it pretty hard,
> I ended up copy-pasting.
Looks sane to me too; msgmerge segfaults though so I couldn't test. Two
minor comments:
> + /*--
> + translator: %s is a noun phrase d
Heikki Linnakangas writes:
> Tom Lane wrote:
>> Yes. Please see the existing code in the postmaster that prints
>> subprocess exit codes, and duplicate it (or perhaps refactor so you can
>> avoid code duplication; though translatability of messages might limit
>> what you can do there).
> Here's
Tom Lane wrote:
> Robert Haas writes:
>> On Fri, Jan 29, 2010 at 3:32 PM, Heikki Linnakangas
>>> That only affects the error message and is harmless otherwise, but I
>>> thought I'd mention it. I'll fix it, unless someone wants to argue that
>>> its more useful to print the raw return value of sys
Mason Hale wrote:
> Given that this situation did NOT actually cause corruption, rather the
> error message was mangled such that it suggested corruption, I offer this
> revised suggestion for update to the documentation:
>
> Important note: It is critical the trigger file be created with permissi
Robert Haas writes:
> On Fri, Jan 29, 2010 at 3:32 PM, Heikki Linnakangas
>> That only affects the error message and is harmless otherwise, but I
>> thought I'd mention it. I'll fix it, unless someone wants to argue that
>> its more useful to print the raw return value of system(), because it
>> m
On Fri, Jan 29, 2010 at 3:32 PM, Heikki Linnakangas
wrote:
> Actually, I think there's a tiny harmless bug in the server too. When it
> prints the error message:
>
> 2010-01-18 21:08:31 UTC ()FATAL: could not restore file
> "00023C8200D8" from archive: return code 65280
>
> That retur
Actually, I think there's a tiny harmless bug in the server too. When it
prints the error message:
2010-01-18 21:08:31 UTC ()FATAL: could not restore file
"00023C8200D8" from archive: return code 65280
That return code is not the return code that came from the
restore_command. Ie if
>
>
> >> If the sysadmin had left the recovery.conf and removed the trigger file,
> >> pg_standby in restore_command would have restored all WAL files required
> >> for recovery, and recovery would advance well.
> >
> > That may be true, but it's certainly seems unfortunate that we don't
> > handle
Robert Haas wrote:
> On Fri, Jan 29, 2010 at 11:02 AM, Fujii Masao wrote:
>> You seem to focus on the above trouble. I think that this happened because
>> recovery.conf was deleted and restore_command was not given. In fact, the
>> WAL file (e.g., pg_xlog/00023C8200A3) required for rec
On Fri, Jan 29, 2010 at 11:02 AM, Fujii Masao wrote:
> You seem to focus on the above trouble. I think that this happened because
> recovery.conf was deleted and restore_command was not given. In fact, the
> WAL file (e.g., pg_xlog/00023C8200A3) required for recovery
> was unable to be
Hello Fujii --
Thanks for the clarification. It's clear my understanding of the recovery
process is lacking.
My naive assumption was that Postgres would recover using whatever files
were available
and if it had run out of files it would stop there and come up. And that if
recovery.conf were renam
> On Fri, Jan 29, 2010 at 12:03 AM, Mason Hale wrote:
> > Of course the best solution is to avoid this issue entirely. Something as
> > easy to miss as file permissions should not cause data corruption,
> > especially in the process meant to fail over from a crashing primary
> > database.
>
> I be
On Fri, Jan 29, 2010 at 11:49 PM, Mason Hale wrote:
> While I did not remove the trigger file, I did rename recovery.conf to
> recovery.conf.old.
> That file contained the recovery_command configuration that identified the
> trigger file. So that rename should have eliminated the problem. But it
>
On Fri, Jan 29, 2010 at 12:03 AM, Mason Hale wrote:
> Of course the best solution is to avoid this issue entirely. Something as
> easy to miss as file permissions should not cause data corruption,
> especially in the process meant to fail over from a crashing primary
> database.
I believe that su
Hello Heikki --
Thank you for investigating this issue and clearing up this mystery.
I do not believe it is obvious that the postgres process needs to be able to
remove the trigger file.
My naive assumption was that the trigger file was merely a flag to signal
that recovery mode needed to be stop
Mason Hale wrote:
> ERROR: could not remove "/tmp/pgsql.trigger.5432": Operation not
> permittedtrigger file found
>
> ERROR: could not remove "/tmp/pgsql.trigger.5432": Operation not permitted
>
> This file was not looked until after the attempt to recover was
> aborted. Clearly the permission
Hello --
We are using PostgreSQL 8.3.8 with a Warm Standy (PITR) setup.
Recently we experienced a failure on our primary database server and
when we attempted to fail over to the standby server it would not come
up.
This configuration has been tested previously (we've successfully
transferred fro
18 matches
Mail list logo