pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Make contrib/unaccent's unaccent() function work when not in sea
7+ messages / 1 participants
[nested] [flat]
* pgsql: Make contrib/unaccent's unaccent() function work when not in sea
@ 2018-09-06 14:50 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 7+ messages in thread
From: Tom Lane @ 2018-09-06 14:50 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Make contrib/unaccent's unaccent() function work when not in search path.
Since the fixes for CVE-2018-1058, we've advised people to schema-qualify
function references in order to fix failures in code that executes under
a minimal search_path setting. However, that's insufficient to make the
single-argument form of unaccent() work, because it looks up the "unaccent"
text search dictionary using the search path.
The most expedient answer seems to be to remove the search_path dependency
by making it look in the same schema that the unaccent() function itself
is declared in. This will definitely work for the normal usage of this
function with the unaccent dictionary provided by the extension.
It's barely possible that there are people who were relying on the
search-path-dependent behavior to select other dictionaries with the same
name; but if there are any such people at all, they can still get that
behavior by writing unaccent('unaccent', ...), or possibly
unaccent('unaccent'::text::regdictionary, ...) if the lookup has to be
postponed to runtime.
Per complaint from Gunnlaugur Thor Briem. Back-patch to all supported
branches.
Discussion: https://postgr.es/m/CAPs+M8LCex6d=DeneofdsoJVijaG59m9V0ggbb3pOH7hZO4+cQ@mail.gmail.com
Branch
------
REL9_5_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/c79b39fb1c5bbb5a8e2f86a2187b31b2c3b3ae96
Modified Files
--------------
contrib/unaccent/unaccent.c | 18 +++++++++++++++++-
doc/src/sgml/unaccent.sgml | 8 +++++---
2 files changed, 22 insertions(+), 4 deletions(-)
^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Make contrib/unaccent's unaccent() function work when not in sea
@ 2018-09-06 14:50 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 7+ messages in thread
From: Tom Lane @ 2018-09-06 14:50 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Make contrib/unaccent's unaccent() function work when not in search path.
Since the fixes for CVE-2018-1058, we've advised people to schema-qualify
function references in order to fix failures in code that executes under
a minimal search_path setting. However, that's insufficient to make the
single-argument form of unaccent() work, because it looks up the "unaccent"
text search dictionary using the search path.
The most expedient answer seems to be to remove the search_path dependency
by making it look in the same schema that the unaccent() function itself
is declared in. This will definitely work for the normal usage of this
function with the unaccent dictionary provided by the extension.
It's barely possible that there are people who were relying on the
search-path-dependent behavior to select other dictionaries with the same
name; but if there are any such people at all, they can still get that
behavior by writing unaccent('unaccent', ...), or possibly
unaccent('unaccent'::text::regdictionary, ...) if the lookup has to be
postponed to runtime.
Per complaint from Gunnlaugur Thor Briem. Back-patch to all supported
branches.
Discussion: https://postgr.es/m/CAPs+M8LCex6d=DeneofdsoJVijaG59m9V0ggbb3pOH7hZO4+cQ@mail.gmail.com
Branch
------
REL9_4_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/d4ab3962613f39ec81c2077e84b9cfe158433ecd
Modified Files
--------------
contrib/unaccent/unaccent.c | 18 +++++++++++++++++-
doc/src/sgml/unaccent.sgml | 9 ++++++++-
2 files changed, 25 insertions(+), 2 deletions(-)
^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Make contrib/unaccent's unaccent() function work when not in sea
@ 2018-09-06 14:50 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 7+ messages in thread
From: Tom Lane @ 2018-09-06 14:50 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Make contrib/unaccent's unaccent() function work when not in search path.
Since the fixes for CVE-2018-1058, we've advised people to schema-qualify
function references in order to fix failures in code that executes under
a minimal search_path setting. However, that's insufficient to make the
single-argument form of unaccent() work, because it looks up the "unaccent"
text search dictionary using the search path.
The most expedient answer seems to be to remove the search_path dependency
by making it look in the same schema that the unaccent() function itself
is declared in. This will definitely work for the normal usage of this
function with the unaccent dictionary provided by the extension.
It's barely possible that there are people who were relying on the
search-path-dependent behavior to select other dictionaries with the same
name; but if there are any such people at all, they can still get that
behavior by writing unaccent('unaccent', ...), or possibly
unaccent('unaccent'::text::regdictionary, ...) if the lookup has to be
postponed to runtime.
Per complaint from Gunnlaugur Thor Briem. Back-patch to all supported
branches.
Discussion: https://postgr.es/m/CAPs+M8LCex6d=DeneofdsoJVijaG59m9V0ggbb3pOH7hZO4+cQ@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/a5322ca10fa16bed01e3e3d6c49c0f49c68b5593
Modified Files
--------------
contrib/unaccent/unaccent.c | 18 +++++++++++++++++-
doc/src/sgml/unaccent.sgml | 6 ++++--
2 files changed, 21 insertions(+), 3 deletions(-)
^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Make contrib/unaccent's unaccent() function work when not in sea
@ 2018-09-06 14:50 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 7+ messages in thread
From: Tom Lane @ 2018-09-06 14:50 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Make contrib/unaccent's unaccent() function work when not in search path.
Since the fixes for CVE-2018-1058, we've advised people to schema-qualify
function references in order to fix failures in code that executes under
a minimal search_path setting. However, that's insufficient to make the
single-argument form of unaccent() work, because it looks up the "unaccent"
text search dictionary using the search path.
The most expedient answer seems to be to remove the search_path dependency
by making it look in the same schema that the unaccent() function itself
is declared in. This will definitely work for the normal usage of this
function with the unaccent dictionary provided by the extension.
It's barely possible that there are people who were relying on the
search-path-dependent behavior to select other dictionaries with the same
name; but if there are any such people at all, they can still get that
behavior by writing unaccent('unaccent', ...), or possibly
unaccent('unaccent'::text::regdictionary, ...) if the lookup has to be
postponed to runtime.
Per complaint from Gunnlaugur Thor Briem. Back-patch to all supported
branches.
Discussion: https://postgr.es/m/CAPs+M8LCex6d=DeneofdsoJVijaG59m9V0ggbb3pOH7hZO4+cQ@mail.gmail.com
Branch
------
REL9_3_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/25ff97ba77cbf8e3c08b4706328c50a470efd0ae
Modified Files
--------------
contrib/unaccent/unaccent.c | 18 +++++++++++++++++-
doc/src/sgml/unaccent.sgml | 9 ++++++++-
2 files changed, 25 insertions(+), 2 deletions(-)
^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Make contrib/unaccent's unaccent() function work when not in sea
@ 2018-09-06 14:50 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 7+ messages in thread
From: Tom Lane @ 2018-09-06 14:50 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Make contrib/unaccent's unaccent() function work when not in search path.
Since the fixes for CVE-2018-1058, we've advised people to schema-qualify
function references in order to fix failures in code that executes under
a minimal search_path setting. However, that's insufficient to make the
single-argument form of unaccent() work, because it looks up the "unaccent"
text search dictionary using the search path.
The most expedient answer seems to be to remove the search_path dependency
by making it look in the same schema that the unaccent() function itself
is declared in. This will definitely work for the normal usage of this
function with the unaccent dictionary provided by the extension.
It's barely possible that there are people who were relying on the
search-path-dependent behavior to select other dictionaries with the same
name; but if there are any such people at all, they can still get that
behavior by writing unaccent('unaccent', ...), or possibly
unaccent('unaccent'::text::regdictionary, ...) if the lookup has to be
postponed to runtime.
Per complaint from Gunnlaugur Thor Briem. Back-patch to all supported
branches.
Discussion: https://postgr.es/m/CAPs+M8LCex6d=DeneofdsoJVijaG59m9V0ggbb3pOH7hZO4+cQ@mail.gmail.com
Branch
------
REL9_6_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/594ee1ada5bc9affa37751d7ee840acb636a1f32
Modified Files
--------------
contrib/unaccent/unaccent.c | 18 +++++++++++++++++-
doc/src/sgml/unaccent.sgml | 8 +++++---
2 files changed, 22 insertions(+), 4 deletions(-)
^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Make contrib/unaccent's unaccent() function work when not in sea
@ 2018-09-06 14:50 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 7+ messages in thread
From: Tom Lane @ 2018-09-06 14:50 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Make contrib/unaccent's unaccent() function work when not in search path.
Since the fixes for CVE-2018-1058, we've advised people to schema-qualify
function references in order to fix failures in code that executes under
a minimal search_path setting. However, that's insufficient to make the
single-argument form of unaccent() work, because it looks up the "unaccent"
text search dictionary using the search path.
The most expedient answer seems to be to remove the search_path dependency
by making it look in the same schema that the unaccent() function itself
is declared in. This will definitely work for the normal usage of this
function with the unaccent dictionary provided by the extension.
It's barely possible that there are people who were relying on the
search-path-dependent behavior to select other dictionaries with the same
name; but if there are any such people at all, they can still get that
behavior by writing unaccent('unaccent', ...), or possibly
unaccent('unaccent'::text::regdictionary, ...) if the lookup has to be
postponed to runtime.
Per complaint from Gunnlaugur Thor Briem. Back-patch to all supported
branches.
Discussion: https://postgr.es/m/CAPs+M8LCex6d=DeneofdsoJVijaG59m9V0ggbb3pOH7hZO4+cQ@mail.gmail.com
Branch
------
REL_10_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/a54f5b187a4a12a0a694d0911525a451840a1d30
Modified Files
--------------
contrib/unaccent/unaccent.c | 18 +++++++++++++++++-
doc/src/sgml/unaccent.sgml | 8 +++++---
2 files changed, 22 insertions(+), 4 deletions(-)
^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Make contrib/unaccent's unaccent() function work when not in sea
@ 2018-09-06 14:50 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 7+ messages in thread
From: Tom Lane @ 2018-09-06 14:50 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Make contrib/unaccent's unaccent() function work when not in search path.
Since the fixes for CVE-2018-1058, we've advised people to schema-qualify
function references in order to fix failures in code that executes under
a minimal search_path setting. However, that's insufficient to make the
single-argument form of unaccent() work, because it looks up the "unaccent"
text search dictionary using the search path.
The most expedient answer seems to be to remove the search_path dependency
by making it look in the same schema that the unaccent() function itself
is declared in. This will definitely work for the normal usage of this
function with the unaccent dictionary provided by the extension.
It's barely possible that there are people who were relying on the
search-path-dependent behavior to select other dictionaries with the same
name; but if there are any such people at all, they can still get that
behavior by writing unaccent('unaccent', ...), or possibly
unaccent('unaccent'::text::regdictionary, ...) if the lookup has to be
postponed to runtime.
Per complaint from Gunnlaugur Thor Briem. Back-patch to all supported
branches.
Discussion: https://postgr.es/m/CAPs+M8LCex6d=DeneofdsoJVijaG59m9V0ggbb3pOH7hZO4+cQ@mail.gmail.com
Branch
------
REL_11_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/23aad181f44741c2061ce5caceb307774ac14fb8
Modified Files
--------------
contrib/unaccent/unaccent.c | 18 +++++++++++++++++-
doc/src/sgml/unaccent.sgml | 6 ++++--
2 files changed, 21 insertions(+), 3 deletions(-)
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2018-09-06 14:50 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-09-06 14:50 pgsql: Make contrib/unaccent's unaccent() function work when not in sea Tom Lane <tgl@sss.pgh.pa.us>
2018-09-06 14:50 pgsql: Make contrib/unaccent's unaccent() function work when not in sea Tom Lane <tgl@sss.pgh.pa.us>
2018-09-06 14:50 pgsql: Make contrib/unaccent's unaccent() function work when not in sea Tom Lane <tgl@sss.pgh.pa.us>
2018-09-06 14:50 pgsql: Make contrib/unaccent's unaccent() function work when not in sea Tom Lane <tgl@sss.pgh.pa.us>
2018-09-06 14:50 pgsql: Make contrib/unaccent's unaccent() function work when not in sea Tom Lane <tgl@sss.pgh.pa.us>
2018-09-06 14:50 pgsql: Make contrib/unaccent's unaccent() function work when not in sea Tom Lane <tgl@sss.pgh.pa.us>
2018-09-06 14:50 pgsql: Make contrib/unaccent's unaccent() function work when not in sea Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox