search_path wildcard?

From: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: search_path wildcard?
Date: 2024-05-22 16:35:51
Message-ID: CANzqJaDxVFRPreSz_e=cg2PU2nW48BUcoJTyvc72Yry0tqkTcQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

This doesn't work, and I've found nothing similar:
ALTER ROLE foo SET SEARCH_PATH = '*';

Is there a single SQL statement which will generate a search path based
on information_schema.schemata, or do I have to write an anonymous DO
procedure?
SELECT schema_name FROM information_schema.schemata WHERE schema_name !=
'information_schema' AND schema_name NOT LIKE 'pg_%';

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2024-05-22 16:53:31 Re: search_path wildcard?
Previous Message Isaac Morland 2024-05-22 16:13:12 Re: Finding "most recent" using daterange