Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WKOHY-0000Vd-Qd for pgsql-bugs@arkaria.postgresql.org; Mon, 03 Mar 2014 08:31:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WKOHY-0001Ox-60 for pgsql-bugs@arkaria.postgresql.org; Mon, 03 Mar 2014 08:31:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WKOHX-0001Oq-7J for pgsql-bugs@postgresql.org; Mon, 03 Mar 2014 08:31:27 +0000 Received: from mail-ea0-x231.google.com ([2a00:1450:4013:c01::231]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WKOHK-0001Ya-NO for pgsql-bugs@postgresql.org; Mon, 03 Mar 2014 08:31:26 +0000 Received: by mail-ea0-f177.google.com with SMTP id h10so4183731eak.22 for ; Mon, 03 Mar 2014 00:31:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=db88JL0DtPTw7t99bJDmGtMsTSJbN+/+IknbWSW/kA0=; b=bSRTYog9U/fDHxwQVivAs7yAsOdAn21rv5clDIgF84CxQuced4Un1YcglnvHFw4udz LMgykaklhDnzuyDJLXMA1RZkXQPlOD4ZzIGiZaB31vQ+pEZVsCVr4OI1JUFxt7KI/c3E zLiQ5Ap/wDAkSaTxfWv5ADg3YWvW6WaFlnj5QrVHc1bn75qv4YXsClqlP4K4ItVw6R8B iBc7rf2XoBdRpqV7nDgc6PWFDVmd0/f6ypkK38J3j7U8S/llUCE1KvXwRvMUAmNauIJ7 jqUYrfxwht9ysoFYyUzdcqBNZMlvEn0P4O4sTiH8zfX72AKcsrnntFjDCqL4de+u0Lyr 9htg== X-Received: by 10.15.26.199 with SMTP id n47mr38128295eeu.30.1393835473258; Mon, 03 Mar 2014 00:31:13 -0800 (PST) Received: from localhost (ip-46-232-148-34.static.adsl.cheapnet.it. [46.232.148.34]) by mx.google.com with ESMTPSA id q44sm47066296eez.1.2014.03.03.00.31.11 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 03 Mar 2014 00:31:12 -0800 (PST) Date: Mon, 3 Mar 2014 09:31:09 +0100 From: Sandro Santilli To: Pedro Gimeno Cc: Tom Lane , pgsql-bugs@postgresql.org Subject: Re: uninterruptable regexp_replace in 9.2 and 9.3 Message-ID: <20140303083109.GA6588@localhost> References: <20140228112858.GE5011@localhost> <5310925B.8010809@personal.formauri.es> <17158.1393735118@sss.pgh.pa.us> <53132D11.2010305@personal.formauri.es> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <53132D11.2010305@personal.formauri.es> User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Sun, Mar 02, 2014 at 02:07:29PM +0100, Pedro Gimeno wrote: > Tom Lane wrote, On 2014-03-02 05:38: > > > The performance problem we're looking at comes directly from the > > backtracking that's done to ensure that we detect a match in case the > > pattern has this sort of pathological behavior. > > It is my understanding that the bug reported by the OP is not a > performance problem, but PostgreSQL's failure to interrupt the > processing if it takes too long, when statement_timeout is set. Yes, this is my main concern. Of course it'd be nice to get a faster response, even if ill, but as long as statement_timeout is effective I'm happy. --strk; ()  ASCII ribbon campaign -- Keep it simple ! /\  http://strk.keybit.net/rants/ascii_mails.txt -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs