Commit 815d71d
committed
If multiple recovery_targets are specified, use the latest one.
The docs say that only one of recovery_target_xid, recovery_target_time, or
recovery_target_name can be specified. But the code actually did something
different, so that a name overrode time, and xid overrode both time and name.
Now the target specified last takes effect, whether it's an xid, time or
name.
With this patch, we still accept multiple recovery_target settings, even
though docs say that only one can be specified. It's a general property of
the recovery.conf file parser that you if you specify the same option twice,
the last one takes effect, like with postgresql.conf.1 parent 847e46a commit 815d71d
1 file changed
+0
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5402 | 5402 | | |
5403 | 5403 | | |
5404 | 5404 | | |
5405 | | - | |
5406 | | - | |
5407 | | - | |
5408 | | - | |
5409 | | - | |
5410 | | - | |
5411 | | - | |
5412 | 5405 | | |
5413 | 5406 | | |
5414 | 5407 | | |
| |||
5425 | 5418 | | |
5426 | 5419 | | |
5427 | 5420 | | |
5428 | | - | |
5429 | | - | |
5430 | | - | |
5431 | | - | |
5432 | | - | |
5433 | | - | |
5434 | 5421 | | |
5435 | 5422 | | |
5436 | 5423 | | |
| |||
0 commit comments