I have an application that uses PostgreSQL but also interacts with a third-party-controlled database on MSSQL. The data are sometimes tied together closely enough that it becomes desirable to do things like:
select thing_from_pg, thing_from_ms_crossover_function(thing_from_pg) -- etc
Currently I implement thing_from_ms_crossover_function
in plperl. Is there a way to do this in plpgsql or something, so that I don't need to start a plperl interpreter for such cases?
Another option is obviously to access both databases from my client app, but that becomes far less convenient than the view syntax above.