Problem (bug?) wih like - Mailing list pgsql-general

From bombadil@wanadoo.es
Subject Problem (bug?) wih like
Date
Msg-id 20011203083736.A20115@fangorn.net
Whole thread Raw
Responses Re: Problem (bug?) wih like
Re: Problem (bug?) wih like
Re: Problem (bug?) wih like
List pgsql-general
 I'd like to contrast an error that I get when using like in text
 fields.

 I have a table A an a view v_A of A. Name is a text field (person
 names). Look at these queries:

 1)

     select * from A where name like '%DAVID%'

 It works pretty well and fast. Result:

     DAVID
    DAVID FOO
    DAVID
    .../...

 2)

     select * from v_A where name like '%DA%'

 It works too, with a result bigger (obviously) than first query.
 Result:

     DAVID
    DANIEL
    DAVID FOO
    .../...

 3)

     select * from v_A where name like '%DAVID%'

 It freezes psql. Why?. It seems a bug, doesn't it?. Thanks for any
 info.

                     David

pgsql-general by date:

Previous
From: "Clark C . Evans"
Date:
Subject: Apache module for directory authorization
Next
From: "Yuri A. Kabaenkov"
Date:
Subject: BEGIN, ROLLBACK,COMMIT