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 1vytpX-000WU8-2i for pgsql-general@arkaria.postgresql.org; Sat, 07 Mar 2026 15:44:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vytpU-008rYY-0L for pgsql-general@arkaria.postgresql.org; Sat, 07 Mar 2026 15:44:36 +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 1vytpS-008rYP-34 for pgsql-general@lists.postgresql.org; Sat, 07 Mar 2026 15:44:36 +0000 Received: from fhigh-b2-smtp.messagingengine.com ([202.12.124.153]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vytpR-0000000112q-1P4b for pgsql-general@lists.postgresql.org; Sat, 07 Mar 2026 15:44:34 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id 2080B7A020B; Sat, 7 Mar 2026 10:44:32 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Sat, 07 Mar 2026 10:44:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc: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=1772898271; x=1772984671; bh=yCvpP0IL/VEYFrBFzM9dYcFbd4trQjZdVFtxL7PiGxk=; b= nOt5xqAQuWXeN75/WGYDUwxFw70uJzRIUYEuyE96HZ2q4o2i/NAJ9r5EI/jaIXOV vFSIRF866BxAQeG/qyWynr7udn8QEGkmjGD04nS3N8fbsOEbEiavYfXWYK3bU9i8 EKJ3HyWXBA6bbxb3HAu34ussDnPjHvZQWz0pg44JCJVjx8etv+outjIpXrTH6szO e7Iq1W7x9+EQAUq2EClrnWnDOv69VcmZkkgAHdZRotxXsF3U5Ppe7b68N2l+zO4A 2hbII8JsM/fVNMqHq34QOxhISo7KdmFzHL56BLoLO65061TyyWqgyW7DZ0M4e4Ri hjNKArY5XfcLVyt0JE/SVQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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-sender:x-me-sender:x-sasl-enc; s=fm1; t=1772898271; x= 1772984671; bh=yCvpP0IL/VEYFrBFzM9dYcFbd4trQjZdVFtxL7PiGxk=; b=B otdRTVCxpwGwBiYti2YoEM2bf4Rkaw6yGzb20kJE/wx70rqO8JrgsIZNQT5qER/T k4C1+ibu+dN9k+LCBz5BCcFgMkTI04t3qwtWWLWXNqHJ3Ibn2cHONcusmu13/daE baVaGY9RLU5/QNT4iTyrMoQgLzS9sTPrOzjAzxzchzRG6Sdnjd3u+RLBm1jqs7Ea n/ad8pmaD7XATloJ2AgSG/zBgJXRUuii3Q6IcjRn4d99gU5I5koxZhqyLGBFux3d iXITbg8kPt7rEqmFYDS2ty3TT2Zjco9ktSZ3ifV3fSiO3QTbKhKAa1FkQxG4UB/6 eo/eneump8hDclhv519DQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvjedvieefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhepgfdufeekhfevfeelveeiueevhedvuddukeduvddvlefh ueeuieejtdeuvdevvdeunecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgr nhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsggprhgtphhtthhopeefpdhmoh guvgepshhmthhpohhuthdprhgtphhtthhopehikhhorhhothdtudesghhmrghilhdrtgho mhdprhgtphhtthhopegurghvihgurdhgrdhjohhhnhhsthhonhesghhmrghilhdrtghomh dprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehlihhsthhsrdhpohhsthhgrhgv shhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 7 Mar 2026 10:44:31 -0500 (EST) Message-ID: Date: Sat, 7 Mar 2026 07:44:30 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: How to properly use TRIM()? To: Igor Korot , "David G. Johnston" Cc: "pgsql-generallists.postgresql.org" References: Content-Language: en-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 3/7/26 12:11 AM, Igor Korot wrote: > Hi, David, >> You are asking the wrong question. The right question is “how does one turn an empty array into the null value?” Nullif is correct, you just need to specify an empty array (of the correct type) for the second argument. > > I don't think pg_class.reloptions is an ARRAY... I think it is: https://www.postgresql.org/docs/current/catalog-pg-class.html reloptions text[] > Included is one, storage is not. > > Thank you. > >> >> Given that error message, an array of text is the correct type. >> >> Array[]::text[] >> >> David J. >> > > -- Adrian Klaver adrian.klaver@aklaver.com