stpcpy not used by Postgres or by the Citus team much. An option that is probably more readable and is more familiar to the team is snprintf.