You'll also find that the replicas are behind a pgbouncer in statement-pooling mode, with very short statement and idle connection timeouts.
So you can't use anything transaction or session scoped like SET, SET LOCAL, prepared statements, etc. Protocol-level bind parameters will still work for clients that use those, though.