Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ojT22-0004qj-Kl for pgsql-general@arkaria.postgresql.org; Fri, 14 Oct 2022 22:19:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ojT21-0003F4-4A for pgsql-general@arkaria.postgresql.org; Fri, 14 Oct 2022 22:19:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ojT20-0003CS-OT for pgsql-general@lists.postgresql.org; Fri, 14 Oct 2022 22:19:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ojT1w-0004wi-Jw for pgsql-general@postgresql.org; Fri, 14 Oct 2022 22:19:51 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 29EMJd2V1423295; Fri, 14 Oct 2022 18:19:39 -0400 From: Tom Lane To: Andrus cc: Adrian Klaver , pgsql-general Subject: Re: How to return argument data type from sql function In-reply-to: References: <86fe1ce7-3d6f-b723-b0fc-0eb796100588@hot.ee> <1185464.1665759357@sss.pgh.pa.us> <12a74d8c-58ac-f14c-39c7-3730362e08e7@hot.ee> <1417737.1665782660@sss.pgh.pa.us> Comments: In-reply-to Andrus message dated "Sat, 15 Oct 2022 00:48:35 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1423293.1665785979.1@sss.pgh.pa.us> Date: Fri, 14 Oct 2022 18:19:39 -0400 Message-ID: <1423294.1665785979@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andrus writes: > How to change this query so that it searches schemas in set search_path > order and returns column width from it ? In this case p_namespace > parameter can removed. I showed you that already: regclass will take care of it. regards, tom lane