AW: AW: AW: SQL3 UNDER - Mailing list pgsql-hackers

From Zeugswetter Andreas SB
Subject AW: AW: AW: SQL3 UNDER
Date
Msg-id 219F68D65015D011A8E000006F8590C604AF7DA8@sdexcsrv1.f000.d0188.sd.spardat.at
Whole thread Raw
List pgsql-hackers
> > I am not talking about select * I am talking about
> > "select somefunc(supertable) from supertable"
> > 
> > create table supertable  (a int);
> > create table taba (b int) under supertable;
> > 
> > create function somefunc (tup supertable) returning int
> > as 'select 1' ...
> > 
> > create function somefunc (tup taba) returning int
> > as 'select 0.5*b' ....
> 
> So how does this work in Informix/Illustra ?
> 
> i.e. is the binding done at row evaluation time or 
> "when they do 'select * ...' and don't know about coumn b"

when you do "select * from supertable" you only get column a,
but rows from both tables.
when you do select somefunc(supertable) ... the function 
corresponding to the rowtype is called thus the taba rows 
do get 0.5*b as result.

Andreas


pgsql-hackers by date:

Previous
From: Zeugswetter Andreas SB
Date:
Subject: AW: AW: Berkeley DB...
Next
From: "Mikheev, Vadim"
Date:
Subject: RE: Berkeley DB...