Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fGmhh-0004qn-26 for pgsql-general@arkaria.postgresql.org; Thu, 10 May 2018 14:37:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fGmhf-0003bg-V0 for pgsql-general@arkaria.postgresql.org; Thu, 10 May 2018 14:37:55 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fGmhf-0003bW-It for pgsql-general@lists.postgresql.org; Thu, 10 May 2018 14:37:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fGmhd-00016P-0Q for pgsql-general@postgresql.org; Thu, 10 May 2018 14:37:54 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w4AEbpxL015523; Thu, 10 May 2018 10:37:51 -0400 From: Tom Lane To: "=?ISO-8859-1?B?YQ==?=" <372660931@qq.com> cc: "=?ISO-8859-1?B?cGdzcWwtZ2VuZXJhbA==?=" Subject: Re: Is there any C functions that convert the entry to string? In-reply-to: References: Comments: In-reply-to "=?ISO-8859-1?B?YQ==?=" <372660931@qq.com> message dated "Thu, 10 May 2018 19:12:42 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15521.1525963071.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 10 May 2018 10:37:51 -0400 Message-ID: <15522.1525963071@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "=3D?ISO-8859-1?B?YQ=3D=3D?=3D" <372660931@qq.com> writes: > Saying that I am writing a C function that may facing varies of types. I= s there a postgresql function that will automatically call the relative to= _string function and transform them to string?? You might look at the format() function (a/k/a text_format). regards, tom lane