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 1reezi-00Cg4O-Cc for pgsql-general@arkaria.postgresql.org; Mon, 26 Feb 2024 17:42:26 +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 1reezg-00Fb7R-MX for pgsql-general@arkaria.postgresql.org; Mon, 26 Feb 2024 17:42:25 +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.94.2) (envelope-from ) id 1reezg-00Fb7J-C2 for pgsql-general@lists.postgresql.org; Mon, 26 Feb 2024 17:42:24 +0000 Received: from wfout5-smtp.messagingengine.com ([64.147.123.148]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1reezc-001G43-CR for pgsql-general@lists.postgresql.org; Mon, 26 Feb 2024 17:42:23 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfout.west.internal (Postfix) with ESMTP id 548EF1C00076; Mon, 26 Feb 2024 12:42:19 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 26 Feb 2024 12:42:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1708969338; x=1709055738; bh=GBlc31s+OGVrgNuifi6L2afj5LI5wlmwqSIhKWnW+h8=; b= AwIXb2O0GrDTFYKgP2C45Zh29jrXXE1NWDo3CXJ7YuwOOIXl5rlgVuUx9HDE4+85 1PP8+Wg+Bz+MK1wk0AaxACbp2wKYyimAVINjY9pXu3+nTkHlSQC2Mv0jpZM15ZHE CvFeHbYq+SHAinJT1gLCKXVKwDozzsqQg3du+GjEl0AxIV16uTv1J+ZXOaH5DRFA gElleHV17EWSCEuwgDdipnVhFqt0IIqVuEq5IT3GsZqCaQbNfRSM9/QBAQIM0la8 0RiorxJ2eS0TNNMTKcIA/vJ/npqyGBZ27lsdQwd3W3hnh6tC5AfLqFvZHulvlJ0r QagCCuR5M5XGJi4yKETi3Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1708969338; x= 1709055738; bh=GBlc31s+OGVrgNuifi6L2afj5LI5wlmwqSIhKWnW+h8=; b=O K4uIek6Cw8y1434WEaaDsq9kBuFsVaubxVsWMKeSB2I9W0SXVpzSwM0HGUI5n3qp q8Z6bCQGKHREhdOiM4vfC+UiIpjexTKkhTpw65RFVADrM5M1Q/UlCRpayg8ZrJ8h cXMiQEuvt+OHquwcXzFcl7b0tGp7UflytwulUcgW9AMDcDGHyML/Mzpp6UtIVtAP 3+KPyVZzrRRf3QezclFjqRAQifpFBX0CbTeXyC/4wHkZlkL0mRBMoFRy8u5jFM9e 7NPwpTASxUwvvzVZGdCv+blrnJjZ5lJsjOe62g2PwJsMiw49dVUamz8m8cQF/jpl edatYLC5b02Liu26gxIsQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrgedvgddutdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthekredttddvjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeffleegieefgfevudehtdfhkeeutdffjeevgeffgeej vedthefgudeiteefheejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 26 Feb 2024 12:42:18 -0500 (EST) Message-ID: <5e173ae9-9494-446a-850f-8d21663cfadf@aklaver.com> Date: Mon, 26 Feb 2024 09:42:17 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pPL/pgSQL restriction on characters for copying types? Content-Language: en-US To: Thiemo Kellner , pgsql-general@lists.postgresql.org References: <88b574f4-cc08-46c5-826b-020849e5a356@gelassene-pferde.biz> <1812333.1708965337@sss.pgh.pa.us> From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2/26/24 09:30, Thiemo Kellner wrote: > Shame on me. My bad. It was the order of installation that did not work. > Sorry for that. I was mislead by the error message. If an object is > missing I would not expect an invalid type name message. For all the code knows it could be just a misspelling. > > Thanks > > Am 26.02.2024 um 17:53 schrieb Thiemo Kellner: >> Thanks for the hint and care. The install script has a set statement >> already and I now added the search_path clause to no avail. Please >> find the entire code attached and a screenshot from the error. >> >> Am 26.02.2024 um 17:35 schrieb Tom Lane: >>> Thiemo Kellner writes: >>>> However, I want to create a (trigger) function to impose data >>>> consistency. For that purpose, I try to copy the data type of a >>>> PL/pgSQL >>>> variable from the base object, a view in that case. Trying so, I get >>>> the >>>> following error on installation of the function. >>> >>>> V⠒NODE_TYPE⠒NAME                NODE⠒V.NODE_TYPE⠒NAME%type := null; >>> >>>> Syntax error at "%" … invalid type name. If I use the actual type of >>>> the >>>> column, all is fine. >>> >>> FWIW, I couldn't reproduce this with the fragmentary scripts you >>> provided.  I suspect the problem is not about the special characters >>> in the names, rather about search_path not including the NODE⠒V view. >>> Consider schema-qualifying the view name, or attaching a "SET >>> search_path" clause to the function. >>> >>>             regards, tom lane > > -- Adrian Klaver adrian.klaver@aklaver.com