"Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com> writes:
> I am thinking about reimplementation PL/pgPSM, where code should be
> shared with PL/pgSQL. I have idea of some middle language, that should
> be used for both languages. This language could be based on SPI
> interface with some procedural elements (if, jmp, return).
You mean exposed to the user? Why would anyone want that? By the time
you had added enough features to it to be usable, you'd have plpgsql
or equivalent.
regards, tom lane