pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Franco Bruno Borghesi <franco@akyasociados.com.ar>
Cc: pgsql-sql@postgresql.org
Subject: Re: function prepared plan
Date: Wed, 21 May 2003 22:45:44 -0400
Message-ID: <13729.1053571544@sss.pgh.pa.us> (raw)
In-Reply-To: <200303211910.01785.franco@akyasociados.com.ar>
References: <200303211910.01785.franco@akyasociados.com.ar>

Franco Bruno Borghesi <franco@akyasociados.com.ar> writes:
> Hi everyone! I have a little problem, and was wondering if anyone
> could help me.

Change the EXECUTEd query strings so that all the variants return TEXT,
instead of trying to cast after-the-fact.

If that doesn't seem reasonable, you might be better off working in
pltcl.  plpgsql is designed on the assumption that it can cache query
plans from one execution to the next, which is a good speed optimization
but does require a certain amount of stability of datatypes.  If you'd
prefer to kiss off speed for flexibility, pltcl is your tool.

plpython might work too, but I'm not very familiar with it and couldn't
say for certain.

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <13729.1053571544@sss.pgh.pa.us>
Permalink:  ../13729.1053571544@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13729.1053571544@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, franco@akyasociados.com.ar
  Subject: Re: function prepared plan
  In-Reply-To: <13729.1053571544@sss.pgh.pa.us>

* 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