Let $f\colon X\to D$ be a morphism of a complex analytic space $X$ into the 1-dimensional disk $D$. Assume for simplicity that $X$ has a single irreducible component which may not be reduced.
Question: is it true that if $f$ is onto then $f$ is flat?
(I am not a specialist, and the answer is not known to me even if $X$ is reduced.)
If the answer is no, I would be curious to know if there is a correct reformulation of this result and what is the natural generality. Of course, a reference will be most useful.
This question is an analytic version of the following well known algebraic criterion. Let $f\colon X\to Y$ be a morphism of schemes when $Y$ is integral regular 1-dimensional. Assume for simplicity that $X$ is reduced and irreducible (these conditions may be relaxed). Then $f$ is flat if and only if $X$ dominates $Y$. (See Hartshorne's book, Ch. III, Prop. 9.7.)