R
R
romaro2022-04-12 15:31:13
PostgreSQL
romaro, 2022-04-12 15:31:13

Why can I edit search_path but can't reset it?

I connect as superuser and easily add the search prefix with this command:
ALTER ROLE dship SET search_path = "$user";

But I can't reset this field like this:
ALTER ROLE dship RESET search_path;
Not even like this:

ALTER ROLE dship in DATABASE dship RESET search_path;


The command works without errors, but show search_path; returns the previous value: "$user", public

What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question