Pattern matching ints - Mailing list pgsql-general

From Tim Smith
Subject Pattern matching ints
Date
Msg-id CA+HuS5GiTdr+Ryhbf7+x3YKGUWKE77HbDz_ki9EHmBxOD3L4SA@mail.gmail.com
Whole thread Raw
Responses Re: Pattern matching ints  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Re: Pattern matching ints  (Ian Barwick <ian@2ndquadrant.com>)
List pgsql-general
Hi,

Is there a more efficient way to pattern match integer columns other
than something like :

where cast(mynumber as text) ~ '.*123.*'


I also seem to recall you can't create indexes on casts either ?


Thx

Tim


pgsql-general by date:

Previous
From: Paul Jungwirth
Date:
Subject: Re: partial "on-delete set null" constraint
Next
From: Albe Laurenz
Date:
Subject: Re: Pattern matching ints