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.94.2) (envelope-from ) id 1uaXKW-006Wec-5G for pgsql-docs@arkaria.postgresql.org; Sat, 12 Jul 2025 10:19:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uaXKT-008JDE-9T for pgsql-docs@arkaria.postgresql.org; Sat, 12 Jul 2025 10:19:37 +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.94.2) (envelope-from ) id 1uaXKT-008JD5-15 for pgsql-docs@lists.postgresql.org; Sat, 12 Jul 2025 10:19:37 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uaXKQ-007Axw-2M for pgsql-docs@lists.postgresql.org; Sat, 12 Jul 2025 10:19:36 +0000 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-3a503d9ef59so2294207f8f.3 for ; Sat, 12 Jul 2025 03:19:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1752315570; x=1752920370; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=Q8IPRmX1pZtwoxntlvsW4EN+HT2Q1v8/ryos+q48GrQ=; b=NSHtvakMyJRd7INPIRxCFkhG8eSJ+EsF3qBcrcW27kdivRMMEMJNB062QjnLNUvXBd yLBS/dxw8hvu7ga9VkAmUpJVlE/k7MI/RyUBh/TwrOqIAh8PM33yftvmjW2Wqz+0Jlt2 GONGDSpKwPeMYlNl22T4Bk6gnqUpRVdVBQio6h8ICk9aPnjJ1ljdNLj+rIEe9efCnsji mR1k+f8eOQhIknDrhvO4X+du/Vmay22ZqzxqlATrJ5XFxzMUAZsSL3dWi0nbQaWns++2 m5cB/WUAEjGLYCxtcXEVulB3FPh3YJDBi+y9OVTSmmfAmVXSREFwHPouBm74iwS1jJ0d Q7Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752315570; x=1752920370; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Q8IPRmX1pZtwoxntlvsW4EN+HT2Q1v8/ryos+q48GrQ=; b=SjlwrtxX1WrFxm1lhz1JJ9AYaeMKXW8MarYxH9xHhZXXbofyQGJ9BlPexHKjQJ6dpw TkeFBq0jXJTPkpEkAnjG5QJcz45i0zIQ7DIqm9PLTgiPdqaDQ0JNUuJA+ERwpZx2c8+p 9eHg3+hovl4AO5HiFwuQDj3D138rOBqeasmH259rfQXx09tV+js4r0cXYkhWmWu+pJeZ XiWHUHi+yIY3jSgwa98ct6oSMtRYzq0QrtlImVNQ7wUfs81Jx+bb+WxZ6+FCtqcWdyo9 0AD8UM9Mg0PuBV5+X+HTK12+++kdxMCzaShY9q8x7UEzF9TOtFCCJIrriDGnqPECEhmB 5vtQ== X-Forwarded-Encrypted: i=1; AJvYcCX4dQie9YcW+XSYDyl7LfCMBAQ7+hCZgr90gtqYqgO7aJLATnNKt2lF539ITOaxYsK316va+Q+oGP0c@lists.postgresql.org X-Gm-Message-State: AOJu0YzDlKMx344VCqcKVhtsLfamCe8mjO4Xie2bHNAQNusTjHEFQX9O j+yU2S6j7DNuqZ4yLFkM4kIkQUTpKARdlaJqnPbLLc03H17Sdh/SdQZ3bM9jRQqaYzlbmUcgh+J CYhPa X-Gm-Gg: ASbGncvKo+4qHHhdH6h/qgWMkjUHqcpqmT1Um4rMF9fvurLe2x4GyjDUyosVVzk6mRN HRCCF6h+u/bj6YqUPjP28arragOz0rYNiItvfGwjjcJ0pl2gmc8++F3/t7YywjAzvNoaGJzxc/i t3W8e4D2owWS8GedGLikehBzi5rmhP6G8Nmjjw+mMlVk0h8O/lRnvUQJoX/FQBonxhpFVHFXLMT RY2fqFLGoi8qEVhSpfo4hdMIZpJLKaVuhRnz42h2/Pf4y+uIZPDVg2ogC+plX5DnntOx6EyNwyI iAVb7GeePn4YwofUMyZdM7sMYJ51B9a65S0P3QnNci2wY47527rAND5zGeJCBOApNqWDh7grSm3 qsxNBY5wiiFYKQjHe31DWsPOvTiIvmLWfzAygal51bQwo/B4NzogI3w8= X-Google-Smtp-Source: AGHT+IELWKnVEAj2VVJQOP/CC4HCiIZ8h+xoPn5PVDf7MvziqZol5yp/DDU49sg1mf8fthw7GoaFqw== X-Received: by 2002:a05:6000:230e:b0:3b5:e6f2:9117 with SMTP id ffacd0b85a97d-3b5f2e3083dmr5172698f8f.39.1752315570160; Sat, 12 Jul 2025 03:19:30 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([2001:16b8:c388:7900:17f9:6a5a:3c85:a7a4]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b5e8dc2131sm6818482f8f.29.2025.07.12.03.19.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Jul 2025 03:19:29 -0700 (PDT) Message-ID: Subject: Re: Unclear wording From: Laurenz Albe To: postgresql@mackler.email, pgsql-docs@lists.postgresql.org Date: Sat, 12 Jul 2025 12:19:29 +0200 In-Reply-To: <175225033172.858621.3992434425623506886@wrigleys.postgresql.org> References: <175225033172.858621.3992434425623506886@wrigleys.postgresql.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2 (3.56.2-1.fc42) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2025-07-11 at 16:12 +0000, PG Doc comments form wrote: > Page: https://www.postgresql.org/docs/17/ddl-schemas.html > Description: >=20 > In =C2=A75.10.3 these two sentences seem inconsistent: >=20 > > When objects are referenced in any other context without schema > qualification...the search path is traversed until a matching object is > found. Therefore, in the default configuration, any unqualified access ag= ain > can only refer to the public schema. >=20 > Either unqualified access can refer to any schema in the search path, > because the search path is traversed until a matching object is found, or > else unqualified access can only refer to the public schema because the > search path will not be traversed looking in other schemas for a matching > object, but both of those possibilities conflict with one or the other of > the sentences quoted from the manual. >=20 > Obviously I'm missing something; I don't know which of the two sentences > quoted from the manual to believe, or if I am to understand both are true= , > what I am misunderstanding about their meaning. I don't see an inconsistency. The key phrase is "in the default configurat= ion". The default value for 'search_path' is '"$user", public'. Now by default there is no schema with the same name as the database user, = so the effective default search path is just the 'public' schema. Yours, Laurenz Albe