Re: ROW features

From: Joe Conway <mail(at)joeconway(dot)com>
To: Thomas Lockhart <lockhart(at)fourpalms(dot)org>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ROW features
Date: 2002-07-30 16:52:17
Message-ID: 3D46C441.9020707@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thomas Lockhart wrote:
> I have implemented the ROW keyword, but am not sure that I've gotten
> what the spec intends to be the full scope of functionality. It may be
> that I've missed the main point completely :)
>
> If someone has the time and interest I'd appreciate it if they would go
> through the SQL99 spec and see what they deduce about the ROW keyword
> and the underlying functionality which goes along with it. It seemed to
> enable (at least) having an explicit keyword to introduce row clauses
> (thus eliminating the ambiguity between a single-column row and a
> parenthesized expression) and that is what I implemented. But I get
> hints from reading the spec that there may be more involved, including
> (perhaps) something like name/value pairs in a row expression.
>
> afaict the spec is not at all verbose about this, and is very dense and
> obtuse where it does discuss it. So more pairs of eyes would be greatly
> appreciated...

Obtuse indeed!

Under 6 Scalar expressions -> 6.1 <data type> I see (my take):
ROW ( column_name data_type [,...] )
and under 7 Query expressions -> 7.1 <row value constructor>:
ROW ( value_expression [,...] )

Can you send examples of how these would be used?

It seems this is related to the RECORD pseudo type patch I just
submitted (see:
http://archives.postgresql.org/pgsql-patches/2002-07/msg00286.php
) and the CREATE composite type proposal I sent in last night (no link
in the archives yet), but it isn't clear to if or how anything would
need to be changed.

Thanks,

Joe

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Lamar Owen 2002-07-30 16:57:55 Re: WAL file location
Previous Message Bruce Momjian 2002-07-30 16:49:01 Re: WAL file location