<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto">Hello pgpool hackers<br />
<br />
I want to submit a patch for the latest version of pgpool. In the sample file for follow_primary.sh script, after the pg_rewind, we do this:<br />
<br />
cat > ${RECOVERYCONF} << EOT<br />
primary_conninfo = 'host=${NEW_PRIMARY_NODE_HOST} port=${NEW_PRIMARY_NODE_PORT} user=${REPLUSER} application_name=${NODE_HOST} passfile=''/var/lib/pgsql/.pgpass'''<br />
recovery_target_timeline = 'latest'<br />
restore_command = 'scp ${NEW_PRIMARY_NODE_HOST}:${ARCHIVEDIR}/%f %p'<br />
primary_slot_name = '${NODE_HOST}'<br />
EOT<br />
<br />
But we never tell the $NODE_HOST to actually use these changes in case of version >= 12.<br />
<br />
I believe we have a missing command similar to the one after pg_basebackup:<br />
<br />
if [ ${PGVERSION} -ge 12 ]; then<br />
 sed -i -e \"\\\$ainclude_if_exists = '$(echo ${RECOVERYCONF} | sed -e 's/\//\\\//g')'\" \<br />
 -e \"/^include_if_exists = '$(echo ${RECOVERYCONF} | sed -e 's/\//\\\//g')'/d\" ${NODE_PGDATA}/postgresql.conf<br />
fi<br />
<br />
Can you please confirm that my theory is correct? If yes, would you like me to submit a patch for this?</div>
</div>
<div name="messageSignatureSection"><br />
<div class="matchFont">
<div dir="auto">Cheers!
<div dir="auto"><br /></div>
<div dir="auto">Anirudh</div>
</div>
</div>
</div>
</body>
</html>