Search Postgresql Archives

Re: String handling function, substring vs. substr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi all,

brian <brian@xxxxxxxxxxxxxxxx> writes:
arsi@xxxxxxxxxxxxxx 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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux