Re: [HACKERS] Pattern matching operators a index

2013-10-26 Thread Amit Kapila
On Wed, Oct 9, 2013 at 4:20 PM, Heikki Linnakangas wrote: > On 09.10.2013 13:24, Soroosh Sardari wrote: >> Now my question is: >> Is Postgre using btree for pattern matching query for varchar or other >> character string types? >> >> If it does, how i implement it for my new type? > > > Yes, Postg

[HACKERS] Pattern matching operators a index

2013-10-10 Thread soroosh sardari
Hi I'm developing a new type for character string, like varchar. I wrote operators for btree and so forth. I wonder how pattern matching operators using btree index, because btree operator class ony knows about >, >=, <=, and = operators, but operators for pattern matching, such as LIKE, are not k

Re: [HACKERS] Pattern matching operators a index

2013-10-09 Thread Kevin Grittner
Soroosh Sardari wrote: > I'm developing a new type for character string, like varchar. I > wrote operators for btree and so forth. > > I wonder how pattern matching operators using btree index, > because btree operator class ony knows about >, >=, <=, and = > operators, but operators for pattern

Re: [HACKERS] Pattern matching operators a index

2013-10-09 Thread Heikki Linnakangas
On 09.10.2013 13:24, Soroosh Sardari wrote: I'm developing a new type for character string, like varchar. I wrote operators for btree and so forth. I wonder how pattern matching operators using btree index, because btree operator class ony knows about>,>=,<=, and = operators, but operators for pa

[HACKERS] Pattern matching operators a index

2013-10-09 Thread Soroosh Sardari
Hi I'm developing a new type for character string, like varchar. I wrote operators for btree and so forth. I wonder how pattern matching operators using btree index, because btree operator class ony knows about >, >=, <=, and = operators, but operators for pattern matching, such as LIKE, are not k