pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ari Entlich <atrigent@ccs.neu.edu>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #6612: Functions can be called inside CHECK statements
Date: Wed, 25 Apr 2012 16:25:11 -0400 (EDT)
Message-ID: <3125270.869581335385510960.JavaMail.root@zimbra> (raw)
In-Reply-To: <33469192.869561335385504681.JavaMail.root@zimbra>

Wow, so I guess I'm pretty much wrong about this... Sorry for the noise guys. I failed to consider different uses for functions, obviously, and it's not possible to automatically detect usages which could cause problems.

Perhaps this is more of a bug in the documentation than anything else. I couldn't find any documentation for the behavior for what will happen if a query is executed inside a function which is called from a check statement. I also couldn't find anything about calling function inside check statements in general, but perhaps that's not necessary. I do, however, think it should definitely be documented somewhere that functions cannot be used to get around the lack of check statement subqueries, because the ordering of operations is wrong.

Thanks!

Ari



view thread (9+ messages)  latest in thread

Message-ID: <3125270.869581335385510960.JavaMail.root@zimbra>
Permalink:  ../3125270.869581335385510960.JavaMail.root@zimbra/
Also on:    postgresql.org/message-id/3125270.869581335385510960.JavaMail.root@zimbra

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: atrigent@ccs.neu.edu
  Subject: Re: BUG #6612: Functions can be called inside CHECK statements
  In-Reply-To: <3125270.869581335385510960.JavaMail.root@zimbra>
  References: <33469192.869561335385504681.JavaMail.root@zimbra> <3125270.869581335385510960.JavaMail.root@zimbra>

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

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