简体   繁体   中英

PostgreSQL - Is it possible to call Python function from compiled file in SELECT statement?

Is it possible to call Python function from compiled Python .pyc ( .pyo) file in SELECT statement, like in Oracle SQL DML (like described in https://web.stanford.edu/dept/itss/docs/oracle/10gR2/java.102/b14187/chseven.htm in paragraph "Calling Java from SQL DML")?

Ie, I want something like

SELECT myPythonFunctionFromPycFile(ename, job) AS "Employees" FROM emp

PS I don't want to decompile *.pyc file.

Thank you!

Nope, it's impossible now - that's I found after some digging into the Postgresql docs. :(

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM