Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x9zjL-00000002OP0-1mt8 for pgsql-general@arkaria.postgresql.org; Fri, 25 Sep 2026 06:48:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1x9zjJ-0000000Go0P-4Ajf for pgsql-general@arkaria.postgresql.org; Fri, 25 Sep 2026 06:48:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x9zjI-0000000Go0G-2M9d for pgsql-general@lists.postgresql.org; Fri, 25 Sep 2026 06:48:21 +0000 Received: from omr-01.pc5.atmailcloud.com ([103.150.252.182]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x9zjE-000000019n4-0ZhO for pgsql-general@postgresql.org; Fri, 25 Sep 2026 06:48:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tpg.com.au; s=202309; h=MIME-Version:Content-Type:Date:To:From:Subject:Message-ID; bh=6Bj6V5fCXU65SHZNsNAT1XJmC3djCSYmQr1UA8qFDS4=; b=tpt5xZ1bYJHVxSOas0CITXHqN/ WbynsVuMp6cTuMDOcDeTLwBrHxfN42hmJnZWPLzt0z4jUSBDO+CI3t5S4/qZQ5yH6CkrT2NuJ3tqg 2kp+sHI5orSTgsexA2pQ+8drXMCzRAhOgBZglA7EXP+/3Xx3gEyXhhmvj+8KmWJ2A+9Y3SVu2MY2b DTS12bQm28ICplvgvs2izpW/V1TNOWJ/aoY3FD8p6s4gZDNkdqAZ9/4AfqID/YUFFPzgQOPutCUP4 9QyaloWY+9KqOwacxW2ktRO8HTxEW0WQbQyrCh4aGbZ2RUML178a63boybOhMYr4Nau42x5jS2Bp7 GkBGuUWA==; Received: from cmr-kakadu02.internal.pc5.atmailcloud.com (cmr-kakadu02.internal.pc5.atmailcloud.com [192.168.1.4]) by omr-01.pc5.atmailcloud.com (Exim/cmr-kakadu02.i-07e1b40bff2900692) with ESMTPS (envelope-from ) id 1x9zjA-00000004E2N-3UOj ; Fri, 25 Sep 2026 06:48:12 +0000 Received: from [118.208.122.226] (helo=[192.168.1.103]) by cmr-kakadu02.i-07e1b40bff2900692 with esmtpsa (envelope-from ) id 1x9zj9-0000000FDNA-0MUb; Fri, 25 Sep 2026 06:48:12 +0000 Message-ID: <8b48713a05cbcd6d4d2a4ad5000ae4e09e0fd97d.camel@tpg.com.au> Subject: Re: Multiple schemas From: rob stone To: Adrian Klaver , Alban Hertroys Cc: pgsql-general@postgresql.org Date: Fri, 25 Sep 2026 16:48:09 +1000 In-Reply-To: References: <12e2ffff149842d8762774e8ef307743cdb96736.camel@tpg.com.au> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2-10 MIME-Version: 1.0 X-Atmail-Id: floriparob@tpg.com.au Authentication-Results: cmr-kakadu02.au-east.atmailcloud.com; auth=pass smtp.auth=floriparob@tpg.com.au X-atmailcloud-spam-action: X-atmailcloud-route: unknown List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2026-09-24 at 08:01 -0700, Adrian Klaver wrote: > On 9/24/26 2:19 AM, Alban Hertroys wrote: > >=20 > > > On 24 Sep 2026, at 10:24, rob stone > > > wrote: > > >=20 > > > Hello, > > >=20 > > > I've been using a single schema in a database for years and I > > > decided > > > to try using multiple schemas in the same database. > > >=20 > > > So, I set up a test database and followed the same procedure that > > > I > > > have used in the past but this time specifying multiple schemas. > >=20 > > =E2=80=A6 > >=20 > > > show search_path; > > > =C2=A0 search_path > > > ---------------- > > > "bsmdl, foots" > > > (1 row) > >=20 > > I think there=E2=80=99s your problem. You have schemas named =E2=80=9Cb= smdl=E2=80=9D and > > =E2=80=9Cfoots=E2=80=9D, not a schema named "bsmdl, foots=E2=80=9D. >=20 > In other words you did: >=20 > SET search_path TO 'bsmdl, foots' >=20 > and got >=20 > SHOW search_path ; > =C2=A0=C2=A0 search_path > ---------------- > =C2=A0 "bsmdl, foots" >=20 >=20 > Instead you should do: >=20 > SET search_path TO bsmdl, foots; >=20 > to get: >=20 > SHOW search_path ; > =C2=A0 search_path > -------------- > =C2=A0 bsmdl, foots >=20 >=20 Thanks Adrian. That was the problem -- putting single quotes around the schema names. Now it is working as intended. Cheers, Rob