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

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.

A

-- 
----
Andrew Sullivan                         204-4141 Yonge Street
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110




view thread (7+ messages)  latest in thread

Message-ID: <20030829150151.GI19388@libertyrms.info>
Permalink:  ../20030829150151.GI19388@libertyrms.info/
Also on:    postgresql.org/message-id/20030829150151.GI19388@libertyrms.info

 · 

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

* 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