If a postponement is had, the magistrate must commit the defendant for examination, admit him to bail or discharge him from custody upon the deposit of money as provided in this Code, as security for his appearance at the time to which the examination is postponed.