Let $U \subset \mathbb C^n$ be a domain and $X \subset U$ a connected analytic subset. Does the maximum modulus principle hold for $X$? That is, if I have a holomorphic function $f : U \to \mathbb C$ whose modulus attains a maximum value on $X$, is $f$ then constant on $X$?
(Obviously, this is true if $X$ does not have singularities, because then $X$ is itself a complex manifold. But what if $X$ does have singularities?)
Yes, the maximum modulus principle holds for $X$. See Gunning and Rossi, “Analytic Functions of Several Complex Variables”, chapter III, theorem B.16, p. 106: