Exclude special values in recovery_target_time
authorSimon Riggs <simon@2ndQuadrant.com>
Thu, 7 Sep 2017 11:56:34 +0000 (04:56 -0700)
committerSimon Riggs <simon@2ndQuadrant.com>
Thu, 7 Sep 2017 11:56:34 +0000 (04:56 -0700)
commitf06588a8e6d1e2bf56f9dfa58d97e7956050ddc7
treec164c4d23f7051f2397f860baa9033a9af77ffd6
parent793a89c1966733c84edacaa25ce47b72a75f3afb
Exclude special values in recovery_target_time

recovery_target_time accepts timestamp input, though
does not allow use of special values, e.g. “today”.
Report a useful error message for these cases.

Reported-by: Piotr Stefaniak
Author: Simon Riggs
Discussion: https://postgr.es/m/CANP8+jJdKA+BkkYLWz9zAm16Y0s2ExBv0WfpAwXdTpPfWnA9Bg@mail.gmail.com
src/backend/access/transam/xlog.c