Search Postgresql Archives

Re: programming 'like' operator

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

 



Ron Peterson <ron.peterson@xxxxxxxxxxxxxx> writes:
> Anyone have any tips for an earnest aspiring but somewhat befuddled
> PostgreSQL acolyte as to what's required to program (in C) a 'like'
> operator for a user defined type?

Well, you could look at the existing code which is in
	src/backend/utils/adt/like.c
	src/backend/utils/adt/like_match.c
The text variant is a bit obfuscated because it tries to support
both case-sensitive and case-insensitive matching with only one
set of code --- the bytea variant might be easier to follow.

			regards, tom lane


[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