mirror of
https://github.com/postgres/postgres.git
synced 2026-10-23 13:29:09 +03:00
injection_points is extended so as a caller can attach a string value to a point, checked with a value provided at runtime. There are a couple of use cases where this can be useful, to be able to target points for specific object names. PID and string conditions can be combined together, so as a point can be allowed for a specific process and string value at the same time. The condition string is capped at 255 characters. As the attach SQL function now takes an optional condition string, it is no longer STRICT, and rejects NULL inputs. Empty condition strings are also rejected, as they don't make sense. Author: Sami Imseih <samimseih@gmail.com> Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://postgr.es/m/CAA5RZ0tsGHu2h6YLnVu4HiK05q+gTE_9WVUAqihW2LSscAYS-g@mail.gmail.com