Re: increasing the default WAL segment size
Andres Freund <andres@anarazel.de>
On 2016-08-26 13:07:09 +0900, Michael Paquier wrote: > On Fri, Aug 26, 2016 at 12:54 PM, Amit Kapila <amit.kapila16@gmail.com> wrote: > > On Fri, Aug 26, 2016 at 9:04 AM, Michael Paquier > > <michael.paquier@gmail.com> wrote: > >> On Fri, Aug 26, 2016 at 12:25 PM, Amit Kapila <amit.kapila16@gmail.com> wrote: > >>> If we change the default to 64MB, then I think it won't allow to use > >>> old databases as-is because we store it in pg_control (I think one > >>> will get below error [1] for old databases, if we just change default > >>> and don't do anything else). Do you have way to address it or you > >>> think it is okay? > >> > >> Those would still be able to work with ./configure > >> --with-wal-segsize=16, so that's not really an issue. > >> > > > > Right, but do we need suggest users to do so? The question/point was > > if we deliver server with default value as 64MB, then it won't allow > > to start old database. > > Right, pg_upgrade could be made smarter by enforcing a conversion with > a dedicated option: we could get away by filling the existing segments > with zeros and add an XLOG switch record at the end of each segments > formerly at 16MB converted to 64MB. That would still be better than > converting each page LSN :( Maybe I'm missing something here - but why would we need to do any of that? The WAL already isn't compatible between versions, and we don't reuse the old server's WAL anyway? Isn't all that's needed relaxing some error check?
Commits
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Make WAL segment size configurable at initdb time.
- fc49e24fa69a 11.0 landed
-
Perform only one ReadControlFile() during startup.
- 8356753c212a 11.0 landed
-
Introduce BYTES unit for GUCs.
- 6e7baa322773 11.0 landed
-
Remove useless duplicate inclusions of system header files.
- 9e3755ecb2d0 10.0 cited
-
Refactor other replication commands to use DestRemoteSimple.
- bbd8550bce14 10.0 landed
-
Add a SHOW command to the replication command language.
- d1ecd539477f 10.0 landed
-
Add a new DestReceiver for printing tuples without catalog access.
- a84069d93504 10.0 landed
-
Support fls().
- 4f658dc851a7 9.2.0 cited
-
Extend yesterday's patch making BLCKSZ and RELSEG_SIZE configurable to also
- cf9f6c8d8e9d 8.4.0 cited
-
Commit the reasonably uncontroversial parts of J.R. Nield's PITR patch, to
- c3c09be34b6b 8.0.0 cited
-
XLOG (also known as WAL -:)) Bootstrap/Startup/Shutdown.
- 47937403676d 7.1.1 cited
-
Transaction log manager core code.
- 30659d43eb73 7.1.1 cited