Re: increasing the default WAL segment size
Robert Haas <robertmhaas@gmail.com>
On Thu, Aug 25, 2016 at 9:48 AM, Stephen Frost <sfrost@snowman.net> wrote: > * Robert Haas (robertmhaas@gmail.com) wrote: >> Meanwhile, we'll significantly help people who are currently >> generating painfully large but not totally insane numbers of WAL >> segments. Someone who is currently generating 32,768 WAL segments per >> day - about one every 2.6 seconds - will have a significantly easier >> time if they start generating 8,192 WAL segments per day - about one >> every 10.5 seconds - instead. It's just much easier for a reasonably >> simple archive command to keep up, "ls" doesn't have as many directory >> entries to sort, etc. > > I'm generally on-board with increasing the WAL segment size, and I can > see the point that we might want to make it more easily configurable as > it's valuable to set it differently on a small database vs. a large > database, but I take exception with the notion that a "simple archive > command" is ever appropriate. My point wasn't really that archive_command should actually be simple. My point was that if it's being run multiple times per second, there are additional challenges that wouldn't arise if it were being run only every 5-10 seconds. I guess I should have said "simpler" rather than "reasonably simple", because there's nothing simple about setting archive_command properly. I mean, it could only actually be simple if somebody had a good a backup tool that provided an archive_command that you could just drop in place. But I'm sure if somebody had such a tool, they'd take every opportunity to bring it up, so we doubtless would have heard about it by now. Right? :-) -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
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