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.96) (envelope-from ) id 1vvdzN-00BfLZ-2H for pgsql-bugs@arkaria.postgresql.org; Thu, 26 Feb 2026 16:13:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vvdzM-00DwJh-0h for pgsql-bugs@arkaria.postgresql.org; Thu, 26 Feb 2026 16:13:20 +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.96) (envelope-from ) id 1vvdzL-00DwJV-2j for pgsql-bugs@lists.postgresql.org; Thu, 26 Feb 2026 16:13:19 +0000 Received: from mail-oo1-xc34.google.com ([2607:f8b0:4864:20::c34]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vvdzJ-00000001KD7-01Q0 for pgsql-bugs@lists.postgresql.org; Thu, 26 Feb 2026 16:13:18 +0000 Received: by mail-oo1-xc34.google.com with SMTP id 006d021491bc7-679f23befd6so433148eaf.1 for ; Thu, 26 Feb 2026 08:13:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1772122397; cv=none; d=google.com; s=arc-20240605; b=J7jK0MoEFMxUZ//g/mlrOTO4EKzglOuVYCuw6JlFyZJ4tpaoo9GFBNBwSwptaEtl62 C5k2bc13kU2K1UAR5xKd6/u5jhqmyvN0+/Jz7/sxM66/SD95pELyEgJQqliAC9Rg/sXa UofZ+03RHFy0l9Clxl/Llss5iH9sVImN346kM7NaNkAqY72+P5r9X+0naSb56AyJ8V8K LEOmyLVVi8muKnqCtObcKElaeMmGGtsKwuD+ZlWyF9Kyl9oaCfKWAf5dIcSN2Pyo4kXx 0fluiGGqVAamkFZQRzJt9ZV0+m0zTevpuOoRk34kIL64MLI2Mp12fIUYoRmhYYK3TS/K WwFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=HPVuKmW4RuiFaWzZrxUdPzFGao2Gp3QcgQu65DSd5i4=; fh=2C33MLe728XM47UWkdw9wjOBm6FyE+9L0oKQ1hpjIek=; b=XxMyosUiFRtE52FLD0Ew2rXQFHMZQ225Mr9cFGAHis9LlR0PwxeqyLg5qYA08/0MRh Hk3cUHfGrQa0QqL9ztvEr+dtTipTVn+29shpYPeC6AvWeM+i/TXjIZtVDFBeifuuotKx D8J4k7x7UsofPqIVAIf7BQ/Ep8mKY+6AdbYg5wRl4GsQnZsX1/R4d/6N5JCSOxGKOZtD xzTue1Q59EgPAVWkSj9Q8cUGSMZNxCjIVaHrJ5blblGzEbIwrZZFilsMbFOeXoTGlTnL 8ERGgDqnGRMvP9wiKzq6aQtVKoZI4xXaZCmfans+dmvDNsbxMWg8CncAeR1u3LUtejaV 7Wow==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772122397; x=1772727197; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=HPVuKmW4RuiFaWzZrxUdPzFGao2Gp3QcgQu65DSd5i4=; b=Jslwge3oI1+tUbDvJI/ctfMaBbNag1aM0CLO3ws/7OUjKu/RpInYr4M82ypSXhnczo 1INrkF6I2cIfDSSnpJVWidZZga4dzj7STWMlbveLv4WXewjbPi1MZREN/SuurDv5F8qs 2R/0ZNrgIcs7ynEAAnWOIG+brHU3gX8EeoGkhVof7ftIq6hV7IZgi2sYidgkY3TTUlxo ynjzJxaCYagP7FQCCSnskFxVwCjgqWRNpI8nAVKWXF6b/F+V6SRsIJaafrFZkY+lu1Ei hJ7gkJ7yaD2FFbosp1CrsQVrZlXGjoPmuINP9K3FO/7Xv/i6o2p2scSXQFAhshtckV+P SWTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772122397; x=1772727197; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HPVuKmW4RuiFaWzZrxUdPzFGao2Gp3QcgQu65DSd5i4=; b=icMg2LQK68rsMk8ZwuAEZXxIZKoEssThOIzDqcvM6cxtkZn4ebWzc8Xg+NzyzG6c6U DrMOwN294djgzz49aIUW3mhzHSnW5MlPfHYpWstQ9u7kNLmF3IqxQA1AGzv0fraE+4tL qSNFlKbTNBcGgE4OnTLh09hDoMQGxjl4WChPOcdOWiO3pJCtScG/CULNaY46/hZlqr40 gX/bMETBm6mj+soBpbU1oeAGOer0I0ZUf2wCEi3Vg6LTsK/vd3riM/CZWe65w+TpddVT V3uZX6/2IjQpoM73C4XhTYB33AkCfPLLX0texGl9Qt8ekf12j3ZDOu48jMgnflP0BR8C QGUQ== X-Forwarded-Encrypted: i=1; AJvYcCXzciPTgiAg6idRbPNeacZb0kN1CHa5SiQ0XaUaDlRP/7G8bGw2HOZLFF5piPHR77pVtsk5oWPvnLmq@lists.postgresql.org X-Gm-Message-State: AOJu0Yx0nTMvFTXDWDUyozmqym4flsBZFlWnmghluasXsyyErGyO4hfN oJ7DWaTuMIeLlZQozuCGW4NL6vUD9gzPL62xDOsfNgo9xUATUA/wfg8GrIc1eFge2/FO77FXH8k R5lVgKgfgorwK+LZ1xT4YIFr3VxFHvqOW878T9X8= X-Gm-Gg: ATEYQzyOzS5F3itO3kgyiaALCK0aGDKErPoKoZ6Aevv5CIemLxT9479wBC/QZCsnz8x DUFU8eoiwCOwDVcYOzjtnGRzjG0sgSsaOFLC8TYJ4BsouB5WqpmuCM5YX3ruzDibandkhpl1dLK 8FTJJ8CTnhN3gor/gdHCPBMaNXTqoosO0vNlW2xreFOHdQTp+N3RjYZx5xGpTI5Ho7Q+JIRC2km M7O3OLF73zMylAkc+Zr4nRtdKyCmqSGpAnYRHSviEDRRgShPaqvccMknEBte5vPTsC/AJPiGaQ0 pjA9tIM= X-Received: by 2002:a05:6820:1620:b0:679:e4c0:e022 with SMTP id 006d021491bc7-679ef99186amr2115036eaf.52.1772122397481; Thu, 26 Feb 2026 08:13:17 -0800 (PST) MIME-Version: 1.0 References: <19417-401f33ed14f3d4d5@postgresql.org> In-Reply-To: <19417-401f33ed14f3d4d5@postgresql.org> From: "David G. Johnston" Date: Thu, 26 Feb 2026 09:12:41 -0700 X-Gm-Features: AaiRm53uXxU-RO8rxXobzO4-xtgwAVxyg5HTHRCRIEbcM9K8PIIgRpGGR80TITw Message-ID: Subject: Re: BUG #19417: '\dD' fails to list user-defined domains that shadow built-in type names (e.g., 'numeric') To: zhangyc0706@gmail.com, pgsql-bugs@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000001e50064bbc66db" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000001e50064bbc66db Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Feb 26, 2026 at 8:43=E2=80=AFAM PG Bug reporting form < noreply@postgresql.org> wrote: > The following bug has been logged on the website: > > Bug reference: 19417 > Logged by: yuanchao zhang > Email address: zhangyc0706@gmail.com > PostgreSQL version: 18.2 > Operating system: windows 10 > Description: > > Because I checked the documentation regarding the use of '\dD', and there > was no explanation for this special case. > > Because it is not a special case of \dD specifically but a behavior of how all the \d meta-commands function. This behavior is documented under Patterns (here, the absence of specifying any pattern): ''"" Whenever the pattern parameter is omitted completely, the \d commands display all objects that are visible in the current schema search path =E2= =80=94 this is equivalent to using * as the pattern. (An object is said to be visible if its containing schema is in the search path and no object of the same kind and name appears earlier in the search path. This is equivalent to the statement that the object can be referenced by name without explicit schema qualification.) """ Your new domain is not visible since the plain type numeric in pg_catalog is implicitly first in the default search_path. https://www.postgresql.org/docs/current/app-psql.html https://www.postgresql.org/docs/current/runtime-config-client.html#GUC-SEAR= CH-PATH David J. --000000000000001e50064bbc66db Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Feb 26, 2026 at 8:43=E2=80=AFAM PG Bug reporting f= orm <noreply@postgresql.org> wrote:
The following bug ha= s been logged on the website:

Bug reference:=C2=A0 =C2=A0 =C2=A0 19417
Logged by:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 yuanchao zhang
Email address:=C2=A0 =C2=A0 =C2=A0
zhangyc0706@gmail.com
PostgreSQL version: 18.2
Operating system:=C2=A0 =C2=A0windows 10
Description:=C2=A0 =C2=A0 =C2=A0 =C2=A0

Because I checked the documentation regarding the use of '\dD', and= there
was no explanation for this special case.


Because it is not a special case of \dD specifically but a behavior of= how all the \d meta-commands function.=C2=A0 This behavior is documented u= nder Patterns (here, the absence of specifying any pattern):

''""
Whenever the pattern parameter is omi= tted completely, the \d commands display all objects that are visible in th= e current schema search path =E2=80=94 this is equivalent to using * as the= pattern. (An object is said to be visible if its containing schema is in t= he search path and no object of the same kind and name appears earlier in t= he search path. This is equivalent to the statement that the object can be = referenced by name without explicit schema qualification.)
"&= quot;"

Your new domain is not visible since the p= lain type numeric in pg_catalog is implicitly first in the default search_p= ath.

--000000000000001e50064bbc66db--