pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bill Moran <wmoran@potentialtech.com>
To: Andrew Sullivan <andrew@libertyrms.info>
Cc: pgsql-performance@postgresql.org
Subject: Re: PL/pgSQL functions - text / varchar - havy performance
Date: Fri, 29 Aug 2003 11:34:13 -0400
Message-ID: <3F4F7275.5030203@potentialtech.com> (raw)
In-Reply-To: <20030829150151.GI19388@libertyrms.info>
References: <200308291554.46748.o.siegmar@vitrado.de>
	<3F4F6754.8050900@potentialtech.com>
	<20030829150151.GI19388@libertyrms.info>

Andrew Sullivan wrote:
> On Fri, Aug 29, 2003 at 10:46:44AM -0400, Bill Moran wrote:
> 
>>Postgres has to convert the text to a varchar before it can actually
>>do anything.  It's possible (though I'm not sure) that it has to
>>do the conversion with each record it looks at.
> 
> It does?  According to the docs, varchar is just syntactic sugar for
> text.  In fact, text and varchar() are supposed to be exactly the
> same.

Really?  Well, if I'm wrong, I'm wrong.  Wouldn't be the first time.

Have any explanation as to why that function is so slow?

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com




view thread (7+ messages)  latest in thread

Message-ID: <3F4F7275.5030203@potentialtech.com>
Permalink:  ../3F4F7275.5030203@potentialtech.com/
Also on:    postgresql.org/message-id/3F4F7275.5030203@potentialtech.com

 · 

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-performance@postgresql.org
  Cc: wmoran@potentialtech.com, andrew@libertyrms.info
  Subject: Re: PL/pgSQL functions - text / varchar - havy performance
  In-Reply-To: <3F4F7275.5030203@potentialtech.com>
  References: <200308291554.46748.o.siegmar@vitrado.de> <3F4F6754.8050900@potentialtech.com> <20030829150151.GI19388@libertyrms.info> <3F4F7275.5030203@potentialtech.com>

* 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