pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: pasquini.matteo@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14522: plpythonu, missed filenode
Date: Wed, 01 Feb 2017 16:58:46 +0000
Message-ID: <20170201165846.1411.19551@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      14522
Logged by:          Matteo Pasquini
Email address:      pasquini.matteo@gmail.com
PostgreSQL version: 9.6.1
Operating system:   linux x64, debian8
Description:        

got: [...] "base/23417/2659":no such file or directory
sqlcode : 58P01
while using plpython functions, usually after 2nd call of a plpython
function.

I've this big python app that cannot be translated entirely in plpython, so
i've managed to 
- give to postgres execution of python app (/var/lib/postgresql/pyapp)
- with plpythonu add the path of the app to be able to make import in all
pther functions.

$$
from sys import path
pyapp = '/var/lib/postgresql/pyapp'
if not pyapp in path:
	path.append(pyapp)
	path = set(path)
$$

- Then, call another plpython function that produce data. 
that function convert a file from filesystem and give back a list of values,
it works as expected.


The file "base/23417/2659" is there
-rw------ 1 postgres postgres 80K Feb 1 17:25 base/23417/2659

and both 

select * from pg_dabase where oid = 23417;
select * from pg_class where relfilenode = 2659;

returns as expected.

haven't find similar issues around for version 9.6.x

After some tries the error becomes permanent.


Thanks.






-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


view thread (2+ messages)  latest in thread

Message-ID: <20170201165846.1411.19551@wrigleys.postgresql.org>
Permalink:  ../20170201165846.1411.19551@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20170201165846.1411.19551@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: pasquini.matteo@gmail.com
  Subject: Re: BUG #14522: plpythonu, missed filenode
  In-Reply-To: <20170201165846.1411.19551@wrigleys.postgresql.org>
  References: <20170201165846.1411.19551@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox