Skip to main content
0votes
0answers
32views

How to normally output a path containing non-English characters in Popen

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
0votes
0answers
131views

python function for plpython3u

I have a python function that works perfectly, but I need to pass it to plpython3u (don't ask me why, juniors only obey) python function: import cryptography.hazmat.primitives.serialization.pkcs12 ...
Guilherme Rodrigues's user avatar
0votes
0answers
237views

how to download modules to use with plpython postgresql

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
0votes
0answers
288views

ERROR: could not load library plpython3u postgresql

I'm trying to install the plpython3u extension in my postgresql with this command: CREATE EXTENSION plpython3u; mas eu recebo este erro: ERROR: could not load library "C:/Program Files/PostgreSQL/...
Guilherme Rodrigues's user avatar
1vote
0answers
73views

plpython3u anaconda environment

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
2votes
1answer
193views

problem to access of the properties of an edge when using plpython3u in PostgreSQL to create functions

I implement python function for for the following query and i get correct answer, but when i try to create functions in postgreSQL by using plpython3u extension, it doesn't have any error but still ...
Jaber's user avatar
0votes
0answers
41views

Using dask delayed function from within postgresql plpython with "plpy.execute"

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
0votes
1answer
105views

plpython3: can a function return a 'class' or 'generator' object to a query

I am running a docker container with a postgres image. The image includes python3, pandas, and networkx. The combination allows me to construct a graph from the db data all within the postgres ...
MikeB2019x's user avatar
0votes
0answers
491views

Error while running plpython function in postgresql

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
1vote
1answer
383views

PostgreSQL: PL/Python function not taking ARRAY input parameter

Objective: Creating a full text search engine using PostgreSQL FTS. Populating tsvector: I have a tsvector column. To populate tsvector column, I am executing a trigger which calls a procedure which ...
Kaushik Acharya's user avatar
1vote
1answer
1kviews

Cannot install plpython for postgres 12

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
6votes
1answer
742views

Can python venv be used with plpython3u for postgresql?

I would like plpython3u to use a virtual environment for python. I have seen some (old and not particularly clear) instructions for virtualenv at PostgreSQL PL/Python: call stored procedure in ...
Crazy Clown's user avatar
3votes
4answers
7kviews

Install PL/Python on Windows for PostgreSQL 12

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
0votes
0answers
260views

two dimensional arrays not supported in postgresql 9x

Following is the Pl/Python function return 2D array: CREATE FUNCTION return_multidim_py_array(x int4[]) RETURNS int4[] AS $$ plpy.info(x, type(x)) return x $$ LANGUAGE plpythonu; SELECT * ...
Nilesh Navale's user avatar
1vote
0answers
144views

PL/Python is not able to access system variables (LD_LIBRARY_PATH)

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

153050per page
close