Re: String handling function, substring vs. substr

From: arsi(at)aranzo(dot)netg(dot)se
To: pgsql-general(at)postgresql(dot)org
Subject: Re: String handling function, substring vs. substr
Date: 2006-10-02 16:57:15
Message-ID: Pine.LNX.4.62.0610021856320.28792@aranzo.netg.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general


Hi all,

> brian <brian(at)zijn-digital(dot)com> writes:
>> arsi(at)aranzo(dot)netg(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message uwcssa 2006-10-02 17:35:34 Unsubscribe
Previous Message Joshua D. Drake 2006-10-02 16:49:36 Re: 回覆: Re: [ADMIN] How can I restore fr

Browse pgsql-general by date

  From Date Subject
Next Message Alexander Staubo 2006-10-02 17:25:12 Re: Weird disk write load caused by PostgreSQL?
Previous Message Anibal David Acosta F. 2006-10-02 16:15:45 Re: using float4, I get incorrect value when select