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 1q1pBn-0008Qy-25 for pgsql-general@arkaria.postgresql.org; Wed, 24 May 2023 14:10:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q1pBk-00018G-Ty for pgsql-general@arkaria.postgresql.org; Wed, 24 May 2023 14:10:04 +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 1q1pBk-00017u-Iu for pgsql-general@lists.postgresql.org; Wed, 24 May 2023 14:10:04 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q1pBh-001eVI-IA for pgsql-general@lists.postgresql.org; Wed, 24 May 2023 14:10:03 +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 34OE9wwn1125497; Wed, 24 May 2023 10:09:59 -0400 From: Tom Lane To: jian he cc: pgsql-general list Subject: Re: confused by int2vector typdelim In-reply-to: References: Comments: In-reply-to jian he message dated "Wed, 24 May 2023 15:56:51 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1125495.1684937398.1@sss.pgh.pa.us> Date: Wed, 24 May 2023 10:09:58 -0400 Message-ID: <1125496.1684937398@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk jian he writes: > should I expect the typdelim be a white space? Since '1 2'::int2vector > works, '1,2'::int2vector does not work. typdelim applies to the type's associated array type, that is int2vector[]. regression=# select '{1 2,3 4 5}'::int2vector[]; int2vector ----------------- {"1 2","3 4 5"} (1 row) regards, tom lane