Plаintiff appeals from a judgment entered after trial on the merits denying him a peremptory writ of prohibition. The appeal was taken on the judgment roll, and *179 the facts appearing therefrom are these: On June 5, 1933, a money judgment was entered against appellant in the Justice’s Court of the City of Berkeley, from which no appeal was taken; and on March 14, 1939, the judgment creditor presented а motion based on section 685 of the Code of Civil Procedure to have said judgment enforced and carried into execution. Aрpellant contested the motion, and at the conclusion of the hearing the motion was granted. On the following day, March 15, 1939, apрellant instituted this proceeding in prohibition to restrain said justice’s court and the presiding justice thereof from taking any further proceedings in the matter; but on the same day also, said justice’s court, pursuant to the order granting said motion, issued a writ of execution, which was still outstanding at the time of the trial herein. The writ was issued, so the trial court found, without knowledge of the pendency of the prohibition proceeding.
Respondent, Justice’s Court of the City of Berkeley, is a justice’s court of class A (sec. 81, Code Civ. Proc.). Its territorial jurisdiction extends over the entire city, which at all times herein mentioned had a population of more than 30,000; and section 685 of the Code of Civil Procedure provides as follows: “In all cases the judgment may be enforced or carried into execution after the lapsе of five years from the date of its entry, by leave of the court, upon motion, and after due notice to the judgment debtor acсompanied by an affidavit or affidavits setting forth the reasons for failure to proceed in compliance with the provisions оf section 681 of this code. ...” The theory upon which appellant sought to obtain the writ of prohibition was that said justice’s court was withоut jurisdiction to entertain or grant a motion under the provisions of the foregoing section.
We are of the opinion that the trial court’s decision denying the writ is sustainable on any one of three grounds: First, a writ of prohibition may be resorted to only as a method of restraining the exercise of judicial functions; that is, to prevent the commission of a future act. It cannot be used to serve the purpose of a writ of
certiorari
for the review and nullification of a judicial act already performed. Moreover, it is not obtainable to рrevent the commission of an act which is merely ministerial
(Dunn
v.
Justice’s Court,
Secondly, a writ of prohibition will not lie where there is a plain, speedy аnd adequate remedy by way of appeal
(Dunn
v.
Justice’s Court, supra; Valentine
v.
Police Court, supra; Plocher
v.
Superior Court,
Thirdly, by virtue of the provisions of sectiоn 34 of the Code of Civil Procedure, as re-enacted in 1933 effective August 21, 1933, said section 685 is made applicable to all trial cоurts. In terms it provides: “The provisions of this code relating to the commencement and prosecution of, and the practicе, procedure,
and enforcement of judgments
and decrees in, actions and proceedings in trial courts, shall apply to all such courts, except where special provision is made for particular courts, or where a general provision is not applicable by reason of jurisdictional limitations.” And prior to the effective date of the foregoing section the provisions of section 685 were made available to municipal courts and to justices’ courts in cities having a population of 30,000 or more, by virtue of sections 83 Id and 83 Ih of said code. The former, with certain exceptions not pertinent here, provided: “The rules of pleading and practiсe applicable to the prose
*181
cution of civil actions
and enforcement of judgments
in the superior court of this state shall apply to and govern the prosecution and maintenance of civil actions
and enforcement of judgments
in the municipal courts of this state . . . ”; whereas section 831h, governing justices’ courts in cities having a population of 30,000 or more, in turn provided: “ . . . the rules of pleading and practice applicable to the prosecution of civil actions
and enforcement of judgments
in the municipal courts of this state shall apply to and govern the prosecution and maintenance of сivil actions
and enforcement of judgments
in said justices’ courts.” (All italics ours.) From the foregoing it will be seen that the Justice’s Court of the City of Berkeley continuously from the time of the rendition of the judgment against appellant to and including the time of the granting of the order in question was vested with full statutory authority to exercise the powers and grant the relief embodied in said section 685. The case of
Teel
v.
Justice’s Court,
For the reasons and upon the grounds stated, the judgment is affirmed.
Peters, P. J., and Ward, J., concurred.
