Re: Text value within composite function result not quoted

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Guyren Howe <guyren(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Text value within composite function result not quoted
Date: 2017-05-16 04:36:21
Message-ID: 25719.1494909381@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Guyren Howe <guyren(at)gmail(dot)com> writes:
> ... get this result:
> (200,{},<body>Works!</body>)
> This is the textual representation of the result I get in psql and Ruby. Note that the textual final value is not quoted.
> I imagine I can work out a way to deal with this, but this is not the most felicitous way of representing a text value that I can imagine.
> Note that if I add a single space after “Works!”, I get quotes around the string.

As per spec:

https://www.postgresql.org/docs/current/static/arrays.html#ARRAYS-IO

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Guyren Howe 2017-05-16 04:44:01 Re: Text value within composite function result not quoted
Previous Message Guyren Howe 2017-05-16 04:24:39 Text value within composite function result not quoted