1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
pgbackrest/test/expect
David Steele 02b06aa495
Increase max index allowed for pg/repo options to 256.
The prior limitations were based on using getopt_long() to parse command-line options, which required a static list of allowed options. Setting index max too high bloated the binary unacceptably. 45a4e80 replaced the functionality of getopt_long() but the static list remained.

Improve cfgParseOption() to use available option data and remove the need for a static list. This also allows the option deprecations to be represented more compactly.

Index max is still capped at 256 because a large enough index could cause parseOptionIdxValue() to run out of memory since it allocates a static list based on the highest index found. If that function were improved with a map of found index values then index max could be set to UINT64_MAX.

Note that deprecations no longer set an index max or define whether reset is valid. These were space-saving measures which are no longer required. This means that indexed deprecated options will also be valid up to 256 and always allow reset, but it doesn't seem worth additional code to limit this behavior.

cfgParseOptionId() is no longer needed because calling cfgParseOption() with .ignoreMissingIndex = true duplicates the functionality of cfgParseOptionId(). This leads to some simplification in the help code.
2021-08-31 12:09:50 -04:00
..
mock-all-001.log Log backup file total and restore size/file total. 2021-08-11 13:39:36 -04:00
mock-all-002.log Log backup file total and restore size/file total. 2021-08-11 13:39:36 -04:00
mock-archive-001.log Improve archive-push command fault tolerance. 2021-03-25 12:54:49 -04:00
mock-archive-002.log Improve archive-push command fault tolerance. 2021-03-25 12:54:49 -04:00
mock-archive-stop-001.log Improve archive-push command fault tolerance. 2021-03-25 12:54:49 -04:00
mock-archive-stop-002.log Use lower-case names from Azure identifiers in integration tests. 2021-06-09 12:28:40 -04:00
mock-expire-001.log Change archive expiration logging from detail to info level. 2021-05-27 08:03:44 -04:00
mock-expire-002.log Change archive expiration logging from detail to info level. 2021-05-27 08:03:44 -04:00
mock-stanza-001.log Log backup file total and restore size/file total. 2021-08-11 13:39:36 -04:00
mock-stanza-002.log Log backup file total and restore size/file total. 2021-08-11 13:39:36 -04:00
real-all-001.log Increase max index allowed for pg/repo options to 256. 2021-08-31 12:09:50 -04:00