Skip site navigation (1) Skip section navigation (2)

Re: Table returning functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jann Röder <roederja(at)ethz(dot)ch>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Table returning functions
Date: 2010-09-19 23:58:58
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-sql
=?UTF-8?B?SmFubiBSw7ZkZXI=?= <roederja(at)ethz(dot)ch> writes:
> Ok I now know that it really seems to do what I expected. But I still
> wonder what it does if I use two functions f() and g() that return a
> different number of rows.

You get the least common multiple of their periods.  It's ugly, and the
lack of any very sane way to define the behavior is the main argument
for deprecating SRFs in the targetlist.

			regards, tom lane

In response to


pgsql-sql by date

Next:From: Jann RöderDate: 2010-09-20 07:43:26
Subject: Re: Table returning functions
Previous:From: Jann RöderDate: 2010-09-19 23:04:07
Subject: Re: Table returning functions

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group