Let's say I create an extension, like PostGIS, in the schema postgis
,
CREATE EXTENSION postgis WITH SCHEMA postgis;
Is it possible to fully qualify an operator like &&
in the below example,
SELECT box2d && ST_MakePoint(5,5)
FROM postgis.box2d(postgis.ST_MakeEnvelope(0,0,10,10));
But "postgis.&&"
and even "postgis".&&
and "postgis"."&&"
is not working for me. The docs on "Operator Type Resolution" seem to hint at being possible,
If a qualified operator name was given, only operators in the specified schema are considered.
Put another way, can I use an operator that is "not visible".
SELECT pg_type_is_visible(
'postgis.&&(postgis.geometry,postgis.geometry)'::regoperator
);
Clearly, I can add postgis
to my search_path
but I'm looking to leave that unmodified and in ever other context we can in fact qualify everything.