From: Tom Lane <tgl@sss.pgh.pa.us>
To: a <372660931@qq.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Is there any C functions that convert the entry to string?
Date: Thu, 10 May 2018 10:37:51 -0400
Message-ID: <15522.1525963071@sss.pgh.pa.us> (raw)
In-Reply-To: <tencent_5CE0CDA207E4EE61187F68B9@qq.com>
References: <tencent_5CE0CDA207E4EE61187F68B9@qq.com>
"=?ISO-8859-1?B?YQ==?=" <372660931@qq.com> writes:
> Saying that I am writing a C function that may facing varies of types. Is 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, 372660931@qq.com
Subject: Re: Is there any C functions that convert the entry to string?
In-Reply-To: <15522.1525963071@sss.pgh.pa.us>
References: <tencent_5CE0CDA207E4EE61187F68B9@qq.com> <15522.1525963071@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox