Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g7Kyg-0000Jl-1f for pgsql-general@arkaria.postgresql.org; Tue, 02 Oct 2018 13:44:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g7Kye-0004ez-7p for pgsql-general@arkaria.postgresql.org; Tue, 02 Oct 2018 13:44:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g7Kye-0004es-0B for pgsql-general@lists.postgresql.org; Tue, 02 Oct 2018 13:44:40 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g7KyW-0007mv-W9 for pgsql-general@postgresql.org; Tue, 02 Oct 2018 13:44:39 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id A446EF7E5A1D for ; Tue, 2 Oct 2018 06:44:30 -0700 (MST) Date: Tue, 2 Oct 2018 06:44:30 -0700 (MST) From: pinker To: pgsql-general@postgresql.org Message-ID: <1538487870670-0.post@n3.nabble.com> In-Reply-To: References: <1538475003972-0.post@n3.nabble.com> Subject: Re: pg_sleep() inside plpgsql block - pro & cons MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Francisco Olarte wrote > I do some similar things, but I sleep outside of the > database, is there a reason this can not be done? > > Francisco Olarte. Yes, I do try to convince them to do it outside the db, that's the reason I'm looking for some support here :) I'm not sure those 2 reasons are enough to convince them, wanted to be prepared... You know it's always time to do refactoring and in this case it's a lot of time because of the amount and complexity of the logic in db. -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html