diff options
| author | Tom Lane | 2025-01-09 20:16:56 +0000 |
|---|---|---|
| committer | Tom Lane | 2025-01-09 20:16:56 +0000 |
| commit | bebe9040388bb2292585eab712fe4d29a71843fb (patch) | |
| tree | bc665989a9135290e57b623df27ebd35bef8bd64 /contrib/ltree_plpython | |
| parent | ebd8fc7e47fdad6adb68aad341d95c541d7325c3 (diff) | |
Use @extschema:name@ notation in contrib transform modules.
Harden hstore_plperl, hstore_plpython, and ltree_plpython
against search-path-based attacks by using @extschema:name@
notation to refer to the underlying hstore or ltree data type.
This allows removal of the previous documentation warning
suggesting that they must be installed in the same schema as
the underlying data type. In passing, also improve a para in
extend.sgml to suggest using @extschema:name@ for such purposes.
Discussion: https://postgr.es/m/692480.1736021695@sss.pgh.pa.us
Diffstat (limited to 'contrib/ltree_plpython')
| -rw-r--r-- | contrib/ltree_plpython/ltree_plpython3u--1.0.sql | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/ltree_plpython/ltree_plpython3u--1.0.sql b/contrib/ltree_plpython/ltree_plpython3u--1.0.sql index 09ada3c7e8b..14f73518d6a 100644 --- a/contrib/ltree_plpython/ltree_plpython3u--1.0.sql +++ b/contrib/ltree_plpython/ltree_plpython3u--1.0.sql @@ -7,6 +7,6 @@ CREATE FUNCTION ltree_to_plpython3(val internal) RETURNS internal LANGUAGE C STRICT IMMUTABLE AS 'MODULE_PATHNAME', 'ltree_to_plpython'; -CREATE TRANSFORM FOR ltree LANGUAGE plpython3u ( +CREATE TRANSFORM FOR @extschema:ltree@.ltree LANGUAGE plpython3u ( FROM SQL WITH FUNCTION ltree_to_plpython3(internal) ); |
