Re: Unexpected planner behavior with *_pattern_ops index matching - Mailing list pgsql-general

From Fabio Ugo Venchiarutti
Subject Re: Unexpected planner behavior with *_pattern_ops index matching
Date
Msg-id 5452B64E.3090400@vuole.me
Whole thread Raw
In response to Re: Unexpected planner behavior with *_pattern_ops index matching  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Unexpected planner behavior with *_pattern_ops index matching  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
 > Conversion of the pattern to an index qualification requires that the
 > pattern be a plan-time constant.  STABLE functions, by definition,
 > are not that.

Thank you very much


I guess it is correct to assume that the same applies to regular
expressions stored in pl/pgsql variables/arguments then, as they're
inspected after the plan is cached?


Is dynamic SQL the recommended/only way around this?


Regards

Fabio Ugo Venchiarutti


pgsql-general by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Planet Postgres
Next
From: Tom Lane
Date:
Subject: Re: Unexpected planner behavior with *_pattern_ops index matching