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 1x9gu3-00000002Acu-24Ni for pgsql-general@arkaria.postgresql.org; Thu, 24 Sep 2026 10:42:11 +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 1x9gu2-0000000B49f-3MPG for pgsql-general@arkaria.postgresql.org; Thu, 24 Sep 2026 10:42:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x9gu2-0000000B49W-21T4 for pgsql-general@lists.postgresql.org; Thu, 24 Sep 2026 10:42:10 +0000 Received: from mail-wr2-x10.google.com ([2a00:1450:4864:30::10]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1x9gu0-000000012kT-1TCC for pgsql-general@postgresql.org; Thu, 24 Sep 2026 10:42:10 +0000 Received: by mail-wr2-x10.google.com with SMTP id ffacd0b85a97d-4843cedd129so1237886f8f.0 for ; Thu, 24 Sep 2026 03:42:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790246525; x=1790851325; darn=postgresql.org; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:content-type:from:to:cc:subject:date :message-id:reply-to:content-type; bh=NPhz2korGVu6yRcZ/uYeAWVRXrQ+E6HD42ZOpfCjVXw=; b=Sxj4Nnz9H86pqvBtmKDguiM0eZTzsniiAT5SCL4tPyQXDj7HG9/qWnLLTjAwdBIVt8 UB0nSbfyIbhERVzHUzSZO6wUmwkpgKI7/ZbxbS7EMnov7rubv5e4AGqg7gPCHNkAbdi9 oZa3pW8hRrvqxd8bbAVgvaIDHAB+q1t4DYsUuOJy503UGV/SzQ44B3qqGxeyS2CZ3MSg UlJ1MhPWJQO5fhm+TmZtyBbqVzJ49pUpOHMj7U1AU9c8y/5G3za2IDjslBetJbUVBbDv jfTJM5a8x3XV3Z0QDA7IM23Hy0FpR1bh0D3FWeIC1QSjl3sUC+f1jxSdA6UMfJDY4BwF 3Wig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790246525; x=1790851325; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:content-type:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=NPhz2korGVu6yRcZ/uYeAWVRXrQ+E6HD42ZOpfCjVXw=; b=lH7qFC0pRVlbA17JRXGGnT6Q/avO2NksEy20sEgYBBH3ag4jTIQP958uiOt3diiRh7 CFlbE6dy5b9gBAFIhfG33Us5mJdhEbo00OYujlgx/HjRcnXdM/IjX4p94S48fMsWrK7p dg8STSig3WVcC1LM4p7Cmw/FQ4O+3viQKmxzqG2wVQLN/llHYdmlsq1mr6gQEOnEo4Kd 4zwUYtMwdWDHTC1QyX6ysRaaq3qreEIkj0lqzA63pJHZjCjfGeE3Mf1VRYCY7iK58yOL FpA7mq9zn2kEgobZSaFGjumXCdSKYCNjhvnLadCwo2sr2zHwuEly4KbEDtU3mjkJLKxZ LVLg== X-Gm-Message-State: AFuF++nY7Qq8QPTelHyaY9VZrayBxrD4Otp7HsM4JricTBk/Z9vQRcFB jK/OpufRQkr/KSHq3a9es/WikQmVIjZPgLmrTO215c1hsTH1uXx2EV3ZKEAaMxZK X-Gm-Gg: AYBFou1YEKkWznW1PO0cSJHu6Pqxpy5zO7HMDki4VlzIg7qA7Drm39TEhA6l7wSLv/R GE+FMz485iSTdDr1rciuTSWXhotht8IzNzMbhfLJBisKMLkgNPVG+4b9cj3G0f2TaxJEYq2q08f nrzivz7Ttzmy/kJH6Ax8D+SVAOA1w3JswLbOchkf08nWVG+o61M9tUOtAyeYbcMuPsneUcmFLUk eG4gcSmyUNRkh01LUHLXtRecGrStHfTqmlEnNJp6SCr76kC2D4jRUufJ1Po7H7o4FRPXPzcn5LO iEPWvAuVZUfQ6y7Z4vP6CeOSvqs8/zxm+Df1+QeYm2rn+s5IgLANPueUjy/+dofdVDjUlDbcXCl sIKCRxuo0NrEpJDMFbWjjLvczwvMTlgUUVMOLAp0FSlPWWrktX1bRoxDm606aP0fMC2N1uJyXuj HF48Sazti3rgVqhrT6yXfdyq8f+vdw00/6+DTyc/W/OklAvuCttDwjfjw705nwGm075VuU3FvwS 1Taw7vkA4TeXESB X-Received: by 2002:a05:6000:4711:b0:487:a0f:82ff with SMTP id ffacd0b85a97d-4887167c983mr3086940f8f.17.1790246524525; Thu, 24 Sep 2026 03:42:04 -0700 (PDT) Received: from smtpclient.apple ([62.67.15.9]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4886877970fsm13957227f8f.24.2026.09.24.03.42.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Sep 2026 03:42:04 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Rob Sargent Mime-Version: 1.0 (1.0) Subject: Re: Multiple schemas Date: Thu, 24 Sep 2026 12:41:51 +0200 Message-Id: References: <12e2ffff149842d8762774e8ef307743cdb96736.camel@tpg.com.au> Cc: pgsql-general@postgresql.org In-Reply-To: <12e2ffff149842d8762774e8ef307743cdb96736.camel@tpg.com.au> To: rob stone X-Mailer: iPhone Mail (23G83) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Sep 24, 2026, at 10:25=E2=80=AFAM, rob stone wr= ote: >=20 > =EF=BB=BFHello, >=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 > O/S > Linux 7.2.6+deb14-amd64 #1 SMP PREEMPT_DYNAMIC Debian 7.2.6-1 (2026-09- > 16) x86_64 GNU/Linux >=20 > Postgres > psql (18.6 (Debian 18.6-3)) >=20 > \dn > List of schemas > Name | Owner =20 > --------+------------------- > bsmdl | teamone > foots | teamone > public | pg_database_owner > (3 rows) >=20 > show search_path; > search_path =20 > ---------------- > "bsmdl, foots" > (1 row) >=20 > A \dn runs a query against the catalogue whereas "show search_path" > displays what was obtained from the connection. >=20 > I ran a create table script where all tables were fully qualified > schema.table_name and it completed without any errors. >=20 > Then I ran:- > \d system_defaults (one of the newly created tables) > and this was the result:- > Did not find any relation named "system_defaults". \d bsmdl.system_defaults Or \dt bsmdl.*=