pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Is there any C functions that convert the entry to string?
2+ messages / 2 participants
[nested] [flat]

* Is there any C functions that convert the entry to string?
@ 2018-05-10 11:12 a <372660931@qq.com>
  2018-05-10 14:37 ` Re: Is there any C functions that convert the entry to string? Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: a @ 2018-05-10 11:12 UTC (permalink / raw)
  To: pgsql-general

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??

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Is there any C functions that convert the entry to string?
  2018-05-10 11:12 Is there any C functions that convert the entry to string? a <372660931@qq.com>
@ 2018-05-10 14:37 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2018-05-10 14:37 UTC (permalink / raw)
  To: a <372660931@qq.com>; +Cc: pgsql-general

"=?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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-05-10 14:37 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-05-10 11:12 Is there any C functions that convert the entry to string? a <372660931@qq.com>
2018-05-10 14:37 ` Tom Lane <tgl@sss.pgh.pa.us>

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