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.98.2) (envelope-from ) id 1xOpSi-00000000M1y-1T3K for pgsql-general@arkaria.postgresql.org; Thu, 05 Nov 2026 04:52:33 +0000 Received: from localhost ([127.0.0.1]:47266 helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xOpSi-0000000AIfK-37vH for pgsql-general@arkaria.postgresql.org; Thu, 05 Nov 2026 04:52:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]:49210) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xOpQh-0000000ADOi-2uxY for pgsql-general@lists.postgresql.org; Thu, 05 Nov 2026 04:50:28 +0000 Received: from fout-b7-smtp.messagingengine.com ([202.12.124.150]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xOpQe-00000000LNR-2E3s for pgsql-general@lists.postgresql.org; Thu, 05 Nov 2026 04:50:27 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfout.stl.internal (Postfix) with ESMTP id C96391D000DB for ; Wed, 4 Nov 2026 23:50:21 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Wed, 04 Nov 2026 23:50:21 -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=fm2; t=1793854221; x=1793940621; bh=YSwvwkhj0kohCgaUwxupsPgELGhVbZmFy9OVzBJx4ck=; b= J2sgQXjHj4+o/pUJBwL6Z8QmYdjdhH1BBk6A0vlM2jZKp08mhycw4Mib9s2HodnP aH4hQlj5KuSzB5Z2PunZwfN0sFsbx+HI3lnNOPJpFJ0E620vweGU64dxPDPO/hi8 l/qgaSjipKmkNAEHExHgJKC5KAMA/761g9/mq8FKpPAR+XyLfq3LUf7o3cYDNWyt t/pJ1HKTRuKAoHh6Zyv+6MweqkP+xf04M1tSakas9+7Tpld3Q/9KJKc8r8YJYpgp 3ubWIc1Pdudi2PeeRDRJCJ/1KUYEsSNdBzlC7msFOA3uRg9gRMrEE8dkvdUX/S7q LtlzrQnqdAUT7S64PAgOZA== 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=fm3; t=1793854221; x= 1793940621; bh=YSwvwkhj0kohCgaUwxupsPgELGhVbZmFy9OVzBJx4ck=; b=b YXY+iNCbcLYtP5btwLBdGZQk1rrr1e7HC9JGHDyHItVS/taiGlbwxKL+MILY7MUC iBGbgX3nLgZAIU8Ib6OrrjEHenIJdlhlqVgPmpdDi2vx0jDLgqE/EaSfPdeHUdUo qz3Pxi81KepPJSEkBF/1aHv9zl1svsL/YM1ztLOJTCIcoXnickHtpEJwVpHbsYBq wJRUQpzPNApflQPF0gWtJqeFy2toGa3/eYMmj+Bo7GXNoRlPwKV3ONJNft6dtk5y d1veOR8g9r4eZQDLeLdLe5MVwA60HdcwCvIhh58HoBAplCcfLu/nHgvNR1AD4cxB Bmwf67Uyy2/A8oqfRTmTQ== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=sign d=aklaver.com a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1793854221; d=aklaver.com; mf=PGFkcmlhbi5rbGF2ZXJAYWtsYXZlci5jb20+; rt=PHBnc3FsLWdlbmVyYWxAbGlzdHMucG9zdGdyZXNxbC5vcmc+; s=fm2:rsa-sha256:mlZt5aE2iJ7VeoVESqsEajmJCNP9r/JntA0AscGTZtl1xir P5L7Eo2IJKH2hzvlP2RH9PsNLTSPPboXRSzXj6xcsFzGxqkO3y3D+AuPT2fB9u2X SxvGqx3pi37/XOY36dnnq7fF8WhmBEXL4Br/JPuuF5ufR9Kn666NzbihQwUREkN5 HQUYaOQF+n8JbbB5+f+RvDTwNE+xlmSTCWimt0F3YJwSQjuT7xLUpNBKRZkcUG2+ QdWL6lrIY7P0jP/3b+OpvD4N8Crfhy+L8OvDrRAf/HQWngymIkcsFSog+ipI5UMT ST0n5HTF19hGMtw+uNXqZfG9+CF5fC47NESy2Qg==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=mi-m=1; hc=14; hn=cc,content-language,content-transfer-encoding,content-type, date,feedback-id,from,in-reply-to,message-id,mime-version, references,subject,to,user-agent; Message-Instance: m=1; h=sha256:duNEUJ36EkMfixsqwnREHZ8IDr0qXcFECgW6eHVrGAk=:yPcCkmNI/543HVEodtbtifJA6MA5HxgPZTrkQp3swPQ=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTF8ZR9KBzlA7s28URgjri/t/bZHJNDXb4QnLj33toF02oyi0u0eTRhIyqIFjYQBOJ IKlh11HUuiL9pbiIdNCPBNVpXXtx/J9fk3hrq/NDjRZHVxoh6SAgHpGeFxjUexdmF9SG/X /HkumSHoh25YdvFwZY/SUudHb9LRvGvFW5aC2sXcy2OjFU5DAV1h5h6fO8i2bxA49QtywK WHHGaUldRcwSD29DZacCirquu4qCpMRBqcR8n4AOI7g9/AENkQaLKOWRzRHcEZPoHf9B6v frQpojbx1Lp2cpGIZPTCzD/3pFiDN+G3UlBbS/HZE/gt2Zx/7Y6zKHJMIQeFTzvpfZfDLy hE/Zdn5HdRJbh6b6lIdW4+C3U+JnDVz0hImmRkD81W2XwD+c5PRBEAt59dQ1LuJYyzPW/u Z6IkK8fJK7EgnpZVhxWEjZ0ftZaSbVNEYqyucJKPRucE13Sgy/+TrSSO9zyoxiGvID1hAr oyxobUaOwDOgqe03lqXFqbCL6v7H9aWD5inbwn8DYPCoIjgcQDNAKOYPFznUW6jj2S44mh wrYNBfVhqMVPM3gZIrex9KAhLfBeNT/JCV2Bqv0JyqTN4xlHAXOkVKjo/H6Xy/OOAjognS 4wYgkom9aT78IGr49fNacSGSjko1gy8y/+m67JXumKKng+hkOA+iD/1yIEeA X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 4 Nov 2026 23:50:20 -0500 (EST) Message-ID: Date: Wed, 4 Nov 2026 20:50:20 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Return trimmed string from the query To: Igor Korot , Pavel Stehule 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: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 11/4/26 6:56 PM, Igor Korot wrote: > Hi, > > Sorry for a late reply. > > So does this mean that if I use varchar instead of char I will not > have this problem? It is all explained in the docs: https://www.postgresql.org/docs/current/datatype-character.html > > Thank you, > >> (1 row) >> >> regards >> >> Pavel >> >>> >>> >>> Thank you. >>> >>> > > -- Adrian Klaver adrian.klaver@aklaver.com