If there are parameters other than "user", "database" and
"application_name", reading startup packet resulted in failing to
extract user: "no PostgreSQL user name specified in startup
packet". This was found while a frontend was trying to speak
replication protocol by using "replication=database".
Discussion: https://www.pgpool.net/pipermail/pgpool-general/2020-June/007162.html
(errmsg("reading startup packet"),
errdetail("application_name: %s", p)));
}
+ else
+ {
+ p += (strlen(p) + 1);
+ }
p += (strlen(p) + 1);
}