Re: Problem while setting the fpw with SIGHUP
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>, Robert Haas <robertmhaas@gmail.com>, hlinnaka <hlinnaka@iki.fi>, Dilip Kumar <dilipbalaut@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2018-09-27T05:04:40Z
Lists: pgsql-hackers
On Thu, Sep 27, 2018 at 10:03:59AM +0530, Amit Kapila wrote: > I think, in this case, it might be advisable to just fix the problem > (a) which is what has been reported originally in the thread and > AFAICS, the fix for that is clear as compared to the problem (b). If > you agree, then we can discuss what is the best fix for the first > problem (a). Okay, thanks for the input. The fix for (a) would be in my opinion to just move the call to RecoveryInProgress() out of the critical section, then save the result into a variable, and use the variable within the critical section to avoid the potential palloc() problems. What do you think? -- Michael
Commits
-
Fix assertion failure when updating full_page_writes for checkpointer.
- 85cc9c4e2da8 9.5.15 landed
- e315bd7db96a 9.6.11 landed
- 8256d7ae9ee3 10.6 landed
- 6c8671bc395c 11.0 landed
- a86bf6057edf 12.0 landed
-
Attach FPI to the first record after full_page_writes is turned on.
- 47a589c1fe35 9.5.15 landed
- fd4f2af774db 9.6.11 landed
- ede7d8192ca3 10.6 landed
- ff4220ead2c8 11.0 landed
- bc153c941d2e 12.0 landed
-
Revamp the WAL record format.
- 2c03216d8311 9.5.0 cited
-
Move the backup-block logic from XLogInsert to a new file, xloginsert.c.
- 2076db2aea76 9.5.0 cited