Let $D \subset \mathbb C^n$ be a domain and let $f \in \mathscr O(D)$, $f \not\equiv 0$ be a holomorphic function. Define $$ V_f = \bigl\{ z \in D : f(z) = 0 \bigr\}. $$ Let $p \in V_f$. Suppose that $f$ is irreducible in the ring of germs $\mathscr O_p$. Is it true that there exists a neighborhood $U$ of point $p$ such that $f$ is irreducible in $\mathscr O_q$ for all $q \in V_f \cap U$? Maybe I should use somehow the property that if two functions in $\mathscr O_p$ are relatively prime then they will be relatively prime in $\mathscr O_q$ for $q$ close to $p$?
Update. If $f$ is reducible in $\mathscr O_q$ then $f = f_1 f_2$ in a neighborhood of $q$ with $f_1(q)=f_2(q)=0$. This implies that $f(q)=0$ and $\frac{\partial f(q)}{\partial z_k}=0$, $k=1$, $\dots$, $n$. If at point $p$ some $\frac{\partial f(p)}{\partial z_k} \neq 0$ then the statement is true.
Update 2. Suppose that $f$ divides all $\frac{\partial f}{\partial z_k}$ in $\mathscr O_p$ so that we have $$ \frac{\partial f}{\partial z_k} = fh_k, \quad k =1,\ldots,n, $$ in a neighborhood of $p$ with holomorhic $h_k$, $h_k(0) = 0$. Differentiating these equalities we obtain $$ \frac{\partial^2 f}{\partial z_k \partial z_l} = \frac{\partial f}{\partial z_l} h_k + f \frac{\partial h_k}{\partial z_l}, $$ this implies $\frac{\partial^2 f(p)}{\partial z_k z_l} = 0$ for all $k$, $l$. We can continue this process showing that all derivatives of $f$ at $p$ are equal to zero so that $f \equiv 0$.
The only remaining case when the statement may be false is when all $\frac{\partial f}{\partial z_k}(p)=0$ and $f$ doesn't divide some $\frac{\partial f}{\partial z_k}$ in $\mathscr O_p$.