From c92f7c62232c67b1a35ca5524a41a5cddfe66746 Mon Sep 17 00:00:00 2001 From: Noah Misch Date: Fri, 23 Mar 2018 20:31:03 -0700 Subject: [PATCH] Don't qualify type pg_catalog.text in extend-extensions-example. Extension scripts begin execution with pg_catalog at the front of the search path, so type names reliably refer to pg_catalog. Remove these superfluous qualifications. Earlier of this already omitted them. Back-patch to 9.3 (all supported versions). --- doc/src/sgml/extend.sgml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/src/sgml/extend.sgml b/doc/src/sgml/extend.sgml index 6c043cdd02..348ae71423 100644 --- a/doc/src/sgml/extend.sgml +++ b/doc/src/sgml/extend.sgml @@ -1010,13 +1010,12 @@ SELECT * FROM pg_extension_update_paths('extension_name (LEFTARG = pg_catalog.text, - RIGHTARG = pg_catalog.text, PROCEDURE = pair); +CREATE OPERATOR ~> (LEFTARG = text, RIGHTARG = text, PROCEDURE = pair); -- "SET search_path" is easy to get right, but qualified names perform better. CREATE OR REPLACE FUNCTION lower(pair) -- 2.40.0