Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBiPS-0006W6-EP for pgsql-performance@arkaria.postgresql.org; Sun, 05 Jul 2015 11:48:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZBiPR-0006HS-U7 for pgsql-performance@arkaria.postgresql.org; Sun, 05 Jul 2015 11:48:33 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZBiNC-0004Dc-69 for pgsql-performance@postgresql.org; Sun, 05 Jul 2015 11:46:14 +0000 Received: from smtp-o-1.desy.de ([2001:638:700:1038::1:9a]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZBiN8-0003Vz-V2 for pgsql-performance@postgresql.org; Sun, 05 Jul 2015 11:46:12 +0000 X-Clacks-Overhead: GNU Terry Pratchett Received: from smtp-map-1.desy.de (smtp-map-1.desy.de [131.169.56.66]) by smtp-o-1.desy.de (DESY-O-1) with ESMTP id 4E0672809F7 for ; Sun, 5 Jul 2015 13:46:09 +0200 (CEST) Received: from ZITSWEEP2.win.desy.de (zitsweep2.win.desy.de [131.169.97.96]) by smtp-map-1.desy.de (DESY_MAP_1) with ESMTP id 3C70613E83 for ; Sun, 5 Jul 2015 13:46:08 +0200 (MEST) Received: from smtp-intra-3.desy.de (lb-40-26.desy.de) by ZITSWEEP2.win.desy.de (Clearswift SMTPRS 5.5.0) with ESMTP id for ; Sun, 5 Jul 2015 13:46:08 +0200 Received: from z-mta-1.desy.de (z-mta-1.desy.de [131.169.55.135]) by smtp-intra-3.desy.de (DESY-INTRA-3) with ESMTP id 8315A1133 for ; Sun, 5 Jul 2015 13:46:08 +0200 (MEST) Received: from z-mta-1.desy.de (localhost [127.0.0.1]) by z-mta-1.desy.de (Postfix) with ESMTPS id 7F6E61C029E for ; Sun, 5 Jul 2015 13:46:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by z-mta-1.desy.de (Postfix) with ESMTP id 7070F1C005F for ; Sun, 5 Jul 2015 13:46:08 +0200 (CEST) Received: from z-mta-1.desy.de ([127.0.0.1]) by localhost (z-mta-1.desy.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Synj3fx0pr73 for ; Sun, 5 Jul 2015 13:46:08 +0200 (CEST) Received: from z-mbx-2.desy.de (z-mbx-2.desy.de [131.169.55.140]) by z-mta-1.desy.de (Postfix) with ESMTP id 5A3AF1C0039 for ; Sun, 5 Jul 2015 13:46:08 +0200 (CEST) Date: Sun, 5 Jul 2015 13:46:08 +0200 (CEST) From: "Mkrtchyan, Tigran" To: pgsql-performance Message-ID: <404507229.2949538.1436096768293.JavaMail.zimbra@desy.de> In-Reply-To: <1897514812.2949286.1436094651680.JavaMail.zimbra@desy.de> References: <1897514812.2949286.1436094651680.JavaMail.zimbra@desy.de> Subject: Re: 9.5alpha1 vs 9.4 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mailer: Zimbra 8.6.0_GA_1169 (ZimbraWebClient - FF38 (Linux)/8.6.0_GA_1169) Thread-Topic: 9.5alpha1 vs 9.4 Thread-Index: ScEC8YMiKb2jo9sBKotS2mk4jI37WBO26Xko X-Pg-Spam-Score: -2.5 (--) 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 And this is with 9.4 in the same hardware ( restored from backup) 0.35 | 0.35 | 1002 | DELETE FROM t_inodes WHERE ipnfsid=$1 AND inlink = ? 0.16 | 0.16 | 1006 | insert into t_dirs (iparent, iname, ipnfsid) (select $1 as iparent, $2 as iname, $3 as ipnfsid where not exists (select ? from t_dirs where iparent=$4 and iname=$5)) 0.15 | 0.02 | 8026 | SELECT isize,inlink,itype,imode,iuid,igid,iatime,ictime,imtime,icrtime,igeneration FROM t_inodes WHERE ipnfsid=$1 0.06 | 0.06 | 1002 | INSERT INTO t_inodes VALUES($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13) 0.04 | 0.02 | 2004 | UPDATE t_inodes SET inlink=inlink -$1,imtime=$2,ictime=$3,igeneration=igeneration+? WHERE ipnfsid=$4 0.03 | 0.01 | 2000 | SELECT ilocation,ipriority,ictime,iatime FROM t_locationinfo WHERE itype=$1 AND ipnfsid=$2 AND istate=? ORDER BY ipriori ty DESC 0.02 | 0.02 | 1002 | UPDATE t_inodes SET inlink=inlink +$1,imtime=$2,ictime=$3,igeneration=igeneration+? WHERE ipnfsid=$4 0.02 | 0.01 | 2006 | SELECT ipnfsid FROM t_dirs WHERE iname=$1 AND iparent=$2 0.01 | 0.01 | 1006 | DELETE FROM t_dirs WHERE iname=$1 AND iparent=$2 0.00 | 0.00 | 2004 | COMMI Tigran. ----- Original Message ----- > From: "Mkrtchyan, Tigran" > To: "pgsql-performance" > Sent: Sunday, July 5, 2015 1:10:51 PM > Subject: [PERFORM] 9.5alpha1 vs 9.4 > Hi, > > today I have update my test system to 9.5alpha1. > Most of the operations are ok, except delete. > I get ~1000 times slower! > > > chimera=# SELECT > (total_time / 1000 )::numeric(10,2) as total_secs, > (total_time/calls)::numeric(10,2) as average_time_ms, calls, > query > FROM pg_stat_statements where userid = 16384 > ORDER BY 1 DESC > LIMIT 10; > total_secs | average_time_ms | calls | > query > > ------------+-----------------+-------+------------------------------------------------------------------------------------------------------------------------------------------ > ------------------------------- > 255.88 | 566.11 | 452 | DELETE FROM t_inodes WHERE ipnfsid=$1 AND > inlink = ? > 0.13 | 0.13 | 1006 | insert into t_dirs (iparent, iname, ipnfsid) > (select $1 as iparent, $2 as iname, $3 as ipnfsid where not exists (select ? > from t_dirs where iparent=$4 and iname=$5)) > 0.11 | 0.02 | 6265 | SELECT > isize,inlink,itype,imode,iuid,igid,iatime,ictime,imtime,icrtime,igeneration > FROM t_inodes WHERE ipnfsid=$1 > 0.03 | 0.03 | 1002 | INSERT INTO t_inodes > VALUES($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13) > 0.02 | 0.02 | 1002 | UPDATE t_inodes SET inlink=inlink > +$1,imtime=$2,ictime=$3,igeneration=igeneration+? WHERE ipnfsid=$4 > 0.02 | 0.03 | 905 | UPDATE t_inodes SET inlink=inlink > -$1,imtime=$2,ictime=$3,igeneration=igeneration+? WHERE ipnfsid=$4 > 0.02 | 0.01 | 2000 | SELECT ilocation,ipriority,ictime,iatime FROM > t_locationinfo WHERE itype=$1 AND ipnfsid=$2 AND istate=? ORDER BY ipriority > DESC > 0.01 | 0.01 | 906 | SELECT ipnfsid FROM t_dirs WHERE iname=$1 AND > iparent=$2 > 0.01 | 0.01 | 453 | DELETE FROM t_dirs WHERE iname=$1 AND > iparent=$2 > > > > > chimera=# \d t_inodes > Table "public.t_inodes" > Column | Type | Modifiers > -------------+--------------------------+------------------------ > ipnfsid | character varying(36) | not null > itype | integer | not null > imode | integer | not null > inlink | integer | not null > iuid | integer | not null > igid | integer | not null > isize | bigint | not null > iio | integer | not null > ictime | timestamp with time zone | not null > iatime | timestamp with time zone | not null > imtime | timestamp with time zone | not null > icrtime | timestamp with time zone | not null default now() > igeneration | bigint | not null default 0 > Indexes: > "t_inodes_pkey" PRIMARY KEY, btree (ipnfsid) > Referenced by: > TABLE "t_access_latency" CONSTRAINT "t_access_latency_ipnfsid_fkey" FOREIGN KEY > (ipnfsid) REFERENCES t_inodes(ipnfsid) ON DELETE CASCADE > TABLE "t_acl" CONSTRAINT "t_acl_fkey" FOREIGN KEY (rs_id) REFERENCES > t_inodes(ipnfsid) ON DELETE CASCADE > TABLE "t_dirs" CONSTRAINT "t_dirs_ipnfsid_fkey" FOREIGN KEY (ipnfsid) REFERENCES > t_inodes(ipnfsid) > TABLE "t_inodes_checksum" CONSTRAINT "t_inodes_checksum_ipnfsid_fkey" FOREIGN > KEY (ipnfsid) REFERENCES t_inodes(ipnfsid) ON DELETE CASCADE > TABLE "t_inodes_data" CONSTRAINT "t_inodes_data_ipnfsid_fkey" FOREIGN KEY > (ipnfsid) REFERENCES t_inodes(ipnfsid) ON DELETE CASCADE > TABLE "t_level_1" CONSTRAINT "t_level_1_ipnfsid_fkey" FOREIGN KEY (ipnfsid) > REFERENCES t_inodes(ipnfsid) ON DELETE CASCADE > TABLE "t_level_2" CONSTRAINT "t_level_2_ipnfsid_fkey" FOREIGN KEY (ipnfsid) > REFERENCES t_inodes(ipnfsid) ON DELETE CASCADE > TABLE "t_level_3" CONSTRAINT "t_level_3_ipnfsid_fkey" FOREIGN KEY (ipnfsid) > REFERENCES t_inodes(ipnfsid) ON DELETE CASCADE > TABLE "t_level_4" CONSTRAINT "t_level_4_ipnfsid_fkey" FOREIGN KEY (ipnfsid) > REFERENCES t_inodes(ipnfsid) ON DELETE CASCADE > TABLE "t_level_5" CONSTRAINT "t_level_5_ipnfsid_fkey" FOREIGN KEY (ipnfsid) > REFERENCES t_inodes(ipnfsid) ON DELETE CASCADE > TABLE "t_level_6" CONSTRAINT "t_level_6_ipnfsid_fkey" FOREIGN KEY (ipnfsid) > REFERENCES t_inodes(ipnfsid) ON DELETE CASCADE > TABLE "t_level_7" CONSTRAINT "t_level_7_ipnfsid_fkey" FOREIGN KEY (ipnfsid) > REFERENCES t_inodes(ipnfsid) ON DELETE CASCADE > TABLE "t_locationinfo" CONSTRAINT "t_locationinfo_ipnfsid_fkey" FOREIGN KEY > (ipnfsid) REFERENCES t_inodes(ipnfsid) ON DELETE CASCADE > TABLE "t_retention_policy" CONSTRAINT "t_retention_policy_ipnfsid_fkey" FOREIGN > KEY (ipnfsid) REFERENCES t_inodes(ipnfsid) ON DELETE CASCADE > TABLE "t_storageinfo" CONSTRAINT "t_storageinfo_ipnfsid_fkey" FOREIGN KEY > (ipnfsid) REFERENCES t_inodes(ipnfsid) ON DELETE CASCADE > TABLE "t_tags" CONSTRAINT "t_tags_ipnfsid_fkey" FOREIGN KEY (ipnfsid) REFERENCES > t_inodes(ipnfsid) > Triggers: > tgr_locationinfo_trash BEFORE DELETE ON t_inodes FOR EACH ROW EXECUTE PROCEDURE > f_locationinfo2trash() > > > > Any ideas? > > Tigran. > > > > -- > Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-performance -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance