Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hqvs2-0004td-2X for pgsql-general@arkaria.postgresql.org; Fri, 26 Jul 2019 08:46:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hqvrx-0001QX-MX for pgsql-general@arkaria.postgresql.org; Fri, 26 Jul 2019 08:46:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hqvrx-0001QQ-9f for pgsql-general@lists.postgresql.org; Fri, 26 Jul 2019 08:46:29 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hqvru-0006FA-He for pgsql-general@lists.postgresql.org; Fri, 26 Jul 2019 08:46:28 +0000 Received: from [10.8.0.6] ([185.40.248.10]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.145]) with ESMTPSA (Nemesis) id 1MVNEv-1i0aV80uIh-00SKfs for ; Fri, 26 Jul 2019 10:46:21 +0200 Subject: Re: Too slow to create new schema and their tables, functions, triggers. To: pgsql-general@lists.postgresql.org References: <1563909633976-0.post@n3.nabble.com> <1563993228524-0.post@n3.nabble.com> <18481dfb-af39-b6a2-7b27-88563cab7134@aklaver.com> <1564092985717-0.post@n3.nabble.com> From: Thomas Kellerer Message-ID: Date: Fri, 26 Jul 2019 10:46:18 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 MIME-Version: 1.0 In-Reply-To: <1564092985717-0.post@n3.nabble.com> Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:e6phy3Lnm67urTCtAwZR9a84D4vPRM+TBdBVvT4IG3YvCPlc6/x Gzd+ENhhP5Bo9pBGH8igCI9JjCxzf/LxIoRKOHah4T5C2XrxTmatDCQT/+ECHk+pU4sDYmP pqnrJGycMTsrx5pVsPQ77qDfI3ULoaLUXGgfgOb4ONS6/tOFGYDLDOhZNS6yGr66FnZr14J YVbs2hdNy4G2JmCw5yqBw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:wy4LRLIRqsc=:w9GLUIE/VLd11IijYUHapQ fWPvJWwznFjtBnLDbZdRjW913ZHDxt6VoD6fUB8/JWanuSOEFYOV9tUMBjzYSCQG5IE8Xljwj Avjj9pu3m4H4VtrocNxKAqjZ1V74XUJD/qtBFqPaNH4oYNZuMhjdauBGWeVmhZ14kjXLvvVw5 31JJcJQKsTDCPCfEGRHxs7hMtO7qfdC91qeZv2xdSHbWhN6v3cbS+yQBwJPsMooizFBdoLd2V 6FF396ecbOhy/hlq3oUuq0+OtQhTAkXTlvXw/3TJJVFzC3y1SLcMAJMwWI5UEabU8OZtOip4l 5+fms6ocT6IYHedryLjMaOkfA8KnHwREp+PFW7z/KRsZ3fYPU33zu9tg+ZerLdf5VBvHUuDZx oJ00WHC9WAihFj6P00O2dt6DpvQqBtSG5JqcG1HF/cTf4Ha7b8km8IgAT3dFsTulTttsFxhy9 iAwyD/oPHyeW9T8GXOG1VFUkLjWqexmjcw+TJCnQL8WNUD7JBZ6xma7AXkcIknQVFlNn2JFyA rqf+LATPKN79eOThx8XZXj2xhT5p+ImSNgcE84R6ijMklZgsQHAsC8Z5EH4jbYUKlh22weRBG fr+v+QUW3sfpXqNk8TM1GUF6yD8MqqgFfg1KkpNSiZrGrgz0lBOCH7pGjjl/q3HChjxU3ixd7 lGGFM/SD77u7JTqlX0R0hkRMyurlkWg04zyC8aEp1327ihUEpYA/iS3AAP6XzJnlmIR9152RA WCvtVY9PwcUiy0P8VaBe5vcralixVtHYZEQjoSl+1T9896PDeFZJZ2JWlC0= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PegoraroF10 schrieb am 26.07.2019 um 00:16: > statement: create or replace function valoresdfe... 0 mins 1.135 secs > statement: create or replace function dadosorigem... 0 mins 0.055 secs > statement: CREATE OR REPLACE FUNCTION SONU... 0 mins 0.013 secs > statement: create or replace function contatoscampa... 2 mins 13.492 secs > statement: create or replace function FORMATARTELEF... 0 mins 0.013 secs > statement: create or replace function ChecaVar 0 mins 0.012 secs > statement: CREATE or replace FUNCTION criatrigge... 1 mins 16.42 secs > Is it possible those functions (were creating was slow) were still in use by another session and the create script had to wait for an exclusive lock to replace the function?