From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Guyren Howe <guyren(at)gmail(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Text value within composite function result not quoted |
Date: | 2017-05-16 05:10:45 |
Message-ID: | CAKFQuwZBciF2hTxuC6hwac4Wdg933bE+NDArVEgNA=hoycWtxg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Monday, May 15, 2017, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Guyren Howe <guyren(at)gmail(dot)com <javascript:;>> 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
>
>
Right idea (same output rules), wrong link. The output is a composite, not
an array.
https://www.postgresql.org/docs/current/static/rowtypes.html#ROWTYPES-IO-SYNTAX
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | Vamsi Patchipulusu | 2017-05-16 05:23:12 | Postgres intermittent connection errors: psql.bin: could not connect to server: Cannot assign requested address |
Previous Message | Guyren Howe | 2017-05-16 04:44:01 | Re: Text value within composite function result not quoted |