pgsql: Only allow one recovery target setting

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

pgsql: Only allow one recovery target setting

Peter Eisentraut-2
Only allow one recovery target setting

The previous recovery.conf regime accepted multiple recovery_target*
settings and used the last one.  This does not translate well to the
general GUC system.  Specifically, under EXEC_BACKEND, the settings
are written out not in any particular order, so the order in which
they were originally set is not available to new processes.

Rather than redesign the GUC system, it was decided to abandon the old
behavior and only allow one recovery target setting.  A second setting
will cause an error.  However, it is allowed to set the same parameter
multiple times or unset a parameter and set a different one.




Modified Files
doc/src/sgml/config.sgml                    |  2 +-
src/backend/utils/misc/guc.c                | 46 ++++++++++++++++++++++++++---
src/test/recovery/t/ | 46 ++++++++++++-----------------
3 files changed, 62 insertions(+), 32 deletions(-)