[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pgsql-bugs
Subject:    Re: [BUGS] BUG #6612: Functions can be called inside CHECK statements
From:       Tom Lane <tgl () sss ! pgh ! pa ! us>
Date:       2012-04-26 3:59:24
Message-ID: 22338.1335412764 () sss ! pgh ! pa ! us
[Download RAW message or body]

Ari Entlich <atrigent@ccs.neu.edu> writes:
> 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.

That statement seems to me to be complete nonsense.  You can certainly
put a query into a function invoked by CHECK.  It may be that there's
some particular use-case that this doesn't work for, but that does not
justify a blanket statement that it "doesn't work".

			regards, tom lane

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic