From:
"Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To:
"Peter Eisentraut" <peter_e(at)gmx(dot)net>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc:
"Greg Stark" <gsstark(at)mit(dot)edu>, "Tatsuo Ishii" <ishii(at)postgresql(dot)org>, <pgsql-hackers(at)postgresql(dot)org>, "Jaime Casanova" <jcasanov(at)systemguards(dot)com(dot)ec>
Subject:
Re: function side effects
Date:
2010-03-01 23:09:56
Message-ID:
4B8BF4E4020000250002F769@gw.wicourts.gov (view raw or flat )
Thread:
2010-02-23 03:51:49 from Tatsuo Ishii <ishii(at)postgresql(dot)org>
2010-02-23 04:15:15 from Takahiro Itagaki <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
2010-02-23 04:49:42 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2010-02-23 15:40:34 from "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
2010-02-23 16:08:43 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2010-02-23 16:39:09 from Jaime Casanova <jcasanov(at)systemguards(dot)com(dot)ec>
2010-02-23 16:52:36 from "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
2010-02-23 18:18:32 from Greg Stark <gsstark(at)mit(dot)edu>
2010-02-23 18:39:04 from "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
2010-02-23 18:50:23 from Greg Stark <gsstark(at)mit(dot)edu>
2010-02-23 19:02:58 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2010-02-23 20:01:15 from Robert Haas <robertmhaas(at)gmail(dot)com>
2010-02-23 21:54:12 from Jaime Casanova <jcasanov(at)systemguards(dot)com(dot)ec>
2010-03-01 19:56:30 from Peter Eisentraut <peter_e(at)gmx(dot)net>
2010-03-01 20:30:20 from Jaime Casanova <jcasanov(at)systemguards(dot)com(dot)ec>
2010-03-01 21:40:40 from Boszormenyi Zoltan <zb(at)cybertec(dot)at>
2010-03-02 10:26:20 from Peter Eisentraut <peter_e(at)gmx(dot)net>
2010-03-01 21:29:56 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2010-03-01 22:36:08 from Jaime Casanova <jcasanov(at)systemguards(dot)com(dot)ec>
2010-03-01 23:09:56 from "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
2010-03-02 10:28:26 from Peter Eisentraut <peter_e(at)gmx(dot)net>
2010-02-24 01:00:33 from Tatsuo Ishii <ishii(at)postgresql(dot)org>
2010-02-24 03:18:42 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2010-02-24 03:46:13 from Jaime Casanova <jcasanov(at)systemguards(dot)com(dot)ec>
2010-02-23 20:01:47 from "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
2010-02-23 22:21:03 from Simon Riggs <simon(at)2ndQuadrant(dot)com>
2010-02-23 23:04:55 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2010-02-23 14:44:48 from Alvaro Herrera <alvherre(at)commandprompt(dot)com>
2010-02-23 15:05:49 from Tatsuo Ishii <ishii(at)postgresql(dot)org>
2010-02-23 16:29:40 from Tatsuo Ishii <ishii(at)postgresql(dot)org>
2010-02-23 22:35:41 from Simon Riggs <simon(at)2ndQuadrant(dot)com>
2010-02-24 00:56:29 from Tatsuo Ishii <ishii(at)sraoss(dot)co(dot)jp>
Lists:
pgsql-hackers
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
>> SQL standard:
>
>> <SQL-data access indication> ::=
>> NO SQL
>> | CONTAINS SQL
>> | READS SQL DATA
>> | MODIFIES SQL DATA
>
> Huh. I understand three of those, but what is the use of CONTAINS
> SQL? Seems like that would have to be the same as the last one,
> or maybe the next-to-last one if you're prepared to assume it's
> read-only SQL.
On a quick search of the spec, the best I was able to tell was that
you are required to use "CONTAINS SQL" if the language is SQL.
Perhaps it figures that the database engine can determine the
read/write behavior directly if the language is SQL, and you tell it
what it does if you're coding in some other language.
-Kevin
In response to
pgsql-hackers by date
Next :From: Chris BrowneDate: 2010-03-01 23:11:48
Subject : Re: Anyone know if Alvaro is OK?
Previous :From : Maciej MrozowskiDate : 2010-03-01 23:08:31
Subject : [Feature request] variable declaration of anonymous composite data type in PL/pgSQL