Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WDKLO-0007nv-LT for pgsql-performance@arkaria.postgresql.org; Tue, 11 Feb 2014 20:54:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WDKLO-0004sm-4D for pgsql-performance@arkaria.postgresql.org; Tue, 11 Feb 2014 20:54:14 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WDKLM-0004ql-9C for pgsql-performance@postgresql.org; Tue, 11 Feb 2014 20:54:12 +0000 Received: from mail.tzv.fal.de ([192.108.34.20]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WDKLI-0004gc-PD for pgsql-performance@postgresql.org; Tue, 11 Feb 2014 20:54:11 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.tzv.fal.de (Postfix) with ESMTP id 53DB310013202 for ; Tue, 11 Feb 2014 21:54:06 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.tzv.fal.de Received: from mail.tzv.fal.de ([127.0.0.1]) by localhost (mail.tzv.fal.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e2fMKPV28qR1 for ; Tue, 11 Feb 2014 21:54:05 +0100 (CET) Received: from [192.168.178.25] (unknown [46.21.0.103]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.tzv.fal.de (Postfix) with ESMTPSA id A5C4710013201 for ; Tue, 11 Feb 2014 21:54:05 +0100 (CET) Message-ID: <1392152044.4823.9.camel@localhost> Subject: list number of entries to be delete in cascading deletes From: Eildert Groeneveld Reply-To: eildert.groeneveld@fli.bund.de To: pgsql-performance@postgresql.org Date: Tue, 11 Feb 2014 21:54:04 +0100 In-Reply-To: <19895.1392133067@sss.pgh.pa.us> References: <52F93098.2090002@vmware.com> <19895.1392133067@sss.pgh.pa.us> Organization: FLI Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.3-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Dear All this probably not the best list to post this question: I use cascading deletes but would like to first inform the user what she is about to do. Something like : explain delete from PANEL where panel_id=21; -- you are about to delete 32144 records in tables abc aaa wewew This is clearly something that can be programmed but as all information is available in the database schema, there should be a generalized procedure available. Is there someone who has heard about this problem? greetings Eildert -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance