Re: unintuitive subquery record wrapping

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rikard Pavelic <rikard(dot)pavelic(at)zg(dot)htnet(dot)hr>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: unintuitive subquery record wrapping
Date: 2010-09-18 02:31:19
Message-ID: 2007.1284777079@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Rikard Pavelic <rikard(dot)pavelic(at)zg(dot)htnet(dot)hr> writes:
> For basic query:
> select t from t
> result is of type t.

yeah ...

> If I query:
> select sq from (select t from t) sq;
> result is of type record.

yeah ... it's a record containing a single field of type t.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rikard Pavelic 2010-09-18 07:31:29 Re: unintuitive subquery record wrapping
Previous Message Rikard Pavelic 2010-09-18 01:59:23 unintuitive subquery record wrapping