Eliminate replication protocol error related to IDENTIFY_SYSTEM.
authorJeff Davis <jdavis@postgresql.org>
Fri, 9 Jul 2021 15:48:19 +0000 (08:48 -0700)
committerJeff Davis <jdavis@postgresql.org>
Fri, 9 Jul 2021 18:37:45 +0000 (11:37 -0700)
commit8e7811e952b4e0993330f7ac1fb1448a1ca69b9a
treecc93ddbafcbc6f063996d23454e54f7f9fd682b4
parent31e8cfac5845fa57e1805f4ff81e00ab78dff025
Eliminate replication protocol error related to IDENTIFY_SYSTEM.

The requirement that IDENTIFY_SYSTEM be run before START_REPLICATION
was both undocumented and unnecessary. Remove the error and ensure
that ThisTimeLineID is initialized in START_REPLICATION.

Elect not to backport because this requirement was expected behavior
(even if inconsistently enforced), and is not likely to cause any
major problem.

Author: Jeff Davis
Reviewed-by: Andres Freund
Discussion: https://postgr.es/m/de4bbf05b7cd94227841c433ea6ff71d2130c713.camel%40j-davis.com
src/backend/replication/walsender.c