Re: [PATCH] SET search_path += octopus

From: Isaac Morland <isaac(dot)morland(at)gmail(dot)com>
To: Abhijit Menon-Sen <ams(at)toroid(dot)org>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] SET search_path += octopus
Date: 2020-10-20 18:16:48
Message-ID: CAMsGm5cVEwMWjBoe+zcBcAhtyMYhJkebtTrBfFW2_E6sVyPijg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, 27 Sep 2020 at 23:39, Abhijit Menon-Sen <ams(at)toroid(dot)org> wrote:

> postgres=# SET search_path += octopus;
> SET
> postgres=# SET search_path += "giant squid", kraken, narwhal; -- [1]
> SET
> postgres=# SET search_path -= public, narwhal;
> SET
> postgres=# SHOW search_path;
>

What happens if the new value for += is already in the list?
What about -= on a value that occurs in the list multiple times?

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2020-10-20 18:23:37 Re: [PATCH] SET search_path += octopus
Previous Message Tom Lane 2020-10-20 18:16:12 Re: [PATCH] SET search_path += octopus