Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
38 views

it's my function code ~~~~sql DO $$ from subprocess import PIPE,Popen import os import sys env = os.environ.copy() reload(sys) sys.setdefaultencoding('utf-8') plpy.notice(sys....
mateo's user avatar
  • 89
0 votes
0 answers
265 views

I'm trying to use plpython3u with postgresql on windows 11, and I want to use the requests library to make http requests.. So I did this test function: CREATE OR REPLACE FUNCTION teste() ...
Guilherme Rodrigues's user avatar
1 vote
0 answers
74 views

I am trying to use an anaconda environment inside my plpython3u function in postgres 15. Here is what I tried so far: DROP FUNCTION use_anaconda_env(); CREATE OR REPLACE FUNCTION use_anaconda_env() ...
AndCh's user avatar
  • 339
0 votes
0 answers
42 views

The below example demonstrates using dask delayed funtions (ref) from within postgres plpython while using "plpy.execute" (ref) to query the database. It returns an error: ERROR: ...
Shadi's user avatar
  • 10.4k
0 votes
0 answers
494 views

I have Postgresql 12.8.1 version and python 3.7.6 version installed on my system. I want to create a trigger function using plpython so I created plpython3 extension using CREATE EXTENSION plpython3u ....
Vedant Barbhaya's user avatar
1 vote
1 answer
1k views

First off , my question is posted after reading many other questions like this one Install PL/Python on Windows for PostgreSQL 12 and various trials of previous methods and comments. But I ve been ...
jiquvox's user avatar
  • 11
3 votes
4 answers
7k views

I've been working on FHIR for a project and we are using PostgreSQL as a database. While reading docs, I've come to know about PL/Python and decided to give it a shot but I am unable to install the ...
Khizar Iqbal's user avatar
1 vote
0 answers
148 views

I've been trying to create some custom functions in postgresql using PL/Python. However some python libraries import fail because PL/Python has no access to the LD_LIBRARY_PATH variable: CREATE OR ...
dvidmon's user avatar
  • 11
2 votes
2 answers
184 views

CREATE OR REPLACE FUNCTION CLEAN_STRING(in_str varchar) returns varchar AS $$ def strip_slashes(in_str): while in_str.endswith("\\") or in_str.endswith("/"): in_str = in_str[:-1] ...
Deepak K M's user avatar
5 votes
1 answer
14k views

I am getting an error while creating an extension in Postgresql version 10 could not load library "C:/Program Files/PostgreSQL/10/lib/plpython3.dll": The specified module could not be found CREATE ...
Rahul Gour's user avatar
0 votes
1 answer
104 views

I'm working with PLPython3u in Postgres 9.6. I have installed the extra package under Ubuntu and this code runs: response = db.query([[ CREATE or REPLACE FUNCTION bytea_import() RETURNS void as $$ ...
timbo's user avatar
  • 14.6k