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 1r8j3b-00BLVY-0Y for pgsql-admin@arkaria.postgresql.org; Thu, 30 Nov 2023 15:34:27 +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 1r8j3Y-000ZYc-1I for pgsql-admin@arkaria.postgresql.org; Thu, 30 Nov 2023 15:34:24 +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.94.2) (envelope-from ) id 1r8j3X-000ZYS-61 for pgsql-admin@lists.postgresql.org; Thu, 30 Nov 2023 15:34:23 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r8j3T-009NJA-Uc for pgsql-admin@lists.postgresql.org; Thu, 30 Nov 2023 15:34:22 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 9038F3200A75; Thu, 30 Nov 2023 10:34:16 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 30 Nov 2023 10:34:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= quadratum-braccas.com; h=cc:content-transfer-encoding :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm3; t=1701358456; x=1701444856; bh=sQ1CGFoBNvQGwCCCYLvaW+g6Q 0/TGr32ha/pmrFBQjU=; b=gqfdHQs3qIBZnV4msFxWNnxZ/uw1q2mNNctqsErPE o0loluwq8HcM0IB+kwYXkfSYnFt3jBh1oCupX+wlc/Cr0ZbzafAXSEiXU3put1xB RiydYKOtr85u7xbyi+iHf0hH1KcY3R9RfgdgB7bVLsgHOj1jUb6WE4K6/uT4kYJb 3CcJfbZbpfGSeAaTtxidftHsP6V9Y/F7TeZBKWRM8oYWS0p/xGWXRCBYf2owG1hu wcH79qMJ1ywzyiPCpX1CtMb1jZlJ00SYWzHKLeWkUmqMkgqARI2x0egvf6eiAESw rs1AnsiY/RJt36MMZkqHGtTtdfGf6s4U1zoo5tfyt2OyQ== 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:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1701358456; x=1701444856; bh=sQ1CGFoBNvQGw CCCYLvaW+g6Q0/TGr32ha/pmrFBQjU=; b=PPPZbZjq+lYbU4l9lzlOMtCfRWiqT 1+bha6dIOWO6kT8mcrv6kcOr20Fy7xlvIHnDBQT4wxxc63H/KkBZAZTeGvSNIVqP 5eg7CHP8dNnch6mtNh5EuTAp+THxsMLP5VcxkPgjoIxwQCtbKu51fPNUVkpl2rlR PqDd0Mk3RQJd8ksULv17RMiR9wMtli5B2j/phzVTH0Pu2i3IJ4csM4/FqtjB65Ml NJCENqQVk+Aj3W+3pRl2n74sNcJPk6vpHTaXgO7jCDsG535s3wzPnrq5NEWRgj2l RUeZDPW7IMyh8qa4uHZrGgwZkl80cUPtjf/XpPalF1c9bJJ5+7C/i9wQg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeijedgjeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfvhffutgfgsehtkeertd dtvdejnecuhfhrohhmpefusghosgcuoehssghosgesqhhurggurhgrthhumhdqsghrrggt tggrshdrtghomheqnecuggftrfgrthhtvghrnhepfeekhefftdffleduudegkeevtdekvd ejgfegheefteefudeiveekhfelfffhuefhnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomhepshgsohgssehquhgrughrrghtuhhmqdgsrhgrtggtrg hsrdgtohhm X-ME-Proxy: Feedback-ID: i374947ac:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 30 Nov 2023 10:34:14 -0500 (EST) Message-ID: Date: Thu, 30 Nov 2023 08:34:12 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Pgsql-admin Content-Language: en-US From: Sbob Subject: char column with a single space as the default not working 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 All; I created a table like this: create table z (charcol char(1) default  ' ', intcol int); Then I inserted a row with a single space in the charcol column and another insert letting the table use the default value: insert into z values (' ', 1); insert into z (intcol) values (2); However neither of the inserted rows actually retained the single space in the charcol column: select '[' || charcol || ']', intcol from z;  ?column? | intcol ----------+--------  []       |      1  []       |      2 (2 rows) Thoughts? Is it possible to add a single space to a char column without it getting truncated? Thanks in advance