agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Desmond Coertzen <patrolliekaptein@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Subselect left join / not exists()
Date: Mon, 14 Mar 2016 09:42:41 -0400
Message-ID: <30076.1457962961@sss.pgh.pa.us> (raw)
In-Reply-To: <CALQ6=2Bs6K9Qe7NzOCUGGVjVSVszjy5L+wGPGA1a-COn0-8GhQ@mail.gmail.com>
References: <CALQ6=2BRu5P5=u5RE8su_JQhJBj+1b-oSMbuq97d40M4C6iwgQ@mail.gmail.com>
	<32307.1456498805@sss.pgh.pa.us>
	<CALQ6=2AkuawZW=6BvGwj3tJn=rHdtuvgv0WA6LDAU5BRp0ssng@mail.gmail.com>
	<CALQ6=2Cu_pROq6AAw5HZ8Mkon1B6oNPRsap6khpNS2AUAxV7wQ@mail.gmail.com>
	<10339.1457910832@sss.pgh.pa.us>
	<CALQ6=2Bs6K9Qe7NzOCUGGVjVSVszjy5L+wGPGA1a-COn0-8GhQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>

Desmond Coertzen <patrolliekaptein@gmail.com> writes:
> I was under the impression that postgres will not allow me to declare a
> function immutable if it falls outside of the bounds of the definition.

IIRC, there was an explicit decision not to throw errors for "immutable
function reads a table", because we have no way to be sure that such a
thing might not be safe in practice in a particular usage.  (That is,
you actually don't ever change the table's contents after first use of
the function.)  But yeah, it's a gray area.

			regards, tom lane


-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql



view thread (10+ messages)

Message-ID: <30076.1457962961@sss.pgh.pa.us>
Permalink:  ../30076.1457962961@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/30076.1457962961@sss.pgh.pa.us

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, patrolliekaptein@gmail.com
  Subject: Re: Subselect left join / not exists()
  In-Reply-To: <30076.1457962961@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox