X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 61CC3D1C965 for ; Fri, 8 Aug 2003 13:55:03 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 35614-03 for ; Fri, 8 Aug 2003 10:53:40 -0300 (ADT) Received: from mark.kiev.ua (strateg.faust.kiev.ua [193.227.209.152]) by svr1.postgresql.org (Postfix) with ESMTP id 16989D1C9B3 for ; Fri, 8 Aug 2003 10:54:49 -0300 (ADT) Received: from my-mail.com.ua (localhost.home [127.0.0.1]) by mark.kiev.ua (8.11.6/8.11.6) with SMTP id h748Hu113073 for ; Mon, 4 Aug 2003 11:17:56 +0300 (EEST) (envelope-from evl@my-mail.com.ua) From: evl@my-mail.com.ua Received: from 195.5.48.107 (SquirrelMail authenticated user evl) by my-mail.com.ua with HTTP; Mon, 4 Aug 2003 11:17:56 +0300 (EEST) Message-ID: <3159.195.5.48.107.1059985076.squirrel@my-mail.com.ua> Date: Mon, 4 Aug 2003 11:17:56 +0300 (EEST) Subject: How to check: is some key referenced from sometable To: X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal X-Mailer: SquirrelMail (version 1.2.5) MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=1.2 tagged_above=0.0 required=5.0 tests=MISSING_MIMEOLE, MISSING_OUTLOOK_NAME, NO_REAL_NAME X-Spam-Level: * X-Archive-Number: 200308/81 X-Sequence-Number: 14697 Please help. Need a boolean function which returns true if given key in table is referensed from another table(s). ----------------------- see You again when ... eVl