Re: [SPAM]function side effects - Mailing list pgsql-hackers

From Takahiro Itagaki
Subject Re: [SPAM]function side effects
Date
Msg-id 20100223131515.A177.52131E4D@oss.ntt.co.jp
Whole thread Raw
In response to function side effects  (Tatsuo Ishii <ishii@postgresql.org>)
List pgsql-hackers
"Tatsuo Ishii" <ishii@postgresql.org> wrote:

> VOLATILE functions such as random() and timeofday() apparently do not
> write and sending those queries that include such functions is
> overkill.

> Can we VOLATILE property divide into two categories, say, VOLATILE
> without write, and VOLATILE with write?

I think it's possible. We might borrow words and semantics from
unctional programming languages for functions with side effects.
How do they handle the issue?

BTW, random() *writes* the random seed, though no one will mind it.

Regards,
---
Takahiro Itagaki
NTT Open Source Software Center




pgsql-hackers by date:

Previous
From: Jaime Casanova
Date:
Subject: synchronous commit in dump
Next
From: Tom Lane
Date:
Subject: Re: function side effects