Does $\operatorname{Spec}$ preserve pushouts?

It will be true if both maps youre pushing out along are closed embeddings. It will also be true if one of the maps is an infinitesimal thickening (= a closed embedding which induces an isomorphism on the reduced closed subschemes). This type of thing is useful in defromation theory. In general, you should be able to find counterexamples pretty easily.


Pullbacks in $\mathbf{CRing}$ do not necessarily go to pushouts in $\mathbf{Sch}$ or $\mathbf{Set}$. Consider the construction of $\mathbb{P}^1_k$: in $\mathbf{Sch}$ (resp. $\mathbf{Set}$), we have the following pushout square, $$\require{AMScd} \begin{CD} \mathbb{A}^1_k \setminus \{ 0 \} @>>> \mathbb{A}^1_k \\ @VVV @VVV \\ \mathbb{A}^1_k @>>> \mathbb{P}^1_k \end{CD}$$ but if pullbacks in $\mathbf{CRing}$ go to pushouts in $\mathbf{Sch}$ (resp. $\mathbf{Set}$), that would imply that $\mathbb{P}^1_k \cong \operatorname{Spec} k$, which is nonsense.