Re: [COMMITTERS] pgsql: Add generate_subscripts, a series-generation function which

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: Add generate_subscripts, a series-generation function which
Date: 2008-04-29 02:22:31
Message-ID: 20080429022231.GK5761@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Tom Lane wrote:
> alvherre(at)postgresql(dot)org (Alvaro Herrera) writes:
> > Add generate_subscripts, a series-generation function which generates an
> > array's subscripts.
>
> Why are these marked volatile in pg_proc? Surely they generate the
> same outputs given the same inputs, and therefore qualify as immutable.

Hmm, true.

I'll change the four generate_series variants too -- they are marked
volatile as well.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2008-04-29 02:26:50 Re: [COMMITTERS] pgsql: Add generate_subscripts, a series-generation function which
Previous Message Tom Lane 2008-04-28 23:48:16 pgsql: Increase the statement_timeout value used in the prepared_xacts

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-04-29 02:26:50 Re: [COMMITTERS] pgsql: Add generate_subscripts, a series-generation function which
Previous Message Bruce Momjian 2008-04-29 02:11:16 Re: [HACKERS] Proposed patch - psql wraps at window width