pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ross J. Reedstrom <reedstrm@rice.edu>
To: Adam Walczykiewicz <adam.walczykiewicz@multiuser.com.pl>
Cc: pgsql-sql@postgresql.org
Subject: Re: textpos() in postgreSQL 7.0
Date: Thu, 1 Jun 2000 09:10:55 -0500
Message-ID: <20000601091055.A20245@rice.edu> (raw)
In-Reply-To: <001701bfcb8c$e1ffa230$630000d2@Multiuser>
References: <001701bfcb8c$e1ffa230$630000d2@Multiuser>

Adam - 
Looks like it was renamed to strpos() in 7.0. A quick compatability 
hack to get up and running until you can rewrite the code would be to 
do something like:

CREATE FUNCTION textpos (text,text) RETURNS int AS 'SELECT strpos($1,$2)'
LANGUAGE 'SQL';

Now all your old code will work, just a little slower.

Ross

On Thu, Jun 01, 2000 at 07:47:32AM +0200, Adam Walczykiewicz wrote:
> Hi
> I notice that string function textpos() doesn't exist in postgreSQL 7.0. I
> have some
> plpgsql functions written for 6.5.2 that use textpos() and when I tried to
> use them
> in postgreSQL 7.0 I'v got error. 
-- 
Ross J. Reedstrom, Ph.D., <reedstrm@rice.edu> 
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St.,  Houston, TX 77005



view thread (2+ messages)

Message-ID: <20000601091055.A20245@rice.edu>
Permalink:  ../20000601091055.A20245@rice.edu/
Also on:    postgresql.org/message-id/20000601091055.A20245@rice.edu

 · 

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-sql@postgresql.org
  Cc: reedstrm@rice.edu, adam.walczykiewicz@multiuser.com.pl
  Subject: Re: textpos() in postgreSQL 7.0
  In-Reply-To: <20000601091055.A20245@rice.edu>
  References: <001701bfcb8c$e1ffa230$630000d2@Multiuser> <20000601091055.A20245@rice.edu>

* 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