Re: pgsql/src/backend catalog/heap.c utils/adt/tid.c - Mailing list pgsql-committers

From Hiroshi Inoue
Subject Re: pgsql/src/backend catalog/heap.c utils/adt/tid.c
Date
Msg-id 3CEC6950.33A48395@tpf.co.jp
Whole thread Raw
In response to pgsql/src/backend catalog/heap.c utils/adt/tid.c  (inoue@postgresql.org (Hiroshi Inoue))
List pgsql-committers
Neil Conway wrote:
>
> On Wed, 22 May 2002 03:46:58 -0400 (EDT)
> "Hiroshi Inoue" <inoue@postgresql.org> wrote:
> > Log message:
> >       Allow
> >       CREATE VIEW as SELECT CTID, ....
> >       SELECT currtid( a view, ..).
>
> Hiroshi,
>
> Can you elaborate on exactly what your modification allows?

Before the change, views have meaningless system columns.
After the change, views have no system columns basically
and users could add columns with system column name.

My main intention is to allow scan by TIDs on views.
Scan by TIDs is the fastest random access to PG tables
and I'm using the scan to implement updatable cursors
in ODBC driver. I'd not like to discourage users to
use views.

> Also, would it be appropriate to add regression tests for this?

Not sure.
AFAIK few people are interested in system columns
other than OID.

regards,
Hiroshi Inoue

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql/src/backend Makefile
Next
From: Hiroshi Inoue
Date:
Subject: Re: pgsql/src/backend/catalog heap.c