From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | Paul van der Linden <paul(dot)doskabouter(at)gmail(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Cannot find hstore operator |
Date: | 2022-01-23 15:20:55 |
Message-ID: | CAKFQuwZiNqLni28TTW2cM_aVVJpGhB-4mUFrZvcTL297owmm0Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Sun, Jan 23, 2022 at 7:54 AM Paul van der Linden <
paul(dot)doskabouter(at)gmail(dot)com> wrote:
> Thanks for the clarification, but giving up performance is a no-go for us.
>
> Also I have my concerns about shemaqualifying each and every use of the ->
> operator, there are really a lot of them in my functions and it would
> severely impact readability.
> Are these the only 2 solutions possible?
>
At present, yes. The system tooling enforces a nearly search_path-less
execution environment (you basically only get pg_catalog and pg_temp). The
only other possible solution is to somehow get the extension installed into
pg_catalog.
This is basically a security trade-off since the goal is to avoid having
the insecure public schema in the search_path. I'm sure that if we tried
we could come up with and implement one or more ideas to make situations
like this less painful (e.g., allow a DBA to mark a schema as privileged
and then it gets added alongside the pg_catalog schema). Some options may
not be as simple as adding a new command line option to pg_dump/pg_restore
to enforce a custom search_path, even one that includes public, thus giving
some measure of control to the DBA. We still haven't done that (though I
suppose if we solved this problem in a more systematic way the need for
such a pg_dump option very well might go away, it's basically the same
problem).
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2022-01-23 15:22:06 | Re: Cannot find hstore operator |
Previous Message | Paul van der Linden | 2022-01-23 14:54:34 | Re: Cannot find hstore operator |