Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hc22p-00059A-H1 for pgsql-general@arkaria.postgresql.org; Sat, 15 Jun 2019 06:20:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hc22m-0000Fs-HA for pgsql-general@arkaria.postgresql.org; Sat, 15 Jun 2019 06:20:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hc22m-0000Fg-4c for pgsql-general@lists.postgresql.org; Sat, 15 Jun 2019 06:20:04 +0000 Received: from stw1.rcdrun.com ([217.170.207.13]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hc22j-00068R-DI for pgsql-general@lists.postgresql.org; Sat, 15 Jun 2019 06:20:02 +0000 Received: from protected.rcdrun.com (localhost [::1]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA; Fri, 14 Jun 2019 23:19:58 -0700 id 000000000005DD2D.000000005D048E0E.00001D93 Received: from localhost (protected.rcdrun.com [local]) by protected.rcdrun.com (OpenSMTPD) with ESMTPA id 26f80ea1 for ; Sat, 15 Jun 2019 06:19:57 +0000 (UTC) Date: Sat, 15 Jun 2019 08:19:57 +0200 From: Jean Louis To: pgsql-general@lists.postgresql.org Subject: how to concat/concat_ws all fields without braces Message-ID: <20190615061957.GD2565@protected.rcdrun.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello, I have tried doing something like: SELECT concat_ws(' ', table.*) FROM table; and if I do that way, it is essentially same as SELECT concat(table.*) FROM table; and I get the items in braces like (1,something). Why do I get it in braces? Is there a way without specifying specific fields to get all items concatenated without braces? I would prefer conat_ws option. Jean