Cal. Penal Code § 1342
The attendance of the witness may be enforced by a subpoena, issued by the magistrate before whom the examination is to be taken.