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 1wf0jZ-005Cr9-2H for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Jul 2026 19:36:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wf0jY-00FUFX-0T for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Jul 2026 19:36:32 +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.96) (envelope-from ) id 1wf0jX-00FUFP-2U for pgsql-hackers@lists.postgresql.org; Wed, 01 Jul 2026 19:36:31 +0000 Received: from mout-u-204.mailbox.org ([80.241.59.204]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wf0jV-00000001G7B-2nRd for pgsql-hackers@lists.postgresql.org; Wed, 01 Jul 2026 19:36:31 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4gr9HY5t2Vz9vKm for ; Wed, 1 Jul 2026 21:36:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ewie.name; s=MBO0001; t=1782934586; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=6UfgTwo6JVs3MyCNymSEl9fGmdHzpQNBiPwVfA98LpU=; b=u3UPwGFokQvUDHO2PM3ipNGaD/uq13C5fbuZP+zHayY+Qx/9UiagCH0IJnedZrd3efbdoJ DB2XaTFJF645zIv3O3+We3S53aaH7PSqxiQSfGct1LlbCGw7siys+EcwHkMaRYBO7F/1Sl wdAWeKr5lpR93ubrS5qkN09YL84OL+p36h2uGC4K/nyczCBEiP1BkDcmeEPbwMRygC2RR3 GMwDizy2t0G8v6E8P6FtecMFwLYdUTWyThv3Xz5kG3NM45ueOy010srD9r6qGQH4nXcp4k dPe7exnUtYCBHutBSlqJTj8H2ryCfM++jdUR+DuP0qBwrtKpUjoMBGH5DCax0w== Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of ewie@ewie.name designates 2001:67c:2050:b231:465::1 as permitted sender) smtp.mailfrom=ewie@ewie.name Date: Wed, 1 Jul 2026 21:36:23 +0200 From: Erik Wienhold To: pgsql-hackers@lists.postgresql.org Subject: psql: Fix \df tab completion for procedures Message-ID: <10fbfdfe-80f6-4ef9-b8b3-f7be0eb53a50@ewie.name> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="5rsvev5qaoortkiw" Content-Disposition: inline X-Rspamd-Queue-Id: 4gr9HY5t2Vz9vKm List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --5rsvev5qaoortkiw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Here's a patch that fixes the tab completion for \df to also consider procedures, in effect every kind of routine. I guess this was just missed in commits fb421231daa and 05e85d35afb. -- Erik Wienhold --5rsvev5qaoortkiw Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="v1-0001-psql-Fix-df-tab-completion-for-procedures.patch" From 1be80c34cb53825a7f0e04a09b2e6c9b391103e3 Mon Sep 17 00:00:00 2001 From: Erik Wienhold Date: Sat, 22 Nov 2025 15:42:06 +0100 Subject: [PATCH v1] psql: Fix \df tab completion for procedures \df also covers procedures since fb421231daa. But the tab completion logic was never changed to align with that. Fix this along the lines of 05e85d35afb. --- src/bin/psql/tab-complete.in.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/psql/tab-complete.in.c b/src/bin/psql/tab-complete.in.c index 072b98bea08..8f81f5bf035 100644 --- a/src/bin/psql/tab-complete.in.c +++ b/src/bin/psql/tab-complete.in.c @@ -5669,7 +5669,7 @@ match_previous_words(int pattern_id, else if (TailMatchesCS("\\dew*")) COMPLETE_WITH_QUERY(Query_for_list_of_fdws); else if (TailMatchesCS("\\df*")) - COMPLETE_WITH_VERSIONED_SCHEMA_QUERY(Query_for_list_of_functions); + COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_routines); else if (HeadMatchesCS("\\df*")) COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_datatypes); -- 2.55.0 --5rsvev5qaoortkiw--