From: arsi@aranzo.netg.se
To: pgsql-general@postgresql.org
Subject: Re: String handling function, substring vs. substr
Date: Mon, 2 Oct 2006 18:57:15 +0200 (CEST)
Message-ID: <Pine.LNX.4.62.0610021856320.28792@aranzo.netg.se> (raw)
In-Reply-To: <4834.1159742510@sss.pgh.pa.us>
References: <6992E470F12A444BB787B5C937B9D4DF060E5C9B@ca-mail1.cis.local>
<Pine.LNX.4.62.0610011453050.22102@aranzo.netg.se>
<45202965.3000000@zijn-digital.com>
<4834.1159742510@sss.pgh.pa.us>
Hi all,
> brian <brian@zijn-digital.com> writes:
>> arsi@aranzo.netg.se wrote:
>>> Does this mean that substr calls substring internally?? Or is it the
>>> other way around?? Or are they independent of each other??
>
>> Looks like they're pretty evenly matched.
>
> Actually, a bit of poking into the contents of pg_proc will show you
> that they are both aliases for the same C function (text_substr_no_len).
> So they should be *exactly* the same speed.
>
> regards, tom lane
>
Thanks Brian for your answer (although that wasn't what I was looking for,
I was looking for Tom's answer).
Thanks Tom for your answer.
Archie
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-admin@postgresql.org
Cc: arsi@aranzo.netg.se, pgsql-general@postgresql.org
Subject: Re: String handling function, substring vs. substr
In-Reply-To: <Pine.LNX.4.62.0610021856320.28792@aranzo.netg.se>
References: <6992E470F12A444BB787B5C937B9D4DF060E5C9B@ca-mail1.cis.local> <Pine.LNX.4.62.0610011453050.22102@aranzo.netg.se> <45202965.3000000@zijn-digital.com> <4834.1159742510@sss.pgh.pa.us> <Pine.LNX.4.62.0610021856320.28792@aranzo.netg.se>
* 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