36011 lines
5.6 MiB
36011 lines
5.6 MiB
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<title>pgBadger :: PostgreSQL Log Analyzer</title>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
<meta name="robots" content="noindex,nofollow">
|
||
<meta http-equiv="Expires" content="Mon Mar 18 15:00:27 2019">
|
||
<meta http-equiv="Generator" content="pgBadger v10.3">
|
||
<meta http-equiv="Date" content="Mon Mar 18 15:00:27 2019">
|
||
<link rel="shortcut icon" href="data:image/x-icon;base64,
|
||
AAABAAEAIyMQAAEABAA8BAAAFgAAACgAAAAjAAAARgAAAAEABAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||
AAAAAAAAAgAAGRsZACgqKQA2OTcASEpJAFpdWwBoa2kAeHt5AImMigCeoZ8AsLOxAMTHxQDR1NIA
|
||
5enmAPv+/AAAAAAA///////////////////////wAAD///////////H///////////AAAP//////
|
||
//9Fq7Yv////////8AAA////////8V7u7qD////////wAAD///////8B7qWN5AL///////AAAP//
|
||
///y8Avrc3rtMCH/////8AAA/////xABvbAAAJ6kAA/////wAAD////wAG5tQAAADp6RAP////AA
|
||
AP//MQBd7C2lRESOWe5xAD//8AAA//8APO7iC+7e7u4A3uxwBf/wAAD/9Aju7iAAvu7u0QAN7ukA
|
||
7/AAAP/wCe7kAAAF7ugAAAHO6xD/8AAA//AK7CAAAAHO1AAAABnrEP/wAAD/8ArAAAAAAc7kAAAA
|
||
AIwQ//AAAP/wCjAAAAAC3uQAAAAAHBCf8AAA//AIEBVnIATu5gAXZhAFEP/wAAD/8AIAqxdwBu7p
|
||
AFoX0QIQ//AAAP/wAAPsBCAL7u4QBwfmAAD/8AAA//AAA8owAC7u7lAAKbYAAJ/wAAD/8AAAAAAA
|
||
fu7uwAAAAAAA//AAAP/wAAAAAADu7u7jAAAAAAD/8AAA//AAAAAABe7u7uoAAAAAAP/wAAD/8AAA
|
||
AAAL7u7u7QAAAAAAn/AAAP/wAAAAAB3u7u7uYAAAAAD/8AAA//MAAAAATu7u7u6QAAAAAP/wAAD/
|
||
/wAAAAAM7u7u7TAAAAAD//AAAP//IQAAAAKu7u7UAAAAAB//8AAA////IAAAAAju7BAAAAAP///w
|
||
AAD////2AAA1je7ulUAAA/////AAAP/////xEAnO7u7pIAH/////8AAA//////9CABju6iACP///
|
||
///wAAD////////wAAggAP////////AAAP////////8wAAA/////////8AAA///////////w////
|
||
///////wAAD///////////////////////AAAP/////gAAAA//+//+AAAAD//Af/4AAAAP/4A//g
|
||
AAAA//AA/+AAAAD/oAA/4AAAAP8AAB/gAAAA/gAAD+AAAADwAAAB4AAAAPAAAADgAAAA4AAAAGAA
|
||
AADgAAAA4AAAAOAAAADgAAAA4AAAAOAAAADgAAAAYAAAAOAAAADgAAAA4AAAAOAAAADgAAAA4AAA
|
||
AOAAAABgAAAA4AAAAOAAAADgAAAA4AAAAOAAAADgAAAA4AAAAGAAAADgAAAA4AAAAOAAAADgAAAA
|
||
8AAAAOAAAADwAAAB4AAAAPwAAAfgAAAA/gAAD+AAAAD/gAA/4AAAAP/AAH/gAAAA//gD/+AAAAD/
|
||
/Af/4AAAAP//v//gAAAA/////+AAAAA
|
||
" />
|
||
|
||
<style type="text/css">
|
||
|
||
.jqplot-target{position:relative;color:#666;font-family:"Trebuchet MS",Arial,Helvetica,sans-serif;font-size:1em}.jqplot-axis{font-size:.75em}.jqplot-xaxis{margin-top:10px}.jqplot-x2axis{margin-bottom:10px}.jqplot-yaxis{margin-right:10px}.jqplot-y2axis,.jqplot-y3axis,.jqplot-y4axis,.jqplot-y5axis,.jqplot-y6axis,.jqplot-y7axis,.jqplot-y8axis,.jqplot-y9axis,.jqplot-yMidAxis{margin-left:10px;margin-right:10px}.jqplot-axis-tick,.jqplot-xaxis-tick,.jqplot-yaxis-tick,.jqplot-x2axis-tick,.jqplot-y2axis-tick,.jqplot-y3axis-tick,.jqplot-y4axis-tick,.jqplot-y5axis-tick,.jqplot-y6axis-tick,.jqplot-y7axis-tick,.jqplot-y8axis-tick,.jqplot-y9axis-tick,.jqplot-yMidAxis-tick{position:absolute;white-space:pre}.jqplot-xaxis-tick{top:0;left:15px;vertical-align:top}.jqplot-x2axis-tick{bottom:0;left:15px;vertical-align:bottom}.jqplot-yaxis-tick{right:0;top:15px;text-align:right}.jqplot-yaxis-tick.jqplot-breakTick{right:-20px;margin-right:0;padding:1px 5px 1px 5px;z-index:2;font-size:1.5em}.jqplot-y2axis-tick,.jqplot-y3axis-tick,.jqplot-y4axis-tick,.jqplot-y5axis-tick,.jqplot-y6axis-tick,.jqplot-y7axis-tick,.jqplot-y8axis-tick,.jqplot-y9axis-tick{left:0;top:15px;text-align:left}.jqplot-yMidAxis-tick{text-align:center;white-space:nowrap}.jqplot-xaxis-label{margin-top:10px;font-size:11pt;position:absolute}.jqplot-x2axis-label{margin-bottom:10px;font-size:11pt;position:absolute}.jqplot-yaxis-label{margin-right:10px;font-size:11pt;position:absolute}.jqplot-yMidAxis-label{font-size:11pt;position:absolute}.jqplot-y2axis-label,.jqplot-y3axis-label,.jqplot-y4axis-label,.jqplot-y5axis-label,.jqplot-y6axis-label,.jqplot-y7axis-label,.jqplot-y8axis-label,.jqplot-y9axis-label{font-size:11pt;margin-left:10px;position:absolute}.jqplot-meterGauge-tick{font-size:.75em;color:#999}.jqplot-meterGauge-label{font-size:1em;color:#999}table.jqplot-table-legend{margin-top:12px;margin-bottom:12px;margin-left:12px;margin-right:12px}table.jqplot-table-legend,table.jqplot-cursor-legend{background-color:rgba(255,255,255,0.6);border:1px solid #ccc;position:absolute;font-size:.75em}td.jqplot-table-legend{vertical-align:middle}td.jqplot-seriesToggle:hover,td.jqplot-seriesToggle:active{cursor:pointer}.jqplot-table-legend .jqplot-series-hidden{text-decoration:line-through}div.jqplot-table-legend-swatch-outline{border:1px solid #ccc;padding:1px}div.jqplot-table-legend-swatch{width:0;height:0;border-top-width:5px;border-bottom-width:5px;border-left-width:6px;border-right-width:6px;border-top-style:solid;border-bottom-style:solid;border-left-style:solid;border-right-style:solid}.jqplot-title{top:0;left:0;padding-bottom:.5em;font-size:1.2em}table.jqplot-cursor-tooltip{border:1px solid #ccc;font-size:.75em}.jqplot-cursor-tooltip{border:1px solid #ccc;font-size:.75em;white-space:nowrap;background:rgba(208,208,208,0.5);padding:1px}.jqplot-highlighter-tooltip,.jqplot-canvasOverlay-tooltip{border:1px solid #ccc;font-size:.75em;white-space:nowrap;background:rgba(208,208,208,0.5);padding:1px}.jqplot-point-label{font-size:.75em;z-index:2}td.jqplot-cursor-legend-swatch{vertical-align:middle;text-align:center}div.jqplot-cursor-legend-swatch{width:1.2em;height:.7em}.jqplot-error{text-align:center}.jqplot-error-message{position:relative;top:46%;display:inline-block}div.jqplot-bubble-label{font-size:.8em;padding-left:2px;padding-right:2px;color:rgb(20%,20%,20%)}div.jqplot-bubble-label.jqplot-bubble-label-highlight{background:rgba(90%,90%,90%,0.7)}div.jqplot-noData-container{text-align:center;background-color:rgba(96%,96%,96%,0.3)}
|
||
</style> <script type="text/javascript">
|
||
|
||
/*
|
||
* jQuery JavaScript Library v1.9.1
|
||
* http://jquery.com/
|
||
*
|
||
* Includes Sizzle.js
|
||
* http://sizzlejs.com/
|
||
*
|
||
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
|
||
* Released under the MIT license
|
||
* http://jquery.org/license
|
||
*
|
||
* Date: 2013-2-4
|
||
*/
|
||
(function(a2,aG){var ai,w,aC=typeof aG,l=a2.document,aL=a2.location,bi=a2.jQuery,H=a2.$,aa={},a6=[],s="1.9.1",aI=a6.concat,ao=a6.push,a4=a6.slice,aM=a6.indexOf,z=aa.toString,V=aa.hasOwnProperty,aQ=s.trim,bJ=function(e,b3){return new bJ.fn.init(e,b3,w)},bA=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ac=/\S+/g,C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,br=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,a=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,bh=/^[\],:{}\s]*$/,bk=/(?:^|:|,)(?:\s*\[)+/g,bG=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,aZ=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,bS=/^-ms-/,aV=/-([\da-z])/gi,M=function(e,b3){return b3.toUpperCase()},bW=function(e){if(l.addEventListener||e.type==="load"||l.readyState==="complete"){bl();bJ.ready()}},bl=function(){if(l.addEventListener){l.removeEventListener("DOMContentLoaded",bW,false);a2.removeEventListener("load",bW,false)}else{l.detachEvent("onreadystatechange",bW);a2.detachEvent("onload",bW)}};bJ.fn=bJ.prototype={jquery:s,constructor:bJ,init:function(e,b5,b4){var b3,b6;if(!e){return this}if(typeof e==="string"){if(e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3){b3=[null,e,null]}else{b3=br.exec(e)}if(b3&&(b3[1]||!b5)){if(b3[1]){b5=b5 instanceof bJ?b5[0]:b5;bJ.merge(this,bJ.parseHTML(b3[1],b5&&b5.nodeType?b5.ownerDocument||b5:l,true));if(a.test(b3[1])&&bJ.isPlainObject(b5)){for(b3 in b5){if(bJ.isFunction(this[b3])){this[b3](b5[b3])}else{this.attr(b3,b5[b3])}}}return this}else{b6=l.getElementById(b3[2]);if(b6&&b6.parentNode){if(b6.id!==b3[2]){return b4.find(e)}this.length=1;this[0]=b6}this.context=l;this.selector=e;return this}}else{if(!b5||b5.jquery){return(b5||b4).find(e)}else{return this.constructor(b5).find(e)}}}else{if(e.nodeType){this.context=this[0]=e;this.length=1;return this}else{if(bJ.isFunction(e)){return b4.ready(e)}}}if(e.selector!==aG){this.selector=e.selector;this.context=e.context}return bJ.makeArray(e,this)},selector:"",length:0,size:function(){return this.length},toArray:function(){return a4.call(this)},get:function(e){return e==null?this.toArray():(e<0?this[this.length+e]:this[e])},pushStack:function(e){var b3=bJ.merge(this.constructor(),e);b3.prevObject=this;b3.context=this.context;return b3},each:function(b3,e){return bJ.each(this,b3,e)},ready:function(e){bJ.ready.promise().done(e);return this},slice:function(){return this.pushStack(a4.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(b4){var e=this.length,b3=+b4+(b4<0?e:0);return this.pushStack(b3>=0&&b3<e?[this[b3]]:[])},map:function(e){return this.pushStack(bJ.map(this,function(b4,b3){return e.call(b4,b3,b4)}))},end:function(){return this.prevObject||this.constructor(null)},push:ao,sort:[].sort,splice:[].splice};bJ.fn.init.prototype=bJ.fn;bJ.extend=bJ.fn.extend=function(){var e,b8,b3,b4,cb,b9,b7=arguments[0]||{},b6=1,b5=arguments.length,ca=false;if(typeof b7==="boolean"){ca=b7;b7=arguments[1]||{};b6=2}if(typeof b7!=="object"&&!bJ.isFunction(b7)){b7={}}if(b5===b6){b7=this;--b6}for(;b6<b5;b6++){if((cb=arguments[b6])!=null){for(b4 in cb){e=b7[b4];b3=cb[b4];if(b7===b3){continue}if(ca&&b3&&(bJ.isPlainObject(b3)||(b8=bJ.isArray(b3)))){if(b8){b8=false;b9=e&&bJ.isArray(e)?e:[]}else{b9=e&&bJ.isPlainObject(e)?e:{}}b7[b4]=bJ.extend(ca,b9,b3)}else{if(b3!==aG){b7[b4]=b3}}}}}return b7};bJ.extend({noConflict:function(e){if(a2.$===bJ){a2.$=H}if(e&&a2.jQuery===bJ){a2.jQuery=bi}return bJ},isReady:false,readyWait:1,holdReady:function(e){if(e){bJ.readyWait++}else{bJ.ready(true)}},ready:function(e){if(e===true?--bJ.readyWait:bJ.isReady){return}if(!l.body){return setTimeout(bJ.ready)}bJ.isReady=true;if(e!==true&&--bJ.readyWait>0){return}ai.resolveWith(l,[bJ]);if(bJ.fn.trigger){bJ(l).trigger("ready").off("ready")}},isFunction:function(e){return bJ.type(e)==="function"},isArray:Array.isArray||function(e){return bJ.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){return !isNaN(parseFloat(e))&&isFinite(e)},type:function(e){if(e==null){return String(e)}return typeof e==="object"||typeof e==="function"?aa[z.call(e)]||"object":typeof e},isPlainObject:function(b5){if(!b5||bJ.type(b5)!=="object"||b5.nodeType||bJ.isWindow(b5)){return false}try{if(b5.constructor&&!V.call(b5,"constructor")&&!V.call(b5.constructor.prototype,"isPrototypeOf")){return false}}catch(b4){return false}var b3;for(b3 in b5){}return b3===aG||V.call(b5,b3)},isEmptyObject:function(b3){var e;for(e in b3){return false}return true},error:function(e){throw new Error(e)},parseHTML:function(b6,b4,b5){if(!b6||typeof b6!=="string"){return null}if(typeof b4==="boolean"){b5=b4;b4=false}b4=b4||l;var b3=a.exec(b6),e=!b5&&[];if(b3){return[b4.createElement(b3[1])]}b3=bJ.buildFragment([b6],b4,e);if(e){bJ(e).remove()}return bJ.merge([],b3.childNodes)},parseJSON:function(e){if(a2.JSON&&a2.JSON.parse){return a2.JSON.parse(e)}if(e===null){return e}if(typeof e==="string"){e=bJ.trim(e);if(e){if(bh.test(e.replace(bG,"@").replace(aZ,"]").replace(bk,""))){return(new Function("return "+e))()}}}bJ.error("Invalid JSON: "+e)},parseXML:function(b5){var b3,b4;if(!b5||typeof b5!=="string"){return null}try{if(a2.DOMParser){b4=new DOMParser();b3=b4.parseFromString(b5,"text/xml")}else{b3=new ActiveXObject("Microsoft.XMLDOM");b3.async="false";b3.loadXML(b5)}}catch(b6){b3=aG}if(!b3||!b3.documentElement||b3.getElementsByTagName("parsererror").length){bJ.error("Invalid XML: "+b5)}return b3},noop:function(){},globalEval:function(e){if(e&&bJ.trim(e)){(a2.execScript||function(b3){a2["eval"].call(a2,b3)})(e)}},camelCase:function(e){return e.replace(bS,"ms-").replace(aV,M)},nodeName:function(b3,e){return b3.nodeName&&b3.nodeName.toLowerCase()===e.toLowerCase()},each:function(b7,b8,b3){var b6,b4=0,b5=b7.length,e=ab(b7);if(b3){if(e){for(;b4<b5;b4++){b6=b8.apply(b7[b4],b3);if(b6===false){break}}}else{for(b4 in b7){b6=b8.apply(b7[b4],b3);if(b6===false){break}}}}else{if(e){for(;b4<b5;b4++){b6=b8.call(b7[b4],b4,b7[b4]);if(b6===false){break}}}else{for(b4 in b7){b6=b8.call(b7[b4],b4,b7[b4]);if(b6===false){break}}}}return b7},trim:aQ&&!aQ.call("\uFEFF\xA0")?function(e){return e==null?"":aQ.call(e)}:function(e){return e==null?"":(e+"").replace(C,"")},makeArray:function(e,b4){var b3=b4||[];if(e!=null){if(ab(Object(e))){bJ.merge(b3,typeof e==="string"?[e]:e)}else{ao.call(b3,e)}}return b3},inArray:function(b5,b3,b4){var e;if(b3){if(aM){return aM.call(b3,b5,b4)}e=b3.length;b4=b4?b4<0?Math.max(0,e+b4):b4:0;for(;b4<e;b4++){if(b4 in b3&&b3[b4]===b5){return b4}}}return -1},merge:function(b6,b4){var e=b4.length,b5=b6.length,b3=0;if(typeof e==="number"){for(;b3<e;b3++){b6[b5++]=b4[b3]}}else{while(b4[b3]!==aG){b6[b5++]=b4[b3++]}}b6.length=b5;return b6},grep:function(b3,b8,e){var b7,b4=[],b5=0,b6=b3.length;e=!!e;for(;b5<b6;b5++){b7=!!b8(b3[b5],b5);if(e!==b7){b4.push(b3[b5])}}return b4},map:function(b4,b9,e){var b8,b6=0,b7=b4.length,b3=ab(b4),b5=[];if(b3){for(;b6<b7;b6++){b8=b9(b4[b6],b6,e);if(b8!=null){b5[b5.length]=b8}}}else{for(b6 in b4){b8=b9(b4[b6],b6,e);if(b8!=null){b5[b5.length]=b8}}}return aI.apply([],b5)},guid:1,proxy:function(b6,b5){var e,b4,b3;if(typeof b5==="string"){b3=b6[b5];b5=b6;b6=b3}if(!bJ.isFunction(b6)){return aG}e=a4.call(arguments,2);b4=function(){return b6.apply(b5||this,e.concat(a4.call(arguments)))};b4.guid=b6.guid=b6.guid||bJ.guid++;return b4},access:function(e,b7,b9,b8,b5,cb,ca){var b4=0,b3=e.length,b6=b9==null;if(bJ.type(b9)==="object"){b5=true;for(b4 in b9){bJ.access(e,b7,b4,b9[b4],true,cb,ca)}}else{if(b8!==aG){b5=true;if(!bJ.isFunction(b8)){ca=true}if(b6){if(ca){b7.call(e,b8);b7=null}else{b6=b7;b7=function(cd,cc,ce){return b6.call(bJ(cd),ce)}}}if(b7){for(;b4<b3;b4++){b7(e[b4],b9,ca?b8:b8.call(e[b4],b4,b7(e[b4],b9)))}}}}return b5?e:b6?b7.call(e):b3?b7(e[0],b9):cb},now:function(){return(new Date()).getTime()}});bJ.ready.promise=function(b6){if(!ai){ai=bJ.Deferred();if(l.readyState==="complete"){setTimeout(bJ.ready)}else{if(l.addEventListener){l.addEventListener("DOMContentLoaded",bW,false);a2.addEventListener("load",bW,false)}else{l.attachEvent("onreadystatechange",bW);a2.attachEvent("onload",bW);var b5=false;try{b5=a2.frameElement==null&&l.documentElement}catch(b4){}if(b5&&b5.doScroll){(function b3(){if(!bJ.isReady){try{b5.doScroll("left")}catch(b7){return setTimeout(b3,50)}bl();bJ.ready()}})()}}}}return ai.promise(b6)};bJ.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(b3,e){aa["[object "+e+"]"]=e.toLowerCase()});function ab(b4){var b3=b4.length,e=bJ.type(b4);if(bJ.isWindow(b4)){return false}if(b4.nodeType===1&&b3){return true}return e==="array"||e!=="function"&&(b3===0||typeof b3==="number"&&b3>0&&(b3-1) in b4)}w=bJ(l);var bY={};function ae(b3){var e=bY[b3]={};bJ.each(b3.match(ac)||[],function(b5,b4){e[b4]=true});return e}bJ.Callbacks=function(cc){cc=typeof cc==="string"?(bY[cc]||ae(cc)):bJ.extend({},cc);var b6,b5,e,b7,b8,b4,b9=[],ca=!cc.once&&[],b3=function(cd){b5=cc.memory&&cd;e=true;b8=b4||0;b4=0;b7=b9.length;b6=true;for(;b9&&b8<b7;b8++){if(b9[b8].apply(cd[0],cd[1])===false&&cc.stopOnFalse){b5=false;break}}b6=false;if(b9){if(ca){if(ca.length){b3(ca.shift())}}else{if(b5){b9=[]}else{cb.disable()}}}},cb={add:function(){if(b9){var ce=b9.length;(function cd(cf){bJ.each(cf,function(ch,cg){var ci=bJ.type(cg);if(ci==="function"){if(!cc.unique||!cb.has(cg)){b9.push(cg)}}else{if(cg&&cg.length&&ci!=="string"){cd(cg)}}})})(arguments);if(b6){b7=b9.length}else{if(b5){b4=ce;b3(b5)}}}return this},remove:function(){if(b9){bJ.each(arguments,function(cf,cd){var ce;while((ce=bJ.inArray(cd,b9,ce))>-1){b9.splice(ce,1);if(b6){if(ce<=b7){b7--}if(ce<=b8){b8--}}}})}return this},has:function(cd){return cd?bJ.inArray(cd,b9)>-1:!!(b9&&b9.length)},empty:function(){b9=[];return this},disable:function(){b9=ca=b5=aG;return this},disabled:function(){return !b9},lock:function(){ca=aG;if(!b5){cb.disable()}return this},locked:function(){return !ca},fireWith:function(ce,cd){cd=cd||[];cd=[ce,cd.slice?cd.slice():cd];if(b9&&(!e||ca)){if(b6){ca.push(cd)}else{b3(cd)}}return this},fire:function(){cb.fireWith(this,arguments);return this},fired:function(){return !!e}};return cb};bJ.extend({Deferred:function(b4){var b3=[["resolve","done",bJ.Callbacks("once memory"),"resolved"],["reject","fail",bJ.Callbacks("once memory"),"rejected"],["notify","progress",bJ.Callbacks("memory")]],b5="pending",b6={state:function(){return b5},always:function(){e.done(arguments).fail(arguments);return this},then:function(){var b7=arguments;return bJ.Deferred(function(b8){bJ.each(b3,function(ca,b9){var cc=b9[0],cb=bJ.isFunction(b7[ca])&&b7[ca];e[b9[1]](function(){var cd=cb&&cb.apply(this,arguments);if(cd&&bJ.isFunction(cd.promise)){cd.promise().done(b8.resolve).fail(b8.reject).progress(b8.notify)}else{b8[cc+"With"](this===b6?b8.promise():this,cb?[cd]:arguments)}})});b7=null}).promise()},promise:function(b7){return b7!=null?bJ.extend(b7,b6):b6}},e={};b6.pipe=b6.then;bJ.each(b3,function(b8,b7){var ca=b7[2],b9=b7[3];b6[b7[1]]=ca.add;if(b9){ca.add(function(){b5=b9},b3[b8^1][2].disable,b3[2][2].lock)}e[b7[0]]=function(){e[b7[0]+"With"](this===e?b6:this,arguments);return this};e[b7[0]+"With"]=ca.fireWith});b6.promise(e);if(b4){b4.call(e,e)}return e},when:function(b6){var b4=0,b8=a4.call(arguments),e=b8.length,b3=e!==1||(b6&&bJ.isFunction(b6.promise))?e:0,cb=b3===1?b6:bJ.Deferred(),b5=function(cd,ce,cc){return function(cf){ce[cd]=this;cc[cd]=arguments.length>1?a4.call(arguments):cf;if(cc===ca){cb.notifyWith(ce,cc)}else{if(!(--b3)){cb.resolveWith(ce,cc)}}}},ca,b7,b9;if(e>1){ca=new Array(e);b7=new Array(e);b9=new Array(e);for(;b4<e;b4++){if(b8[b4]&&bJ.isFunction(b8[b4].promise)){b8[b4].promise().done(b5(b4,b9,b8)).fail(cb.reject).progress(b5(b4,b7,ca))}else{--b3}}}if(!b3){cb.resolveWith(b9,b8)}return cb.promise()}});bJ.support=(function(){var ce,cd,cb,ca,cc,b9,b5,b7,b4,b6,b3=l.createElement("div");b3.setAttribute("className","t");b3.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";cd=b3.getElementsByTagName("*");cb=b3.getElementsByTagName("a")[0];if(!cd||!cb||!cd.length){return{}}cc=l.createElement("select");b5=cc.appendChild(l.createElement("option"));ca=b3.getElementsByTagName("input")[0];cb.style.cssText="top:1px;float:left;opacity:.5";ce={getSetAttribute:b3.className!=="t",leadingWhitespace:b3.firstChild.nodeType===3,tbody:!b3.getElementsByTagName("tbody").length,htmlSerialize:!!b3.getElementsByTagName("link").length,style:/top/.test(cb.getAttribute("style")),hrefNormalized:cb.getAttribute("href")==="/a",opacity:/^0.5/.test(cb.style.opacity),cssFloat:!!cb.style.cssFloat,checkOn:!!ca.value,optSelected:b5.selected,enctype:!!l.createElement("form").enctype,html5Clone:l.createElement("nav").cloneNode(true).outerHTML!=="<:nav></:nav>",boxModel:l.compatMode==="CSS1Compat",deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true,boxSizingReliable:true,pixelPosition:false};ca.checked=true;ce.noCloneChecked=ca.cloneNode(true).checked;cc.disabled=true;ce.optDisabled=!b5.disabled;try{delete b3.test}catch(b8){ce.deleteExpando=false}ca=l.createElement("input");ca.setAttribute("value","");ce.input=ca.getAttribute("value")==="";ca.value="t";ca.setAttribute("type","radio");ce.radioValue=ca.value==="t";ca.setAttribute("checked","t");ca.setAttribute("name","t");b9=l.createDocumentFragment();b9.appendChild(ca);ce.appendChecked=ca.checked;ce.checkClone=b9.cloneNode(true).cloneNode(true).lastChild.checked;if(b3.attachEvent){b3.attachEvent("onclick",function(){ce.noCloneEvent=false});b3.cloneNode(true).click()}for(b6 in {submit:true,change:true,focusin:true}){b3.setAttribute(b7="on"+b6,"t");ce[b6+"Bubbles"]=b7 in a2||b3.attributes[b7].expando===false}b3.style.backgroundClip="content-box";b3.cloneNode(true).style.backgroundClip="";ce.clearCloneStyle=b3.style.backgroundClip==="content-box";bJ(function(){var cf,ci,ch,cg="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",e=l.getElementsByTagName("body")[0];if(!e){return}cf=l.createElement("div");cf.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px";e.appendChild(cf).appendChild(b3);b3.innerHTML="<table><tr><td></td><td>t</td></tr></table>";ch=b3.getElementsByTagName("td");ch[0].style.cssText="padding:0;margin:0;border:0;display:none";b4=(ch[0].offsetHeight===0);ch[0].style.display="";ch[1].style.display="none";ce.reliableHiddenOffsets=b4&&(ch[0].offsetHeight===0);b3.innerHTML="";b3.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;";ce.boxSizing=(b3.offsetWidth===4);ce.doesNotIncludeMarginInBodyOffset=(e.offsetTop!==1);if(a2.getComputedStyle){ce.pixelPosition=(a2.getComputedStyle(b3,null)||{}).top!=="1%";ce.boxSizingReliable=(a2.getComputedStyle(b3,null)||{width:"4px"}).width==="4px";ci=b3.appendChild(l.createElement("div"));ci.style.cssText=b3.style.cssText=cg;ci.style.marginRight=ci.style.width="0";b3.style.width="1px";ce.reliableMarginRight=!parseFloat((a2.getComputedStyle(ci,null)||{}).marginRight)}if(typeof b3.style.zoom!==aC){b3.innerHTML="";b3.style.cssText=cg+"width:1px;padding:1px;display:inline;zoom:1";ce.inlineBlockNeedsLayout=(b3.offsetWidth===3);b3.style.display="block";b3.innerHTML="<div></div>";b3.firstChild.style.width="5px";ce.shrinkWrapBlocks=(b3.offsetWidth!==3);if(ce.inlineBlockNeedsLayout){e.style.zoom=1}}e.removeChild(cf);cf=b3=ch=ci=null});cd=cc=b9=b5=cb=ca=null;return ce})();var bw=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,aN=/([A-Z])/g;function ba(b5,b3,b7,b6){if(!bJ.acceptData(b5)){return}var b8,ca,cb=bJ.expando,b9=typeof b3==="string",cc=b5.nodeType,e=cc?bJ.cache:b5,b4=cc?b5[cb]:b5[cb]&&cb;if((!b4||!e[b4]||(!b6&&!e[b4].data))&&b9&&b7===aG){return}if(!b4){if(cc){b5[cb]=b4=a6.pop()||bJ.guid++}else{b4=cb}}if(!e[b4]){e[b4]={};if(!cc){e[b4].toJSON=bJ.noop}}if(typeof b3==="object"||typeof b3==="function"){if(b6){e[b4]=bJ.extend(e[b4],b3)}else{e[b4].data=bJ.extend(e[b4].data,b3)}}b8=e[b4];if(!b6){if(!b8.data){b8.data={}}b8=b8.data}if(b7!==aG){b8[bJ.camelCase(b3)]=b7}if(b9){ca=b8[b3];if(ca==null){ca=b8[bJ.camelCase(b3)]}}else{ca=b8}return ca}function Z(b5,b3,b6){if(!bJ.acceptData(b5)){return}var b8,b7,b9,ca=b5.nodeType,e=ca?bJ.cache:b5,b4=ca?b5[bJ.expando]:bJ.expando;if(!e[b4]){return}if(b3){b9=b6?e[b4]:e[b4].data;if(b9){if(!bJ.isArray(b3)){if(b3 in b9){b3=[b3]}else{b3=bJ.camelCase(b3);if(b3 in b9){b3=[b3]}else{b3=b3.split(" ")}}}else{b3=b3.concat(bJ.map(b3,bJ.camelCase))}for(b8=0,b7=b3.length;b8<b7;b8++){delete b9[b3[b8]]}if(!(b6?N:bJ.isEmptyObject)(b9)){return}}}if(!b6){delete e[b4].data;if(!N(e[b4])){return}}if(ca){bJ.cleanData([b5],true)}else{if(bJ.support.deleteExpando||e!=e.window){delete e[b4]}else{e[b4]=null}}}bJ.extend({cache:{},expando:"jQuery"+(s+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(e){e=e.nodeType?bJ.cache[e[bJ.expando]]:e[bJ.expando];return !!e&&!N(e)},data:function(b3,e,b4){return ba(b3,e,b4)},removeData:function(b3,e){return Z(b3,e)},_data:function(b3,e,b4){return ba(b3,e,b4,true)},_removeData:function(b3,e){return Z(b3,e,true)},acceptData:function(b3){if(b3.nodeType&&b3.nodeType!==1&&b3.nodeType!==9){return false}var e=b3.nodeName&&bJ.noData[b3.nodeName.toLowerCase()];return !e||e!==true&&b3.getAttribute("classid")===e}});bJ.fn.extend({data:function(b5,b8){var b3,e,b6=this[0],b4=0,b7=null;if(b5===aG){if(this.length){b7=bJ.data(b6);if(b6.nodeType===1&&!bJ._data(b6,"parsedAttrs")){b3=b6.attributes;for(;b4<b3.length;b4++){e=b3[b4].name;if(!e.indexOf("data-")){e=bJ.camelCase(e.slice(5));by(b6,e,b7[e])}}bJ._data(b6,"parsedAttrs",true)}}return b7}if(typeof b5==="object"){return this.each(function(){bJ.data(this,b5)})}return bJ.access(this,function(b9){if(b9===aG){return b6?by(b6,b5,bJ.data(b6,b5)):null}this.each(function(){bJ.data(this,b5,b9)})},null,b8,arguments.length>1,null,true)},removeData:function(e){return this.each(function(){bJ.removeData(this,e)})}});function by(b5,b4,b6){if(b6===aG&&b5.nodeType===1){var b3="data-"+b4.replace(aN,"-$1").toLowerCase();b6=b5.getAttribute(b3);if(typeof b6==="string"){try{b6=b6==="true"?true:b6==="false"?false:b6==="null"?null:+b6+""===b6?+b6:bw.test(b6)?bJ.parseJSON(b6):b6}catch(b7){}bJ.data(b5,b4,b6)}else{b6=aG}}return b6}function N(b3){var e;for(e in b3){if(e==="data"&&bJ.isEmptyObject(b3[e])){continue}if(e!=="toJSON"){return false}}return true}bJ.extend({queue:function(b4,b3,b5){var e;if(b4){b3=(b3||"fx")+"queue";e=bJ._data(b4,b3);if(b5){if(!e||bJ.isArray(b5)){e=bJ._data(b4,b3,bJ.makeArray(b5))}else{e.push(b5)}}return e||[]}},dequeue:function(b7,b6){b6=b6||"fx";var b3=bJ.queue(b7,b6),b8=b3.length,b5=b3.shift(),e=bJ._queueHooks(b7,b6),b4=function(){bJ.dequeue(b7,b6)};if(b5==="inprogress"){b5=b3.shift();b8--}e.cur=b5;if(b5){if(b6==="fx"){b3.unshift("inprogress")}delete e.stop;b5.call(b7,b4,e)}if(!b8&&e){e.empty.fire()}},_queueHooks:function(b4,b3){var e=b3+"queueHooks";return bJ._data(b4,e)||bJ._data(b4,e,{empty:bJ.Callbacks("once memory").add(function(){bJ._removeData(b4,b3+"queue");bJ._removeData(b4,e)})})}});bJ.fn.extend({queue:function(e,b3){var b4=2;if(typeof e!=="string"){b3=e;e="fx";b4--}if(arguments.length<b4){return bJ.queue(this[0],e)}return b3===aG?this:this.each(function(){var b5=bJ.queue(this,e,b3);bJ._queueHooks(this,e);if(e==="fx"&&b5[0]!=="inprogress"){bJ.dequeue(this,e)}})},dequeue:function(e){return this.each(function(){bJ.dequeue(this,e)})},delay:function(b3,e){b3=bJ.fx?bJ.fx.speeds[b3]||b3:b3;e=e||"fx";return this.queue(e,function(b5,b4){var b6=setTimeout(b5,b3);b4.stop=function(){clearTimeout(b6)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(b4,b8){var b3,b5=1,b9=bJ.Deferred(),b7=this,e=this.length,b6=function(){if(!(--b5)){b9.resolveWith(b7,[b7])}};if(typeof b4!=="string"){b8=b4;b4=aG}b4=b4||"fx";while(e--){b3=bJ._data(b7[e],b4+"queueHooks");if(b3&&b3.empty){b5++;b3.empty.add(b6)}}b6();return b9.promise(b8)}});var a8,bZ,bM=/[\t\r\n]/g,ak=/\r/g,aF=/^(?:input|select|textarea|button|object)$/i,D=/^(?:a|area)$/i,L=/^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,aq=/^(?:checked|selected)$/i,bP=bJ.support.getSetAttribute,bF=bJ.support.input;bJ.fn.extend({attr:function(e,b3){return bJ.access(this,bJ.attr,e,b3,arguments.length>1)},removeAttr:function(e){return this.each(function(){bJ.removeAttr(this,e)})},prop:function(e,b3){return bJ.access(this,bJ.prop,e,b3,arguments.length>1)},removeProp:function(e){e=bJ.propFix[e]||e;return this.each(function(){try{this[e]=aG;delete this[e]}catch(b3){}})},addClass:function(b9){var b3,e,ca,b6,b4,b5=0,b7=this.length,b8=typeof b9==="string"&&b9;if(bJ.isFunction(b9)){return this.each(function(cb){bJ(this).addClass(b9.call(this,cb,this.className))})}if(b8){b3=(b9||"").match(ac)||[];for(;b5<b7;b5++){e=this[b5];ca=e.nodeType===1&&(e.className?(" "+e.className+" ").replace(bM," "):" ");if(ca){b4=0;while((b6=b3[b4++])){if(ca.indexOf(" "+b6+" ")<0){ca+=b6+" "}}e.className=bJ.trim(ca)}}}return this},removeClass:function(b9){var b3,e,ca,b6,b4,b5=0,b7=this.length,b8=arguments.length===0||typeof b9==="string"&&b9;if(bJ.isFunction(b9)){return this.each(function(cb){bJ(this).removeClass(b9.call(this,cb,this.className))})}if(b8){b3=(b9||"").match(ac)||[];for(;b5<b7;b5++){e=this[b5];ca=e.nodeType===1&&(e.className?(" "+e.className+" ").replace(bM," "):"");if(ca){b4=0;while((b6=b3[b4++])){while(ca.indexOf(" "+b6+" ")>=0){ca=ca.replace(" "+b6+" "," ")}}e.className=b9?bJ.trim(ca):""}}}return this},toggleClass:function(b5,b3){var b4=typeof b5,e=typeof b3==="boolean";if(bJ.isFunction(b5)){return this.each(function(b6){bJ(this).toggleClass(b5.call(this,b6,this.className,b3),b3)})}return this.each(function(){if(b4==="string"){var b8,b7=0,b6=bJ(this),b9=b3,ca=b5.match(ac)||[];while((b8=ca[b7++])){b9=e?b9:!b6.hasClass(b8);b6[b9?"addClass":"removeClass"](b8)}}else{if(b4===aC||b4==="boolean"){if(this.className){bJ._data(this,"__className__",this.className)}this.className=this.className||b5===false?"":bJ._data(this,"__className__")||""}}})},hasClass:function(e){var b5=" "+e+" ",b4=0,b3=this.length;for(;b4<b3;b4++){if(this[b4].nodeType===1&&(" "+this[b4].className+" ").replace(bM," ").indexOf(b5)>=0){return true}}return false},val:function(b5){var b3,e,b6,b4=this[0];if(!arguments.length){if(b4){e=bJ.valHooks[b4.type]||bJ.valHooks[b4.nodeName.toLowerCase()];if(e&&"get" in e&&(b3=e.get(b4,"value"))!==aG){return b3}b3=b4.value;return typeof b3==="string"?b3.replace(ak,""):b3==null?"":b3}return}b6=bJ.isFunction(b5);return this.each(function(b8){var b9,b7=bJ(this);if(this.nodeType!==1){return}if(b6){b9=b5.call(this,b8,b7.val())}else{b9=b5}if(b9==null){b9=""}else{if(typeof b9==="number"){b9+=""}else{if(bJ.isArray(b9)){b9=bJ.map(b9,function(ca){return ca==null?"":ca+""})}}}e=bJ.valHooks[this.type]||bJ.valHooks[this.nodeName.toLowerCase()];if(!e||!("set" in e)||e.set(this,b9,"value")===aG){this.value=b9}})}});bJ.extend({valHooks:{option:{get:function(e){var b3=e.attributes.value;return !b3||b3.specified?e.value:e.text}},select:{get:function(e){var b8,b4,ca=e.options,b6=e.selectedIndex,b5=e.type==="select-one"||b6<0,b9=b5?null:[],b7=b5?b6+1:ca.length,b3=b6<0?b7:b5?b6:0;for(;b3<b7;b3++){b4=ca[b3];if((b4.selected||b3===b6)&&(bJ.support.optDisabled?!b4.disabled:b4.getAttribute("disabled")===null)&&(!b4.parentNode.disabled||!bJ.nodeName(b4.parentNode,"optgroup"))){b8=bJ(b4).val();if(b5){return b8}b9.push(b8)}}return b9},set:function(b3,b4){var e=bJ.makeArray(b4);bJ(b3).find("option").each(function(){this.selected=bJ.inArray(bJ(this).val(),e)>=0});if(!e.length){b3.selectedIndex=-1}return e}}},attr:function(b7,b5,b8){var e,b6,b4,b3=b7.nodeType;if(!b7||b3===3||b3===8||b3===2){return}if(typeof b7.getAttribute===aC){return bJ.prop(b7,b5,b8)}b6=b3!==1||!bJ.isXMLDoc(b7);if(b6){b5=b5.toLowerCase();e=bJ.attrHooks[b5]||(L.test(b5)?bZ:a8)}if(b8!==aG){if(b8===null){bJ.removeAttr(b7,b5)}else{if(e&&b6&&"set" in e&&(b4=e.set(b7,b8,b5))!==aG){return b4}else{b7.setAttribute(b5,b8+"");return b8}}}else{if(e&&b6&&"get" in e&&(b4=e.get(b7,b5))!==null){return b4}else{if(typeof b7.getAttribute!==aC){b4=b7.getAttribute(b5)}return b4==null?aG:b4}}},removeAttr:function(b4,b6){var e,b5,b3=0,b7=b6&&b6.match(ac);if(b7&&b4.nodeType===1){while((e=b7[b3++])){b5=bJ.propFix[e]||e;if(L.test(e)){if(!bP&&aq.test(e)){b4[bJ.camelCase("default-"+e)]=b4[b5]=false}else{b4[b5]=false}}else{bJ.attr(b4,e,"")}b4.removeAttribute(bP?e:b5)}}},attrHooks:{type:{set:function(e,b3){if(!bJ.support.radioValue&&b3==="radio"&&bJ.nodeName(e,"input")){var b4=e.value;e.setAttribute("type",b3);if(b4){e.value=b4}return b3}}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(b7,b5,b8){var b4,e,b6,b3=b7.nodeType;if(!b7||b3===3||b3===8||b3===2){return}b6=b3!==1||!bJ.isXMLDoc(b7);if(b6){b5=bJ.propFix[b5]||b5;e=bJ.propHooks[b5]}if(b8!==aG){if(e&&"set" in e&&(b4=e.set(b7,b8,b5))!==aG){return b4}else{return(b7[b5]=b8)}}else{if(e&&"get" in e&&(b4=e.get(b7,b5))!==null){return b4}else{return b7[b5]}}},propHooks:{tabIndex:{get:function(b3){var e=b3.getAttributeNode("tabindex");return e&&e.specified?parseInt(e.value,10):aF.test(b3.nodeName)||D.test(b3.nodeName)&&b3.href?0:aG}}}});bZ={get:function(b5,b3){var b6=bJ.prop(b5,b3),e=typeof b6==="boolean"&&b5.getAttribute(b3),b4=typeof b6==="boolean"?bF&&bP?e!=null:aq.test(b3)?b5[bJ.camelCase("default-"+b3)]:!!e:b5.getAttributeNode(b3);return b4&&b4.value!==false?b3.toLowerCase():aG},set:function(b3,b4,e){if(b4===false){bJ.removeAttr(b3,e)}else{if(bF&&bP||!aq.test(e)){b3.setAttribute(!bP&&bJ.propFix[e]||e,e)}else{b3[bJ.camelCase("default-"+e)]=b3[e]=true}}return e}};if(!bF||!bP){bJ.attrHooks.value={get:function(b4,b3){var e=b4.getAttributeNode(b3);return bJ.nodeName(b4,"input")?b4.defaultValue:e&&e.specified?e.value:aG},set:function(b3,b4,e){if(bJ.nodeName(b3,"input")){b3.defaultValue=b4}else{return a8&&a8.set(b3,b4,e)}}}}if(!bP){a8=bJ.valHooks.button={get:function(b4,b3){var e=b4.getAttributeNode(b3);return e&&(b3==="id"||b3==="name"||b3==="coords"?e.value!=="":e.specified)?e.value:aG},set:function(b4,b5,b3){var e=b4.getAttributeNode(b3);if(!e){b4.setAttributeNode((e=b4.ownerDocument.createAttribute(b3)))}e.value=b5+="";return b3==="value"||b5===b4.getAttribute(b3)?b5:aG}};bJ.attrHooks.contenteditable={get:a8.get,set:function(b3,b4,e){a8.set(b3,b4===""?false:b4,e)}};bJ.each(["width","height"],function(b3,e){bJ.attrHooks[e]=bJ.extend(bJ.attrHooks[e],{set:function(b4,b5){if(b5===""){b4.setAttribute(e,"auto");return b5}}})})}if(!bJ.support.hrefNormalized){bJ.each(["href","src","width","height"],function(b3,e){bJ.attrHooks[e]=bJ.extend(bJ.attrHooks[e],{get:function(b5){var b4=b5.getAttribute(e,2);return b4==null?aG:b4}})});bJ.each(["href","src"],function(b3,e){bJ.propHooks[e]={get:function(b4){return b4.getAttribute(e,4)}}})}if(!bJ.support.style){bJ.attrHooks.style={get:function(e){return e.style.cssText||aG},set:function(e,b3){return(e.style.cssText=b3+"")}}}if(!bJ.support.optSelected){bJ.propHooks.selected=bJ.extend(bJ.propHooks.selected,{get:function(b3){var e=b3.parentNode;if(e){e.selectedIndex;if(e.parentNode){e.parentNode.selectedIndex}}return null}})}if(!bJ.support.enctype){bJ.propFix.enctype="encoding"}if(!bJ.support.checkOn){bJ.each(["radio","checkbox"],function(){bJ.valHooks[this]={get:function(e){return e.getAttribute("value")===null?"on":e.value}}})}bJ.each(["radio","checkbox"],function(){bJ.valHooks[this]=bJ.extend(bJ.valHooks[this],{set:function(e,b3){if(bJ.isArray(b3)){return(e.checked=bJ.inArray(bJ(e).val(),b3)>=0)}}})});var bH=/^(?:input|select|textarea)$/i,a3=/^key/,bN=/^(?:mouse|contextmenu)|click/,bB=/^(?:focusinfocus|focusoutblur)$/,bu=/^([^.]*)(?:\.(.+)|)$/;function R(){return true}function X(){return false}bJ.event={global:{},add:function(b6,cb,cg,b8,b7){var b9,ch,ci,b4,cd,ca,cf,b5,ce,e,b3,cc=bJ._data(b6);if(!cc){return}if(cg.handler){b4=cg;cg=b4.handler;b7=b4.selector}if(!cg.guid){cg.guid=bJ.guid++}if(!(ch=cc.events)){ch=cc.events={}}if(!(ca=cc.handle)){ca=cc.handle=function(cj){return typeof bJ!==aC&&(!cj||bJ.event.triggered!==cj.type)?bJ.event.dispatch.apply(ca.elem,arguments):aG};ca.elem=b6}cb=(cb||"").match(ac)||[""];ci=cb.length;while(ci--){b9=bu.exec(cb[ci])||[];ce=b3=b9[1];e=(b9[2]||"").split(".").sort();cd=bJ.event.special[ce]||{};ce=(b7?cd.delegateType:cd.bindType)||ce;cd=bJ.event.special[ce]||{};cf=bJ.extend({type:ce,origType:b3,data:b8,handler:cg,guid:cg.guid,selector:b7,needsContext:b7&&bJ.expr.match.needsContext.test(b7),namespace:e.join(".")},b4);if(!(b5=ch[ce])){b5=ch[ce]=[];b5.delegateCount=0;if(!cd.setup||cd.setup.call(b6,b8,e,ca)===false){if(b6.addEventListener){b6.addEventListener(ce,ca,false)}else{if(b6.attachEvent){b6.attachEvent("on"+ce,ca)}}}}if(cd.add){cd.add.call(b6,cf);if(!cf.handler.guid){cf.handler.guid=cg.guid}}if(b7){b5.splice(b5.delegateCount++,0,cf)}else{b5.push(cf)}bJ.event.global[ce]=true}b6=null},remove:function(b5,cb,ci,b6,ca){var b8,cf,b9,b7,ch,cg,cd,b4,ce,e,b3,cc=bJ.hasData(b5)&&bJ._data(b5);if(!cc||!(cg=cc.events)){return}cb=(cb||"").match(ac)||[""];ch=cb.length;while(ch--){b9=bu.exec(cb[ch])||[];ce=b3=b9[1];e=(b9[2]||"").split(".").sort();if(!ce){for(ce in cg){bJ.event.remove(b5,ce+cb[ch],ci,b6,true)}continue}cd=bJ.event.special[ce]||{};ce=(b6?cd.delegateType:cd.bindType)||ce;b4=cg[ce]||[];b9=b9[2]&&new RegExp("(^|\\.)"+e.join("\\.(?:.*\\.|)")+"(\\.|$)");b7=b8=b4.length;while(b8--){cf=b4[b8];if((ca||b3===cf.origType)&&(!ci||ci.guid===cf.guid)&&(!b9||b9.test(cf.namespace))&&(!b6||b6===cf.selector||b6==="**"&&cf.selector)){b4.splice(b8,1);if(cf.selector){b4.delegateCount--}if(cd.remove){cd.remove.call(b5,cf)}}}if(b7&&!b4.length){if(!cd.teardown||cd.teardown.call(b5,e,cc.handle)===false){bJ.removeEvent(b5,ce,cc.handle)}delete cg[ce]}}if(bJ.isEmptyObject(cg)){delete cc.handle;bJ._removeData(b5,"events")}},trigger:function(b3,ca,b6,ch){var cb,b5,cf,cg,cd,b9,b8,b7=[b6||l],ce=V.call(b3,"type")?b3.type:b3,b4=V.call(b3,"namespace")?b3.namespace.split("."):[];cf=b9=b6=b6||l;if(b6.nodeType===3||b6.nodeType===8){return}if(bB.test(ce+bJ.event.triggered)){return}if(ce.indexOf(".")>=0){b4=ce.split(".");ce=b4.shift();b4.sort()}b5=ce.indexOf(":")<0&&"on"+ce;b3=b3[bJ.expando]?b3:new bJ.Event(ce,typeof b3==="object"&&b3);b3.isTrigger=true;b3.namespace=b4.join(".");b3.namespace_re=b3.namespace?new RegExp("(^|\\.)"+b4.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;b3.result=aG;if(!b3.target){b3.target=b6}ca=ca==null?[b3]:bJ.makeArray(ca,[b3]);cd=bJ.event.special[ce]||{};if(!ch&&cd.trigger&&cd.trigger.apply(b6,ca)===false){return}if(!ch&&!cd.noBubble&&!bJ.isWindow(b6)){cg=cd.delegateType||ce;if(!bB.test(cg+ce)){cf=cf.parentNode}for(;cf;cf=cf.parentNode){b7.push(cf);b9=cf}if(b9===(b6.ownerDocument||l)){b7.push(b9.defaultView||b9.parentWindow||a2)}}b8=0;while((cf=b7[b8++])&&!b3.isPropagationStopped()){b3.type=b8>1?cg:cd.bindType||ce;cb=(bJ._data(cf,"events")||{})[b3.type]&&bJ._data(cf,"handle");if(cb){cb.apply(cf,ca)}cb=b5&&cf[b5];if(cb&&bJ.acceptData(cf)&&cb.apply&&cb.apply(cf,ca)===false){b3.preventDefault()}}b3.type=ce;if(!ch&&!b3.isDefaultPrevented()){if((!cd._default||cd._default.apply(b6.ownerDocument,ca)===false)&&!(ce==="click"&&bJ.nodeName(b6,"a"))&&bJ.acceptData(b6)){if(b5&&b6[ce]&&!bJ.isWindow(b6)){b9=b6[b5];if(b9){b6[b5]=null}bJ.event.triggered=ce;try{b6[ce]()}catch(cc){}bJ.event.triggered=aG;if(b9){b6[b5]=b9}}}}return b3.result},dispatch:function(e){e=bJ.event.fix(e);var b6,b7,cb,b3,b5,ca=[],b9=a4.call(arguments),b4=(bJ._data(this,"events")||{})[e.type]||[],b8=bJ.event.special[e.type]||{};b9[0]=e;e.delegateTarget=this;if(b8.preDispatch&&b8.preDispatch.call(this,e)===false){return}ca=bJ.event.handlers.call(this,e,b4);b6=0;while((b3=ca[b6++])&&!e.isPropagationStopped()){e.currentTarget=b3.elem;b5=0;while((cb=b3.handlers[b5++])&&!e.isImmediatePropagationStopped()){if(!e.namespace_re||e.namespace_re.test(cb.namespace)){e.handleObj=cb;e.data=cb.data;b7=((bJ.event.special[cb.origType]||{}).handle||cb.handler).apply(b3.elem,b9);if(b7!==aG){if((e.result=b7)===false){e.preventDefault();e.stopPropagation()}}}}}if(b8.postDispatch){b8.postDispatch.call(this,e)}return e.result},handlers:function(e,b4){var b3,b9,b7,b6,b8=[],b5=b4.delegateCount,ca=e.target;if(b5&&ca.nodeType&&(!e.button||e.type!=="click")){for(;ca!=this;ca=ca.parentNode||this){if(ca.nodeType===1&&(ca.disabled!==true||e.type!=="click")){b7=[];for(b6=0;b6<b5;b6++){b9=b4[b6];b3=b9.selector+" ";if(b7[b3]===aG){b7[b3]=b9.needsContext?bJ(b3,this).index(ca)>=0:bJ.find(b3,this,null,[ca]).length}if(b7[b3]){b7.push(b9)}}if(b7.length){b8.push({elem:ca,handlers:b7})}}}}if(b5<b4.length){b8.push({elem:this,handlers:b4.slice(b5)})}return b8},fix:function(b5){if(b5[bJ.expando]){return b5}var b3,b8,b7,b4=b5.type,e=b5,b6=this.fixHooks[b4];if(!b6){this.fixHooks[b4]=b6=bN.test(b4)?this.mouseHooks:a3.test(b4)?this.keyHooks:{}}b7=b6.props?this.props.concat(b6.props):this.props;b5=new bJ.Event(e);b3=b7.length;while(b3--){b8=b7[b3];b5[b8]=e[b8]}if(!b5.target){b5.target=e.srcElement||l}if(b5.target.nodeType===3){b5.target=b5.target.parentNode}b5.metaKey=!!b5.metaKey;return b6.filter?b6.filter(b5,e):b5},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(b3,e){if(b3.which==null){b3.which=e.charCode!=null?e.charCode:e.keyCode}return b3}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(b5,b4){var e,b6,b7,b3=b4.button,b8=b4.fromElement;if(b5.pageX==null&&b4.clientX!=null){b6=b5.target.ownerDocument||l;b7=b6.documentElement;e=b6.body;b5.pageX=b4.clientX+(b7&&b7.scrollLeft||e&&e.scrollLeft||0)-(b7&&b7.clientLeft||e&&e.clientLeft||0);b5.pageY=b4.clientY+(b7&&b7.scrollTop||e&&e.scrollTop||0)-(b7&&b7.clientTop||e&&e.clientTop||0)}if(!b5.relatedTarget&&b8){b5.relatedTarget=b8===b5.target?b4.toElement:b8}if(!b5.which&&b3!==aG){b5.which=(b3&1?1:(b3&2?3:(b3&4?2:0)))}return b5}},special:{load:{noBubble:true},click:{trigger:function(){if(bJ.nodeName(this,"input")&&this.type==="checkbox"&&this.click){this.click();return false}}},focus:{trigger:function(){if(this!==l.activeElement&&this.focus){try{this.focus();return false}catch(b3){}}},delegateType:"focusin"},blur:{trigger:function(){if(this===l.activeElement&&this.blur){this.blur();return false}},delegateType:"focusout"},beforeunload:{postDispatch:function(e){if(e.result!==aG){e.originalEvent.returnValue=e.result}}}},simulate:function(b4,b6,b5,b3){var b7=bJ.extend(new bJ.Event(),b5,{type:b4,isSimulated:true,originalEvent:{}});if(b3){bJ.event.trigger(b7,null,b6)}else{bJ.event.dispatch.call(b6,b7)}if(b7.isDefaultPrevented()){b5.preventDefault()}}};bJ.removeEvent=l.removeEventListener?function(b3,e,b4){if(b3.removeEventListener){b3.removeEventListener(e,b4,false)}}:function(b4,b3,b5){var e="on"+b3;if(b4.detachEvent){if(typeof b4[e]===aC){b4[e]=null}b4.detachEvent(e,b5)}};bJ.Event=function(b3,e){if(!(this instanceof bJ.Event)){return new bJ.Event(b3,e)}if(b3&&b3.type){this.originalEvent=b3;this.type=b3.type;this.isDefaultPrevented=(b3.defaultPrevented||b3.returnValue===false||b3.getPreventDefault&&b3.getPreventDefault())?R:X}else{this.type=b3}if(e){bJ.extend(this,e)}this.timeStamp=b3&&b3.timeStamp||bJ.now();this[bJ.expando]=true};bJ.Event.prototype={isDefaultPrevented:X,isPropagationStopped:X,isImmediatePropagationStopped:X,preventDefault:function(){var b3=this.originalEvent;this.isDefaultPrevented=R;if(!b3){return}if(b3.preventDefault){b3.preventDefault()}else{b3.returnValue=false}},stopPropagation:function(){var b3=this.originalEvent;this.isPropagationStopped=R;if(!b3){return}if(b3.stopPropagation){b3.stopPropagation()}b3.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=R;this.stopPropagation()}};bJ.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(b3,e){bJ.event.special[b3]={delegateType:e,bindType:e,handle:function(b6){var b4,b8=this,b7=b6.relatedTarget,b5=b6.handleObj;if(!b7||(b7!==b8&&!bJ.contains(b8,b7))){b6.type=b5.origType;b4=b5.handler.apply(this,arguments);b6.type=e}return b4}}});if(!bJ.support.submitBubbles){bJ.event.special.submit={setup:function(){if(bJ.nodeName(this,"form")){return false}bJ.event.add(this,"click._submit keypress._submit",function(b5){var b4=b5.target,b3=bJ.nodeName(b4,"input")||bJ.nodeName(b4,"button")?b4.form:aG;if(b3&&!bJ._data(b3,"submitBubbles")){bJ.event.add(b3,"submit._submit",function(e){e._submit_bubble=true});bJ._data(b3,"submitBubbles",true)}})},postDispatch:function(e){if(e._submit_bubble){delete e._submit_bubble;if(this.parentNode&&!e.isTrigger){bJ.event.simulate("submit",this.parentNode,e,true)}}},teardown:function(){if(bJ.nodeName(this,"form")){return false}bJ.event.remove(this,"._submit")}}}if(!bJ.support.changeBubbles){bJ.event.special.change={setup:function(){if(bH.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio"){bJ.event.add(this,"propertychange._change",function(e){if(e.originalEvent.propertyName==="checked"){this._just_changed=true}});bJ.event.add(this,"click._change",function(e){if(this._just_changed&&!e.isTrigger){this._just_changed=false}bJ.event.simulate("change",this,e,true)})}return false}bJ.event.add(this,"beforeactivate._change",function(b4){var b3=b4.target;if(bH.test(b3.nodeName)&&!bJ._data(b3,"changeBubbles")){bJ.event.add(b3,"change._change",function(e){if(this.parentNode&&!e.isSimulated&&!e.isTrigger){bJ.event.simulate("change",this.parentNode,e,true)}});bJ._data(b3,"changeBubbles",true)}})},handle:function(b3){var e=b3.target;if(this!==e||b3.isSimulated||b3.isTrigger||(e.type!=="radio"&&e.type!=="checkbox")){return b3.handleObj.handler.apply(this,arguments)}},teardown:function(){bJ.event.remove(this,"._change");return !bH.test(this.nodeName)}}}if(!bJ.support.focusinBubbles){bJ.each({focus:"focusin",blur:"focusout"},function(b5,e){var b3=0,b4=function(b6){bJ.event.simulate(e,b6.target,bJ.event.fix(b6),true)};bJ.event.special[e]={setup:function(){if(b3++===0){l.addEventListener(b5,b4,true)}},teardown:function(){if(--b3===0){l.removeEventListener(b5,b4,true)}}}})}bJ.fn.extend({on:function(b4,e,b7,b6,b3){var b5,b8;if(typeof b4==="object"){if(typeof e!=="string"){b7=b7||e;e=aG}for(b5 in b4){this.on(b5,e,b7,b4[b5],b3)}return this}if(b7==null&&b6==null){b6=e;b7=e=aG}else{if(b6==null){if(typeof e==="string"){b6=b7;b7=aG}else{b6=b7;b7=e;e=aG}}}if(b6===false){b6=X}else{if(!b6){return this}}if(b3===1){b8=b6;b6=function(b9){bJ().off(b9);return b8.apply(this,arguments)};b6.guid=b8.guid||(b8.guid=bJ.guid++)}return this.each(function(){bJ.event.add(this,b4,b6,b7,e)})},one:function(b3,e,b5,b4){return this.on(b3,e,b5,b4,1)},off:function(b4,e,b6){var b3,b5;if(b4&&b4.preventDefault&&b4.handleObj){b3=b4.handleObj;bJ(b4.delegateTarget).off(b3.namespace?b3.origType+"."+b3.namespace:b3.origType,b3.selector,b3.handler);return this}if(typeof b4==="object"){for(b5 in b4){this.off(b5,e,b4[b5])}return this}if(e===false||typeof e==="function"){b6=e;e=aG}if(b6===false){b6=X}return this.each(function(){bJ.event.remove(this,b4,b6,e)})},bind:function(e,b4,b3){return this.on(e,null,b4,b3)},unbind:function(e,b3){return this.off(e,null,b3)},delegate:function(e,b3,b5,b4){return this.on(b3,e,b5,b4)},undelegate:function(e,b3,b4){return arguments.length===1?this.off(e,"**"):this.off(b3,e||"**",b4)},trigger:function(e,b3){return this.each(function(){bJ.event.trigger(e,b3,this)})},triggerHandler:function(e,b4){var b3=this[0];if(b3){return bJ.event.trigger(e,b4,b3,true)}}});
|
||
/*
|
||
* Sizzle CSS Selector Engine
|
||
* Copyright 2012 jQuery Foundation and other contributors
|
||
* Released under the MIT license
|
||
* http://sizzlejs.com/
|
||
*/
|
||
(function(da,ch){var cx,cb,cn,cH,cJ,cS,cT,dg,cV,cB,co,cd,cZ,db,ca,cF,cD,c5="sizzle"+-(new Date()),cI=da.document,dd={},de=0,c0=0,b5=cz(),c4=cz(),cG=cz(),c9=typeof ch,cN=1<<31,c7=[],c8=c7.pop,b4=c7.push,cm=c7.slice,b9=c7.indexOf||function(di){var dh=0,e=this.length;for(;dh<e;dh++){if(this[dh]===di){return dh}}return -1},cp="[\\x20\\t\\r\\n\\f]",b3="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",cK=b3.replace("w","w#"),ci="([*^$|!~]?=)",c2="\\["+cp+"*("+b3+")"+cp+"*(?:"+ci+cp+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+cK+")|)|)"+cp+"*\\]",ck=":("+b3+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+c2.replace(3,8)+")*)|.*)\\)|)",cr=new RegExp("^"+cp+"+|((?:^|[^\\\\])(?:\\\\.)*)"+cp+"+$","g"),cu=new RegExp("^"+cp+"*,"+cp+"*"),cA=new RegExp("^"+cp+"*([\\x20\\t\\r\\n\\f>+~])"+cp+"*"),cP=new RegExp(ck),cQ=new RegExp("^"+cK+"$"),cY={ID:new RegExp("^#("+b3+")"),CLASS:new RegExp("^\\.("+b3+")"),NAME:new RegExp("^\\[name=['\"]?("+b3+")['\"]?\\]"),TAG:new RegExp("^("+b3.replace("w","w*")+")"),ATTR:new RegExp("^"+c2),PSEUDO:new RegExp("^"+ck),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+cp+"*(even|odd|(([+-]|)(\\d*)n|)"+cp+"*(?:([+-]|)"+cp+"*(\\d+)|))"+cp+"*\\)|)","i"),needsContext:new RegExp("^"+cp+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+cp+"*((?:-\\d)?\\d*)"+cp+"*\\)|)(?=[^-]|$)","i")},cW=/[\x20\t\r\n\f]*[+~]/,cM=/^[^{]+\{\s*\[native code/,cO=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,b8=/^(?:input|select|textarea|button)$/i,cl=/^h\d$/i,cL=/'|\\/g,ct=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,cs=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,c1=function(e,di){var dh="0x"+di-65536;return dh!==dh?di:dh<0?String.fromCharCode(dh+65536):String.fromCharCode(dh>>10|55296,dh&1023|56320)};try{cm.call(cI.documentElement.childNodes,0)[0].nodeType}catch(cC){cm=function(dh){var di,e=[];while((di=this[dh++])){e.push(di)}return e}}function cE(e){return cM.test(e+"")}function cz(){var e,dh=[];return(e=function(di,dj){if(dh.push(di+=" ")>cn.cacheLength){delete e[dh.shift()]}return(e[di]=dj)})}function cj(e){e[c5]=true;return e}function cc(dh){var dj=cB.createElement("div");try{return dh(dj)}catch(di){return false}finally{dj=null}}function cv(dp,dh,dt,dv){var du,dl,dm,dr,ds,dk,dj,e,di,dq;if((dh?dh.ownerDocument||dh:cI)!==cB){cV(dh)}dh=dh||cB;dt=dt||[];if(!dp||typeof dp!=="string"){return dt}if((dr=dh.nodeType)!==1&&dr!==9){return[]}if(!cd&&!dv){if((du=cO.exec(dp))){if((dm=du[1])){if(dr===9){dl=dh.getElementById(dm);if(dl&&dl.parentNode){if(dl.id===dm){dt.push(dl);return dt}}else{return dt}}else{if(dh.ownerDocument&&(dl=dh.ownerDocument.getElementById(dm))&&cF(dh,dl)&&dl.id===dm){dt.push(dl);return dt}}}else{if(du[2]){b4.apply(dt,cm.call(dh.getElementsByTagName(dp),0));return dt}else{if((dm=du[3])&&dd.getByClassName&&dh.getElementsByClassName){b4.apply(dt,cm.call(dh.getElementsByClassName(dm),0));return dt}}}}if(dd.qsa&&!cZ.test(dp)){dj=true;e=c5;di=dh;dq=dr===9&&dp;if(dr===1&&dh.nodeName.toLowerCase()!=="object"){dk=cf(dp);if((dj=dh.getAttribute("id"))){e=dj.replace(cL,"\\$&")}else{dh.setAttribute("id",e)}e="[id='"+e+"'] ";ds=dk.length;while(ds--){dk[ds]=e+cg(dk[ds])}di=cW.test(dp)&&dh.parentNode||dh;dq=dk.join(",")}if(dq){try{b4.apply(dt,cm.call(di.querySelectorAll(dq),0));return dt}catch(dn){}finally{if(!dj){dh.removeAttribute("id")}}}}}return dc(dp.replace(cr,"$1"),dh,dt,dv)}cJ=cv.isXML=function(e){var dh=e&&(e.ownerDocument||e).documentElement;return dh?dh.nodeName!=="HTML":false};cV=cv.setDocument=function(e){var dh=e?e.ownerDocument||e:cI;if(dh===cB||dh.nodeType!==9||!dh.documentElement){return cB}cB=dh;co=dh.documentElement;cd=cJ(dh);dd.tagNameNoComments=cc(function(di){di.appendChild(dh.createComment(""));return !di.getElementsByTagName("*").length});dd.attributes=cc(function(dj){dj.innerHTML="<select></select>";var di=typeof dj.lastChild.getAttribute("multiple");return di!=="boolean"&&di!=="string"});dd.getByClassName=cc(function(di){di.innerHTML="<div class='hidden e'></div><div class='hidden'></div>";if(!di.getElementsByClassName||!di.getElementsByClassName("e").length){return false}di.lastChild.className="e";return di.getElementsByClassName("e").length===2});dd.getByName=cc(function(dj){dj.id=c5+0;dj.innerHTML="<a name='"+c5+"'></a><div name='"+c5+"'></div>";co.insertBefore(dj,co.firstChild);var di=dh.getElementsByName&&dh.getElementsByName(c5).length===2+dh.getElementsByName(c5+0).length;dd.getIdNotName=!dh.getElementById(c5);co.removeChild(dj);return di});cn.attrHandle=cc(function(di){di.innerHTML="<a href='#'></a>";return di.firstChild&&typeof di.firstChild.getAttribute!==c9&&di.firstChild.getAttribute("href")==="#"})?{}:{href:function(di){return di.getAttribute("href",2)},type:function(di){return di.getAttribute("type")}};if(dd.getIdNotName){cn.find.ID=function(dk,dj){if(typeof dj.getElementById!==c9&&!cd){var di=dj.getElementById(dk);return di&&di.parentNode?[di]:[]}};cn.filter.ID=function(dj){var di=dj.replace(cs,c1);return function(dk){return dk.getAttribute("id")===di}}}else{cn.find.ID=function(dk,dj){if(typeof dj.getElementById!==c9&&!cd){var di=dj.getElementById(dk);return di?di.id===dk||typeof di.getAttributeNode!==c9&&di.getAttributeNode("id").value===dk?[di]:ch:[]}};cn.filter.ID=function(dj){var di=dj.replace(cs,c1);return function(dl){var dk=typeof dl.getAttributeNode!==c9&&dl.getAttributeNode("id");return dk&&dk.value===di}}}cn.find.TAG=dd.tagNameNoComments?function(di,dj){if(typeof dj.getElementsByTagName!==c9){return dj.getElementsByTagName(di)}}:function(di,dm){var dn,dl=[],dk=0,dj=dm.getElementsByTagName(di);if(di==="*"){while((dn=dj[dk++])){if(dn.nodeType===1){dl.push(dn)}}return dl}return dj};cn.find.NAME=dd.getByName&&function(di,dj){if(typeof dj.getElementsByName!==c9){return dj.getElementsByName(name)}};cn.find.CLASS=dd.getByClassName&&function(dj,di){if(typeof di.getElementsByClassName!==c9&&!cd){return di.getElementsByClassName(dj)}};db=[];cZ=[":focus"];if((dd.qsa=cE(dh.querySelectorAll))){cc(function(di){di.innerHTML="<select><option selected=''></option></select>";if(!di.querySelectorAll("[selected]").length){cZ.push("\\["+cp+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)")}if(!di.querySelectorAll(":checked").length){cZ.push(":checked")}});cc(function(di){di.innerHTML="<input type='hidden' i=''/>";if(di.querySelectorAll("[i^='']").length){cZ.push("[*^$]="+cp+"*(?:\"\"|'')")}if(!di.querySelectorAll(":enabled").length){cZ.push(":enabled",":disabled")}di.querySelectorAll("*,:x");cZ.push(",.*:")})}if((dd.matchesSelector=cE((ca=co.matchesSelector||co.mozMatchesSelector||co.webkitMatchesSelector||co.oMatchesSelector||co.msMatchesSelector)))){cc(function(di){dd.disconnectedMatch=ca.call(di,"div");ca.call(di,"[s!='']:x");db.push("!=",ck)})}cZ=new RegExp(cZ.join("|"));db=new RegExp(db.join("|"));cF=cE(co.contains)||co.compareDocumentPosition?function(dj,di){var dl=dj.nodeType===9?dj.documentElement:dj,dk=di&&di.parentNode;return dj===dk||!!(dk&&dk.nodeType===1&&(dl.contains?dl.contains(dk):dj.compareDocumentPosition&&dj.compareDocumentPosition(dk)&16))}:function(dj,di){if(di){while((di=di.parentNode)){if(di===dj){return true}}}return false};cD=co.compareDocumentPosition?function(dj,di){var dk;if(dj===di){cT=true;return 0}if((dk=di.compareDocumentPosition&&dj.compareDocumentPosition&&dj.compareDocumentPosition(di))){if(dk&1||dj.parentNode&&dj.parentNode.nodeType===11){if(dj===dh||cF(cI,dj)){return -1}if(di===dh||cF(cI,di)){return 1}return 0}return dk&4?-1:1}return dj.compareDocumentPosition?-1:1}:function(dj,di){var dq,dm=0,dp=dj.parentNode,dl=di.parentNode,dk=[dj],dn=[di];if(dj===di){cT=true;return 0}else{if(!dp||!dl){return dj===dh?-1:di===dh?1:dp?-1:dl?1:0}else{if(dp===dl){return b6(dj,di)}}}dq=dj;while((dq=dq.parentNode)){dk.unshift(dq)}dq=di;while((dq=dq.parentNode)){dn.unshift(dq)}while(dk[dm]===dn[dm]){dm++}return dm?b6(dk[dm],dn[dm]):dk[dm]===cI?-1:dn[dm]===cI?1:0};cT=false;[0,0].sort(cD);dd.detectDuplicates=cT;return cB};cv.matches=function(dh,e){return cv(dh,null,null,e)};cv.matchesSelector=function(di,dk){if((di.ownerDocument||di)!==cB){cV(di)}dk=dk.replace(ct,"='$1']");if(dd.matchesSelector&&!cd&&(!db||!db.test(dk))&&!cZ.test(dk)){try{var dh=ca.call(di,dk);if(dh||dd.disconnectedMatch||di.document&&di.document.nodeType!==11){return dh}}catch(dj){}}return cv(dk,cB,null,[di]).length>0};cv.contains=function(e,dh){if((e.ownerDocument||e)!==cB){cV(e)}return cF(e,dh)};cv.attr=function(dh,e){var di;if((dh.ownerDocument||dh)!==cB){cV(dh)}if(!cd){e=e.toLowerCase()}if((di=cn.attrHandle[e])){return di(dh)}if(cd||dd.attributes){return dh.getAttribute(e)}return((di=dh.getAttributeNode(e))||dh.getAttribute(e))&&dh[e]===true?e:di&&di.specified?di.value:null};cv.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};cv.uniqueSort=function(di){var dj,dk=[],dh=1,e=0;cT=!dd.detectDuplicates;di.sort(cD);if(cT){for(;(dj=di[dh]);dh++){if(dj===di[dh-1]){e=dk.push(dh)}}while(e--){di.splice(dk[e],1)}}return di};function b6(dh,e){var dj=e&&dh,di=dj&&(~e.sourceIndex||cN)-(~dh.sourceIndex||cN);if(di){return di}if(dj){while((dj=dj.nextSibling)){if(dj===e){return -1}}}return dh?1:-1}function cw(e){return function(di){var dh=di.nodeName.toLowerCase();return dh==="input"&&di.type===e}}function b7(e){return function(di){var dh=di.nodeName.toLowerCase();return(dh==="input"||dh==="button")&&di.type===e}}function c3(e){return cj(function(dh){dh=+dh;return cj(function(di,dm){var dk,dj=e([],di.length,dh),dl=dj.length;while(dl--){if(di[(dk=dj[dl])]){di[dk]=!(dm[dk]=di[dk])}}})})}cH=cv.getText=function(dk){var dj,dh="",di=0,e=dk.nodeType;if(!e){for(;(dj=dk[di]);di++){dh+=cH(dj)}}else{if(e===1||e===9||e===11){if(typeof dk.textContent==="string"){return dk.textContent}else{for(dk=dk.firstChild;dk;dk=dk.nextSibling){dh+=cH(dk)}}}else{if(e===3||e===4){return dk.nodeValue}}}return dh};cn=cv.selectors={cacheLength:50,createPseudo:cj,match:cY,find:{},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){e[1]=e[1].replace(cs,c1);e[3]=(e[4]||e[5]||"").replace(cs,c1);if(e[2]==="~="){e[3]=" "+e[3]+" "}return e.slice(0,4)},CHILD:function(e){e[1]=e[1].toLowerCase();if(e[1].slice(0,3)==="nth"){if(!e[3]){cv.error(e[0])}e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]==="even"||e[3]==="odd"));e[5]=+((e[7]+e[8])||e[3]==="odd")}else{if(e[3]){cv.error(e[0])}}return e},PSEUDO:function(dh){var e,di=!dh[5]&&dh[2];if(cY.CHILD.test(dh[0])){return null}if(dh[4]){dh[2]=dh[4]}else{if(di&&cP.test(di)&&(e=cf(di,true))&&(e=di.indexOf(")",di.length-e)-di.length)){dh[0]=dh[0].slice(0,e);dh[2]=di.slice(0,e)}}return dh.slice(0,3)}},filter:{TAG:function(e){if(e==="*"){return function(){return true}}e=e.replace(cs,c1).toLowerCase();return function(dh){return dh.nodeName&&dh.nodeName.toLowerCase()===e}},CLASS:function(e){var dh=b5[e+" "];return dh||(dh=new RegExp("(^|"+cp+")"+e+"("+cp+"|$)"))&&b5(e,function(di){return dh.test(di.className||(typeof di.getAttribute!==c9&&di.getAttribute("class"))||"")})},ATTR:function(di,dh,e){return function(dk){var dj=cv.attr(dk,di);if(dj==null){return dh==="!="}if(!dh){return true}dj+="";return dh==="="?dj===e:dh==="!="?dj!==e:dh==="^="?e&&dj.indexOf(e)===0:dh==="*="?e&&dj.indexOf(e)>-1:dh==="$="?e&&dj.slice(-e.length)===e:dh==="~="?(" "+dj+" ").indexOf(e)>-1:dh==="|="?dj===e||dj.slice(0,e.length+1)===e+"-":false}},CHILD:function(dh,dk,dj,dl,di){var dn=dh.slice(0,3)!=="nth",e=dh.slice(-4)!=="last",dm=dk==="of-type";return dl===1&&di===0?function(dp){return !!dp.parentNode}:function(dv,dt,dy){var dp,dB,dw,dA,dx,ds,du=dn!==e?"nextSibling":"previousSibling",dz=dv.parentNode,dr=dm&&dv.nodeName.toLowerCase(),dq=!dy&&!dm;if(dz){if(dn){while(du){dw=dv;while((dw=dw[du])){if(dm?dw.nodeName.toLowerCase()===dr:dw.nodeType===1){return false}}ds=du=dh==="only"&&!ds&&"nextSibling"}return true}ds=[e?dz.firstChild:dz.lastChild];if(e&&dq){dB=dz[c5]||(dz[c5]={});dp=dB[dh]||[];dx=dp[0]===de&&dp[1];dA=dp[0]===de&&dp[2];dw=dx&&dz.childNodes[dx];while((dw=++dx&&dw&&dw[du]||(dA=dx=0)||ds.pop())){if(dw.nodeType===1&&++dA&&dw===dv){dB[dh]=[de,dx,dA];break}}}else{if(dq&&(dp=(dv[c5]||(dv[c5]={}))[dh])&&dp[0]===de){dA=dp[1]}else{while((dw=++dx&&dw&&dw[du]||(dA=dx=0)||ds.pop())){if((dm?dw.nodeName.toLowerCase()===dr:dw.nodeType===1)&&++dA){if(dq){(dw[c5]||(dw[c5]={}))[dh]=[de,dA]}if(dw===dv){break}}}}}dA-=di;return dA===dl||(dA%dl===0&&dA/dl>=0)}}},PSEUDO:function(dj,di){var e,dh=cn.pseudos[dj]||cn.setFilters[dj.toLowerCase()]||cv.error("unsupported pseudo: "+dj);if(dh[c5]){return dh(di)}if(dh.length>1){e=[dj,dj,"",di];return cn.setFilters.hasOwnProperty(dj.toLowerCase())?cj(function(dm,dp){var dl,dk=dh(dm,di),dn=dk.length;while(dn--){dl=b9.call(dm,dk[dn]);dm[dl]=!(dp[dl]=dk[dn])}}):function(dk){return dh(dk,0,e)}}return dh}},pseudos:{not:cj(function(e){var dh=[],di=[],dj=cS(e.replace(cr,"$1"));return dj[c5]?cj(function(dl,dr,dp,dm){var dq,dk=dj(dl,null,dm,[]),dn=dl.length;while(dn--){if((dq=dk[dn])){dl[dn]=!(dr[dn]=dq)}}}):function(dm,dl,dk){dh[0]=dm;dj(dh,null,dk,di);return !di.pop()}}),has:cj(function(e){return function(dh){return cv(e,dh).length>0}}),contains:cj(function(e){return function(dh){return(dh.textContent||dh.innerText||cH(dh)).indexOf(e)>-1}}),lang:cj(function(e){if(!cQ.test(e||"")){cv.error("unsupported lang: "+e)}e=e.replace(cs,c1).toLowerCase();return function(di){var dh;do{if((dh=cd?di.getAttribute("xml:lang")||di.getAttribute("lang"):di.lang)){dh=dh.toLowerCase();return dh===e||dh.indexOf(e+"-")===0}}while((di=di.parentNode)&&di.nodeType===1);return false}}),target:function(e){var dh=da.location&&da.location.hash;return dh&&dh.slice(1)===e.id},root:function(e){return e===co},focus:function(e){return e===cB.activeElement&&(!cB.hasFocus||cB.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===false},disabled:function(e){return e.disabled===true},checked:function(e){var dh=e.nodeName.toLowerCase();return(dh==="input"&&!!e.checked)||(dh==="option"&&!!e.selected)},selected:function(e){if(e.parentNode){e.parentNode.selectedIndex}return e.selected===true},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling){if(e.nodeName>"@"||e.nodeType===3||e.nodeType===4){return false}}return true},parent:function(e){return !cn.pseudos.empty(e)},header:function(e){return cl.test(e.nodeName)},input:function(e){return b8.test(e.nodeName)},button:function(dh){var e=dh.nodeName.toLowerCase();return e==="input"&&dh.type==="button"||e==="button"},text:function(dh){var e;return dh.nodeName.toLowerCase()==="input"&&dh.type==="text"&&((e=dh.getAttribute("type"))==null||e.toLowerCase()===dh.type)},first:c3(function(){return[0]}),last:c3(function(e,dh){return[dh-1]}),eq:c3(function(e,di,dh){return[dh<0?dh+di:dh]}),even:c3(function(e,di){var dh=0;for(;dh<di;dh+=2){e.push(dh)}return e}),odd:c3(function(e,di){var dh=1;for(;dh<di;dh+=2){e.push(dh)}return e}),lt:c3(function(e,dj,di){var dh=di<0?di+dj:di;for(;--dh>=0;){e.push(dh)}return e}),gt:c3(function(e,dj,di){var dh=di<0?di+dj:di;for(;++dh<dj;){e.push(dh)}return e})}};for(cx in {radio:true,checkbox:true,file:true,password:true,image:true}){cn.pseudos[cx]=cw(cx)}for(cx in {submit:true,reset:true}){cn.pseudos[cx]=b7(cx)}function cf(dk,dq){var dh,dl,dn,dp,dm,di,e,dj=c4[dk+" "];if(dj){return dq?0:dj.slice(0)}dm=dk;di=[];e=cn.preFilter;while(dm){if(!dh||(dl=cu.exec(dm))){if(dl){dm=dm.slice(dl[0].length)||dm}di.push(dn=[])}dh=false;if((dl=cA.exec(dm))){dh=dl.shift();dn.push({value:dh,type:dl[0].replace(cr," ")});dm=dm.slice(dh.length)}for(dp in cn.filter){if((dl=cY[dp].exec(dm))&&(!e[dp]||(dl=e[dp](dl)))){dh=dl.shift();dn.push({value:dh,type:dp,matches:dl});dm=dm.slice(dh.length)}}if(!dh){break}}return dq?dm.length:dm?cv.error(dk):c4(dk,di).slice(0)}function cg(dj){var di=0,dh=dj.length,e="";for(;di<dh;di++){e+=dj[di].value}return e}function cq(dk,di,dj){var e=di.dir,dl=dj&&e==="parentNode",dh=c0++;return di.first?function(dp,dn,dm){while((dp=dp[e])){if(dp.nodeType===1||dl){return dk(dp,dn,dm)}}}:function(dr,dp,dn){var dt,dm,dq,ds=de+" "+dh;if(dn){while((dr=dr[e])){if(dr.nodeType===1||dl){if(dk(dr,dp,dn)){return true}}}}else{while((dr=dr[e])){if(dr.nodeType===1||dl){dq=dr[c5]||(dr[c5]={});if((dm=dq[e])&&dm[0]===ds){if((dt=dm[1])===true||dt===cb){return dt===true}}else{dm=dq[e]=[ds];dm[1]=dk(dr,dp,dn)||cb;if(dm[1]===true){return true}}}}}}}function df(e){return e.length>1?function(dk,dj,dh){var di=e.length;while(di--){if(!e[di](dk,dj,dh)){return false}}return true}:e[0]}function cX(e,dh,di,dj,dm){var dk,dq=[],dl=0,dn=e.length,dp=dh!=null;for(;dl<dn;dl++){if((dk=e[dl])){if(!di||di(dk,dj,dm)){dq.push(dk);if(dp){dh.push(dl)}}}}return dq}function ce(di,dh,dk,dj,dl,e){if(dj&&!dj[c5]){dj=ce(dj)}if(dl&&!dl[c5]){dl=ce(dl,e)}return cj(function(dx,du,dp,dw){var dz,dv,dr,dq=[],dy=[],dn=du.length,dm=dx||cy(dh||"*",dp.nodeType?[dp]:dp,[]),ds=di&&(dx||!dh)?cX(dm,dq,di,dp,dw):dm,dt=dk?dl||(dx?di:dn||dj)?[]:du:ds;if(dk){dk(ds,dt,dp,dw)}if(dj){dz=cX(dt,dy);dj(dz,[],dp,dw);dv=dz.length;while(dv--){if((dr=dz[dv])){dt[dy[dv]]=!(ds[dy[dv]]=dr)}}}if(dx){if(dl||di){if(dl){dz=[];dv=dt.length;while(dv--){if((dr=dt[dv])){dz.push((ds[dv]=dr))}}dl(null,(dt=[]),dz,dw)}dv=dt.length;while(dv--){if((dr=dt[dv])&&(dz=dl?b9.call(dx,dr):dq[dv])>-1){dx[dz]=!(du[dz]=dr)}}}}else{dt=cX(dt===du?dt.splice(dn,dt.length):dt);if(dl){dl(null,du,dt,dw)}else{b4.apply(du,dt)}}})}function c6(dm){var dh,dk,di,dl=dm.length,dq=cn.relative[dm[0].type],dr=dq||cn.relative[" "],dj=dq?1:0,dn=cq(function(ds){return ds===dh},dr,true),dp=cq(function(ds){return b9.call(dh,ds)>-1},dr,true),e=[function(du,dt,ds){return(!dq&&(ds||dt!==dg))||((dh=dt).nodeType?dn(du,dt,ds):dp(du,dt,ds))}];for(;dj<dl;dj++){if((dk=cn.relative[dm[dj].type])){e=[cq(df(e),dk)]}else{dk=cn.filter[dm[dj].type].apply(null,dm[dj].matches);if(dk[c5]){di=++dj;for(;di<dl;di++){if(cn.relative[dm[di].type]){break}}return ce(dj>1&&df(e),dj>1&&cg(dm.slice(0,dj-1)).replace(cr,"$1"),dk,dj<di&&c6(dm.slice(dj,di)),di<dl&&c6((dm=dm.slice(di))),di<dl&&cg(dm))}e.push(dk)}}return df(e)}function cU(dj,di){var dl=0,e=di.length>0,dk=dj.length>0,dh=function(dw,dq,dv,du,dC){var dr,ds,dx,dB=[],dA=0,dt="0",dm=dw&&[],dy=dC!=null,dz=dg,dp=dw||dk&&cn.find.TAG("*",dC&&dq.parentNode||dq),dn=(de+=dz==null?1:Math.random()||0.1);if(dy){dg=dq!==cB&&dq;cb=dl}for(;(dr=dp[dt])!=null;dt++){if(dk&&dr){ds=0;while((dx=dj[ds++])){if(dx(dr,dq,dv)){du.push(dr);break}}if(dy){de=dn;cb=++dl}}if(e){if((dr=!dx&&dr)){dA--}if(dw){dm.push(dr)}}}dA+=dt;if(e&&dt!==dA){ds=0;while((dx=di[ds++])){dx(dm,dB,dq,dv)}if(dw){if(dA>0){while(dt--){if(!(dm[dt]||dB[dt])){dB[dt]=c8.call(du)}}}dB=cX(dB)}b4.apply(du,dB);if(dy&&!dw&&dB.length>0&&(dA+di.length)>1){cv.uniqueSort(du)}}if(dy){de=dn;dg=dz}return dm};return e?cj(dh):dh}cS=cv.compile=function(e,dl){var di,dh=[],dk=[],dj=cG[e+" "];if(!dj){if(!dl){dl=cf(e)}di=dl.length;while(di--){dj=c6(dl[di]);if(dj[c5]){dh.push(dj)}else{dk.push(dj)}}dj=cG(e,cU(dk,dh))}return dj};function cy(dh,dk,dj){var di=0,e=dk.length;for(;di<e;di++){cv(dh,dk[di],dj)}return dj}function dc(di,e,dj,dm){var dk,dp,dh,dq,dn,dl=cf(di);if(!dm){if(dl.length===1){dp=dl[0]=dl[0].slice(0);if(dp.length>2&&(dh=dp[0]).type==="ID"&&e.nodeType===9&&!cd&&cn.relative[dp[1].type]){e=cn.find.ID(dh.matches[0].replace(cs,c1),e)[0];if(!e){return dj}di=di.slice(dp.shift().value.length)}dk=cY.needsContext.test(di)?0:dp.length;while(dk--){dh=dp[dk];if(cn.relative[(dq=dh.type)]){break}if((dn=cn.find[dq])){if((dm=dn(dh.matches[0].replace(cs,c1),cW.test(dp[0].type)&&e.parentNode||e))){dp.splice(dk,1);di=dm.length&&cg(dp);if(!di){b4.apply(dj,cm.call(dm,0));return dj}break}}}}}cS(di,dl)(dm,e,cd,dj,cW.test(di));return dj}cn.pseudos.nth=cn.pseudos.eq;function cR(){}cn.filters=cR.prototype=cn.pseudos;cn.setFilters=new cR();cV();cv.attr=bJ.attr;bJ.find=cv;bJ.expr=cv.selectors;bJ.expr[":"]=bJ.expr.pseudos;bJ.unique=cv.uniqueSort;bJ.text=cv.getText;bJ.isXMLDoc=cv.isXML;bJ.contains=cv.contains})(a2);var aj=/Until$/,bt=/^(?:parents|prev(?:Until|All))/,an=/^.[^:#\[\.,]*$/,y=bJ.expr.match.needsContext,bx={children:true,contents:true,next:true,prev:true};bJ.fn.extend({find:function(b3){var b6,b5,b4,e=this.length;if(typeof b3!=="string"){b4=this;return this.pushStack(bJ(b3).filter(function(){for(b6=0;b6<e;b6++){if(bJ.contains(b4[b6],this)){return true}}}))}b5=[];for(b6=0;b6<e;b6++){bJ.find(b3,this[b6],b5)}b5=this.pushStack(e>1?bJ.unique(b5):b5);b5.selector=(this.selector?this.selector+" ":"")+b3;return b5},has:function(b5){var b4,b3=bJ(b5,this),e=b3.length;return this.filter(function(){for(b4=0;b4<e;b4++){if(bJ.contains(this,b3[b4])){return true}}})},not:function(e){return this.pushStack(aO(this,e,false))},filter:function(e){return this.pushStack(aO(this,e,true))},is:function(e){return !!e&&(typeof e==="string"?y.test(e)?bJ(e,this.context).index(this[0])>=0:bJ.filter(e,this).length>0:this.filter(e).length>0)},closest:function(b6,b5){var b7,b4=0,e=this.length,b3=[],b8=y.test(b6)||typeof b6!=="string"?bJ(b6,b5||this.context):0;for(;b4<e;b4++){b7=this[b4];while(b7&&b7.ownerDocument&&b7!==b5&&b7.nodeType!==11){if(b8?b8.index(b7)>-1:bJ.find.matchesSelector(b7,b6)){b3.push(b7);break}b7=b7.parentNode}}return this.pushStack(b3.length>1?bJ.unique(b3):b3)},index:function(e){if(!e){return(this[0]&&this[0].parentNode)?this.first().prevAll().length:-1}if(typeof e==="string"){return bJ.inArray(this[0],bJ(e))}return bJ.inArray(e.jquery?e[0]:e,this)},add:function(e,b3){var b5=typeof e==="string"?bJ(e,b3):bJ.makeArray(e&&e.nodeType?[e]:e),b4=bJ.merge(this.get(),b5);return this.pushStack(bJ.unique(b4))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});bJ.fn.andSelf=bJ.fn.addBack;function aX(b3,e){do{b3=b3[e]}while(b3&&b3.nodeType!==1);return b3}bJ.each({parent:function(b3){var e=b3.parentNode;return e&&e.nodeType!==11?e:null},parents:function(e){return bJ.dir(e,"parentNode")},parentsUntil:function(b3,e,b4){return bJ.dir(b3,"parentNode",b4)},next:function(e){return aX(e,"nextSibling")},prev:function(e){return aX(e,"previousSibling")},nextAll:function(e){return bJ.dir(e,"nextSibling")},prevAll:function(e){return bJ.dir(e,"previousSibling")},nextUntil:function(b3,e,b4){return bJ.dir(b3,"nextSibling",b4)},prevUntil:function(b3,e,b4){return bJ.dir(b3,"previousSibling",b4)},siblings:function(e){return bJ.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return bJ.sibling(e.firstChild)},contents:function(e){return bJ.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:bJ.merge([],e.childNodes)}},function(e,b3){bJ.fn[e]=function(b6,b4){var b5=bJ.map(this,b3,b6);if(!aj.test(e)){b4=b6}if(b4&&typeof b4==="string"){b5=bJ.filter(b4,b5)}b5=this.length>1&&!bx[e]?bJ.unique(b5):b5;if(this.length>1&&bt.test(e)){b5=b5.reverse()}return this.pushStack(b5)}});bJ.extend({filter:function(b4,e,b3){if(b3){b4=":not("+b4+")"}return e.length===1?bJ.find.matchesSelector(e[0],b4)?[e[0]]:[]:bJ.find.matches(b4,e)},dir:function(b4,b3,b6){var e=[],b5=b4[b3];while(b5&&b5.nodeType!==9&&(b6===aG||b5.nodeType!==1||!bJ(b5).is(b6))){if(b5.nodeType===1){e.push(b5)}b5=b5[b3]}return e},sibling:function(b4,b3){var e=[];for(;b4;b4=b4.nextSibling){if(b4.nodeType===1&&b4!==b3){e.push(b4)}}return e}});function aO(b5,b4,e){b4=b4||0;if(bJ.isFunction(b4)){return bJ.grep(b5,function(b7,b6){var b8=!!b4.call(b7,b6,b7);return b8===e})}else{if(b4.nodeType){return bJ.grep(b5,function(b6){return(b6===b4)===e})}else{if(typeof b4==="string"){var b3=bJ.grep(b5,function(b6){return b6.nodeType===1});if(an.test(b4)){return bJ.filter(b4,b3,!e)}else{b4=bJ.filter(b4,b3)}}}}return bJ.grep(b5,function(b6){return(bJ.inArray(b6,b4)>=0)===e})}function A(e){var b4=d.split("|"),b3=e.createDocumentFragment();if(b3.createElement){while(b4.length){b3.createElement(b4.pop())}}return b3}var d="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",aA=/ jQuery\d+="(?:null|\d+)"/g,J=new RegExp("<(?:"+d+")[\\s/>]","i"),b2=/^\s+/,aD=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,m=/<([\w:]+)/,bX=/<tbody/i,I=/<|&#?\w+;/,al=/<(?:script|style|link)/i,q=/^(?:checkbox|radio)$/i,bU=/checked\s*(?:[^=]|=\s*.checked.)/i,bz=/^$|\/(?:java|ecma)script/i,ar=/^true\/(.*)/,aK=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,T={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:bJ.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},aS=A(l),j=aS.appendChild(l.createElement("div"));T.optgroup=T.option;T.tbody=T.tfoot=T.colgroup=T.caption=T.thead;T.th=T.td;bJ.fn.extend({text:function(e){return bJ.access(this,function(b3){return b3===aG?bJ.text(this):this.empty().append((this[0]&&this[0].ownerDocument||l).createTextNode(b3))},null,e,arguments.length)},wrapAll:function(e){if(bJ.isFunction(e)){return this.each(function(b4){bJ(this).wrapAll(e.call(this,b4))})}if(this[0]){var b3=bJ(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){b3.insertBefore(this[0])}b3.map(function(){var b4=this;while(b4.firstChild&&b4.firstChild.nodeType===1){b4=b4.firstChild}return b4}).append(this)}return this},wrapInner:function(e){if(bJ.isFunction(e)){return this.each(function(b3){bJ(this).wrapInner(e.call(this,b3))})}return this.each(function(){var b3=bJ(this),b4=b3.contents();if(b4.length){b4.wrapAll(e)}else{b3.append(e)}})},wrap:function(e){var b3=bJ.isFunction(e);return this.each(function(b4){bJ(this).wrapAll(b3?e.call(this,b4):e)})},unwrap:function(){return this.parent().each(function(){if(!bJ.nodeName(this,"body")){bJ(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){this.appendChild(e)}})},prepend:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){this.insertBefore(e,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(e){if(this.parentNode){this.parentNode.insertBefore(e,this)}})},after:function(){return this.domManip(arguments,false,function(e){if(this.parentNode){this.parentNode.insertBefore(e,this.nextSibling)}})},remove:function(e,b5){var b4,b3=0;for(;(b4=this[b3])!=null;b3++){if(!e||bJ.filter(e,[b4]).length>0){if(!b5&&b4.nodeType===1){bJ.cleanData(k(b4))}if(b4.parentNode){if(b5&&bJ.contains(b4.ownerDocument,b4)){bs(k(b4,"script"))}b4.parentNode.removeChild(b4)}}}return this},empty:function(){var b3,e=0;for(;(b3=this[e])!=null;e++){if(b3.nodeType===1){bJ.cleanData(k(b3,false))}while(b3.firstChild){b3.removeChild(b3.firstChild)}if(b3.options&&bJ.nodeName(b3,"select")){b3.options.length=0}}return this},clone:function(b3,e){b3=b3==null?false:b3;e=e==null?b3:e;return this.map(function(){return bJ.clone(this,b3,e)})},html:function(e){return bJ.access(this,function(b6){var b5=this[0]||{},b4=0,b3=this.length;if(b6===aG){return b5.nodeType===1?b5.innerHTML.replace(aA,""):aG}if(typeof b6==="string"&&!al.test(b6)&&(bJ.support.htmlSerialize||!J.test(b6))&&(bJ.support.leadingWhitespace||!b2.test(b6))&&!T[(m.exec(b6)||["",""])[1].toLowerCase()]){b6=b6.replace(aD,"<$1></$2>");try{for(;b4<b3;b4++){b5=this[b4]||{};if(b5.nodeType===1){bJ.cleanData(k(b5,false));b5.innerHTML=b6}}b5=0}catch(b7){}}if(b5){this.empty().append(b6)}},null,e,arguments.length)},replaceWith:function(b3){var e=bJ.isFunction(b3);if(!e&&typeof b3!=="string"){b3=bJ(b3).not(this).detach()}return this.domManip([b3],true,function(b6){var b5=this.nextSibling,b4=this.parentNode;if(b4){bJ(this).remove();b4.insertBefore(b6,b5)}})},detach:function(e){return this.remove(e,true)},domManip:function(ca,cg,cf){ca=aI.apply([],ca);var b8,b4,e,b6,cd,b9,b7=0,b5=this.length,cc=this,ce=b5-1,cb=ca[0],b3=bJ.isFunction(cb);if(b3||!(b5<=1||typeof cb!=="string"||bJ.support.checkClone||!bU.test(cb))){return this.each(function(ci){var ch=cc.eq(ci);if(b3){ca[0]=cb.call(this,ci,cg?ch.html():aG)}ch.domManip(ca,cg,cf)})}if(b5){b9=bJ.buildFragment(ca,this[0].ownerDocument,false,this);b8=b9.firstChild;if(b9.childNodes.length===1){b9=b8}if(b8){cg=cg&&bJ.nodeName(b8,"tr");b6=bJ.map(k(b9,"script"),t);e=b6.length;for(;b7<b5;b7++){b4=b9;if(b7!==ce){b4=bJ.clone(b4,true,true);if(e){bJ.merge(b6,k(b4,"script"))}}cf.call(cg&&bJ.nodeName(this[b7],"table")?x(this[b7],"tbody"):this[b7],b4,b7)}if(e){cd=b6[b6.length-1].ownerDocument;bJ.map(b6,bc);for(b7=0;b7<e;b7++){b4=b6[b7];if(bz.test(b4.type||"")&&!bJ._data(b4,"globalEval")&&bJ.contains(cd,b4)){if(b4.src){bJ.ajax({url:b4.src,type:"GET",dataType:"script",async:false,global:false,"throws":true})}else{bJ.globalEval((b4.text||b4.textContent||b4.innerHTML||"").replace(aK,""))}}}}b9=b8=null}}return this}});function x(b3,e){return b3.getElementsByTagName(e)[0]||b3.appendChild(b3.ownerDocument.createElement(e))}function t(b3){var e=b3.getAttributeNode("type");b3.type=(e&&e.specified)+"/"+b3.type;return b3}function bc(b3){var e=ar.exec(b3.type);if(e){b3.type=e[1]}else{b3.removeAttribute("type")}return b3}function bs(e,b4){var b5,b3=0;for(;(b5=e[b3])!=null;b3++){bJ._data(b5,"globalEval",!b4||bJ._data(b4[b3],"globalEval"))}}function at(b9,b3){if(b3.nodeType!==1||!bJ.hasData(b9)){return}var b6,b5,e,b8=bJ._data(b9),b7=bJ._data(b3,b8),b4=b8.events;if(b4){delete b7.handle;b7.events={};for(b6 in b4){for(b5=0,e=b4[b6].length;b5<e;b5++){bJ.event.add(b3,b6,b4[b6][b5])}}}if(b7.data){b7.data=bJ.extend({},b7.data)}}function Q(b6,b3){var b7,b5,b4;if(b3.nodeType!==1){return}b7=b3.nodeName.toLowerCase();if(!bJ.support.noCloneEvent&&b3[bJ.expando]){b4=bJ._data(b3);for(b5 in b4.events){bJ.removeEvent(b3,b5,b4.handle)}b3.removeAttribute(bJ.expando)}if(b7==="script"&&b3.text!==b6.text){t(b3).text=b6.text;bc(b3)}else{if(b7==="object"){if(b3.parentNode){b3.outerHTML=b6.outerHTML}if(bJ.support.html5Clone&&(b6.innerHTML&&!bJ.trim(b3.innerHTML))){b3.innerHTML=b6.innerHTML}}else{if(b7==="input"&&q.test(b6.type)){b3.defaultChecked=b3.checked=b6.checked;if(b3.value!==b6.value){b3.value=b6.value}}else{if(b7==="option"){b3.defaultSelected=b3.selected=b6.defaultSelected}else{if(b7==="input"||b7==="textarea"){b3.defaultValue=b6.defaultValue}}}}}}bJ.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,b3){bJ.fn[e]=function(b4){var b5,b7=0,b6=[],b9=bJ(b4),b8=b9.length-1;for(;b7<=b8;b7++){b5=b7===b8?this:this.clone(true);bJ(b9[b7])[b3](b5);ao.apply(b6,b5.get())}return this.pushStack(b6)}});function k(b5,e){var b3,b6,b4=0,b7=typeof b5.getElementsByTagName!==aC?b5.getElementsByTagName(e||"*"):typeof b5.querySelectorAll!==aC?b5.querySelectorAll(e||"*"):aG;if(!b7){for(b7=[],b3=b5.childNodes||b5;(b6=b3[b4])!=null;b4++){if(!e||bJ.nodeName(b6,e)){b7.push(b6)}else{bJ.merge(b7,k(b6,e))}}}return e===aG||e&&bJ.nodeName(b5,e)?bJ.merge([b5],b7):b7}function bV(e){if(q.test(e.type)){e.defaultChecked=e.checked}}bJ.extend({clone:function(b3,b5,e){var b7,b4,ca,b6,b8,b9=bJ.contains(b3.ownerDocument,b3);if(bJ.support.html5Clone||bJ.isXMLDoc(b3)||!J.test("<"+b3.nodeName+">")){ca=b3.cloneNode(true)}else{j.innerHTML=b3.outerHTML;j.removeChild(ca=j.firstChild)}if((!bJ.support.noCloneEvent||!bJ.support.noCloneChecked)&&(b3.nodeType===1||b3.nodeType===11)&&!bJ.isXMLDoc(b3)){b7=k(ca);b8=k(b3);for(b6=0;(b4=b8[b6])!=null;++b6){if(b7[b6]){Q(b4,b7[b6])}}}if(b5){if(e){b8=b8||k(b3);b7=b7||k(ca);for(b6=0;(b4=b8[b6])!=null;b6++){at(b4,b7[b6])}}else{at(b3,ca)}}b7=k(ca,"script");if(b7.length>0){bs(b7,!b9&&k(b3,"script"))}b7=b8=b4=null;return ca},buildFragment:function(b3,b5,ca,cf){var cb,b7,b9,ce,cg,cd,b4,b8=b3.length,b6=A(b5),e=[],cc=0;for(;cc<b8;cc++){b7=b3[cc];if(b7||b7===0){if(bJ.type(b7)==="object"){bJ.merge(e,b7.nodeType?[b7]:b7)}else{if(!I.test(b7)){e.push(b5.createTextNode(b7))}else{ce=ce||b6.appendChild(b5.createElement("div"));cg=(m.exec(b7)||["",""])[1].toLowerCase();b4=T[cg]||T._default;ce.innerHTML=b4[1]+b7.replace(aD,"<$1></$2>")+b4[2];cb=b4[0];while(cb--){ce=ce.lastChild}if(!bJ.support.leadingWhitespace&&b2.test(b7)){e.push(b5.createTextNode(b2.exec(b7)[0]))}if(!bJ.support.tbody){b7=cg==="table"&&!bX.test(b7)?ce.firstChild:b4[1]==="<table>"&&!bX.test(b7)?ce:0;cb=b7&&b7.childNodes.length;while(cb--){if(bJ.nodeName((cd=b7.childNodes[cb]),"tbody")&&!cd.childNodes.length){b7.removeChild(cd)}}}bJ.merge(e,ce.childNodes);ce.textContent="";while(ce.firstChild){ce.removeChild(ce.firstChild)}ce=b6.lastChild}}}}if(ce){b6.removeChild(ce)}if(!bJ.support.appendChecked){bJ.grep(k(e,"input"),bV)}cc=0;while((b7=e[cc++])){if(cf&&bJ.inArray(b7,cf)!==-1){continue}b9=bJ.contains(b7.ownerDocument,b7);ce=k(b6.appendChild(b7),"script");if(b9){bs(ce)}if(ca){cb=0;while((b7=ce[cb++])){if(bz.test(b7.type||"")){ca.push(b7)}}}}ce=null;return b6},cleanData:function(b3,cb){var b5,ca,b4,b6,b7=0,cc=bJ.expando,e=bJ.cache,b8=bJ.support.deleteExpando,b9=bJ.event.special;for(;(b5=b3[b7])!=null;b7++){if(cb||bJ.acceptData(b5)){b4=b5[cc];b6=b4&&e[b4];if(b6){if(b6.events){for(ca in b6.events){if(b9[ca]){bJ.event.remove(b5,ca)}else{bJ.removeEvent(b5,ca,b6.handle)}}}if(e[b4]){delete e[b4];if(b8){delete b5[cc]}else{if(typeof b5.removeAttribute!==aC){b5.removeAttribute(cc)}else{b5[cc]=null}}a6.push(b4)}}}}}});var aE,bo,E,bg=/alpha\([^)]*\)/i,aT=/opacity\s*=\s*([^)]*)/,bn=/^(top|right|bottom|left)$/,F=/^(none|table(?!-c[ea]).+)/,aY=/^margin/,a9=new RegExp("^("+bA+")(.*)$","i"),W=new RegExp("^("+bA+")(?!px)[a-z%]+$","i"),S=new RegExp("^([+-])=("+bA+")","i"),bj={BODY:"block"},bb={position:"absolute",visibility:"hidden",display:"block"},bC={letterSpacing:0,fontWeight:400},bT=["Top","Right","Bottom","Left"],av=["Webkit","O","Moz","ms"];function b(b5,b3){if(b3 in b5){return b3}var b6=b3.charAt(0).toUpperCase()+b3.slice(1),e=b3,b4=av.length;while(b4--){b3=av[b4]+b6;if(b3 in b5){return b3}}return e}function P(b3,e){b3=e||b3;return bJ.css(b3,"display")==="none"||!bJ.contains(b3.ownerDocument,b3)}function p(b8,e){var b9,b6,b7,b3=[],b4=0,b5=b8.length;for(;b4<b5;b4++){b6=b8[b4];if(!b6.style){continue}b3[b4]=bJ._data(b6,"olddisplay");b9=b6.style.display;if(e){if(!b3[b4]&&b9==="none"){b6.style.display=""}if(b6.style.display===""&&P(b6)){b3[b4]=bJ._data(b6,"olddisplay",bE(b6.nodeName))}}else{if(!b3[b4]){b7=P(b6);if(b9&&b9!=="none"||!b7){bJ._data(b6,"olddisplay",b7?b9:bJ.css(b6,"display"))}}}}for(b4=0;b4<b5;b4++){b6=b8[b4];if(!b6.style){continue}if(!e||b6.style.display==="none"||b6.style.display===""){b6.style.display=e?b3[b4]||"":"none"}}return b8}bJ.fn.extend({css:function(e,b3){return bJ.access(this,function(b8,b5,b9){var b4,b7,ca={},b6=0;if(bJ.isArray(b5)){b7=bo(b8);b4=b5.length;for(;b6<b4;b6++){ca[b5[b6]]=bJ.css(b8,b5[b6],false,b7)}return ca}return b9!==aG?bJ.style(b8,b5,b9):bJ.css(b8,b5)},e,b3,arguments.length>1)},show:function(){return p(this,true)},hide:function(){return p(this)},toggle:function(b3){var e=typeof b3==="boolean";return this.each(function(){if(e?b3:P(this)){bJ(this).show()}else{bJ(this).hide()}})}});bJ.extend({cssHooks:{opacity:{get:function(b4,b3){if(b3){var e=E(b4,"opacity");return e===""?"1":e}}}},cssNumber:{columnCount:true,fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":bJ.support.cssFloat?"cssFloat":"styleFloat"},style:function(b5,b4,cb,b6){if(!b5||b5.nodeType===3||b5.nodeType===8||!b5.style){return}var b9,ca,cc,b7=bJ.camelCase(b4),b3=b5.style;b4=bJ.cssProps[b7]||(bJ.cssProps[b7]=b(b3,b7));cc=bJ.cssHooks[b4]||bJ.cssHooks[b7];if(cb!==aG){ca=typeof cb;if(ca==="string"&&(b9=S.exec(cb))){cb=(b9[1]+1)*b9[2]+parseFloat(bJ.css(b5,b4));ca="number"}if(cb==null||ca==="number"&&isNaN(cb)){return}if(ca==="number"&&!bJ.cssNumber[b7]){cb+="px"}if(!bJ.support.clearCloneStyle&&cb===""&&b4.indexOf("background")===0){b3[b4]="inherit"}if(!cc||!("set" in cc)||(cb=cc.set(b5,cb,b6))!==aG){try{b3[b4]=cb}catch(b8){}}}else{if(cc&&"get" in cc&&(b9=cc.get(b5,false,b6))!==aG){return b9}return b3[b4]}},css:function(b8,b6,b3,b7){var b5,b9,e,b4=bJ.camelCase(b6);b6=bJ.cssProps[b4]||(bJ.cssProps[b4]=b(b8.style,b4));e=bJ.cssHooks[b6]||bJ.cssHooks[b4];if(e&&"get" in e){b9=e.get(b8,true,b3)}if(b9===aG){b9=E(b8,b6,b7)}if(b9==="normal"&&b6 in bC){b9=bC[b6]}if(b3===""||b3){b5=parseFloat(b9);return b3===true||bJ.isNumeric(b5)?b5||0:b9}return b9},swap:function(b7,b6,b8,b5){var b4,b3,e={};for(b3 in b6){e[b3]=b7.style[b3];b7.style[b3]=b6[b3]}b4=b8.apply(b7,b5||[]);for(b3 in b6){b7.style[b3]=e[b3]}return b4}});if(a2.getComputedStyle){bo=function(e){return a2.getComputedStyle(e,null)};E=function(b6,b4,b8){var b5,b3,ca,b7=b8||bo(b6),b9=b7?b7.getPropertyValue(b4)||b7[b4]:aG,e=b6.style;if(b7){if(b9===""&&!bJ.contains(b6.ownerDocument,b6)){b9=bJ.style(b6,b4)}if(W.test(b9)&&aY.test(b4)){b5=e.width;b3=e.minWidth;ca=e.maxWidth;e.minWidth=e.maxWidth=e.width=b9;b9=b7.width;e.width=b5;e.minWidth=b3;e.maxWidth=ca}}return b9}}else{if(l.documentElement.currentStyle){bo=function(e){return e.currentStyle};E=function(b5,b3,b8){var b4,b7,b9,b6=b8||bo(b5),ca=b6?b6[b3]:aG,e=b5.style;if(ca==null&&e&&e[b3]){ca=e[b3]}if(W.test(ca)&&!bn.test(b3)){b4=e.left;b7=b5.runtimeStyle;b9=b7&&b7.left;if(b9){b7.left=b5.currentStyle.left}e.left=b3==="fontSize"?"1em":ca;ca=e.pixelLeft+"px";e.left=b4;if(b9){b7.left=b9}}return ca===""?"auto":ca}}}function aJ(e,b4,b5){var b3=a9.exec(b4);return b3?Math.max(0,b3[1]-(b5||0))+(b3[2]||"px"):b4}function aw(b6,b3,e,b8,b5){var b4=e===(b8?"border":"content")?4:b3==="width"?1:0,b7=0;for(;b4<4;b4+=2){if(e==="margin"){b7+=bJ.css(b6,e+bT[b4],true,b5)}if(b8){if(e==="content"){b7-=bJ.css(b6,"padding"+bT[b4],true,b5)}if(e!=="margin"){b7-=bJ.css(b6,"border"+bT[b4]+"Width",true,b5)}}else{b7+=bJ.css(b6,"padding"+bT[b4],true,b5);if(e!=="padding"){b7+=bJ.css(b6,"border"+bT[b4]+"Width",true,b5)}}}return b7}function u(b6,b3,e){var b5=true,b7=b3==="width"?b6.offsetWidth:b6.offsetHeight,b4=bo(b6),b8=bJ.support.boxSizing&&bJ.css(b6,"boxSizing",false,b4)==="border-box";if(b7<=0||b7==null){b7=E(b6,b3,b4);if(b7<0||b7==null){b7=b6.style[b3]}if(W.test(b7)){return b7}b5=b8&&(bJ.support.boxSizingReliable||b7===b6.style[b3]);b7=parseFloat(b7)||0}return(b7+aw(b6,b3,e||(b8?"border":"content"),b5,b4))+"px"}function bE(b4){var b3=l,e=bj[b4];if(!e){e=a1(b4,b3);if(e==="none"||!e){aE=(aE||bJ("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(b3.documentElement);b3=(aE[0].contentWindow||aE[0].contentDocument).document;b3.write("<!doctype html><html><body>");b3.close();e=a1(b4,b3);aE.detach()}bj[b4]=e}return e}function a1(e,b5){var b3=bJ(b5.createElement(e)).appendTo(b5.body),b4=bJ.css(b3[0],"display");b3.remove();return b4}bJ.each(["height","width"],function(b3,e){bJ.cssHooks[e]={get:function(b6,b5,b4){if(b5){return b6.offsetWidth===0&&F.test(bJ.css(b6,"display"))?bJ.swap(b6,bb,function(){return u(b6,e,b4)}):u(b6,e,b4)}},set:function(b6,b7,b4){var b5=b4&&bo(b6);return aJ(b6,b7,b4?aw(b6,e,b4,bJ.support.boxSizing&&bJ.css(b6,"boxSizing",false,b5)==="border-box",b5):0)}}});if(!bJ.support.opacity){bJ.cssHooks.opacity={get:function(b3,e){return aT.test((e&&b3.currentStyle?b3.currentStyle.filter:b3.style.filter)||"")?(0.01*parseFloat(RegExp.$1))+"":e?"1":""},set:function(b6,b7){var b5=b6.style,b3=b6.currentStyle,e=bJ.isNumeric(b7)?"alpha(opacity="+b7*100+")":"",b4=b3&&b3.filter||b5.filter||"";b5.zoom=1;if((b7>=1||b7==="")&&bJ.trim(b4.replace(bg,""))===""&&b5.removeAttribute){b5.removeAttribute("filter");if(b7===""||b3&&!b3.filter){return}}b5.filter=bg.test(b4)?b4.replace(bg,e):b4+" "+e}}}bJ(function(){if(!bJ.support.reliableMarginRight){bJ.cssHooks.marginRight={get:function(b3,e){if(e){return bJ.swap(b3,{display:"inline-block"},E,[b3,"marginRight"])}}}}if(!bJ.support.pixelPosition&&bJ.fn.position){bJ.each(["top","left"],function(e,b3){bJ.cssHooks[b3]={get:function(b5,b4){if(b4){b4=E(b5,b3);return W.test(b4)?bJ(b5).position()[b3]+"px":b4}}}})}});if(bJ.expr&&bJ.expr.filters){bJ.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||(!bJ.support.reliableHiddenOffsets&&((e.style&&e.style.display)||bJ.css(e,"display"))==="none")};bJ.expr.filters.visible=function(e){return !bJ.expr.filters.hidden(e)}}bJ.each({margin:"",padding:"",border:"Width"},function(e,b3){bJ.cssHooks[e+b3]={expand:function(b6){var b5=0,b4={},b7=typeof b6==="string"?b6.split(" "):[b6];for(;b5<4;b5++){b4[e+bT[b5]+b3]=b7[b5]||b7[b5-2]||b7[0]}return b4}};if(!aY.test(e)){bJ.cssHooks[e+b3].set=aJ}});var bv=/%20/g,aR=/\[\]$/,U=/\r?\n/g,c=/^(?:submit|button|image|reset|file)$/i,au=/^(?:input|select|textarea|keygen)/i;bJ.fn.extend({serialize:function(){return bJ.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=bJ.prop(this,"elements");return e?bJ.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!bJ(this).is(":disabled")&&au.test(this.nodeName)&&!c.test(e)&&(this.checked||!q.test(e))}).map(function(e,b3){var b4=bJ(this).val();return b4==null?null:bJ.isArray(b4)?bJ.map(b4,function(b5){return{name:b3.name,value:b5.replace(U,"\r\n")}}):{name:b3.name,value:b4.replace(U,"\r\n")}}).get()}});bJ.param=function(e,b4){var b5,b3=[],b6=function(b7,b8){b8=bJ.isFunction(b8)?b8():(b8==null?"":b8);b3[b3.length]=encodeURIComponent(b7)+"="+encodeURIComponent(b8)};if(b4===aG){b4=bJ.ajaxSettings&&bJ.ajaxSettings.traditional}if(bJ.isArray(e)||(e.jquery&&!bJ.isPlainObject(e))){bJ.each(e,function(){b6(this.name,this.value)})}else{for(b5 in e){i(b5,e[b5],b4,b6)}}return b3.join("&").replace(bv,"+")};function i(b4,b6,b3,b5){var e;if(bJ.isArray(b6)){bJ.each(b6,function(b8,b7){if(b3||aR.test(b4)){b5(b4,b7)}else{i(b4+"["+(typeof b7==="object"?b8:"")+"]",b7,b3,b5)}})}else{if(!b3&&bJ.type(b6)==="object"){for(e in b6){i(b4+"["+e+"]",b6[e],b3,b5)}}else{b5(b4,b6)}}}bJ.each(("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu").split(" "),function(b3,e){bJ.fn[e]=function(b5,b4){return arguments.length>0?this.on(e,null,b5,b4):this.trigger(e)}});bJ.fn.hover=function(e,b3){return this.mouseenter(e).mouseleave(b3||e)};var b1,Y,bO=bJ.now(),az=/\?/,ap=/#.*$/,O=/([?&])_=[^&]*/,ag=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,B=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,o=/^(?:GET|HEAD)$/,aH=/^\/\//,aU=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,b0=bJ.fn.load,v={},a7={},aW="*/".concat("*");try{Y=aL.href}catch(bf){Y=l.createElement("a");Y.href="";Y=Y.href}b1=aU.exec(Y.toLowerCase())||[];function bL(e){return function(b6,b7){if(typeof b6!=="string"){b7=b6;b6="*"}var b3,b4=0,b5=b6.toLowerCase().match(ac)||[];if(bJ.isFunction(b7)){while((b3=b5[b4++])){if(b3[0]==="+"){b3=b3.slice(1)||"*";(e[b3]=e[b3]||[]).unshift(b7)}else{(e[b3]=e[b3]||[]).push(b7)}}}}}function n(e,b4,b8,b5){var b3={},b6=(e===a7);function b7(b9){var ca;b3[b9]=true;bJ.each(e[b9]||[],function(cc,cb){var cd=cb(b4,b8,b5);if(typeof cd==="string"&&!b6&&!b3[cd]){b4.dataTypes.unshift(cd);b7(cd);return false}else{if(b6){return !(ca=cd)}}});return ca}return b7(b4.dataTypes[0])||!b3["*"]&&b7("*")}function r(b4,b5){var e,b3,b6=bJ.ajaxSettings.flatOptions||{};for(b3 in b5){if(b5[b3]!==aG){(b6[b3]?b4:(e||(e={})))[b3]=b5[b3]}}if(e){bJ.extend(true,b4,e)}return b4}bJ.fn.load=function(b5,b8,b9){if(typeof b5!=="string"&&b0){return b0.apply(this,arguments)}var e,b4,b6,b3=this,b7=b5.indexOf(" ");if(b7>=0){e=b5.slice(b7,b5.length);b5=b5.slice(0,b7)}if(bJ.isFunction(b8)){b9=b8;b8=aG}else{if(b8&&typeof b8==="object"){b6="POST"}}if(b3.length>0){bJ.ajax({url:b5,type:b6,dataType:"html",data:b8}).done(function(ca){b4=arguments;b3.html(e?bJ("<div>").append(bJ.parseHTML(ca)).find(e):ca)}).complete(b9&&function(cb,ca){b3.each(b9,b4||[cb.responseText,ca,cb])})}return this};bJ.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,b3){bJ.fn[b3]=function(b4){return this.on(b3,b4)}});bJ.each(["get","post"],function(e,b3){bJ[b3]=function(b4,b6,b7,b5){if(bJ.isFunction(b6)){b5=b5||b7;b7=b6;b6=aG}return bJ.ajax({url:b4,type:b3,dataType:b5,data:b6,success:b7})}});bJ.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Y,type:"GET",isLocal:B.test(b1[1]),global:true,processData:true,async:true,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":aW,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a2.String,"text html":true,"text json":bJ.parseJSON,"text xml":bJ.parseXML},flatOptions:{url:true,context:true}},ajaxSetup:function(b3,e){return e?r(r(b3,bJ.ajaxSettings),e):r(bJ.ajaxSettings,b3)},ajaxPrefilter:bL(v),ajaxTransport:bL(a7),ajax:function(b7,b4){if(typeof b7==="object"){b4=b7;b7=aG}b4=b4||{};var cg,ci,b8,cn,cc,b3,cj,b5,cb=bJ.ajaxSetup({},b4),cp=cb.context||cb,ce=cb.context&&(cp.nodeType||cp.jquery)?bJ(cp):bJ.event,co=bJ.Deferred(),cl=bJ.Callbacks("once memory"),b9=cb.statusCode||{},cf={},cm={},b6=0,ca="canceled",ch={readyState:0,getResponseHeader:function(cq){var e;if(b6===2){if(!b5){b5={};while((e=ag.exec(cn))){b5[e[1].toLowerCase()]=e[2]}}e=b5[cq.toLowerCase()]}return e==null?null:e},getAllResponseHeaders:function(){return b6===2?cn:null},setRequestHeader:function(cq,cr){var e=cq.toLowerCase();if(!b6){cq=cm[e]=cm[e]||cq;cf[cq]=cr}return this},overrideMimeType:function(e){if(!b6){cb.mimeType=e}return this},statusCode:function(cq){var e;if(cq){if(b6<2){for(e in cq){b9[e]=[b9[e],cq[e]]}}else{ch.always(cq[ch.status])}}return this},abort:function(cq){var e=cq||ca;if(cj){cj.abort(e)}cd(0,e);return this}};co.promise(ch).complete=cl.add;ch.success=ch.done;ch.error=ch.fail;cb.url=((b7||cb.url||Y)+"").replace(ap,"").replace(aH,b1[1]+"//");cb.type=b4.method||b4.type||cb.method||cb.type;cb.dataTypes=bJ.trim(cb.dataType||"*").toLowerCase().match(ac)||[""];if(cb.crossDomain==null){cg=aU.exec(cb.url.toLowerCase());cb.crossDomain=!!(cg&&(cg[1]!==b1[1]||cg[2]!==b1[2]||(cg[3]||(cg[1]==="http:"?80:443))!=(b1[3]||(b1[1]==="http:"?80:443))))}if(cb.data&&cb.processData&&typeof cb.data!=="string"){cb.data=bJ.param(cb.data,cb.traditional)}n(v,cb,b4,ch);if(b6===2){return ch}b3=cb.global;if(b3&&bJ.active++===0){bJ.event.trigger("ajaxStart")}cb.type=cb.type.toUpperCase();cb.hasContent=!o.test(cb.type);b8=cb.url;if(!cb.hasContent){if(cb.data){b8=(cb.url+=(az.test(b8)?"&":"?")+cb.data);delete cb.data}if(cb.cache===false){cb.url=O.test(b8)?b8.replace(O,"$1_="+bO++):b8+(az.test(b8)?"&":"?")+"_="+bO++}}if(cb.ifModified){if(bJ.lastModified[b8]){ch.setRequestHeader("If-Modified-Since",bJ.lastModified[b8])}if(bJ.etag[b8]){ch.setRequestHeader("If-None-Match",bJ.etag[b8])}}if(cb.data&&cb.hasContent&&cb.contentType!==false||b4.contentType){ch.setRequestHeader("Content-Type",cb.contentType)}ch.setRequestHeader("Accept",cb.dataTypes[0]&&cb.accepts[cb.dataTypes[0]]?cb.accepts[cb.dataTypes[0]]+(cb.dataTypes[0]!=="*"?", "+aW+"; q=0.01":""):cb.accepts["*"]);for(ci in cb.headers){ch.setRequestHeader(ci,cb.headers[ci])}if(cb.beforeSend&&(cb.beforeSend.call(cp,ch,cb)===false||b6===2)){return ch.abort()}ca="abort";for(ci in {success:1,error:1,complete:1}){ch[ci](cb[ci])}cj=n(a7,cb,b4,ch);if(!cj){cd(-1,"No Transport")}else{ch.readyState=1;if(b3){ce.trigger("ajaxSend",[ch,cb])}if(cb.async&&cb.timeout>0){cc=setTimeout(function(){ch.abort("timeout")},cb.timeout)}try{b6=1;cj.send(cf,cd)}catch(ck){if(b6<2){cd(-1,ck)}else{throw ck}}}function cd(cu,cq,cv,cs){var e,cy,cw,ct,cx,cr=cq;if(b6===2){return}b6=2;if(cc){clearTimeout(cc)}cj=aG;cn=cs||"";ch.readyState=cu>0?4:0;if(cv){ct=g(cb,ch,cv)}if(cu>=200&&cu<300||cu===304){if(cb.ifModified){cx=ch.getResponseHeader("Last-Modified");if(cx){bJ.lastModified[b8]=cx}cx=ch.getResponseHeader("etag");if(cx){bJ.etag[b8]=cx}}if(cu===204){e=true;cr="nocontent"}else{if(cu===304){e=true;cr="notmodified"}else{e=af(cb,ct);cr=e.state;cy=e.data;cw=e.error;e=!cw}}}else{cw=cr;if(cu||!cr){cr="error";if(cu<0){cu=0}}}ch.status=cu;ch.statusText=(cq||cr)+"";if(e){co.resolveWith(cp,[cy,cr,ch])}else{co.rejectWith(cp,[ch,cr,cw])}ch.statusCode(b9);b9=aG;if(b3){ce.trigger(e?"ajaxSuccess":"ajaxError",[ch,cb,e?cy:cw])}cl.fireWith(cp,[ch,cr]);if(b3){ce.trigger("ajaxComplete",[ch,cb]);if(!(--bJ.active)){bJ.event.trigger("ajaxStop")}}}return ch},getScript:function(e,b3){return bJ.get(e,aG,b3,"script")},getJSON:function(e,b3,b4){return bJ.get(e,b3,b4,"json")}});function g(cb,ca,b7){var e,b6,b5,b8,b3=cb.contents,b9=cb.dataTypes,b4=cb.responseFields;for(b8 in b4){if(b8 in b7){ca[b4[b8]]=b7[b8]}}while(b9[0]==="*"){b9.shift();if(b6===aG){b6=cb.mimeType||ca.getResponseHeader("Content-Type")}}if(b6){for(b8 in b3){if(b3[b8]&&b3[b8].test(b6)){b9.unshift(b8);break}}}if(b9[0] in b7){b5=b9[0]}else{for(b8 in b7){if(!b9[0]||cb.converters[b8+" "+b9[0]]){b5=b8;break}if(!e){e=b8}}b5=b5||e}if(b5){if(b5!==b9[0]){b9.unshift(b5)}return b7[b5]}}function af(cd,b5){var b3,b9,cb,b6,cc={},b7=0,ca=cd.dataTypes.slice(),b4=ca[0];if(cd.dataFilter){b5=cd.dataFilter(b5,cd.dataType)}if(ca[1]){for(cb in cd.converters){cc[cb.toLowerCase()]=cd.converters[cb]}}for(;(b9=ca[++b7]);){if(b9!=="*"){if(b4!=="*"&&b4!==b9){cb=cc[b4+" "+b9]||cc["* "+b9];if(!cb){for(b3 in cc){b6=b3.split(" ");if(b6[1]===b9){cb=cc[b4+" "+b6[0]]||cc["* "+b6[0]];if(cb){if(cb===true){cb=cc[b3]}else{if(cc[b3]!==true){b9=b6[0];ca.splice(b7--,0,b9)}}break}}}}if(cb!==true){if(cb&&cd["throws"]){b5=cb(b5)}else{try{b5=cb(b5)}catch(b8){return{state:"parsererror",error:cb?b8:"No conversion from "+b4+" to "+b9}}}}}b4=b9}}return{state:"success",data:b5}}bJ.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){bJ.globalEval(e);return e}}});bJ.ajaxPrefilter("script",function(e){if(e.cache===aG){e.cache=false}if(e.crossDomain){e.type="GET";e.global=false}});bJ.ajaxTransport("script",function(b4){if(b4.crossDomain){var e,b3=l.head||bJ("head")[0]||l.documentElement;return{send:function(b5,b6){e=l.createElement("script");e.async=true;if(b4.scriptCharset){e.charset=b4.scriptCharset}e.src=b4.url;e.onload=e.onreadystatechange=function(b8,b7){if(b7||!e.readyState||/loaded|complete/.test(e.readyState)){e.onload=e.onreadystatechange=null;if(e.parentNode){e.parentNode.removeChild(e)}e=null;if(!b7){b6(200,"success")}}};b3.insertBefore(e,b3.firstChild)},abort:function(){if(e){e.onload(aG,true)}}}}});var bq=[],a5=/(=)\?(?=&|$)|\?\?/;bJ.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=bq.pop()||(bJ.expando+"_"+(bO++));this[e]=true;return e}});bJ.ajaxPrefilter("json jsonp",function(b5,e,b6){var b8,b3,b4,b7=b5.jsonp!==false&&(a5.test(b5.url)?"url":typeof b5.data==="string"&&!(b5.contentType||"").indexOf("application/x-www-form-urlencoded")&&a5.test(b5.data)&&"data");if(b7||b5.dataTypes[0]==="jsonp"){b8=b5.jsonpCallback=bJ.isFunction(b5.jsonpCallback)?b5.jsonpCallback():b5.jsonpCallback;if(b7){b5[b7]=b5[b7].replace(a5,"$1"+b8)}else{if(b5.jsonp!==false){b5.url+=(az.test(b5.url)?"&":"?")+b5.jsonp+"="+b8}}b5.converters["script json"]=function(){if(!b4){bJ.error(b8+" was not called")}return b4[0]};b5.dataTypes[0]="json";b3=a2[b8];a2[b8]=function(){b4=arguments};b6.always(function(){a2[b8]=b3;if(b5[b8]){b5.jsonpCallback=e.jsonpCallback;bq.push(b8)}if(b4&&bJ.isFunction(b3)){b3(b4[0])}b4=b3=aG});return"script"}});var ah,ax,ay=0,aP=a2.ActiveXObject&&function(){var e;for(e in ah){ah[e](aG,true)}};function bD(){try{return new a2.XMLHttpRequest()}catch(b3){}}function bd(){try{return new a2.ActiveXObject("Microsoft.XMLHTTP")}catch(b3){}}bJ.ajaxSettings.xhr=a2.ActiveXObject?function(){return !this.isLocal&&bD()||bd()}:bD;ax=bJ.ajaxSettings.xhr();bJ.support.cors=!!ax&&("withCredentials" in ax);ax=bJ.support.ajax=!!ax;if(ax){bJ.ajaxTransport(function(e){if(!e.crossDomain||bJ.support.cors){var b3;return{send:function(b9,b4){var b7,b5,b8=e.xhr();if(e.username){b8.open(e.type,e.url,e.async,e.username,e.password)}else{b8.open(e.type,e.url,e.async)}if(e.xhrFields){for(b5 in e.xhrFields){b8[b5]=e.xhrFields[b5]}}if(e.mimeType&&b8.overrideMimeType){b8.overrideMimeType(e.mimeType)}if(!e.crossDomain&&!b9["X-Requested-With"]){b9["X-Requested-With"]="XMLHttpRequest"}try{for(b5 in b9){b8.setRequestHeader(b5,b9[b5])}}catch(b6){}b8.send((e.hasContent&&e.data)||null);b3=function(cc,cb){var ca,cd,cg,ce;try{if(b3&&(cb||b8.readyState===4)){b3=aG;if(b7){b8.onreadystatechange=bJ.noop;if(aP){delete ah[b7]}}if(cb){if(b8.readyState!==4){b8.abort()}}else{ce={};ca=b8.status;cd=b8.getAllResponseHeaders();if(typeof b8.responseText==="string"){ce.text=b8.responseText}try{cg=b8.statusText}catch(cf){cg=""}if(!ca&&e.isLocal&&!e.crossDomain){ca=ce.text?200:404}else{if(ca===1223){ca=204}}}}}catch(ch){if(!cb){b4(-1,ch)}}if(ce){b4(ca,cg,ce,cd)}};if(!e.async){b3()}else{if(b8.readyState===4){setTimeout(b3)}else{b7=++ay;if(aP){if(!ah){ah={};bJ(a2).unload(aP)}ah[b7]=b3}b8.onreadystatechange=b3}}},abort:function(){if(b3){b3(aG,true)}}}}})}var K,ad,bR=/^(?:toggle|show|hide)$/,bK=new RegExp("^(?:([+-])=|)("+bA+")([a-z%]*)$","i"),bQ=/queueHooks$/,aB=[h],a0={"*":[function(e,b9){var b5,ca,cb=this.createTween(e,b9),b6=bK.exec(b9),b7=cb.cur(),b3=+b7||0,b4=1,b8=20;if(b6){b5=+b6[2];ca=b6[3]||(bJ.cssNumber[e]?"":"px");if(ca!=="px"&&b3){b3=bJ.css(cb.elem,e,true)||b5||1;do{b4=b4||".5";b3=b3/b4;bJ.style(cb.elem,e,b3+ca)}while(b4!==(b4=cb.cur()/b7)&&b4!==1&&--b8)}cb.unit=ca;cb.start=b3;cb.end=b6[1]?b3+(b6[1]+1)*b5:b5}return cb}]};function bm(){setTimeout(function(){K=aG});return(K=bJ.now())}function be(b3,e){bJ.each(e,function(b8,b6){var b7=(a0[b8]||[]).concat(a0["*"]),b4=0,b5=b7.length;for(;b4<b5;b4++){if(b7[b4].call(b3,b8,b6)){return}}})}function f(b4,b8,cb){var cc,e,b7=0,b3=aB.length,ca=bJ.Deferred().always(function(){delete b6.elem}),b6=function(){if(e){return false}var ci=K||bm(),cf=Math.max(0,b5.startTime+b5.duration-ci),cd=cf/b5.duration||0,ch=1-cd,ce=0,cg=b5.tweens.length;for(;ce<cg;ce++){b5.tweens[ce].run(ch)}ca.notifyWith(b4,[b5,ch,cf]);if(ch<1&&cg){return cf}else{ca.resolveWith(b4,[b5]);return false}},b5=ca.promise({elem:b4,props:bJ.extend({},b8),opts:bJ.extend(true,{specialEasing:{}},cb),originalProperties:b8,originalOptions:cb,startTime:K||bm(),duration:cb.duration,tweens:[],createTween:function(cf,cd){var ce=bJ.Tween(b4,b5.opts,cf,cd,b5.opts.specialEasing[cf]||b5.opts.easing);b5.tweens.push(ce);return ce},stop:function(ce){var cd=0,cf=ce?b5.tweens.length:0;if(e){return this}e=true;for(;cd<cf;cd++){b5.tweens[cd].run(1)}if(ce){ca.resolveWith(b4,[b5,ce])}else{ca.rejectWith(b4,[b5,ce])}return this}}),b9=b5.props;am(b9,b5.opts.specialEasing);for(;b7<b3;b7++){cc=aB[b7].call(b5,b4,b9,b5.opts);if(cc){return cc}}be(b5,b9);if(bJ.isFunction(b5.opts.start)){b5.opts.start.call(b4,b5)}bJ.fx.timer(bJ.extend(b6,{elem:b4,anim:b5,queue:b5.opts.queue}));return b5.progress(b5.opts.progress).done(b5.opts.done,b5.opts.complete).fail(b5.opts.fail).always(b5.opts.always)}function am(b5,b7){var b6,b4,b3,b8,e;for(b3 in b5){b4=bJ.camelCase(b3);b8=b7[b4];b6=b5[b3];if(bJ.isArray(b6)){b8=b6[1];b6=b5[b3]=b6[0]}if(b3!==b4){b5[b4]=b6;delete b5[b3]}e=bJ.cssHooks[b4];if(e&&"expand" in e){b6=e.expand(b6);delete b5[b4];for(b3 in b6){if(!(b3 in b5)){b5[b3]=b6[b3];b7[b3]=b8}}}else{b7[b4]=b8}}}bJ.Animation=bJ.extend(f,{tweener:function(b3,b6){if(bJ.isFunction(b3)){b6=b3;b3=["*"]}else{b3=b3.split(" ")}var b5,e=0,b4=b3.length;for(;e<b4;e++){b5=b3[e];a0[b5]=a0[b5]||[];a0[b5].unshift(b6)}},prefilter:function(b3,e){if(e){aB.unshift(b3)}else{aB.push(b3)}}});function h(b6,cc,e){var b4,cb,b5,ce,ci,b8,ch,cg,cf,b7=this,b3=b6.style,cd={},ca=[],b9=b6.nodeType&&P(b6);if(!e.queue){cg=bJ._queueHooks(b6,"fx");if(cg.unqueued==null){cg.unqueued=0;cf=cg.empty.fire;cg.empty.fire=function(){if(!cg.unqueued){cf()}}}cg.unqueued++;b7.always(function(){b7.always(function(){cg.unqueued--;if(!bJ.queue(b6,"fx").length){cg.empty.fire()}})})}if(b6.nodeType===1&&("height" in cc||"width" in cc)){e.overflow=[b3.overflow,b3.overflowX,b3.overflowY];if(bJ.css(b6,"display")==="inline"&&bJ.css(b6,"float")==="none"){if(!bJ.support.inlineBlockNeedsLayout||bE(b6.nodeName)==="inline"){b3.display="inline-block"}else{b3.zoom=1}}}if(e.overflow){b3.overflow="hidden";if(!bJ.support.shrinkWrapBlocks){b7.always(function(){b3.overflow=e.overflow[0];b3.overflowX=e.overflow[1];b3.overflowY=e.overflow[2]})}}for(cb in cc){ce=cc[cb];if(bR.exec(ce)){delete cc[cb];b8=b8||ce==="toggle";if(ce===(b9?"hide":"show")){continue}ca.push(cb)}}b5=ca.length;if(b5){ci=bJ._data(b6,"fxshow")||bJ._data(b6,"fxshow",{});if("hidden" in ci){b9=ci.hidden}if(b8){ci.hidden=!b9}if(b9){bJ(b6).show()}else{b7.done(function(){bJ(b6).hide()})}b7.done(function(){var cj;bJ._removeData(b6,"fxshow");for(cj in cd){bJ.style(b6,cj,cd[cj])}});for(cb=0;cb<b5;cb++){b4=ca[cb];ch=b7.createTween(b4,b9?ci[b4]:0);cd[b4]=ci[b4]||bJ.style(b6,b4);if(!(b4 in ci)){ci[b4]=ch.start;if(b9){ch.end=ch.start;ch.start=b4==="width"||b4==="height"?1:0}}}}}function G(b4,b3,b6,e,b5){return new G.prototype.init(b4,b3,b6,e,b5)}bJ.Tween=G;G.prototype={constructor:G,init:function(b5,b3,b7,e,b6,b4){this.elem=b5;this.prop=b7;this.easing=b6||"swing";this.options=b3;this.start=this.now=this.cur();this.end=e;this.unit=b4||(bJ.cssNumber[b7]?"":"px")},cur:function(){var e=G.propHooks[this.prop];return e&&e.get?e.get(this):G.propHooks._default.get(this)},run:function(b4){var b3,e=G.propHooks[this.prop];if(this.options.duration){this.pos=b3=bJ.easing[this.easing](b4,this.options.duration*b4,0,1,this.options.duration)}else{this.pos=b3=b4}this.now=(this.end-this.start)*b3+this.start;if(this.options.step){this.options.step.call(this.elem,this.now,this)}if(e&&e.set){e.set(this)}else{G.propHooks._default.set(this)}return this}};G.prototype.init.prototype=G.prototype;G.propHooks={_default:{get:function(b3){var e;if(b3.elem[b3.prop]!=null&&(!b3.elem.style||b3.elem.style[b3.prop]==null)){return b3.elem[b3.prop]}e=bJ.css(b3.elem,b3.prop,"");return !e||e==="auto"?0:e},set:function(e){if(bJ.fx.step[e.prop]){bJ.fx.step[e.prop](e)}else{if(e.elem.style&&(e.elem.style[bJ.cssProps[e.prop]]!=null||bJ.cssHooks[e.prop])){bJ.style(e.elem,e.prop,e.now+e.unit)}else{e.elem[e.prop]=e.now}}}}};G.propHooks.scrollTop=G.propHooks.scrollLeft={set:function(e){if(e.elem.nodeType&&e.elem.parentNode){e.elem[e.prop]=e.now}}};bJ.each(["toggle","show","hide"],function(b3,e){var b4=bJ.fn[e];bJ.fn[e]=function(b5,b7,b6){return b5==null||typeof b5==="boolean"?b4.apply(this,arguments):this.animate(bI(e,true),b5,b7,b6)}});bJ.fn.extend({fadeTo:function(e,b5,b4,b3){return this.filter(P).css("opacity",0).show().end().animate({opacity:b5},e,b4,b3)},animate:function(b8,b5,b7,b6){var b4=bJ.isEmptyObject(b8),e=bJ.speed(b5,b7,b6),b3=function(){var b9=f(this,bJ.extend({},b8),e);b3.finish=function(){b9.stop(true)};if(b4||bJ._data(this,"finish")){b9.stop(true)}};b3.finish=b3;return b4||e.queue===false?this.each(b3):this.queue(e.queue,b3)},stop:function(b4,b3,e){var b5=function(b6){var b7=b6.stop;delete b6.stop;b7(e)};if(typeof b4!=="string"){e=b3;b3=b4;b4=aG}if(b3&&b4!==false){this.queue(b4||"fx",[])}return this.each(function(){var b9=true,b6=b4!=null&&b4+"queueHooks",b8=bJ.timers,b7=bJ._data(this);if(b6){if(b7[b6]&&b7[b6].stop){b5(b7[b6])}}else{for(b6 in b7){if(b7[b6]&&b7[b6].stop&&bQ.test(b6)){b5(b7[b6])}}}for(b6=b8.length;b6--;){if(b8[b6].elem===this&&(b4==null||b8[b6].queue===b4)){b8[b6].anim.stop(e);b9=false;b8.splice(b6,1)}}if(b9||!e){bJ.dequeue(this,b4)}})},finish:function(e){if(e!==false){e=e||"fx"}return this.each(function(){var b5,b8=bJ._data(this),b4=b8[e+"queue"],b3=b8[e+"queueHooks"],b7=bJ.timers,b6=b4?b4.length:0;b8.finish=true;bJ.queue(this,e,[]);if(b3&&b3.cur&&b3.cur.finish){b3.cur.finish.call(this)}for(b5=b7.length;b5--;){if(b7[b5].elem===this&&b7[b5].queue===e){b7[b5].anim.stop(true);b7.splice(b5,1)}}for(b5=0;b5<b6;b5++){if(b4[b5]&&b4[b5].finish){b4[b5].finish.call(this)}}delete b8.finish})}});function bI(b4,b6){var b5,e={height:b4},b3=0;b6=b6?1:0;for(;b3<4;b3+=2-b6){b5=bT[b3];e["margin"+b5]=e["padding"+b5]=b4}if(b6){e.opacity=e.width=b4}return e}bJ.each({slideDown:bI("show"),slideUp:bI("hide"),slideToggle:bI("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,b3){bJ.fn[e]=function(b4,b6,b5){return this.animate(b3,b4,b6,b5)}});bJ.speed=function(b4,b5,b3){var e=b4&&typeof b4==="object"?bJ.extend({},b4):{complete:b3||!b3&&b5||bJ.isFunction(b4)&&b4,duration:b4,easing:b3&&b5||b5&&!bJ.isFunction(b5)&&b5};e.duration=bJ.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in bJ.fx.speeds?bJ.fx.speeds[e.duration]:bJ.fx.speeds._default;if(e.queue==null||e.queue===true){e.queue="fx"}e.old=e.complete;e.complete=function(){if(bJ.isFunction(e.old)){e.old.call(this)}if(e.queue){bJ.dequeue(this,e.queue)}};return e};bJ.easing={linear:function(e){return e},swing:function(e){return 0.5-Math.cos(e*Math.PI)/2}};bJ.timers=[];bJ.fx=G.prototype.init;bJ.fx.tick=function(){var b4,b3=bJ.timers,e=0;K=bJ.now();for(;e<b3.length;e++){b4=b3[e];if(!b4()&&b3[e]===b4){b3.splice(e--,1)}}if(!b3.length){bJ.fx.stop()}K=aG};bJ.fx.timer=function(e){if(e()&&bJ.timers.push(e)){bJ.fx.start()}};bJ.fx.interval=13;bJ.fx.start=function(){if(!ad){ad=setInterval(bJ.fx.tick,bJ.fx.interval)}};bJ.fx.stop=function(){clearInterval(ad);ad=null};bJ.fx.speeds={slow:600,fast:200,_default:400};bJ.fx.step={};if(bJ.expr&&bJ.expr.filters){bJ.expr.filters.animated=function(e){return bJ.grep(bJ.timers,function(b3){return e===b3.elem}).length}}bJ.fn.offset=function(b3){if(arguments.length){return b3===aG?this:this.each(function(b8){bJ.offset.setOffset(this,b3,b8)})}var e,b7,b5={top:0,left:0},b4=this[0],b6=b4&&b4.ownerDocument;if(!b6){return}e=b6.documentElement;if(!bJ.contains(e,b4)){return b5}if(typeof b4.getBoundingClientRect!==aC){b5=b4.getBoundingClientRect()}b7=bp(b6);return{top:b5.top+(b7.pageYOffset||e.scrollTop)-(e.clientTop||0),left:b5.left+(b7.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}};bJ.offset={setOffset:function(b5,ce,b8){var b9=bJ.css(b5,"position");if(b9==="static"){b5.style.position="relative"}var b7=bJ(b5),b3=b7.offset(),e=bJ.css(b5,"top"),cc=bJ.css(b5,"left"),cd=(b9==="absolute"||b9==="fixed")&&bJ.inArray("auto",[e,cc])>-1,cb={},ca={},b4,b6;if(cd){ca=b7.position();b4=ca.top;b6=ca.left}else{b4=parseFloat(e)||0;b6=parseFloat(cc)||0}if(bJ.isFunction(ce)){ce=ce.call(b5,b8,b3)}if(ce.top!=null){cb.top=(ce.top-b3.top)+b4}if(ce.left!=null){cb.left=(ce.left-b3.left)+b6}if("using" in ce){ce.using.call(b5,cb)}else{b7.css(cb)}}};bJ.fn.extend({position:function(){if(!this[0]){return}var b4,b5,e={top:0,left:0},b3=this[0];if(bJ.css(b3,"position")==="fixed"){b5=b3.getBoundingClientRect()}else{b4=this.offsetParent();b5=this.offset();if(!bJ.nodeName(b4[0],"html")){e=b4.offset()}e.top+=bJ.css(b4[0],"borderTopWidth",true);e.left+=bJ.css(b4[0],"borderLeftWidth",true)}return{top:b5.top-e.top-bJ.css(b3,"marginTop",true),left:b5.left-e.left-bJ.css(b3,"marginLeft",true)}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||l.documentElement;while(e&&(!bJ.nodeName(e,"html")&&bJ.css(e,"position")==="static")){e=e.offsetParent}return e||l.documentElement})}});bJ.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(b4,b3){var e=/Y/.test(b3);bJ.fn[b4]=function(b5){return bJ.access(this,function(b6,b9,b8){var b7=bp(b6);if(b8===aG){return b7?(b3 in b7)?b7[b3]:b7.document.documentElement[b9]:b6[b9]}if(b7){b7.scrollTo(!e?b8:bJ(b7).scrollLeft(),e?b8:bJ(b7).scrollTop())}else{b6[b9]=b8}},b4,b5,arguments.length,null)}});function bp(e){return bJ.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false}bJ.each({Height:"height",Width:"width"},function(e,b3){bJ.each({padding:"inner"+e,content:b3,"":"outer"+e},function(b4,b5){bJ.fn[b5]=function(b9,b8){var b7=arguments.length&&(b4||typeof b9!=="boolean"),b6=b4||(b9===true||b8===true?"margin":"border");return bJ.access(this,function(cb,ca,cc){var cd;if(bJ.isWindow(cb)){return cb.document.documentElement["client"+e]}if(cb.nodeType===9){cd=cb.documentElement;return Math.max(cb.body["scroll"+e],cd["scroll"+e],cb.body["offset"+e],cd["offset"+e],cd["client"+e])}return cc===aG?bJ.css(cb,ca,b6):bJ.style(cb,ca,cc,b6)},b3,b7?b9:aG,b7,null)}})});a2.jQuery=a2.$=bJ;if(typeof define==="function"&&define.amd&&define.amd.jQuery){define("jquery",[],function(){return bJ})}})(window);
|
||
</script> <script type="text/javascript">
|
||
|
||
(function(L){var u;L.fn.emptyForce=function(){for(var ah=0,ai;(ai=L(this)[ah])!=null;ah++){if(ai.nodeType===1){L.cleanData(ai.getElementsByTagName("*"))}if(L.jqplot.use_excanvas){ai.outerHTML=""}else{while(ai.firstChild){ai.removeChild(ai.firstChild)}}ai=null}return L(this)};L.fn.removeChildForce=function(ah){while(ah.firstChild){this.removeChildForce(ah.firstChild);ah.removeChild(ah.firstChild)}};L.fn.jqplot=function(){var ah=[];var aj=[];for(var ak=0,ai=arguments.length;ak<ai;ak++){if(L.isArray(arguments[ak])){ah.push(arguments[ak])}else{if(L.isPlainObject(arguments[ak])){aj.push(arguments[ak])}}}return this.each(function(an){var at,ar,aq=L(this),am=ah.length,al=aj.length,ap,ao;if(an<am){ap=ah[an]}else{ap=am?ah[am-1]:null}if(an<al){ao=aj[an]}else{ao=al?aj[al-1]:null}at=aq.attr("id");if(at===u){at="jqplot_target_"+L.jqplot.targetCounter++;aq.attr("id",at)}ar=L.jqplot(at,ap,ao);aq.data("jqplot",ar)})};L.jqplot=function(an,ak,ai){var aj=null,ah=null;if(arguments.length===3){aj=ak;ah=ai}else{if(arguments.length===2){if(L.isArray(ak)){aj=ak}else{if(L.isPlainObject(ak)){ah=ak}}}}if(aj===null&&ah!==null&&ah.data){aj=ah.data}var am=new R();L("#"+an).removeClass("jqplot-error");if(L.jqplot.config.catchErrors){try{am.init(an,aj,ah);am.draw();am.themeEngine.init.call(am);return am}catch(al){var ao=L.jqplot.config.errorMessage||al.message;L("#"+an).append('<div class="jqplot-error-message">'+ao+"</div>");L("#"+an).addClass("jqplot-error");document.getElementById(an).style.background=L.jqplot.config.errorBackground;document.getElementById(an).style.border=L.jqplot.config.errorBorder;document.getElementById(an).style.fontFamily=L.jqplot.config.errorFontFamily;document.getElementById(an).style.fontSize=L.jqplot.config.errorFontSize;document.getElementById(an).style.fontStyle=L.jqplot.config.errorFontStyle;document.getElementById(an).style.fontWeight=L.jqplot.config.errorFontWeight}}else{am.init(an,aj,ah);am.draw();am.themeEngine.init.call(am);return am}};L.jqplot.version="1.0.8";L.jqplot.revision="1250";L.jqplot.targetCounter=1;L.jqplot.CanvasManager=function(){if(typeof L.jqplot.CanvasManager.canvases=="undefined"){L.jqplot.CanvasManager.canvases=[];L.jqplot.CanvasManager.free=[]}var ah=[];this.getCanvas=function(){var ak;var aj=true;if(!L.jqplot.use_excanvas){for(var al=0,ai=L.jqplot.CanvasManager.canvases.length;al<ai;al++){if(L.jqplot.CanvasManager.free[al]===true){aj=false;ak=L.jqplot.CanvasManager.canvases[al];L.jqplot.CanvasManager.free[al]=false;ah.push(al);break}}}if(aj){ak=document.createElement("canvas");ah.push(L.jqplot.CanvasManager.canvases.length);L.jqplot.CanvasManager.canvases.push(ak);L.jqplot.CanvasManager.free.push(false)}return ak};this.initCanvas=function(ai){if(L.jqplot.use_excanvas){return window.G_vmlCanvasManager.initElement(ai)}return ai};this.freeAllCanvases=function(){for(var aj=0,ai=ah.length;aj<ai;aj++){this.freeCanvas(ah[aj])}ah=[]};this.freeCanvas=function(ai){if(L.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==u){window.G_vmlCanvasManager.uninitElement(L.jqplot.CanvasManager.canvases[ai]);L.jqplot.CanvasManager.canvases[ai]=null}else{var aj=L.jqplot.CanvasManager.canvases[ai];aj.getContext("2d").clearRect(0,0,aj.width,aj.height);L(aj).unbind().removeAttr("class").removeAttr("style");L(aj).css({left:"",top:"",position:""});aj.width=0;aj.height=0;L.jqplot.CanvasManager.free[ai]=true}}};L.jqplot.log=function(){if(window.console){window.console.log.apply(window.console,arguments)}};L.jqplot.config={addDomReference:false,enablePlugins:false,defaultHeight:300,defaultWidth:400,UTCAdjust:false,timezoneOffset:new Date(new Date().getTimezoneOffset()*60000),errorMessage:"",errorBackground:"",errorBorder:"",errorFontFamily:"",errorFontSize:"",errorFontStyle:"",errorFontWeight:"",catchErrors:false,defaultTickFormatString:"%.1f",defaultColors:["#4bb2c5","#EAA228","#c5b47f","#579575","#839557","#958c12","#953579","#4b5de4","#d8b83f","#ff5800","#0085cc","#c747a3","#cddf54","#FBD178","#26B4E3","#bd70c7"],defaultNegativeColors:["#498991","#C08840","#9F9274","#546D61","#646C4A","#6F6621","#6E3F5F","#4F64B0","#A89050","#C45923","#187399","#945381","#959E5C","#C7AF7B","#478396","#907294"],dashLength:4,gapLength:4,dotGapLength:2.5,srcLocation:"jqplot/src/",pluginLocation:"jqplot/src/plugins/"};L.jqplot.arrayMax=function(ah){return Math.max.apply(Math,ah)};L.jqplot.arrayMin=function(ah){return Math.min.apply(Math,ah)};L.jqplot.enablePlugins=L.jqplot.config.enablePlugins;L.jqplot.support_canvas=function(){if(typeof L.jqplot.support_canvas.result=="undefined"){L.jqplot.support_canvas.result=!!document.createElement("canvas").getContext}return L.jqplot.support_canvas.result};L.jqplot.support_canvas_text=function(){if(typeof L.jqplot.support_canvas_text.result=="undefined"){if(window.G_vmlCanvasManager!==u&&window.G_vmlCanvasManager._version>887){L.jqplot.support_canvas_text.result=true}else{L.jqplot.support_canvas_text.result=!!(document.createElement("canvas").getContext&&typeof document.createElement("canvas").getContext("2d").fillText=="function")}}return L.jqplot.support_canvas_text.result};L.jqplot.use_excanvas=((!L.support.boxModel||!L.support.objectAll||!$support.leadingWhitespace)&&!L.jqplot.support_canvas())?true:false;L.jqplot.preInitHooks=[];L.jqplot.postInitHooks=[];L.jqplot.preParseOptionsHooks=[];L.jqplot.postParseOptionsHooks=[];L.jqplot.preDrawHooks=[];L.jqplot.postDrawHooks=[];L.jqplot.preDrawSeriesHooks=[];L.jqplot.postDrawSeriesHooks=[];L.jqplot.preDrawLegendHooks=[];L.jqplot.addLegendRowHooks=[];L.jqplot.preSeriesInitHooks=[];L.jqplot.postSeriesInitHooks=[];L.jqplot.preParseSeriesOptionsHooks=[];L.jqplot.postParseSeriesOptionsHooks=[];L.jqplot.eventListenerHooks=[];L.jqplot.preDrawSeriesShadowHooks=[];L.jqplot.postDrawSeriesShadowHooks=[];L.jqplot.ElemContainer=function(){this._elem;this._plotWidth;this._plotHeight;this._plotDimensions={height:null,width:null}};L.jqplot.ElemContainer.prototype.createElement=function(ak,am,ai,aj,an){this._offsets=am;var ah=ai||"jqplot";var al=document.createElement(ak);this._elem=L(al);this._elem.addClass(ah);this._elem.css(aj);this._elem.attr(an);al=null;return this._elem};L.jqplot.ElemContainer.prototype.getWidth=function(){if(this._elem){return this._elem.outerWidth(true)}else{return null}};L.jqplot.ElemContainer.prototype.getHeight=function(){if(this._elem){return this._elem.outerHeight(true)}else{return null}};L.jqplot.ElemContainer.prototype.getPosition=function(){if(this._elem){return this._elem.position()}else{return{top:null,left:null,bottom:null,right:null}}};L.jqplot.ElemContainer.prototype.getTop=function(){return this.getPosition().top};L.jqplot.ElemContainer.prototype.getLeft=function(){return this.getPosition().left};L.jqplot.ElemContainer.prototype.getBottom=function(){return this._elem.css("bottom")};L.jqplot.ElemContainer.prototype.getRight=function(){return this._elem.css("right")};function w(ah){L.jqplot.ElemContainer.call(this);this.name=ah;this._series=[];this.show=false;this.tickRenderer=L.jqplot.AxisTickRenderer;this.tickOptions={};this.labelRenderer=L.jqplot.AxisLabelRenderer;this.labelOptions={};this.label=null;this.showLabel=true;this.min=null;this.max=null;this.autoscale=false;this.pad=1.2;this.padMax=null;this.padMin=null;this.ticks=[];this.numberTicks;this.tickInterval;this.renderer=L.jqplot.LinearAxisRenderer;this.rendererOptions={};this.showTicks=true;this.showTickMarks=true;this.showMinorTicks=true;this.drawMajorGridlines=true;this.drawMinorGridlines=false;this.drawMajorTickMarks=true;this.drawMinorTickMarks=true;this.useSeriesColor=false;this.borderWidth=null;this.borderColor=null;this.scaleToHiddenSeries=false;this._dataBounds={min:null,max:null};this._intervalStats=[];this._offsets={min:null,max:null};this._ticks=[];this._label=null;this.syncTicks=null;this.tickSpacing=75;this._min=null;this._max=null;this._tickInterval=null;this._numberTicks=null;this.__ticks=null;this._options={}}w.prototype=new L.jqplot.ElemContainer();w.prototype.constructor=w;w.prototype.init=function(){if(L.isFunction(this.renderer)){this.renderer=new this.renderer()}this.tickOptions.axis=this.name;if(this.tickOptions.showMark==null){this.tickOptions.showMark=this.showTicks}if(this.tickOptions.showMark==null){this.tickOptions.showMark=this.showTickMarks}if(this.tickOptions.showLabel==null){this.tickOptions.showLabel=this.showTicks}if(this.label==null||this.label==""){this.showLabel=false}else{this.labelOptions.label=this.label}if(this.showLabel==false){this.labelOptions.show=false}if(this.pad==0){this.pad=1}if(this.padMax==0){this.padMax=1}if(this.padMin==0){this.padMin=1}if(this.padMax==null){this.padMax=(this.pad-1)/2+1}if(this.padMin==null){this.padMin=(this.pad-1)/2+1}this.pad=this.padMax+this.padMin-1;if(this.min!=null||this.max!=null){this.autoscale=false}if(this.syncTicks==null&&this.name.indexOf("y")>-1){this.syncTicks=true}else{if(this.syncTicks==null){this.syncTicks=false}}this.renderer.init.call(this,this.rendererOptions)};w.prototype.draw=function(ah,ai){if(this.__ticks){this.__ticks=null}return this.renderer.draw.call(this,ah,ai)};w.prototype.set=function(){this.renderer.set.call(this)};w.prototype.pack=function(ai,ah){if(this.show){this.renderer.pack.call(this,ai,ah)}if(this._min==null){this._min=this.min;this._max=this.max;this._tickInterval=this.tickInterval;this._numberTicks=this.numberTicks;this.__ticks=this._ticks}};w.prototype.reset=function(){this.renderer.reset.call(this)};w.prototype.resetScale=function(ah){L.extend(true,this,{min:null,max:null,numberTicks:null,tickInterval:null,_ticks:[],ticks:[]},ah);this.resetDataBounds()};w.prototype.resetDataBounds=function(){var ao=this._dataBounds;ao.min=null;ao.max=null;var ai,ap,am;var aj=(this.show)?true:false;for(var al=0;al<this._series.length;al++){ap=this._series[al];if(ap.show||this.scaleToHiddenSeries){am=ap._plotData;if(ap._type==="line"&&ap.renderer.bands.show&&this.name.charAt(0)!=="x"){am=[[0,ap.renderer.bands._min],[1,ap.renderer.bands._max]]}var ah=1,an=1;if(ap._type!=null&&ap._type=="ohlc"){ah=3;an=2}for(var ak=0,ai=am.length;ak<ai;ak++){if(this.name=="xaxis"||this.name=="x2axis"){if((am[ak][0]!=null&&am[ak][0]<ao.min)||ao.min==null){ao.min=am[ak][0]}if((am[ak][0]!=null&&am[ak][0]>ao.max)||ao.max==null){ao.max=am[ak][0]}}else{if((am[ak][ah]!=null&&am[ak][ah]<ao.min)||ao.min==null){ao.min=am[ak][ah]}if((am[ak][an]!=null&&am[ak][an]>ao.max)||ao.max==null){ao.max=am[ak][an]}}}if(aj&&ap.renderer.constructor!==L.jqplot.BarRenderer){aj=false}else{if(aj&&this._options.hasOwnProperty("forceTickAt0")&&this._options.forceTickAt0==false){aj=false}else{if(aj&&ap.renderer.constructor===L.jqplot.BarRenderer){if(ap.barDirection=="vertical"&&this.name!="xaxis"&&this.name!="x2axis"){if(this._options.pad!=null||this._options.padMin!=null){aj=false}}else{if(ap.barDirection=="horizontal"&&(this.name=="xaxis"||this.name=="x2axis")){if(this._options.pad!=null||this._options.padMin!=null){aj=false}}}}}}}}if(aj&&this.renderer.constructor===L.jqplot.LinearAxisRenderer&&ao.min>=0){this.padMin=1;this.forceTickAt0=true}};function q(ah){L.jqplot.ElemContainer.call(this);this.show=false;this.location="ne";this.labels=[];this.showLabels=true;this.showSwatches=true;this.placement="insideGrid";this.xoffset=0;this.yoffset=0;this.border;this.background;this.textColor;this.fontFamily;this.fontSize;this.rowSpacing="0.5em";this.renderer=L.jqplot.TableLegendRenderer;this.rendererOptions={};this.preDraw=false;this.marginTop=null;this.marginRight=null;this.marginBottom=null;this.marginLeft=null;this.escapeHtml=false;this._series=[];L.extend(true,this,ah)}q.prototype=new L.jqplot.ElemContainer();q.prototype.constructor=q;q.prototype.setOptions=function(ah){L.extend(true,this,ah);if(this.placement=="inside"){this.placement="insideGrid"}if(this.xoffset>0){if(this.placement=="insideGrid"){switch(this.location){case"nw":case"w":case"sw":if(this.marginLeft==null){this.marginLeft=this.xoffset+"px"}this.marginRight="0px";break;case"ne":case"e":case"se":default:if(this.marginRight==null){this.marginRight=this.xoffset+"px"}this.marginLeft="0px";break}}else{if(this.placement=="outside"){switch(this.location){case"nw":case"w":case"sw":if(this.marginRight==null){this.marginRight=this.xoffset+"px"}this.marginLeft="0px";break;case"ne":case"e":case"se":default:if(this.marginLeft==null){this.marginLeft=this.xoffset+"px"}this.marginRight="0px";break}}}this.xoffset=0}if(this.yoffset>0){if(this.placement=="outside"){switch(this.location){case"sw":case"s":case"se":if(this.marginTop==null){this.marginTop=this.yoffset+"px"}this.marginBottom="0px";break;case"ne":case"n":case"nw":default:if(this.marginBottom==null){this.marginBottom=this.yoffset+"px"}this.marginTop="0px";break}}else{if(this.placement=="insideGrid"){switch(this.location){case"sw":case"s":case"se":if(this.marginBottom==null){this.marginBottom=this.yoffset+"px"}this.marginTop="0px";break;case"ne":case"n":case"nw":default:if(this.marginTop==null){this.marginTop=this.yoffset+"px"}this.marginBottom="0px";break}}}this.yoffset=0}};q.prototype.init=function(){if(L.isFunction(this.renderer)){this.renderer=new this.renderer()}this.renderer.init.call(this,this.rendererOptions)};q.prototype.draw=function(ai,aj){for(var ah=0;ah<L.jqplot.preDrawLegendHooks.length;ah++){L.jqplot.preDrawLegendHooks[ah].call(this,ai)}return this.renderer.draw.call(this,ai,aj)};q.prototype.pack=function(ah){this.renderer.pack.call(this,ah)};function y(ah){L.jqplot.ElemContainer.call(this);this.text=ah;this.show=true;this.fontFamily;this.fontSize;this.textAlign;this.textColor;this.renderer=L.jqplot.DivTitleRenderer;this.rendererOptions={};this.escapeHtml=false}y.prototype=new L.jqplot.ElemContainer();y.prototype.constructor=y;y.prototype.init=function(){if(L.isFunction(this.renderer)){this.renderer=new this.renderer()}this.renderer.init.call(this,this.rendererOptions)};y.prototype.draw=function(ah){return this.renderer.draw.call(this,ah)};y.prototype.pack=function(){this.renderer.pack.call(this)};function S(ah){ah=ah||{};L.jqplot.ElemContainer.call(this);this.show=true;this.xaxis="xaxis";this._xaxis;this.yaxis="yaxis";this._yaxis;this.gridBorderWidth=2;this.renderer=L.jqplot.LineRenderer;this.rendererOptions={};this.data=[];this.gridData=[];this.label="";this.showLabel=true;this.color;this.negativeColor;this.lineWidth=2.5;this.lineJoin="round";this.lineCap="round";this.linePattern="solid";this.shadow=true;this.shadowAngle=45;this.shadowOffset=1.25;this.shadowDepth=3;this.shadowAlpha="0.1";this.breakOnNull=false;this.markerRenderer=L.jqplot.MarkerRenderer;this.markerOptions={};this.showLine=true;this.showMarker=true;this.index;this.fill=false;this.fillColor;this.fillAlpha;this.fillAndStroke=false;this.disableStack=false;this._stack=false;this.neighborThreshold=4;this.fillToZero=false;this.fillToValue=0;this.fillAxis="y";this.useNegativeColors=true;this._stackData=[];this._plotData=[];this._plotValues={x:[],y:[]};this._intervals={x:{},y:{}};this._prevPlotData=[];this._prevGridData=[];this._stackAxis="y";this._primaryAxis="_xaxis";this.canvas=new L.jqplot.GenericCanvas();this.shadowCanvas=new L.jqplot.GenericCanvas();this.plugins={};this._sumy=0;this._sumx=0;this._type=""}S.prototype=new L.jqplot.ElemContainer();S.prototype.constructor=S;S.prototype.init=function(ak,ao,am){this.index=ak;this.gridBorderWidth=ao;var an=this.data;var aj=[],al,ah;for(al=0,ah=an.length;al<ah;al++){if(!this.breakOnNull){if(an[al]==null||an[al][0]==null||an[al][1]==null){continue}else{aj.push(an[al])}}else{aj.push(an[al])}}this.data=aj;if(!this.color){this.color=am.colorGenerator.get(this.index)}if(!this.negativeColor){this.negativeColor=am.negativeColorGenerator.get(this.index)}if(!this.fillColor){this.fillColor=this.color}if(this.fillAlpha){var ai=L.jqplot.normalize2rgb(this.fillColor);var ai=L.jqplot.getColorComponents(ai);this.fillColor="rgba("+ai[0]+","+ai[1]+","+ai[2]+","+this.fillAlpha+")"}if(L.isFunction(this.renderer)){this.renderer=new this.renderer()}this.renderer.init.call(this,this.rendererOptions,am);this.markerRenderer=new this.markerRenderer();if(!this.markerOptions.color){this.markerOptions.color=this.color}if(this.markerOptions.show==null){this.markerOptions.show=this.showMarker}this.showMarker=this.markerOptions.show;this.markerRenderer.init(this.markerOptions)};S.prototype.draw=function(an,ak,am){var ai=(ak==u)?{}:ak;an=(an==u)?this.canvas._ctx:an;var ah,al,aj;for(ah=0;ah<L.jqplot.preDrawSeriesHooks.length;ah++){L.jqplot.preDrawSeriesHooks[ah].call(this,an,ai)}if(this.show){this.renderer.setGridData.call(this,am);if(!ai.preventJqPlotSeriesDrawTrigger){L(an.canvas).trigger("jqplotSeriesDraw",[this.data,this.gridData])}al=[];if(ai.data){al=ai.data}else{if(!this._stack){al=this.data}else{al=this._plotData}}aj=ai.gridData||this.renderer.makeGridData.call(this,al,am);if(this._type==="line"&&this.renderer.smooth&&this.renderer._smoothedData.length){aj=this.renderer._smoothedData}this.renderer.draw.call(this,an,aj,ai,am)}for(ah=0;ah<L.jqplot.postDrawSeriesHooks.length;ah++){L.jqplot.postDrawSeriesHooks[ah].call(this,an,ai,am)}an=ak=am=ah=al=aj=null};S.prototype.drawShadow=function(an,ak,am){var ai=(ak==u)?{}:ak;an=(an==u)?this.shadowCanvas._ctx:an;var ah,al,aj;for(ah=0;ah<L.jqplot.preDrawSeriesShadowHooks.length;ah++){L.jqplot.preDrawSeriesShadowHooks[ah].call(this,an,ai)}if(this.shadow){this.renderer.setGridData.call(this,am);al=[];if(ai.data){al=ai.data}else{if(!this._stack){al=this.data}else{al=this._plotData}}aj=ai.gridData||this.renderer.makeGridData.call(this,al,am);this.renderer.drawShadow.call(this,an,aj,ai,am)}for(ah=0;ah<L.jqplot.postDrawSeriesShadowHooks.length;ah++){L.jqplot.postDrawSeriesShadowHooks[ah].call(this,an,ai)}an=ak=am=ah=al=aj=null};S.prototype.toggleDisplay=function(ai,ak){var ah,aj;if(ai.data.series){ah=ai.data.series}else{ah=this}if(ai.data.speed){aj=ai.data.speed}if(aj){if(ah.canvas._elem.is(":hidden")||!ah.show){ah.show=true;ah.canvas._elem.removeClass("jqplot-series-hidden");if(ah.shadowCanvas._elem){ah.shadowCanvas._elem.fadeIn(aj)}ah.canvas._elem.fadeIn(aj,ak);ah.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+ah.index).fadeIn(aj)}else{ah.show=false;ah.canvas._elem.addClass("jqplot-series-hidden");if(ah.shadowCanvas._elem){ah.shadowCanvas._elem.fadeOut(aj)}ah.canvas._elem.fadeOut(aj,ak);ah.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+ah.index).fadeOut(aj)}}else{if(ah.canvas._elem.is(":hidden")||!ah.show){ah.show=true;ah.canvas._elem.removeClass("jqplot-series-hidden");if(ah.shadowCanvas._elem){ah.shadowCanvas._elem.show()}ah.canvas._elem.show(0,ak);ah.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+ah.index).show()}else{ah.show=false;ah.canvas._elem.addClass("jqplot-series-hidden");if(ah.shadowCanvas._elem){ah.shadowCanvas._elem.hide()}ah.canvas._elem.hide(0,ak);ah.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+ah.index).hide()}}};function M(){L.jqplot.ElemContainer.call(this);this.drawGridlines=true;this.gridLineColor="#cccccc";this.gridLineWidth=1;this.background="#fffdf6";this.borderColor="#999999";this.borderWidth=2;this.drawBorder=true;this.shadow=true;this.shadowAngle=45;this.shadowOffset=1.5;this.shadowWidth=3;this.shadowDepth=3;this.shadowColor=null;this.shadowAlpha="0.07";this._left;this._top;this._right;this._bottom;this._width;this._height;this._axes=[];this.renderer=L.jqplot.CanvasGridRenderer;this.rendererOptions={};this._offsets={top:null,bottom:null,left:null,right:null}}M.prototype=new L.jqplot.ElemContainer();M.prototype.constructor=M;M.prototype.init=function(){if(L.isFunction(this.renderer)){this.renderer=new this.renderer()}this.renderer.init.call(this,this.rendererOptions)};M.prototype.createElement=function(ah,ai){this._offsets=ah;return this.renderer.createElement.call(this,ai)};M.prototype.draw=function(){this.renderer.draw.call(this)};L.jqplot.GenericCanvas=function(){L.jqplot.ElemContainer.call(this);this._ctx};L.jqplot.GenericCanvas.prototype=new L.jqplot.ElemContainer();L.jqplot.GenericCanvas.prototype.constructor=L.jqplot.GenericCanvas;L.jqplot.GenericCanvas.prototype.createElement=function(al,aj,ai,am){this._offsets=al;var ah="jqplot";if(aj!=u){ah=aj}var ak;ak=am.canvasManager.getCanvas();if(ai!=null){this._plotDimensions=ai}ak.width=this._plotDimensions.width-this._offsets.left-this._offsets.right;ak.height=this._plotDimensions.height-this._offsets.top-this._offsets.bottom;this._elem=L(ak);this._elem.css({position:"absolute",left:this._offsets.left,top:this._offsets.top});this._elem.addClass(ah);ak=am.canvasManager.initCanvas(ak);ak=null;return this._elem};L.jqplot.GenericCanvas.prototype.setContext=function(){this._ctx=this._elem.get(0).getContext("2d");return this._ctx};L.jqplot.GenericCanvas.prototype.resetCanvas=function(){if(this._elem){if(L.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==u){window.G_vmlCanvasManager.uninitElement(this._elem.get(0))}this._elem.emptyForce()}this._ctx=null};L.jqplot.HooksManager=function(){this.hooks=[];this.args=[]};L.jqplot.HooksManager.prototype.addOnce=function(ak,ai){ai=ai||[];var al=false;for(var aj=0,ah=this.hooks.length;aj<ah;aj++){if(this.hooks[aj]==ak){al=true}}if(!al){this.hooks.push(ak);this.args.push(ai)}};L.jqplot.HooksManager.prototype.add=function(ai,ah){ah=ah||[];this.hooks.push(ai);this.args.push(ah)};L.jqplot.EventListenerManager=function(){this.hooks=[]};L.jqplot.EventListenerManager.prototype.addOnce=function(al,ak){var am=false,aj,ai;for(var ai=0,ah=this.hooks.length;ai<ah;ai++){aj=this.hooks[ai];if(aj[0]==al&&aj[1]==ak){am=true}}if(!am){this.hooks.push([al,ak])}};L.jqplot.EventListenerManager.prototype.add=function(ai,ah){this.hooks.push([ai,ah])};var U=["yMidAxis","xaxis","yaxis","x2axis","y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis"];function R(){this.animate=false;this.animateReplot=false;this.axes={xaxis:new w("xaxis"),yaxis:new w("yaxis"),x2axis:new w("x2axis"),y2axis:new w("y2axis"),y3axis:new w("y3axis"),y4axis:new w("y4axis"),y5axis:new w("y5axis"),y6axis:new w("y6axis"),y7axis:new w("y7axis"),y8axis:new w("y8axis"),y9axis:new w("y9axis"),yMidAxis:new w("yMidAxis")};this.baseCanvas=new L.jqplot.GenericCanvas();this.captureRightClick=false;this.data=[];this.dataRenderer;this.dataRendererOptions;this.defaults={axesDefaults:{},axes:{xaxis:{},yaxis:{},x2axis:{},y2axis:{},y3axis:{},y4axis:{},y5axis:{},y6axis:{},y7axis:{},y8axis:{},y9axis:{},yMidAxis:{}},seriesDefaults:{},series:[]};this.defaultAxisStart=1;this.drawIfHidden=false;this.eventCanvas=new L.jqplot.GenericCanvas();this.fillBetween={series1:null,series2:null,color:null,baseSeries:0,fill:true};this.fontFamily;this.fontSize;this.grid=new M();this.legend=new q();this.noDataIndicator={show:false,indicator:"Loading Data...",axes:{xaxis:{min:0,max:10,tickInterval:2,show:true},yaxis:{min:0,max:12,tickInterval:3,show:true}}};this.negativeSeriesColors=L.jqplot.config.defaultNegativeColors;this.options={};this.previousSeriesStack=[];this.plugins={};this.series=[];this.seriesStack=[];this.seriesColors=L.jqplot.config.defaultColors;this.sortData=true;this.stackSeries=false;this.syncXTicks=true;this.syncYTicks=true;this.target=null;this.targetId=null;this.textColor;this.title=new y();this._drawCount=0;this._sumy=0;this._sumx=0;this._stackData=[];this._plotData=[];this._width=null;this._height=null;this._plotDimensions={height:null,width:null};this._gridPadding={top:null,right:null,bottom:null,left:null};this._defaultGridPadding={top:10,right:10,bottom:23,left:10};this._addDomReference=L.jqplot.config.addDomReference;this.preInitHooks=new L.jqplot.HooksManager();this.postInitHooks=new L.jqplot.HooksManager();this.preParseOptionsHooks=new L.jqplot.HooksManager();this.postParseOptionsHooks=new L.jqplot.HooksManager();this.preDrawHooks=new L.jqplot.HooksManager();this.postDrawHooks=new L.jqplot.HooksManager();this.preDrawSeriesHooks=new L.jqplot.HooksManager();this.postDrawSeriesHooks=new L.jqplot.HooksManager();this.preDrawLegendHooks=new L.jqplot.HooksManager();this.addLegendRowHooks=new L.jqplot.HooksManager();this.preSeriesInitHooks=new L.jqplot.HooksManager();this.postSeriesInitHooks=new L.jqplot.HooksManager();this.preParseSeriesOptionsHooks=new L.jqplot.HooksManager();this.postParseSeriesOptionsHooks=new L.jqplot.HooksManager();this.eventListenerHooks=new L.jqplot.EventListenerManager();this.preDrawSeriesShadowHooks=new L.jqplot.HooksManager();this.postDrawSeriesShadowHooks=new L.jqplot.HooksManager();this.colorGenerator=new L.jqplot.ColorGenerator();this.negativeColorGenerator=new L.jqplot.ColorGenerator();this.canvasManager=new L.jqplot.CanvasManager();this.themeEngine=new L.jqplot.ThemeEngine();var aj=0;this.init=function(av,ar,ay){ay=ay||{};for(var at=0;at<L.jqplot.preInitHooks.length;at++){L.jqplot.preInitHooks[at].call(this,av,ar,ay)}for(var at=0;at<this.preInitHooks.hooks.length;at++){this.preInitHooks.hooks[at].call(this,av,ar,ay)}this.targetId="#"+av;this.target=L("#"+av);if(this._addDomReference){this.target.data("jqplot",this)}this.target.removeClass("jqplot-error");if(!this.target.get(0)){throw new Error("No plot target specified")}if(this.target.css("position")=="static"){this.target.css("position","relative")}if(!this.target.hasClass("jqplot-target")){this.target.addClass("jqplot-target")}if(!this.target.height()){var au;if(ay&&ay.height){au=parseInt(ay.height,10)}else{if(this.target.attr("data-height")){au=parseInt(this.target.attr("data-height"),10)}else{au=parseInt(L.jqplot.config.defaultHeight,10)}}this._height=au;this.target.css("height",au+"px")}else{this._height=au=this.target.height()}if(!this.target.width()){var aw;if(ay&&ay.width){aw=parseInt(ay.width,10)}else{if(this.target.attr("data-width")){aw=parseInt(this.target.attr("data-width"),10)}else{aw=parseInt(L.jqplot.config.defaultWidth,10)}}this._width=aw;this.target.css("width",aw+"px")}else{this._width=aw=this.target.width()}for(var at=0,ap=U.length;at<ap;at++){this.axes[U[at]]=new w(U[at])}this._plotDimensions.height=this._height;this._plotDimensions.width=this._width;this.grid._plotDimensions=this._plotDimensions;this.title._plotDimensions=this._plotDimensions;this.baseCanvas._plotDimensions=this._plotDimensions;this.eventCanvas._plotDimensions=this._plotDimensions;this.legend._plotDimensions=this._plotDimensions;if(this._height<=0||this._width<=0||!this._height||!this._width){throw new Error("Canvas dimension not set")}if(ay.dataRenderer&&L.isFunction(ay.dataRenderer)){if(ay.dataRendererOptions){this.dataRendererOptions=ay.dataRendererOptions}this.dataRenderer=ay.dataRenderer;ar=this.dataRenderer(ar,this,this.dataRendererOptions)}if(ay.noDataIndicator&&L.isPlainObject(ay.noDataIndicator)){L.extend(true,this.noDataIndicator,ay.noDataIndicator)}if(ar==null||L.isArray(ar)==false||ar.length==0||L.isArray(ar[0])==false||ar[0].length==0){if(this.noDataIndicator.show==false){throw new Error("No data specified")}else{for(var al in this.noDataIndicator.axes){for(var an in this.noDataIndicator.axes[al]){this.axes[al][an]=this.noDataIndicator.axes[al][an]}}this.postDrawHooks.add(function(){var aD=this.eventCanvas.getHeight();var aA=this.eventCanvas.getWidth();var az=L('<div class="jqplot-noData-container" style="position:absolute;"></div>');this.target.append(az);az.height(aD);az.width(aA);az.css("top",this.eventCanvas._offsets.top);az.css("left",this.eventCanvas._offsets.left);var aC=L('<div class="jqplot-noData-contents" style="text-align:center; position:relative; margin-left:auto; margin-right:auto;"></div>');az.append(aC);aC.html(this.noDataIndicator.indicator);var aB=aC.height();var ax=aC.width();aC.height(aB);aC.width(ax);aC.css("top",(aD-aB)/2+"px")})}}this.data=L.extend(true,[],ar);this.parseOptions(ay);if(this.textColor){this.target.css("color",this.textColor)}if(this.fontFamily){this.target.css("font-family",this.fontFamily)}if(this.fontSize){this.target.css("font-size",this.fontSize)}this.title.init();this.legend.init();this._sumy=0;this._sumx=0;this.computePlotData();for(var at=0;at<this.series.length;at++){this.seriesStack.push(at);this.previousSeriesStack.push(at);this.series[at].shadowCanvas._plotDimensions=this._plotDimensions;this.series[at].canvas._plotDimensions=this._plotDimensions;for(var aq=0;aq<L.jqplot.preSeriesInitHooks.length;aq++){L.jqplot.preSeriesInitHooks[aq].call(this.series[at],av,this.data,this.options.seriesDefaults,this.options.series[at],this)}for(var aq=0;aq<this.preSeriesInitHooks.hooks.length;aq++){this.preSeriesInitHooks.hooks[aq].call(this.series[at],av,this.data,this.options.seriesDefaults,this.options.series[at],this)}this.series[at]._plotDimensions=this._plotDimensions;this.series[at].init(at,this.grid.borderWidth,this);for(var aq=0;aq<L.jqplot.postSeriesInitHooks.length;aq++){L.jqplot.postSeriesInitHooks[aq].call(this.series[at],av,this.data,this.options.seriesDefaults,this.options.series[at],this)}for(var aq=0;aq<this.postSeriesInitHooks.hooks.length;aq++){this.postSeriesInitHooks.hooks[aq].call(this.series[at],av,this.data,this.options.seriesDefaults,this.options.series[at],this)}this._sumy+=this.series[at]._sumy;this._sumx+=this.series[at]._sumx}var am,ao;for(var at=0,ap=U.length;at<ap;at++){am=U[at];ao=this.axes[am];ao._plotDimensions=this._plotDimensions;ao.init();if(this.axes[am].borderColor==null){if(am.charAt(0)!=="x"&&ao.useSeriesColor===true&&ao.show){ao.borderColor=ao._series[0].color}else{ao.borderColor=this.grid.borderColor}}}if(this.sortData){ah(this.series)}this.grid.init();this.grid._axes=this.axes;this.legend._series=this.series;for(var at=0;at<L.jqplot.postInitHooks.length;at++){L.jqplot.postInitHooks[at].call(this,av,this.data,ay)}for(var at=0;at<this.postInitHooks.hooks.length;at++){this.postInitHooks.hooks[at].call(this,av,this.data,ay)}};this.resetAxesScale=function(aq,am){var ao=am||{};var ap=aq||this.axes;if(ap===true){ap=this.axes}if(L.isArray(ap)){for(var an=0;an<ap.length;an++){this.axes[ap[an]].resetScale(ao[ap[an]])}}else{if(typeof(ap)==="object"){for(var al in ap){this.axes[al].resetScale(ao[al])}}}};this.reInitialize=function(au,al){var ay=L.extend(true,{},this.options,al);var aw=this.targetId.substr(1);var ar=(au==null)?this.data:au;for(var av=0;av<L.jqplot.preInitHooks.length;av++){L.jqplot.preInitHooks[av].call(this,aw,ar,ay)}for(var av=0;av<this.preInitHooks.hooks.length;av++){this.preInitHooks.hooks[av].call(this,aw,ar,ay)}this._height=this.target.height();this._width=this.target.width();if(this._height<=0||this._width<=0||!this._height||!this._width){throw new Error("Target dimension not set")}this._plotDimensions.height=this._height;this._plotDimensions.width=this._width;this.grid._plotDimensions=this._plotDimensions;this.title._plotDimensions=this._plotDimensions;this.baseCanvas._plotDimensions=this._plotDimensions;this.eventCanvas._plotDimensions=this._plotDimensions;this.legend._plotDimensions=this._plotDimensions;var am,ax,at,ao;for(var av=0,aq=U.length;av<aq;av++){am=U[av];ao=this.axes[am];ax=ao._ticks;for(var at=0,ap=ax.length;at<ap;at++){var an=ax[at]._elem;if(an){if(L.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==u){window.G_vmlCanvasManager.uninitElement(an.get(0))}an.emptyForce();an=null;ax._elem=null}}ax=null;delete ao.ticks;delete ao._ticks;this.axes[am]=new w(am);this.axes[am]._plotWidth=this._width;this.axes[am]._plotHeight=this._height}if(au){if(ay.dataRenderer&&L.isFunction(ay.dataRenderer)){if(ay.dataRendererOptions){this.dataRendererOptions=ay.dataRendererOptions}this.dataRenderer=ay.dataRenderer;au=this.dataRenderer(au,this,this.dataRendererOptions)}this.data=L.extend(true,[],au)}if(al){this.parseOptions(ay)}this.title._plotWidth=this._width;if(this.textColor){this.target.css("color",this.textColor)}if(this.fontFamily){this.target.css("font-family",this.fontFamily)}if(this.fontSize){this.target.css("font-size",this.fontSize)}this.title.init();this.legend.init();this._sumy=0;this._sumx=0;this.seriesStack=[];this.previousSeriesStack=[];this.computePlotData();for(var av=0,aq=this.series.length;av<aq;av++){this.seriesStack.push(av);this.previousSeriesStack.push(av);this.series[av].shadowCanvas._plotDimensions=this._plotDimensions;this.series[av].canvas._plotDimensions=this._plotDimensions;for(var at=0;at<L.jqplot.preSeriesInitHooks.length;at++){L.jqplot.preSeriesInitHooks[at].call(this.series[av],aw,this.data,this.options.seriesDefaults,this.options.series[av],this)}for(var at=0;at<this.preSeriesInitHooks.hooks.length;at++){this.preSeriesInitHooks.hooks[at].call(this.series[av],aw,this.data,this.options.seriesDefaults,this.options.series[av],this)}this.series[av]._plotDimensions=this._plotDimensions;this.series[av].init(av,this.grid.borderWidth,this);for(var at=0;at<L.jqplot.postSeriesInitHooks.length;at++){L.jqplot.postSeriesInitHooks[at].call(this.series[av],aw,this.data,this.options.seriesDefaults,this.options.series[av],this)}for(var at=0;at<this.postSeriesInitHooks.hooks.length;at++){this.postSeriesInitHooks.hooks[at].call(this.series[av],aw,this.data,this.options.seriesDefaults,this.options.series[av],this)}this._sumy+=this.series[av]._sumy;this._sumx+=this.series[av]._sumx}for(var av=0,aq=U.length;av<aq;av++){am=U[av];ao=this.axes[am];ao._plotDimensions=this._plotDimensions;ao.init();if(ao.borderColor==null){if(am.charAt(0)!=="x"&&ao.useSeriesColor===true&&ao.show){ao.borderColor=ao._series[0].color}else{ao.borderColor=this.grid.borderColor}}}if(this.sortData){ah(this.series)}this.grid.init();this.grid._axes=this.axes;this.legend._series=this.series;for(var av=0,aq=L.jqplot.postInitHooks.length;av<aq;av++){L.jqplot.postInitHooks[av].call(this,aw,this.data,ay)}for(var av=0,aq=this.postInitHooks.hooks.length;av<aq;av++){this.postInitHooks.hooks[av].call(this,aw,this.data,ay)}};this.quickInit=function(){this._height=this.target.height();this._width=this.target.width();if(this._height<=0||this._width<=0||!this._height||!this._width){throw new Error("Target dimension not set")}this._plotDimensions.height=this._height;this._plotDimensions.width=this._width;this.grid._plotDimensions=this._plotDimensions;this.title._plotDimensions=this._plotDimensions;this.baseCanvas._plotDimensions=this._plotDimensions;this.eventCanvas._plotDimensions=this._plotDimensions;this.legend._plotDimensions=this._plotDimensions;for(var aq in this.axes){this.axes[aq]._plotWidth=this._width;this.axes[aq]._plotHeight=this._height}this.title._plotWidth=this._width;if(this.textColor){this.target.css("color",this.textColor)}if(this.fontFamily){this.target.css("font-family",this.fontFamily)}if(this.fontSize){this.target.css("font-size",this.fontSize)}this._sumy=0;this._sumx=0;this.computePlotData();for(var ao=0;ao<this.series.length;ao++){if(this.series[ao]._type==="line"&&this.series[ao].renderer.bands.show){this.series[ao].renderer.initBands.call(this.series[ao],this.series[ao].renderer.options,this)}this.series[ao]._plotDimensions=this._plotDimensions;this.series[ao].canvas._plotDimensions=this._plotDimensions;this._sumy+=this.series[ao]._sumy;this._sumx+=this.series[ao]._sumx}var am;for(var al=0;al<12;al++){am=U[al];var an=this.axes[am]._ticks;for(var ao=0;ao<an.length;ao++){var ap=an[ao]._elem;if(ap){if(L.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==u){window.G_vmlCanvasManager.uninitElement(ap.get(0))}ap.emptyForce();ap=null;an._elem=null}}an=null;this.axes[am]._plotDimensions=this._plotDimensions;this.axes[am]._ticks=[]}if(this.sortData){ah(this.series)}this.grid._axes=this.axes;this.legend._series=this.series};function ah(ap){var au,av,aw,al,at;for(var aq=0;aq<ap.length;aq++){var am;var ar=[ap[aq].data,ap[aq]._stackData,ap[aq]._plotData,ap[aq]._prevPlotData];for(var an=0;an<4;an++){am=true;au=ar[an];if(ap[aq]._stackAxis=="x"){for(var ao=0;ao<au.length;ao++){if(typeof(au[ao][1])!="number"){am=false;break}}if(am){au.sort(function(ay,ax){return ay[1]-ax[1]})}}else{for(var ao=0;ao<au.length;ao++){if(typeof(au[ao][0])!="number"){am=false;break}}if(am){au.sort(function(ay,ax){return ay[0]-ax[0]})}}}}}this.computePlotData=function(){this._plotData=[];this._stackData=[];var at,au,ao;for(au=0,ao=this.series.length;au<ao;au++){at=this.series[au];this._plotData.push([]);this._stackData.push([]);var am=at.data;this._plotData[au]=L.extend(true,[],am);this._stackData[au]=L.extend(true,[],am);at._plotData=this._plotData[au];at._stackData=this._stackData[au];var ax={x:[],y:[]};if(this.stackSeries&&!at.disableStack){at._stack=true;var av=(at._stackAxis==="x")?0:1;for(var ap=0,al=am.length;ap<al;ap++){var aw=am[ap][av];if(aw==null){aw=0}this._plotData[au][ap][av]=aw;this._stackData[au][ap][av]=aw;if(au>0){for(var aq=au;aq--;){var an=this._plotData[aq][ap][av];if(aw*an>=0){this._plotData[au][ap][av]+=an;this._stackData[au][ap][av]+=an;break}}}}}else{for(var ar=0;ar<at.data.length;ar++){ax.x.push(at.data[ar][0]);ax.y.push(at.data[ar][1])}this._stackData.push(at.data);this.series[au]._stackData=at.data;this._plotData.push(at.data);at._plotData=at.data;at._plotValues=ax}if(au>0){at._prevPlotData=this.series[au-1]._plotData}at._sumy=0;at._sumx=0;for(ar=at.data.length-1;ar>-1;ar--){at._sumy+=at.data[ar][1];at._sumx+=at.data[ar][0]}}};this.populatePlotData=function(au,av){this._plotData=[];this._stackData=[];au._stackData=[];au._plotData=[];var ay={x:[],y:[]};if(this.stackSeries&&!au.disableStack){au._stack=true;var ax=(au._stackAxis==="x")?0:1;var az=L.extend(true,[],au.data);var aA=L.extend(true,[],au.data);var an,am,ao,aw,al;for(var ar=0;ar<av;ar++){var ap=this.series[ar].data;for(var aq=0;aq<ap.length;aq++){ao=ap[aq];an=(ao[0]!=null)?ao[0]:0;am=(ao[1]!=null)?ao[1]:0;az[aq][0]+=an;az[aq][1]+=am;aw=(ax)?am:an;if(au.data[aq][ax]*aw>=0){aA[aq][ax]+=aw}}}for(var at=0;at<aA.length;at++){ay.x.push(aA[at][0]);ay.y.push(aA[at][1])}this._plotData.push(aA);this._stackData.push(az);au._stackData=az;au._plotData=aA;au._plotValues=ay}else{for(var at=0;at<au.data.length;at++){ay.x.push(au.data[at][0]);ay.y.push(au.data[at][1])}this._stackData.push(au.data);this.series[av]._stackData=au.data;this._plotData.push(au.data);au._plotData=au.data;au._plotValues=ay}if(av>0){au._prevPlotData=this.series[av-1]._plotData}au._sumy=0;au._sumx=0;for(at=au.data.length-1;at>-1;at--){au._sumy+=au.data[at][1];au._sumx+=au.data[at][0]}};this.getNextSeriesColor=(function(am){var al=0;var an=am.seriesColors;return function(){if(al<an.length){return an[al++]}else{al=0;return an[al++]}}})(this);this.parseOptions=function(ay){for(var at=0;at<this.preParseOptionsHooks.hooks.length;at++){this.preParseOptionsHooks.hooks[at].call(this,ay)}for(var at=0;at<L.jqplot.preParseOptionsHooks.length;at++){L.jqplot.preParseOptionsHooks[at].call(this,ay)}this.options=L.extend(true,{},this.defaults,ay);var am=this.options;this.animate=am.animate;this.animateReplot=am.animateReplot;this.stackSeries=am.stackSeries;if(L.isPlainObject(am.fillBetween)){var ax=["series1","series2","color","baseSeries","fill"],au;for(var at=0,aq=ax.length;at<aq;at++){au=ax[at];if(am.fillBetween[au]!=null){this.fillBetween[au]=am.fillBetween[au]}}}if(am.seriesColors){this.seriesColors=am.seriesColors}if(am.negativeSeriesColors){this.negativeSeriesColors=am.negativeSeriesColors}if(am.captureRightClick){this.captureRightClick=am.captureRightClick}this.defaultAxisStart=(ay&&ay.defaultAxisStart!=null)?ay.defaultAxisStart:this.defaultAxisStart;this.colorGenerator.setColors(this.seriesColors);this.negativeColorGenerator.setColors(this.negativeSeriesColors);L.extend(true,this._gridPadding,am.gridPadding);this.sortData=(am.sortData!=null)?am.sortData:this.sortData;for(var at=0;at<12;at++){var an=U[at];var ap=this.axes[an];ap._options=L.extend(true,{},am.axesDefaults,am.axes[an]);L.extend(true,ap,am.axesDefaults,am.axes[an]);ap._plotWidth=this._width;ap._plotHeight=this._height}var aw=function(aD,aB,aE){var aA=[];var aC,az;aB=aB||"vertical";if(!L.isArray(aD[0])){for(aC=0,az=aD.length;aC<az;aC++){if(aB=="vertical"){aA.push([aE+aC,aD[aC]])}else{aA.push([aD[aC],aE+aC])}}}else{L.extend(true,aA,aD)}return aA};var av=0;this.series=[];for(var at=0;at<this.data.length;at++){var al=L.extend(true,{index:at},{seriesColors:this.seriesColors,negativeSeriesColors:this.negativeSeriesColors},this.options.seriesDefaults,this.options.series[at],{rendererOptions:{animation:{show:this.animate}}});var ax=new S(al);for(var ar=0;ar<L.jqplot.preParseSeriesOptionsHooks.length;ar++){L.jqplot.preParseSeriesOptionsHooks[ar].call(ax,this.options.seriesDefaults,this.options.series[at])}for(var ar=0;ar<this.preParseSeriesOptionsHooks.hooks.length;ar++){this.preParseSeriesOptionsHooks.hooks[ar].call(ax,this.options.seriesDefaults,this.options.series[at])}L.extend(true,ax,al);var ao="vertical";if(ax.renderer===L.jqplot.BarRenderer&&ax.rendererOptions&&ax.rendererOptions.barDirection=="horizontal"){ao="horizontal";ax._stackAxis="x";ax._primaryAxis="_yaxis"}ax.data=aw(this.data[at],ao,this.defaultAxisStart);switch(ax.xaxis){case"xaxis":ax._xaxis=this.axes.xaxis;break;case"x2axis":ax._xaxis=this.axes.x2axis;break;default:break}ax._yaxis=this.axes[ax.yaxis];ax._xaxis._series.push(ax);ax._yaxis._series.push(ax);if(ax.show){ax._xaxis.show=true;ax._yaxis.show=true}else{if(ax._xaxis.scaleToHiddenSeries){ax._xaxis.show=true}if(ax._yaxis.scaleToHiddenSeries){ax._yaxis.show=true}}if(!ax.label){ax.label="Series "+(at+1).toString()}this.series.push(ax);for(var ar=0;ar<L.jqplot.postParseSeriesOptionsHooks.length;ar++){L.jqplot.postParseSeriesOptionsHooks[ar].call(this.series[at],this.options.seriesDefaults,this.options.series[at])}for(var ar=0;ar<this.postParseSeriesOptionsHooks.hooks.length;ar++){this.postParseSeriesOptionsHooks.hooks[ar].call(this.series[at],this.options.seriesDefaults,this.options.series[at])}}L.extend(true,this.grid,this.options.grid);for(var at=0,aq=U.length;at<aq;at++){var an=U[at];var ap=this.axes[an];if(ap.borderWidth==null){ap.borderWidth=this.grid.borderWidth}}if(typeof this.options.title=="string"){this.title.text=this.options.title}else{if(typeof this.options.title=="object"){L.extend(true,this.title,this.options.title)}}this.title._plotWidth=this._width;this.legend.setOptions(this.options.legend);for(var at=0;at<L.jqplot.postParseOptionsHooks.length;at++){L.jqplot.postParseOptionsHooks[at].call(this,ay)}for(var at=0;at<this.postParseOptionsHooks.hooks.length;at++){this.postParseOptionsHooks.hooks[at].call(this,ay)}};this.destroy=function(){this.canvasManager.freeAllCanvases();if(this.eventCanvas&&this.eventCanvas._elem){this.eventCanvas._elem.unbind()}this.target.empty();this.target[0].innerHTML=""};this.replot=function(am){var an=am||{};var ap=an.data||null;var al=(an.clear===false)?false:true;var ao=an.resetAxes||false;delete an.data;delete an.clear;delete an.resetAxes;this.target.trigger("jqplotPreReplot");if(al){this.destroy()}if(ap||!L.isEmptyObject(an)){this.reInitialize(ap,an)}else{this.quickInit()}if(ao){this.resetAxesScale(ao,an.axes)}this.draw();this.target.trigger("jqplotPostReplot")};this.redraw=function(al){al=(al!=null)?al:true;this.target.trigger("jqplotPreRedraw");if(al){this.canvasManager.freeAllCanvases();this.eventCanvas._elem.unbind();this.target.empty()}for(var an in this.axes){this.axes[an]._ticks=[]}this.computePlotData();this._sumy=0;this._sumx=0;for(var am=0,ao=this.series.length;am<ao;am++){this._sumy+=this.series[am]._sumy;this._sumx+=this.series[am]._sumx}this.draw();this.target.trigger("jqplotPostRedraw")};this.draw=function(){if(this.drawIfHidden||this.target.is(":visible")){this.target.trigger("jqplotPreDraw");var aH,aF,aE,ao;for(aH=0,aE=L.jqplot.preDrawHooks.length;aH<aE;aH++){L.jqplot.preDrawHooks[aH].call(this)}for(aH=0,aE=this.preDrawHooks.hooks.length;aH<aE;aH++){this.preDrawHooks.hooks[aH].apply(this,this.preDrawSeriesHooks.args[aH])}this.target.append(this.baseCanvas.createElement({left:0,right:0,top:0,bottom:0},"jqplot-base-canvas",null,this));this.baseCanvas.setContext();this.target.append(this.title.draw());this.title.pack({top:0,left:0});var aL=this.legend.draw({},this);var al={top:0,left:0,bottom:0,right:0};if(this.legend.placement=="outsideGrid"){this.target.append(aL);switch(this.legend.location){case"n":al.top+=this.legend.getHeight();break;case"s":al.bottom+=this.legend.getHeight();break;case"ne":case"e":case"se":al.right+=this.legend.getWidth();break;case"nw":case"w":case"sw":al.left+=this.legend.getWidth();break;default:al.right+=this.legend.getWidth();break}aL=aL.detach()}var ar=this.axes;var aM;for(aH=0;aH<12;aH++){aM=U[aH];this.target.append(ar[aM].draw(this.baseCanvas._ctx,this));ar[aM].set()}if(ar.yaxis.show){al.left+=ar.yaxis.getWidth()}var aG=["y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis"];var az=[0,0,0,0,0,0,0,0];var aC=0;var aB;for(aB=0;aB<8;aB++){if(ar[aG[aB]].show){aC+=ar[aG[aB]].getWidth();az[aB]=aC}}al.right+=aC;if(ar.x2axis.show){al.top+=ar.x2axis.getHeight()}if(this.title.show){al.top+=this.title.getHeight()}if(ar.xaxis.show){al.bottom+=ar.xaxis.getHeight()}if(this.options.gridDimensions&&L.isPlainObject(this.options.gridDimensions)){var at=parseInt(this.options.gridDimensions.width,10)||0;var aI=parseInt(this.options.gridDimensions.height,10)||0;var an=(this._width-al.left-al.right-at)/2;var aK=(this._height-al.top-al.bottom-aI)/2;if(aK>=0&&an>=0){al.top+=aK;al.bottom+=aK;al.left+=an;al.right+=an}}var am=["top","bottom","left","right"];for(var aB in am){if(this._gridPadding[am[aB]]==null&&al[am[aB]]>0){this._gridPadding[am[aB]]=al[am[aB]]}else{if(this._gridPadding[am[aB]]==null){this._gridPadding[am[aB]]=this._defaultGridPadding[am[aB]]}}}var aA=this._gridPadding;if(this.legend.placement==="outsideGrid"){aA={top:this.title.getHeight(),left:0,right:0,bottom:0};if(this.legend.location==="s"){aA.left=this._gridPadding.left;aA.right=this._gridPadding.right}}ar.xaxis.pack({position:"absolute",bottom:this._gridPadding.bottom-ar.xaxis.getHeight(),left:0,width:this._width},{min:this._gridPadding.left,max:this._width-this._gridPadding.right});ar.yaxis.pack({position:"absolute",top:0,left:this._gridPadding.left-ar.yaxis.getWidth(),height:this._height},{min:this._height-this._gridPadding.bottom,max:this._gridPadding.top});ar.x2axis.pack({position:"absolute",top:this._gridPadding.top-ar.x2axis.getHeight(),left:0,width:this._width},{min:this._gridPadding.left,max:this._width-this._gridPadding.right});for(aH=8;aH>0;aH--){ar[aG[aH-1]].pack({position:"absolute",top:0,right:this._gridPadding.right-az[aH-1]},{min:this._height-this._gridPadding.bottom,max:this._gridPadding.top})}var au=(this._width-this._gridPadding.left-this._gridPadding.right)/2+this._gridPadding.left-ar.yMidAxis.getWidth()/2;ar.yMidAxis.pack({position:"absolute",top:0,left:au,zIndex:9,textAlign:"center"},{min:this._height-this._gridPadding.bottom,max:this._gridPadding.top});this.target.append(this.grid.createElement(this._gridPadding,this));this.grid.draw();var aq=this.series;var aJ=aq.length;for(aH=0,aE=aJ;aH<aE;aH++){aF=this.seriesStack[aH];this.target.append(aq[aF].shadowCanvas.createElement(this._gridPadding,"jqplot-series-shadowCanvas",null,this));aq[aF].shadowCanvas.setContext();aq[aF].shadowCanvas._elem.data("seriesIndex",aF)}for(aH=0,aE=aJ;aH<aE;aH++){aF=this.seriesStack[aH];this.target.append(aq[aF].canvas.createElement(this._gridPadding,"jqplot-series-canvas",null,this));aq[aF].canvas.setContext();aq[aF].canvas._elem.data("seriesIndex",aF)}this.target.append(this.eventCanvas.createElement(this._gridPadding,"jqplot-event-canvas",null,this));this.eventCanvas.setContext();this.eventCanvas._ctx.fillStyle="rgba(0,0,0,0)";this.eventCanvas._ctx.fillRect(0,0,this.eventCanvas._ctx.canvas.width,this.eventCanvas._ctx.canvas.height);this.bindCustomEvents();if(this.legend.preDraw){this.eventCanvas._elem.before(aL);this.legend.pack(aA);if(this.legend._elem){this.drawSeries({legendInfo:{location:this.legend.location,placement:this.legend.placement,width:this.legend.getWidth(),height:this.legend.getHeight(),xoffset:this.legend.xoffset,yoffset:this.legend.yoffset}})}else{this.drawSeries()}}else{this.drawSeries();if(aJ){L(aq[aJ-1].canvas._elem).after(aL)}this.legend.pack(aA)}for(var aH=0,aE=L.jqplot.eventListenerHooks.length;aH<aE;aH++){this.eventCanvas._elem.bind(L.jqplot.eventListenerHooks[aH][0],{plot:this},L.jqplot.eventListenerHooks[aH][1])}for(var aH=0,aE=this.eventListenerHooks.hooks.length;aH<aE;aH++){this.eventCanvas._elem.bind(this.eventListenerHooks.hooks[aH][0],{plot:this},this.eventListenerHooks.hooks[aH][1])}var ay=this.fillBetween;if(ay.fill&&ay.series1!==ay.series2&&ay.series1<aJ&&ay.series2<aJ&&aq[ay.series1]._type==="line"&&aq[ay.series2]._type==="line"){this.doFillBetweenLines()}for(var aH=0,aE=L.jqplot.postDrawHooks.length;aH<aE;aH++){L.jqplot.postDrawHooks[aH].call(this)}for(var aH=0,aE=this.postDrawHooks.hooks.length;aH<aE;aH++){this.postDrawHooks.hooks[aH].apply(this,this.postDrawHooks.args[aH])}if(this.target.is(":visible")){this._drawCount+=1}var av,aw,aD,ap;for(aH=0,aE=aJ;aH<aE;aH++){av=aq[aH];aw=av.renderer;aD=".jqplot-point-label.jqplot-series-"+aH;if(aw.animation&&aw.animation._supported&&aw.animation.show&&(this._drawCount<2||this.animateReplot)){ap=this.target.find(aD);ap.stop(true,true).hide();av.canvas._elem.stop(true,true).hide();av.shadowCanvas._elem.stop(true,true).hide();av.canvas._elem.jqplotEffect("blind",{mode:"show",direction:aw.animation.direction},aw.animation.speed);av.shadowCanvas._elem.jqplotEffect("blind",{mode:"show",direction:aw.animation.direction},aw.animation.speed);ap.fadeIn(aw.animation.speed*0.8)}}ap=null;this.target.trigger("jqplotPostDraw",[this])}};R.prototype.doFillBetweenLines=function(){var an=this.fillBetween;var ax=an.series1;var av=an.series2;var aw=(ax<av)?ax:av;var au=(av>ax)?av:ax;var ar=this.series[aw];var aq=this.series[au];if(aq.renderer.smooth){var ap=aq.renderer._smoothedData.slice(0).reverse()}else{var ap=aq.gridData.slice(0).reverse()}if(ar.renderer.smooth){var at=ar.renderer._smoothedData.concat(ap)}else{var at=ar.gridData.concat(ap)}var ao=(an.color!==null)?an.color:this.series[ax].fillColor;var ay=(an.baseSeries!==null)?an.baseSeries:aw;var am=this.series[ay].renderer.shapeRenderer;var al={fillStyle:ao,fill:true,closePath:true};am.draw(ar.shadowCanvas._ctx,at,al)};this.bindCustomEvents=function(){this.eventCanvas._elem.bind("click",{plot:this},this.onClick);this.eventCanvas._elem.bind("dblclick",{plot:this},this.onDblClick);this.eventCanvas._elem.bind("mousedown",{plot:this},this.onMouseDown);this.eventCanvas._elem.bind("mousemove",{plot:this},this.onMouseMove);this.eventCanvas._elem.bind("mouseenter",{plot:this},this.onMouseEnter);this.eventCanvas._elem.bind("mouseleave",{plot:this},this.onMouseLeave);if(this.captureRightClick){this.eventCanvas._elem.bind("mouseup",{plot:this},this.onRightClick);this.eventCanvas._elem.get(0).oncontextmenu=function(){return false}}else{this.eventCanvas._elem.bind("mouseup",{plot:this},this.onMouseUp)}};function ai(av){var au=av.data.plot;var ap=au.eventCanvas._elem.offset();var at={x:av.pageX-ap.left,y:av.pageY-ap.top};var aq={xaxis:null,yaxis:null,x2axis:null,y2axis:null,y3axis:null,y4axis:null,y5axis:null,y6axis:null,y7axis:null,y8axis:null,y9axis:null,yMidAxis:null};var ar=["xaxis","yaxis","x2axis","y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis","yMidAxis"];var al=au.axes;var am,ao;for(am=11;am>0;am--){ao=ar[am-1];if(al[ao].show){aq[ao]=al[ao].series_p2u(at[ao.charAt(0)])}}return{offsets:ap,gridPos:at,dataPos:aq}}function ak(al,am){var aq=am.series;var aW,aU,aT,aO,aP,aJ,aI,aw,au,az,aA,aK;var aS,aX,aQ,ar,aH,aM,aV;var an,aN;for(aT=am.seriesStack.length-1;aT>=0;aT--){aW=am.seriesStack[aT];aO=aq[aW];aV=aO._highlightThreshold;switch(aO.renderer.constructor){case L.jqplot.BarRenderer:aJ=al.x;aI=al.y;for(aU=0;aU<aO._barPoints.length;aU++){aH=aO._barPoints[aU];aQ=aO.gridData[aU];if(aJ>aH[0][0]&&aJ<aH[2][0]&&aI>aH[2][1]&&aI<aH[0][1]){return{seriesIndex:aO.index,pointIndex:aU,gridData:aQ,data:aO.data[aU],points:aO._barPoints[aU]}}}break;case L.jqplot.PyramidRenderer:aJ=al.x;aI=al.y;for(aU=0;aU<aO._barPoints.length;aU++){aH=aO._barPoints[aU];aQ=aO.gridData[aU];if(aJ>aH[0][0]+aV[0][0]&&aJ<aH[2][0]+aV[2][0]&&aI>aH[2][1]&&aI<aH[0][1]){return{seriesIndex:aO.index,pointIndex:aU,gridData:aQ,data:aO.data[aU],points:aO._barPoints[aU]}}}break;case L.jqplot.DonutRenderer:az=aO.startAngle/180*Math.PI;aJ=al.x-aO._center[0];aI=al.y-aO._center[1];aP=Math.sqrt(Math.pow(aJ,2)+Math.pow(aI,2));if(aJ>0&&-aI>=0){aw=2*Math.PI-Math.atan(-aI/aJ)}else{if(aJ>0&&-aI<0){aw=-Math.atan(-aI/aJ)}else{if(aJ<0){aw=Math.PI-Math.atan(-aI/aJ)}else{if(aJ==0&&-aI>0){aw=3*Math.PI/2}else{if(aJ==0&&-aI<0){aw=Math.PI/2}else{if(aJ==0&&aI==0){aw=0}}}}}}if(az){aw-=az;if(aw<0){aw+=2*Math.PI}else{if(aw>2*Math.PI){aw-=2*Math.PI}}}au=aO.sliceMargin/180*Math.PI;if(aP<aO._radius&&aP>aO._innerRadius){for(aU=0;aU<aO.gridData.length;aU++){aA=(aU>0)?aO.gridData[aU-1][1]+au:au;aK=aO.gridData[aU][1];if(aw>aA&&aw<aK){return{seriesIndex:aO.index,pointIndex:aU,gridData:[al.x,al.y],data:aO.data[aU]}}}}break;case L.jqplot.PieRenderer:az=aO.startAngle/180*Math.PI;aJ=al.x-aO._center[0];aI=al.y-aO._center[1];aP=Math.sqrt(Math.pow(aJ,2)+Math.pow(aI,2));if(aJ>0&&-aI>=0){aw=2*Math.PI-Math.atan(-aI/aJ)}else{if(aJ>0&&-aI<0){aw=-Math.atan(-aI/aJ)}else{if(aJ<0){aw=Math.PI-Math.atan(-aI/aJ)}else{if(aJ==0&&-aI>0){aw=3*Math.PI/2}else{if(aJ==0&&-aI<0){aw=Math.PI/2}else{if(aJ==0&&aI==0){aw=0}}}}}}if(az){aw-=az;if(aw<0){aw+=2*Math.PI}else{if(aw>2*Math.PI){aw-=2*Math.PI}}}au=aO.sliceMargin/180*Math.PI;if(aP<aO._radius){for(aU=0;aU<aO.gridData.length;aU++){aA=(aU>0)?aO.gridData[aU-1][1]+au:au;aK=aO.gridData[aU][1];if(aw>aA&&aw<aK){return{seriesIndex:aO.index,pointIndex:aU,gridData:[al.x,al.y],data:aO.data[aU]}}}}break;case L.jqplot.BubbleRenderer:aJ=al.x;aI=al.y;var aF=null;if(aO.show){for(var aU=0;aU<aO.gridData.length;aU++){aQ=aO.gridData[aU];aX=Math.sqrt((aJ-aQ[0])*(aJ-aQ[0])+(aI-aQ[1])*(aI-aQ[1]));if(aX<=aQ[2]&&(aX<=aS||aS==null)){aS=aX;aF={seriesIndex:aW,pointIndex:aU,gridData:aQ,data:aO.data[aU]}}}if(aF!=null){return aF}}break;case L.jqplot.FunnelRenderer:aJ=al.x;aI=al.y;var aL=aO._vertices,ap=aL[0],ao=aL[aL.length-1],at,aE,ay;function aR(a0,a2,a1){var aZ=(a2[1]-a1[1])/(a2[0]-a1[0]);var aY=a2[1]-aZ*a2[0];var a3=a0+a2[1];return[(a3-aY)/aZ,a3]}at=aR(aI,ap[0],ao[3]);aE=aR(aI,ap[1],ao[2]);for(aU=0;aU<aL.length;aU++){ay=aL[aU];if(aI>=ay[0][1]&&aI<=ay[3][1]&&aJ>=at[0]&&aJ<=aE[0]){return{seriesIndex:aO.index,pointIndex:aU,gridData:null,data:aO.data[aU]}}}break;case L.jqplot.LineRenderer:aJ=al.x;aI=al.y;aP=aO.renderer;if(aO.show){if((aO.fill||(aO.renderer.bands.show&&aO.renderer.bands.fill))&&(!am.plugins.highlighter||!am.plugins.highlighter.show)){var ax=false;if(aJ>aO._boundingBox[0][0]&&aJ<aO._boundingBox[1][0]&&aI>aO._boundingBox[1][1]&&aI<aO._boundingBox[0][1]){var aD=aO._areaPoints.length;var aG;var aU=aD-1;for(var aG=0;aG<aD;aG++){var aC=[aO._areaPoints[aG][0],aO._areaPoints[aG][1]];var aB=[aO._areaPoints[aU][0],aO._areaPoints[aU][1]];if(aC[1]<aI&&aB[1]>=aI||aB[1]<aI&&aC[1]>=aI){if(aC[0]+(aI-aC[1])/(aB[1]-aC[1])*(aB[0]-aC[0])<aJ){ax=!ax}}aU=aG}}if(ax){return{seriesIndex:aW,pointIndex:null,gridData:aO.gridData,data:aO.data,points:aO._areaPoints}}break}else{aN=aO.markerRenderer.size/2+aO.neighborThreshold;an=(aN>0)?aN:0;for(var aU=0;aU<aO.gridData.length;aU++){aQ=aO.gridData[aU];if(aP.constructor==L.jqplot.OHLCRenderer){if(aP.candleStick){var av=aO._yaxis.series_u2p;if(aJ>=aQ[0]-aP._bodyWidth/2&&aJ<=aQ[0]+aP._bodyWidth/2&&aI>=av(aO.data[aU][2])&&aI<=av(aO.data[aU][3])){return{seriesIndex:aW,pointIndex:aU,gridData:aQ,data:aO.data[aU]}}}else{if(!aP.hlc){var av=aO._yaxis.series_u2p;if(aJ>=aQ[0]-aP._tickLength&&aJ<=aQ[0]+aP._tickLength&&aI>=av(aO.data[aU][2])&&aI<=av(aO.data[aU][3])){return{seriesIndex:aW,pointIndex:aU,gridData:aQ,data:aO.data[aU]}}}else{var av=aO._yaxis.series_u2p;if(aJ>=aQ[0]-aP._tickLength&&aJ<=aQ[0]+aP._tickLength&&aI>=av(aO.data[aU][1])&&aI<=av(aO.data[aU][2])){return{seriesIndex:aW,pointIndex:aU,gridData:aQ,data:aO.data[aU]}}}}}else{if(aQ[0]!=null&&aQ[1]!=null){aX=Math.sqrt((aJ-aQ[0])*(aJ-aQ[0])+(aI-aQ[1])*(aI-aQ[1]));if(aX<=an&&(aX<=aS||aS==null)){aS=aX;return{seriesIndex:aW,pointIndex:aU,gridData:aQ,data:aO.data[aU]}}}}}}}break;default:aJ=al.x;aI=al.y;aP=aO.renderer;if(aO.show){aN=aO.markerRenderer.size/2+aO.neighborThreshold;an=(aN>0)?aN:0;for(var aU=0;aU<aO.gridData.length;aU++){aQ=aO.gridData[aU];if(aP.constructor==L.jqplot.OHLCRenderer){if(aP.candleStick){var av=aO._yaxis.series_u2p;if(aJ>=aQ[0]-aP._bodyWidth/2&&aJ<=aQ[0]+aP._bodyWidth/2&&aI>=av(aO.data[aU][2])&&aI<=av(aO.data[aU][3])){return{seriesIndex:aW,pointIndex:aU,gridData:aQ,data:aO.data[aU]}}}else{if(!aP.hlc){var av=aO._yaxis.series_u2p;if(aJ>=aQ[0]-aP._tickLength&&aJ<=aQ[0]+aP._tickLength&&aI>=av(aO.data[aU][2])&&aI<=av(aO.data[aU][3])){return{seriesIndex:aW,pointIndex:aU,gridData:aQ,data:aO.data[aU]}}}else{var av=aO._yaxis.series_u2p;if(aJ>=aQ[0]-aP._tickLength&&aJ<=aQ[0]+aP._tickLength&&aI>=av(aO.data[aU][1])&&aI<=av(aO.data[aU][2])){return{seriesIndex:aW,pointIndex:aU,gridData:aQ,data:aO.data[aU]}}}}}else{aX=Math.sqrt((aJ-aQ[0])*(aJ-aQ[0])+(aI-aQ[1])*(aI-aQ[1]));if(aX<=an&&(aX<=aS||aS==null)){aS=aX;return{seriesIndex:aW,pointIndex:aU,gridData:aQ,data:aO.data[aU]}}}}}break}}return null}this.onClick=function(an){var am=ai(an);var ap=an.data.plot;var ao=ak(am.gridPos,ap);var al=L.Event("jqplotClick");al.pageX=an.pageX;al.pageY=an.pageY;L(this).trigger(al,[am.gridPos,am.dataPos,ao,ap])};this.onDblClick=function(an){var am=ai(an);var ap=an.data.plot;var ao=ak(am.gridPos,ap);var al=L.Event("jqplotDblClick");al.pageX=an.pageX;al.pageY=an.pageY;L(this).trigger(al,[am.gridPos,am.dataPos,ao,ap])};this.onMouseDown=function(an){var am=ai(an);var ap=an.data.plot;var ao=ak(am.gridPos,ap);var al=L.Event("jqplotMouseDown");al.pageX=an.pageX;al.pageY=an.pageY;L(this).trigger(al,[am.gridPos,am.dataPos,ao,ap])};this.onMouseUp=function(an){var am=ai(an);var al=L.Event("jqplotMouseUp");al.pageX=an.pageX;al.pageY=an.pageY;L(this).trigger(al,[am.gridPos,am.dataPos,null,an.data.plot])};this.onRightClick=function(an){var am=ai(an);var ap=an.data.plot;var ao=ak(am.gridPos,ap);if(ap.captureRightClick){if(an.which==3){var al=L.Event("jqplotRightClick");al.pageX=an.pageX;al.pageY=an.pageY;L(this).trigger(al,[am.gridPos,am.dataPos,ao,ap])}else{var al=L.Event("jqplotMouseUp");al.pageX=an.pageX;al.pageY=an.pageY;L(this).trigger(al,[am.gridPos,am.dataPos,ao,ap])}}};this.onMouseMove=function(an){var am=ai(an);var ap=an.data.plot;var ao=ak(am.gridPos,ap);var al=L.Event("jqplotMouseMove");al.pageX=an.pageX;al.pageY=an.pageY;L(this).trigger(al,[am.gridPos,am.dataPos,ao,ap])};this.onMouseEnter=function(an){var am=ai(an);var ao=an.data.plot;var al=L.Event("jqplotMouseEnter");al.pageX=an.pageX;al.pageY=an.pageY;al.relatedTarget=an.relatedTarget;L(this).trigger(al,[am.gridPos,am.dataPos,null,ao])};this.onMouseLeave=function(an){var am=ai(an);var ao=an.data.plot;var al=L.Event("jqplotMouseLeave");al.pageX=an.pageX;al.pageY=an.pageY;al.relatedTarget=an.relatedTarget;L(this).trigger(al,[am.gridPos,am.dataPos,null,ao])};this.drawSeries=function(an,al){var ap,ao,am;al=(typeof(an)==="number"&&al==null)?an:al;an=(typeof(an)==="object")?an:{};if(al!=u){ao=this.series[al];am=ao.shadowCanvas._ctx;am.clearRect(0,0,am.canvas.width,am.canvas.height);ao.drawShadow(am,an,this);am=ao.canvas._ctx;am.clearRect(0,0,am.canvas.width,am.canvas.height);ao.draw(am,an,this);if(ao.renderer.constructor==L.jqplot.BezierCurveRenderer){if(al<this.series.length-1){this.drawSeries(al+1)}}}else{for(ap=0;ap<this.series.length;ap++){ao=this.series[ap];am=ao.shadowCanvas._ctx;am.clearRect(0,0,am.canvas.width,am.canvas.height);ao.drawShadow(am,an,this);am=ao.canvas._ctx;am.clearRect(0,0,am.canvas.width,am.canvas.height);ao.draw(am,an,this)}}an=al=ap=ao=am=null};this.moveSeriesToFront=function(am){am=parseInt(am,10);var ap=L.inArray(am,this.seriesStack);if(ap==-1){return}if(ap==this.seriesStack.length-1){this.previousSeriesStack=this.seriesStack.slice(0);return}var al=this.seriesStack[this.seriesStack.length-1];var ao=this.series[am].canvas._elem.detach();var an=this.series[am].shadowCanvas._elem.detach();this.series[al].shadowCanvas._elem.after(an);this.series[al].canvas._elem.after(ao);this.previousSeriesStack=this.seriesStack.slice(0);this.seriesStack.splice(ap,1);this.seriesStack.push(am)};this.moveSeriesToBack=function(am){am=parseInt(am,10);var ap=L.inArray(am,this.seriesStack);if(ap==0||ap==-1){return}var al=this.seriesStack[0];var ao=this.series[am].canvas._elem.detach();var an=this.series[am].shadowCanvas._elem.detach();this.series[al].shadowCanvas._elem.before(an);this.series[al].canvas._elem.before(ao);this.previousSeriesStack=this.seriesStack.slice(0);this.seriesStack.splice(ap,1);this.seriesStack.unshift(am)};this.restorePreviousSeriesOrder=function(){var ar,aq,ap,ao,an,al,am;if(this.seriesStack==this.previousSeriesStack){return}for(ar=1;ar<this.previousSeriesStack.length;ar++){al=this.previousSeriesStack[ar];am=this.previousSeriesStack[ar-1];ap=this.series[al].canvas._elem.detach();ao=this.series[al].shadowCanvas._elem.detach();this.series[am].shadowCanvas._elem.after(ao);this.series[am].canvas._elem.after(ap)}an=this.seriesStack.slice(0);this.seriesStack=this.previousSeriesStack.slice(0);this.previousSeriesStack=an};this.restoreOriginalSeriesOrder=function(){var ap,ao,al=[],an,am;for(ap=0;ap<this.series.length;ap++){al.push(ap)}if(this.seriesStack==al){return}this.previousSeriesStack=this.seriesStack.slice(0);this.seriesStack=al;for(ap=1;ap<this.seriesStack.length;ap++){an=this.series[ap].canvas._elem.detach();am=this.series[ap].shadowCanvas._elem.detach();this.series[ap-1].shadowCanvas._elem.after(am);this.series[ap-1].canvas._elem.after(an)}};this.activateTheme=function(al){this.themeEngine.activate(this,al)}}L.jqplot.computeHighlightColors=function(ai){var ak;if(L.isArray(ai)){ak=[];for(var am=0;am<ai.length;am++){var al=L.jqplot.getColorComponents(ai[am]);var ah=[al[0],al[1],al[2]];var an=ah[0]+ah[1]+ah[2];for(var aj=0;aj<3;aj++){ah[aj]=(an>660)?ah[aj]*0.85:0.73*ah[aj]+90;ah[aj]=parseInt(ah[aj],10);(ah[aj]>255)?255:ah[aj]}ah[3]=0.3+0.35*al[3];ak.push("rgba("+ah[0]+","+ah[1]+","+ah[2]+","+ah[3]+")")}}else{var al=L.jqplot.getColorComponents(ai);var ah=[al[0],al[1],al[2]];var an=ah[0]+ah[1]+ah[2];for(var aj=0;aj<3;aj++){ah[aj]=(an>660)?ah[aj]*0.85:0.73*ah[aj]+90;ah[aj]=parseInt(ah[aj],10);(ah[aj]>255)?255:ah[aj]}ah[3]=0.3+0.35*al[3];ak="rgba("+ah[0]+","+ah[1]+","+ah[2]+","+ah[3]+")"}return ak};L.jqplot.ColorGenerator=function(ai){ai=ai||L.jqplot.config.defaultColors;var ah=0;this.next=function(){if(ah<ai.length){return ai[ah++]}else{ah=0;return ai[ah++]}};this.previous=function(){if(ah>0){return ai[ah--]}else{ah=ai.length-1;return ai[ah]}};this.get=function(ak){var aj=ak-ai.length*Math.floor(ak/ai.length);return ai[aj]};this.setColors=function(aj){ai=aj};this.reset=function(){ah=0};this.getIndex=function(){return ah};this.setIndex=function(aj){ah=aj}};L.jqplot.hex2rgb=function(aj,ah){aj=aj.replace("#","");if(aj.length==3){aj=aj.charAt(0)+aj.charAt(0)+aj.charAt(1)+aj.charAt(1)+aj.charAt(2)+aj.charAt(2)}var ai;ai="rgba("+parseInt(aj.slice(0,2),16)+", "+parseInt(aj.slice(2,4),16)+", "+parseInt(aj.slice(4,6),16);if(ah){ai+=", "+ah}ai+=")";return ai};L.jqplot.rgb2hex=function(am){var aj=/rgba?\( *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *(?:, *[0-9.]*)?\)/;var ah=am.match(aj);var al="#";for(var ak=1;ak<4;ak++){var ai;if(ah[ak].search(/%/)!=-1){ai=parseInt(255*ah[ak]/100,10).toString(16);if(ai.length==1){ai="0"+ai}}else{ai=parseInt(ah[ak],10).toString(16);if(ai.length==1){ai="0"+ai}}al+=ai}return al};L.jqplot.normalize2rgb=function(ai,ah){if(ai.search(/^ *rgba?\(/)!=-1){return ai}else{if(ai.search(/^ *#?[0-9a-fA-F]?[0-9a-fA-F]/)!=-1){return L.jqplot.hex2rgb(ai,ah)}else{throw new Error("Invalid color spec")}}};L.jqplot.getColorComponents=function(am){am=L.jqplot.colorKeywordMap[am]||am;var ak=L.jqplot.normalize2rgb(am);var aj=/rgba?\( *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *,? *([0-9.]* *)?\)/;var ah=ak.match(aj);var ai=[];for(var al=1;al<4;al++){if(ah[al].search(/%/)!=-1){ai[al-1]=parseInt(255*ah[al]/100,10)}else{ai[al-1]=parseInt(ah[al],10)}}ai[3]=parseFloat(ah[4])?parseFloat(ah[4]):1;return ai};L.jqplot.colorKeywordMap={aliceblue:"rgb(240, 248, 255)",antiquewhite:"rgb(250, 235, 215)",aqua:"rgb( 0, 255, 255)",aquamarine:"rgb(127, 255, 212)",azure:"rgb(240, 255, 255)",beige:"rgb(245, 245, 220)",bisque:"rgb(255, 228, 196)",black:"rgb( 0, 0, 0)",blanchedalmond:"rgb(255, 235, 205)",blue:"rgb( 0, 0, 255)",blueviolet:"rgb(138, 43, 226)",brown:"rgb(165, 42, 42)",burlywood:"rgb(222, 184, 135)",cadetblue:"rgb( 95, 158, 160)",chartreuse:"rgb(127, 255, 0)",chocolate:"rgb(210, 105, 30)",coral:"rgb(255, 127, 80)",cornflowerblue:"rgb(100, 149, 237)",cornsilk:"rgb(255, 248, 220)",crimson:"rgb(220, 20, 60)",cyan:"rgb( 0, 255, 255)",darkblue:"rgb( 0, 0, 139)",darkcyan:"rgb( 0, 139, 139)",darkgoldenrod:"rgb(184, 134, 11)",darkgray:"rgb(169, 169, 169)",darkgreen:"rgb( 0, 100, 0)",darkgrey:"rgb(169, 169, 169)",darkkhaki:"rgb(189, 183, 107)",darkmagenta:"rgb(139, 0, 139)",darkolivegreen:"rgb( 85, 107, 47)",darkorange:"rgb(255, 140, 0)",darkorchid:"rgb(153, 50, 204)",darkred:"rgb(139, 0, 0)",darksalmon:"rgb(233, 150, 122)",darkseagreen:"rgb(143, 188, 143)",darkslateblue:"rgb( 72, 61, 139)",darkslategray:"rgb( 47, 79, 79)",darkslategrey:"rgb( 47, 79, 79)",darkturquoise:"rgb( 0, 206, 209)",darkviolet:"rgb(148, 0, 211)",deeppink:"rgb(255, 20, 147)",deepskyblue:"rgb( 0, 191, 255)",dimgray:"rgb(105, 105, 105)",dimgrey:"rgb(105, 105, 105)",dodgerblue:"rgb( 30, 144, 255)",firebrick:"rgb(178, 34, 34)",floralwhite:"rgb(255, 250, 240)",forestgreen:"rgb( 34, 139, 34)",fuchsia:"rgb(255, 0, 255)",gainsboro:"rgb(220, 220, 220)",ghostwhite:"rgb(248, 248, 255)",gold:"rgb(255, 215, 0)",goldenrod:"rgb(218, 165, 32)",gray:"rgb(128, 128, 128)",grey:"rgb(128, 128, 128)",green:"rgb( 0, 128, 0)",greenyellow:"rgb(173, 255, 47)",honeydew:"rgb(240, 255, 240)",hotpink:"rgb(255, 105, 180)",indianred:"rgb(205, 92, 92)",indigo:"rgb( 75, 0, 130)",ivory:"rgb(255, 255, 240)",khaki:"rgb(240, 230, 140)",lavender:"rgb(230, 230, 250)",lavenderblush:"rgb(255, 240, 245)",lawngreen:"rgb(124, 252, 0)",lemonchiffon:"rgb(255, 250, 205)",lightblue:"rgb(173, 216, 230)",lightcoral:"rgb(240, 128, 128)",lightcyan:"rgb(224, 255, 255)",lightgoldenrodyellow:"rgb(250, 250, 210)",lightgray:"rgb(211, 211, 211)",lightgreen:"rgb(144, 238, 144)",lightgrey:"rgb(211, 211, 211)",lightpink:"rgb(255, 182, 193)",lightsalmon:"rgb(255, 160, 122)",lightseagreen:"rgb( 32, 178, 170)",lightskyblue:"rgb(135, 206, 250)",lightslategray:"rgb(119, 136, 153)",lightslategrey:"rgb(119, 136, 153)",lightsteelblue:"rgb(176, 196, 222)",lightyellow:"rgb(255, 255, 224)",lime:"rgb( 0, 255, 0)",limegreen:"rgb( 50, 205, 50)",linen:"rgb(250, 240, 230)",magenta:"rgb(255, 0, 255)",maroon:"rgb(128, 0, 0)",mediumaquamarine:"rgb(102, 205, 170)",mediumblue:"rgb( 0, 0, 205)",mediumorchid:"rgb(186, 85, 211)",mediumpurple:"rgb(147, 112, 219)",mediumseagreen:"rgb( 60, 179, 113)",mediumslateblue:"rgb(123, 104, 238)",mediumspringgreen:"rgb( 0, 250, 154)",mediumturquoise:"rgb( 72, 209, 204)",mediumvioletred:"rgb(199, 21, 133)",midnightblue:"rgb( 25, 25, 112)",mintcream:"rgb(245, 255, 250)",mistyrose:"rgb(255, 228, 225)",moccasin:"rgb(255, 228, 181)",navajowhite:"rgb(255, 222, 173)",navy:"rgb( 0, 0, 128)",oldlace:"rgb(253, 245, 230)",olive:"rgb(128, 128, 0)",olivedrab:"rgb(107, 142, 35)",orange:"rgb(255, 165, 0)",orangered:"rgb(255, 69, 0)",orchid:"rgb(218, 112, 214)",palegoldenrod:"rgb(238, 232, 170)",palegreen:"rgb(152, 251, 152)",paleturquoise:"rgb(175, 238, 238)",palevioletred:"rgb(219, 112, 147)",papayawhip:"rgb(255, 239, 213)",peachpuff:"rgb(255, 218, 185)",peru:"rgb(205, 133, 63)",pink:"rgb(255, 192, 203)",plum:"rgb(221, 160, 221)",powderblue:"rgb(176, 224, 230)",purple:"rgb(128, 0, 128)",red:"rgb(255, 0, 0)",rosybrown:"rgb(188, 143, 143)",royalblue:"rgb( 65, 105, 225)",saddlebrown:"rgb(139, 69, 19)",salmon:"rgb(250, 128, 114)",sandybrown:"rgb(244, 164, 96)",seagreen:"rgb( 46, 139, 87)",seashell:"rgb(255, 245, 238)",sienna:"rgb(160, 82, 45)",silver:"rgb(192, 192, 192)",skyblue:"rgb(135, 206, 235)",slateblue:"rgb(106, 90, 205)",slategray:"rgb(112, 128, 144)",slategrey:"rgb(112, 128, 144)",snow:"rgb(255, 250, 250)",springgreen:"rgb( 0, 255, 127)",steelblue:"rgb( 70, 130, 180)",tan:"rgb(210, 180, 140)",teal:"rgb( 0, 128, 128)",thistle:"rgb(216, 191, 216)",tomato:"rgb(255, 99, 71)",turquoise:"rgb( 64, 224, 208)",violet:"rgb(238, 130, 238)",wheat:"rgb(245, 222, 179)",white:"rgb(255, 255, 255)",whitesmoke:"rgb(245, 245, 245)",yellow:"rgb(255, 255, 0)",yellowgreen:"rgb(154, 205, 50)"};L.jqplot.AxisLabelRenderer=function(ah){L.jqplot.ElemContainer.call(this);this.axis;this.show=true;this.label="";this.fontFamily=null;this.fontSize=null;this.textColor=null;this._elem;this.escapeHTML=false;L.extend(true,this,ah)};L.jqplot.AxisLabelRenderer.prototype=new L.jqplot.ElemContainer();L.jqplot.AxisLabelRenderer.prototype.constructor=L.jqplot.AxisLabelRenderer;L.jqplot.AxisLabelRenderer.prototype.init=function(ah){L.extend(true,this,ah)};L.jqplot.AxisLabelRenderer.prototype.draw=function(ah,ai){if(this._elem){this._elem.emptyForce();this._elem=null}this._elem=L('<div style="position:absolute;" class="jqplot-'+this.axis+'-label"></div>');if(Number(this.label)){this._elem.css("white-space","nowrap")}if(!this.escapeHTML){this._elem.html(this.label)}else{this._elem.text(this.label)}if(this.fontFamily){this._elem.css("font-family",this.fontFamily)}if(this.fontSize){this._elem.css("font-size",this.fontSize)}if(this.textColor){this._elem.css("color",this.textColor)}return this._elem};L.jqplot.AxisLabelRenderer.prototype.pack=function(){};L.jqplot.AxisTickRenderer=function(ah){L.jqplot.ElemContainer.call(this);this.mark="outside";this.axis;this.showMark=true;this.showGridline=true;this.isMinorTick=false;this.size=4;this.markSize=6;this.show=true;this.showLabel=true;this.label=null;this.value=null;this._styles={};this.formatter=L.jqplot.DefaultTickFormatter;this.prefix="";this.suffix="";this.formatString="";this.fontFamily;this.fontSize;this.textColor;this.escapeHTML=false;this._elem;this._breakTick=false;L.extend(true,this,ah)};L.jqplot.AxisTickRenderer.prototype.init=function(ah){L.extend(true,this,ah)};L.jqplot.AxisTickRenderer.prototype=new L.jqplot.ElemContainer();L.jqplot.AxisTickRenderer.prototype.constructor=L.jqplot.AxisTickRenderer;L.jqplot.AxisTickRenderer.prototype.setTick=function(ah,aj,ai){this.value=ah;this.axis=aj;if(ai){this.isMinorTick=true}return this};L.jqplot.AxisTickRenderer.prototype.draw=function(){if(this.label===null){this.label=this.prefix+this.formatter(this.formatString,this.value)+this.suffix}var ai={position:"absolute"};if(Number(this.label)){ai.whitSpace="nowrap"}if(this._elem){this._elem.emptyForce();this._elem=null}this._elem=L(document.createElement("div"));this._elem.addClass("jqplot-"+this.axis+"-tick");if(!this.escapeHTML){this._elem.html(this.label)}else{this._elem.text(this.label)}this._elem.css(ai);for(var ah in this._styles){this._elem.css(ah,this._styles[ah])}if(this.fontFamily){this._elem.css("font-family",this.fontFamily)}if(this.fontSize){this._elem.css("font-size",this.fontSize)}if(this.textColor){this._elem.css("color",this.textColor)}if(this._breakTick){this._elem.addClass("jqplot-breakTick")}return this._elem};L.jqplot.DefaultTickFormatter=function(ah,ai){if(typeof ai=="number"){if(!ah){ah=L.jqplot.config.defaultTickFormatString}return L.jqplot.sprintf(ah,ai)}else{return String(ai)}};L.jqplot.PercentTickFormatter=function(ah,ai){if(typeof ai=="number"){ai=100*ai;if(!ah){ah=L.jqplot.config.defaultTickFormatString}return L.jqplot.sprintf(ah,ai)}else{return String(ai)}};L.jqplot.AxisTickRenderer.prototype.pack=function(){};L.jqplot.CanvasGridRenderer=function(){this.shadowRenderer=new L.jqplot.ShadowRenderer()};L.jqplot.CanvasGridRenderer.prototype.init=function(ai){this._ctx;L.extend(true,this,ai);var ah={lineJoin:"miter",lineCap:"round",fill:false,isarc:false,angle:this.shadowAngle,offset:this.shadowOffset,alpha:this.shadowAlpha,depth:this.shadowDepth,lineWidth:this.shadowWidth,closePath:false,strokeStyle:this.shadowColor};this.renderer.shadowRenderer.init(ah)};L.jqplot.CanvasGridRenderer.prototype.createElement=function(ak){var aj;if(this._elem){if(L.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==u){aj=this._elem.get(0);window.G_vmlCanvasManager.uninitElement(aj);aj=null}this._elem.emptyForce();this._elem=null}aj=ak.canvasManager.getCanvas();var ah=this._plotDimensions.width;var ai=this._plotDimensions.height;aj.width=ah;aj.height=ai;this._elem=L(aj);this._elem.addClass("jqplot-grid-canvas");this._elem.css({position:"absolute",left:0,top:0});aj=ak.canvasManager.initCanvas(aj);this._top=this._offsets.top;this._bottom=ai-this._offsets.bottom;this._left=this._offsets.left;this._right=ah-this._offsets.right;this._width=this._right-this._left;this._height=this._bottom-this._top;aj=null;return this._elem};L.jqplot.CanvasGridRenderer.prototype.draw=function(){this._ctx=this._elem.get(0).getContext("2d");var at=this._ctx;var aw=this._axes;at.save();at.clearRect(0,0,this._plotDimensions.width,this._plotDimensions.height);at.fillStyle=this.backgroundColor||this.background;at.fillRect(this._left,this._top,this._width,this._height);at.save();at.lineJoin="miter";at.lineCap="butt";at.lineWidth=this.gridLineWidth;at.strokeStyle=this.gridLineColor;var aA,az,ap,aq;var am=["xaxis","yaxis","x2axis","y2axis"];for(var ay=4;ay>0;ay--){var aD=am[ay-1];var ah=aw[aD];var aB=ah._ticks;var ar=aB.length;if(ah.show){if(ah.drawBaseline){var aC={};if(ah.baselineWidth!==null){aC.lineWidth=ah.baselineWidth}if(ah.baselineColor!==null){aC.strokeStyle=ah.baselineColor}switch(aD){case"xaxis":ao(this._left,this._bottom,this._right,this._bottom,aC);break;case"yaxis":ao(this._left,this._bottom,this._left,this._top,aC);break;case"x2axis":ao(this._left,this._bottom,this._right,this._bottom,aC);break;case"y2axis":ao(this._right,this._bottom,this._right,this._top,aC);break}}for(var au=ar;au>0;au--){var an=aB[au-1];if(an.show){var ak=Math.round(ah.u2p(an.value))+0.5;switch(aD){case"xaxis":if(an.showGridline&&this.drawGridlines&&((!an.isMinorTick&&ah.drawMajorGridlines)||(an.isMinorTick&&ah.drawMinorGridlines))){ao(ak,this._top,ak,this._bottom)}if(an.showMark&&an.mark&&((!an.isMinorTick&&ah.drawMajorTickMarks)||(an.isMinorTick&&ah.drawMinorTickMarks))){ap=an.markSize;aq=an.mark;var ak=Math.round(ah.u2p(an.value))+0.5;switch(aq){case"outside":aA=this._bottom;az=this._bottom+ap;break;case"inside":aA=this._bottom-ap;az=this._bottom;break;case"cross":aA=this._bottom-ap;az=this._bottom+ap;break;default:aA=this._bottom;az=this._bottom+ap;break}if(this.shadow){this.renderer.shadowRenderer.draw(at,[[ak,aA],[ak,az]],{lineCap:"butt",lineWidth:this.gridLineWidth,offset:this.gridLineWidth*0.75,depth:2,fill:false,closePath:false})}ao(ak,aA,ak,az)}break;case"yaxis":if(an.showGridline&&this.drawGridlines&&((!an.isMinorTick&&ah.drawMajorGridlines)||(an.isMinorTick&&ah.drawMinorGridlines))){ao(this._right,ak,this._left,ak)}if(an.showMark&&an.mark&&((!an.isMinorTick&&ah.drawMajorTickMarks)||(an.isMinorTick&&ah.drawMinorTickMarks))){ap=an.markSize;aq=an.mark;var ak=Math.round(ah.u2p(an.value))+0.5;switch(aq){case"outside":aA=this._left-ap;az=this._left;break;case"inside":aA=this._left;az=this._left+ap;break;case"cross":aA=this._left-ap;az=this._left+ap;break;default:aA=this._left-ap;az=this._left;break}if(this.shadow){this.renderer.shadowRenderer.draw(at,[[aA,ak],[az,ak]],{lineCap:"butt",lineWidth:this.gridLineWidth*1.5,offset:this.gridLineWidth*0.75,fill:false,closePath:false})}ao(aA,ak,az,ak,{strokeStyle:ah.borderColor})}break;case"x2axis":if(an.showGridline&&this.drawGridlines&&((!an.isMinorTick&&ah.drawMajorGridlines)||(an.isMinorTick&&ah.drawMinorGridlines))){ao(ak,this._bottom,ak,this._top)}if(an.showMark&&an.mark&&((!an.isMinorTick&&ah.drawMajorTickMarks)||(an.isMinorTick&&ah.drawMinorTickMarks))){ap=an.markSize;aq=an.mark;var ak=Math.round(ah.u2p(an.value))+0.5;switch(aq){case"outside":aA=this._top-ap;az=this._top;break;case"inside":aA=this._top;az=this._top+ap;break;case"cross":aA=this._top-ap;az=this._top+ap;break;default:aA=this._top-ap;az=this._top;break}if(this.shadow){this.renderer.shadowRenderer.draw(at,[[ak,aA],[ak,az]],{lineCap:"butt",lineWidth:this.gridLineWidth,offset:this.gridLineWidth*0.75,depth:2,fill:false,closePath:false})}ao(ak,aA,ak,az)}break;case"y2axis":if(an.showGridline&&this.drawGridlines&&((!an.isMinorTick&&ah.drawMajorGridlines)||(an.isMinorTick&&ah.drawMinorGridlines))){ao(this._left,ak,this._right,ak)}if(an.showMark&&an.mark&&((!an.isMinorTick&&ah.drawMajorTickMarks)||(an.isMinorTick&&ah.drawMinorTickMarks))){ap=an.markSize;aq=an.mark;var ak=Math.round(ah.u2p(an.value))+0.5;switch(aq){case"outside":aA=this._right;az=this._right+ap;break;case"inside":aA=this._right-ap;az=this._right;break;case"cross":aA=this._right-ap;az=this._right+ap;break;default:aA=this._right;az=this._right+ap;break}if(this.shadow){this.renderer.shadowRenderer.draw(at,[[aA,ak],[az,ak]],{lineCap:"butt",lineWidth:this.gridLineWidth*1.5,offset:this.gridLineWidth*0.75,fill:false,closePath:false})}ao(aA,ak,az,ak,{strokeStyle:ah.borderColor})}break;default:break}}}an=null}ah=null;aB=null}am=["y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis","yMidAxis"];for(var ay=7;ay>0;ay--){var ah=aw[am[ay-1]];var aB=ah._ticks;if(ah.show){var ai=aB[ah.numberTicks-1];var al=aB[0];var aj=ah.getLeft();var av=[[aj,ai.getTop()+ai.getHeight()/2],[aj,al.getTop()+al.getHeight()/2+1]];if(this.shadow){this.renderer.shadowRenderer.draw(at,av,{lineCap:"butt",fill:false,closePath:false})}ao(av[0][0],av[0][1],av[1][0],av[1][1],{lineCap:"butt",strokeStyle:ah.borderColor,lineWidth:ah.borderWidth});for(var au=aB.length;au>0;au--){var an=aB[au-1];ap=an.markSize;aq=an.mark;var ak=Math.round(ah.u2p(an.value))+0.5;if(an.showMark&&an.mark){switch(aq){case"outside":aA=aj;az=aj+ap;break;case"inside":aA=aj-ap;az=aj;break;case"cross":aA=aj-ap;az=aj+ap;break;default:aA=aj;az=aj+ap;break}av=[[aA,ak],[az,ak]];if(this.shadow){this.renderer.shadowRenderer.draw(at,av,{lineCap:"butt",lineWidth:this.gridLineWidth*1.5,offset:this.gridLineWidth*0.75,fill:false,closePath:false})}ao(aA,ak,az,ak,{strokeStyle:ah.borderColor})}an=null}al=null}ah=null;aB=null}at.restore();function ao(aH,aG,aE,ax,aF){at.save();aF=aF||{};if(aF.lineWidth==null||aF.lineWidth!=0){L.extend(true,at,aF);at.beginPath();at.moveTo(aH,aG);at.lineTo(aE,ax);at.stroke();at.restore()}}if(this.shadow){var av=[[this._left,this._bottom],[this._right,this._bottom],[this._right,this._top]];this.renderer.shadowRenderer.draw(at,av)}if(this.borderWidth!=0&&this.drawBorder){ao(this._left,this._top,this._right,this._top,{lineCap:"round",strokeStyle:aw.x2axis.borderColor,lineWidth:aw.x2axis.borderWidth});ao(this._right,this._top,this._right,this._bottom,{lineCap:"round",strokeStyle:aw.y2axis.borderColor,lineWidth:aw.y2axis.borderWidth});ao(this._right,this._bottom,this._left,this._bottom,{lineCap:"round",strokeStyle:aw.xaxis.borderColor,lineWidth:aw.xaxis.borderWidth});ao(this._left,this._bottom,this._left,this._top,{lineCap:"round",strokeStyle:aw.yaxis.borderColor,lineWidth:aw.yaxis.borderWidth})}at.restore();at=null;aw=null};L.jqplot.DivTitleRenderer=function(){};L.jqplot.DivTitleRenderer.prototype.init=function(ah){L.extend(true,this,ah)};L.jqplot.DivTitleRenderer.prototype.draw=function(){if(this._elem){this._elem.emptyForce();this._elem=null}var ak=this.renderer;var aj=document.createElement("div");this._elem=L(aj);this._elem.addClass("jqplot-title");if(!this.text){this.show=false;this._elem.height(0);this._elem.width(0)}else{if(this.text){var ah;if(this.color){ah=this.color}else{if(this.textColor){ah=this.textColor}}var ai={position:"absolute",top:"0px",left:"0px"};if(this._plotWidth){ai.width=this._plotWidth+"px"}if(this.fontSize){ai.fontSize=this.fontSize}if(typeof this.textAlign==="string"){ai.textAlign=this.textAlign}else{ai.textAlign="center"}if(ah){ai.color=ah}if(this.paddingBottom){ai.paddingBottom=this.paddingBottom}if(this.fontFamily){ai.fontFamily=this.fontFamily}this._elem.css(ai);if(this.escapeHtml){this._elem.text(this.text)}else{this._elem.html(this.text)}}}aj=null;return this._elem};L.jqplot.DivTitleRenderer.prototype.pack=function(){};var r=0.1;L.jqplot.LinePattern=function(aw,aq){var ap={dotted:[r,L.jqplot.config.dotGapLength],dashed:[L.jqplot.config.dashLength,L.jqplot.config.gapLength],solid:null};if(typeof aq==="string"){if(aq[0]==="."||aq[0]==="-"){var ax=aq;aq=[];for(var ao=0,al=ax.length;ao<al;ao++){if(ax[ao]==="."){aq.push(r)}else{if(ax[ao]==="-"){aq.push(L.jqplot.config.dashLength)}else{continue}}aq.push(L.jqplot.config.gapLength)}}else{aq=ap[aq]}}if(!(aq&&aq.length)){return aw}var ak=0;var ar=aq[0];var au=0;var at=0;var an=0;var ah=0;var av=function(ay,az){aw.moveTo(ay,az);au=ay;at=az;an=ay;ah=az};var aj=function(ay,aE){var aC=aw.lineWidth;var aA=ay-au;var az=aE-at;var aB=Math.sqrt(aA*aA+az*az);if((aB>0)&&(aC>0)){aA/=aB;az/=aB;while(true){var aD=aC*ar;if(aD<aB){au+=aD*aA;at+=aD*az;if((ak&1)==0){aw.lineTo(au,at)}else{aw.moveTo(au,at)}aB-=aD;ak++;if(ak>=aq.length){ak=0}ar=aq[ak]}else{au=ay;at=aE;if((ak&1)==0){aw.lineTo(au,at)}else{aw.moveTo(au,at)}ar-=aB/aC;break}}}};var ai=function(){aw.beginPath()};var am=function(){aj(an,ah)};return{moveTo:av,lineTo:aj,beginPath:ai,closePath:am}};L.jqplot.LineRenderer=function(){this.shapeRenderer=new L.jqplot.ShapeRenderer();this.shadowRenderer=new L.jqplot.ShadowRenderer()};L.jqplot.LineRenderer.prototype.init=function(ai,an){ai=ai||{};this._type="line";this.renderer.animation={show:false,direction:"left",speed:2500,_supported:true};this.renderer.smooth=false;this.renderer.tension=null;this.renderer.constrainSmoothing=true;this.renderer._smoothedData=[];this.renderer._smoothedPlotData=[];this.renderer._hiBandGridData=[];this.renderer._lowBandGridData=[];this.renderer._hiBandSmoothedData=[];this.renderer._lowBandSmoothedData=[];this.renderer.bandData=[];this.renderer.bands={show:false,hiData:[],lowData:[],color:this.color,showLines:false,fill:true,fillColor:null,_min:null,_max:null,interval:"3%"};var al={highlightMouseOver:ai.highlightMouseOver,highlightMouseDown:ai.highlightMouseDown,highlightColor:ai.highlightColor};delete (ai.highlightMouseOver);delete (ai.highlightMouseDown);delete (ai.highlightColor);L.extend(true,this.renderer,ai);this.renderer.options=ai;if(this.renderer.bandData.length>1&&(!ai.bands||ai.bands.show==null)){this.renderer.bands.show=true}else{if(ai.bands&&ai.bands.show==null&&ai.bands.interval!=null){this.renderer.bands.show=true}}if(this.fill){this.renderer.bands.show=false}if(this.renderer.bands.show){this.renderer.initBands.call(this,this.renderer.options,an)}if(this._stack){this.renderer.smooth=false}var am={lineJoin:this.lineJoin,lineCap:this.lineCap,fill:this.fill,isarc:false,strokeStyle:this.color,fillStyle:this.fillColor,lineWidth:this.lineWidth,linePattern:this.linePattern,closePath:this.fill};this.renderer.shapeRenderer.init(am);var aj=ai.shadowOffset;if(aj==null){if(this.lineWidth>2.5){aj=1.25*(1+(Math.atan((this.lineWidth/2.5))/0.785398163-1)*0.6)}else{aj=1.25*Math.atan((this.lineWidth/2.5))/0.785398163}}var ah={lineJoin:this.lineJoin,lineCap:this.lineCap,fill:this.fill,isarc:false,angle:this.shadowAngle,offset:aj,alpha:this.shadowAlpha,depth:this.shadowDepth,lineWidth:this.lineWidth,linePattern:this.linePattern,closePath:this.fill};this.renderer.shadowRenderer.init(ah);this._areaPoints=[];this._boundingBox=[[],[]];if(!this.isTrendline&&this.fill||this.renderer.bands.show){this.highlightMouseOver=true;this.highlightMouseDown=false;this.highlightColor=null;if(al.highlightMouseDown&&al.highlightMouseOver==null){al.highlightMouseOver=false}L.extend(true,this,{highlightMouseOver:al.highlightMouseOver,highlightMouseDown:al.highlightMouseDown,highlightColor:al.highlightColor});if(!this.highlightColor){var ak=(this.renderer.bands.show)?this.renderer.bands.fillColor:this.fillColor;this.highlightColor=L.jqplot.computeHighlightColors(ak)}if(this.highlighter){this.highlighter.show=false}}if(!this.isTrendline&&an){an.plugins.lineRenderer={};an.postInitHooks.addOnce(z);an.postDrawHooks.addOnce(af);an.eventListenerHooks.addOnce("jqplotMouseMove",h);an.eventListenerHooks.addOnce("jqplotMouseDown",e);an.eventListenerHooks.addOnce("jqplotMouseUp",ad);an.eventListenerHooks.addOnce("jqplotClick",g);an.eventListenerHooks.addOnce("jqplotRightClick",s)}};L.jqplot.LineRenderer.prototype.initBands=function(ak,av){var al=ak.bandData||[];var an=this.renderer.bands;an.hiData=[];an.lowData=[];var aB=this.data;an._max=null;an._min=null;if(al.length==2){if(L.isArray(al[0][0])){var ao;var ah=0,ar=0;for(var aw=0,at=al[0].length;aw<at;aw++){ao=al[0][aw];if((ao[1]!=null&&ao[1]>an._max)||an._max==null){an._max=ao[1]}if((ao[1]!=null&&ao[1]<an._min)||an._min==null){an._min=ao[1]}}for(var aw=0,at=al[1].length;aw<at;aw++){ao=al[1][aw];if((ao[1]!=null&&ao[1]>an._max)||an._max==null){an._max=ao[1];ar=1}if((ao[1]!=null&&ao[1]<an._min)||an._min==null){an._min=ao[1];ah=1}}if(ar===ah){an.show=false}an.hiData=al[ar];an.lowData=al[ah]}else{if(al[0].length===aB.length&&al[1].length===aB.length){var aj=(al[0][0]>al[1][0])?0:1;var aC=(aj)?0:1;for(var aw=0,at=aB.length;aw<at;aw++){an.hiData.push([aB[aw][0],al[aj][aw]]);an.lowData.push([aB[aw][0],al[aC][aw]])}}else{an.show=false}}}else{if(al.length>2&&!L.isArray(al[0][0])){var aj=(al[0][0]>al[0][1])?0:1;var aC=(aj)?0:1;for(var aw=0,at=al.length;aw<at;aw++){an.hiData.push([aB[aw][0],al[aw][aj]]);an.lowData.push([aB[aw][0],al[aw][aC]])}}else{var aq=an.interval;var aA=null;var az=null;var ai=null;var au=null;if(L.isArray(aq)){aA=aq[0];az=aq[1]}else{aA=aq}if(isNaN(aA)){if(aA.charAt(aA.length-1)==="%"){ai="multiply";aA=parseFloat(aA)/100+1}}else{aA=parseFloat(aA);ai="add"}if(az!==null&&isNaN(az)){if(az.charAt(az.length-1)==="%"){au="multiply";az=parseFloat(az)/100+1}}else{if(az!==null){az=parseFloat(az);au="add"}}if(aA!==null){if(az===null){az=-aA;au=ai;if(au==="multiply"){az+=2}}if(aA<az){var ax=aA;aA=az;az=ax;ax=ai;ai=au;au=ax}for(var aw=0,at=aB.length;aw<at;aw++){switch(ai){case"add":an.hiData.push([aB[aw][0],aB[aw][1]+aA]);break;case"multiply":an.hiData.push([aB[aw][0],aB[aw][1]*aA]);break}switch(au){case"add":an.lowData.push([aB[aw][0],aB[aw][1]+az]);break;case"multiply":an.lowData.push([aB[aw][0],aB[aw][1]*az]);break}}}else{an.show=false}}}var am=an.hiData;var ap=an.lowData;for(var aw=0,at=am.length;aw<at;aw++){if((am[aw][1]!=null&&am[aw][1]>an._max)||an._max==null){an._max=am[aw][1]}}for(var aw=0,at=ap.length;aw<at;aw++){if((ap[aw][1]!=null&&ap[aw][1]<an._min)||an._min==null){an._min=ap[aw][1]}}if(an.fillColor===null){var ay=L.jqplot.getColorComponents(an.color);ay[3]=ay[3]*0.5;an.fillColor="rgba("+ay[0]+", "+ay[1]+", "+ay[2]+", "+ay[3]+")"}};function K(ai,ah){return(3.4182054+ah)*Math.pow(ai,-0.3534992)}function n(aj,ai){var ah=Math.sqrt(Math.pow((ai[0]-aj[0]),2)+Math.pow((ai[1]-aj[1]),2));return 5.7648*Math.log(ah)+7.4456}function A(ah){var ai=(Math.exp(2*ah)-1)/(Math.exp(2*ah)+1);return ai}function J(aJ){var at=this.renderer.smooth;var aD=this.canvas.getWidth();var an=this._xaxis.series_p2u;var aG=this._yaxis.series_p2u;var aF=null;var am=null;var az=aJ.length/aD;var aj=[];var ay=[];if(!isNaN(parseFloat(at))){aF=parseFloat(at)}else{aF=K(az,0.5)}var aw=[];var ak=[];for(var aE=0,aA=aJ.length;aE<aA;aE++){aw.push(aJ[aE][1]);ak.push(aJ[aE][0])}function av(aK,aL){if(aK-aL==0){return Math.pow(10,10)}else{return aK-aL}}var ax,ar,aq,ap;var ah=aJ.length-1;for(var al=1,aB=aJ.length;al<aB;al++){var ai=[];var au=[];for(var aC=0;aC<2;aC++){var aE=al-1+aC;if(aE==0||aE==ah){ai[aC]=Math.pow(10,10)}else{if(aw[aE+1]-aw[aE]==0||aw[aE]-aw[aE-1]==0){ai[aC]=0}else{if(((ak[aE+1]-ak[aE])/(aw[aE+1]-aw[aE])+(ak[aE]-ak[aE-1])/(aw[aE]-aw[aE-1]))==0){ai[aC]=0}else{if((aw[aE+1]-aw[aE])*(aw[aE]-aw[aE-1])<0){ai[aC]=0}else{ai[aC]=2/(av(ak[aE+1],ak[aE])/(aw[aE+1]-aw[aE])+av(ak[aE],ak[aE-1])/(aw[aE]-aw[aE-1]))}}}}}if(al==1){ai[0]=3/2*(aw[1]-aw[0])/av(ak[1],ak[0])-ai[1]/2}else{if(al==ah){ai[1]=3/2*(aw[ah]-aw[ah-1])/av(ak[ah],ak[ah-1])-ai[0]/2}}au[0]=-2*(ai[1]+2*ai[0])/av(ak[al],ak[al-1])+6*(aw[al]-aw[al-1])/Math.pow(av(ak[al],ak[al-1]),2);au[1]=2*(2*ai[1]+ai[0])/av(ak[al],ak[al-1])-6*(aw[al]-aw[al-1])/Math.pow(av(ak[al],ak[al-1]),2);ap=1/6*(au[1]-au[0])/av(ak[al],ak[al-1]);aq=1/2*(ak[al]*au[0]-ak[al-1]*au[1])/av(ak[al],ak[al-1]);ar=(aw[al]-aw[al-1]-aq*(Math.pow(ak[al],2)-Math.pow(ak[al-1],2))-ap*(Math.pow(ak[al],3)-Math.pow(ak[al-1],3)))/av(ak[al],ak[al-1]);ax=aw[al-1]-ar*ak[al-1]-aq*Math.pow(ak[al-1],2)-ap*Math.pow(ak[al-1],3);var aI=(ak[al]-ak[al-1])/aF;var aH,ao;for(var aC=0,aA=aF;aC<aA;aC++){aH=[];ao=ak[al-1]+aC*aI;aH.push(ao);aH.push(ax+ar*ao+aq*Math.pow(ao,2)+ap*Math.pow(ao,3));aj.push(aH);ay.push([an(aH[0]),aG(aH[1])])}}aj.push(aJ[aE]);ay.push([an(aJ[aE][0]),aG(aJ[aE][1])]);return[aj,ay]}function F(ap){var ao=this.renderer.smooth;var aU=this.renderer.tension;var ah=this.canvas.getWidth();var aH=this._xaxis.series_p2u;var aq=this._yaxis.series_p2u;var aI=null;var aJ=null;var aT=null;var aO=null;var aM=null;var at=null;var aR=null;var am=null;var aK,aL,aD,aC,aA,ay;var ak,ai,av,au;var aB,az,aN;var aw=[];var aj=[];var al=ap.length/ah;var aS,ax,aF,aG,aE;var ar=[];var an=[];if(!isNaN(parseFloat(ao))){aI=parseFloat(ao)}else{aI=K(al,0.5)}if(!isNaN(parseFloat(aU))){aU=parseFloat(aU)}for(var aQ=0,aP=ap.length-1;aQ<aP;aQ++){if(aU===null){at=Math.abs((ap[aQ+1][1]-ap[aQ][1])/(ap[aQ+1][0]-ap[aQ][0]));aS=0.3;ax=0.6;aF=(ax-aS)/2;aG=2.5;aE=-1.4;am=at/aG+aE;aO=aF*A(am)-aF*A(aE)+aS;if(aQ>0){aR=Math.abs((ap[aQ][1]-ap[aQ-1][1])/(ap[aQ][0]-ap[aQ-1][0]))}am=aR/aG+aE;aM=aF*A(am)-aF*A(aE)+aS;aT=(aO+aM)/2}else{aT=aU}for(aK=0;aK<aI;aK++){aL=aK/aI;aD=(1+2*aL)*Math.pow((1-aL),2);aC=aL*Math.pow((1-aL),2);aA=Math.pow(aL,2)*(3-2*aL);ay=Math.pow(aL,2)*(aL-1);if(ap[aQ-1]){ak=aT*(ap[aQ+1][0]-ap[aQ-1][0]);ai=aT*(ap[aQ+1][1]-ap[aQ-1][1])}else{ak=aT*(ap[aQ+1][0]-ap[aQ][0]);ai=aT*(ap[aQ+1][1]-ap[aQ][1])}if(ap[aQ+2]){av=aT*(ap[aQ+2][0]-ap[aQ][0]);au=aT*(ap[aQ+2][1]-ap[aQ][1])}else{av=aT*(ap[aQ+1][0]-ap[aQ][0]);au=aT*(ap[aQ+1][1]-ap[aQ][1])}aB=aD*ap[aQ][0]+aA*ap[aQ+1][0]+aC*ak+ay*av;az=aD*ap[aQ][1]+aA*ap[aQ+1][1]+aC*ai+ay*au;aN=[aB,az];ar.push(aN);an.push([aH(aB),aq(az)])}}ar.push(ap[aP]);an.push([aH(ap[aP][0]),aq(ap[aP][1])]);return[ar,an]}L.jqplot.LineRenderer.prototype.setGridData=function(ap){var al=this._xaxis.series_u2p;var ah=this._yaxis.series_u2p;var am=this._plotData;var aq=this._prevPlotData;this.gridData=[];this._prevGridData=[];this.renderer._smoothedData=[];this.renderer._smoothedPlotData=[];this.renderer._hiBandGridData=[];this.renderer._lowBandGridData=[];this.renderer._hiBandSmoothedData=[];this.renderer._lowBandSmoothedData=[];var ak=this.renderer.bands;var ai=false;for(var an=0,aj=am.length;an<aj;an++){if(am[an][0]!=null&&am[an][1]!=null){this.gridData.push([al.call(this._xaxis,am[an][0]),ah.call(this._yaxis,am[an][1])])}else{if(am[an][0]==null){ai=true;this.gridData.push([null,ah.call(this._yaxis,am[an][1])])}else{if(am[an][1]==null){ai=true;this.gridData.push([al.call(this._xaxis,am[an][0]),null])}}}if(aq[an]!=null&&aq[an][0]!=null&&aq[an][1]!=null){this._prevGridData.push([al.call(this._xaxis,aq[an][0]),ah.call(this._yaxis,aq[an][1])])}else{if(aq[an]!=null&&aq[an][0]==null){this._prevGridData.push([null,ah.call(this._yaxis,aq[an][1])])}else{if(aq[an]!=null&&aq[an][0]!=null&&aq[an][1]==null){this._prevGridData.push([al.call(this._xaxis,aq[an][0]),null])}}}}if(ai){this.renderer.smooth=false;if(this._type==="line"){ak.show=false}}if(this._type==="line"&&ak.show){for(var an=0,aj=ak.hiData.length;an<aj;an++){this.renderer._hiBandGridData.push([al.call(this._xaxis,ak.hiData[an][0]),ah.call(this._yaxis,ak.hiData[an][1])])}for(var an=0,aj=ak.lowData.length;an<aj;an++){this.renderer._lowBandGridData.push([al.call(this._xaxis,ak.lowData[an][0]),ah.call(this._yaxis,ak.lowData[an][1])])}}if(this._type==="line"&&this.renderer.smooth&&this.gridData.length>2){var ao;if(this.renderer.constrainSmoothing){ao=J.call(this,this.gridData);this.renderer._smoothedData=ao[0];this.renderer._smoothedPlotData=ao[1];if(ak.show){ao=J.call(this,this.renderer._hiBandGridData);this.renderer._hiBandSmoothedData=ao[0];ao=J.call(this,this.renderer._lowBandGridData);this.renderer._lowBandSmoothedData=ao[0]}ao=null}else{ao=F.call(this,this.gridData);this.renderer._smoothedData=ao[0];this.renderer._smoothedPlotData=ao[1];if(ak.show){ao=F.call(this,this.renderer._hiBandGridData);this.renderer._hiBandSmoothedData=ao[0];ao=F.call(this,this.renderer._lowBandGridData);this.renderer._lowBandSmoothedData=ao[0]}ao=null}}};L.jqplot.LineRenderer.prototype.makeGridData=function(ao,aq){var am=this._xaxis.series_u2p;var ah=this._yaxis.series_u2p;var ar=[];var aj=[];this.renderer._smoothedData=[];this.renderer._smoothedPlotData=[];this.renderer._hiBandGridData=[];this.renderer._lowBandGridData=[];this.renderer._hiBandSmoothedData=[];this.renderer._lowBandSmoothedData=[];var al=this.renderer.bands;var ai=false;for(var an=0;an<ao.length;an++){if(ao[an][0]!=null&&ao[an][1]!=null){ar.push([am.call(this._xaxis,ao[an][0]),ah.call(this._yaxis,ao[an][1])])}else{if(ao[an][0]==null){ai=true;ar.push([null,ah.call(this._yaxis,ao[an][1])])}else{if(ao[an][1]==null){ai=true;ar.push([am.call(this._xaxis,ao[an][0]),null])}}}}if(ai){this.renderer.smooth=false;if(this._type==="line"){al.show=false}}if(this._type==="line"&&al.show){for(var an=0,ak=al.hiData.length;an<ak;an++){this.renderer._hiBandGridData.push([am.call(this._xaxis,al.hiData[an][0]),ah.call(this._yaxis,al.hiData[an][1])])}for(var an=0,ak=al.lowData.length;an<ak;an++){this.renderer._lowBandGridData.push([am.call(this._xaxis,al.lowData[an][0]),ah.call(this._yaxis,al.lowData[an][1])])}}if(this._type==="line"&&this.renderer.smooth&&ar.length>2){var ap;if(this.renderer.constrainSmoothing){ap=J.call(this,ar);this.renderer._smoothedData=ap[0];this.renderer._smoothedPlotData=ap[1];if(al.show){ap=J.call(this,this.renderer._hiBandGridData);this.renderer._hiBandSmoothedData=ap[0];ap=J.call(this,this.renderer._lowBandGridData);this.renderer._lowBandSmoothedData=ap[0]}ap=null}else{ap=F.call(this,ar);this.renderer._smoothedData=ap[0];this.renderer._smoothedPlotData=ap[1];if(al.show){ap=F.call(this,this.renderer._hiBandGridData);this.renderer._hiBandSmoothedData=ap[0];ap=F.call(this,this.renderer._lowBandGridData);this.renderer._lowBandSmoothedData=ap[0]}ap=null}}return ar};L.jqplot.LineRenderer.prototype.draw=function(ax,aI,ai,aB){var aC;var aq=L.extend(true,{},ai);var ak=(aq.shadow!=u)?aq.shadow:this.shadow;var aJ=(aq.showLine!=u)?aq.showLine:this.showLine;var aA=(aq.fill!=u)?aq.fill:this.fill;var ah=(aq.fillAndStroke!=u)?aq.fillAndStroke:this.fillAndStroke;var ar,ay,av,aE;ax.save();if(aI.length){if(aJ){if(aA){if(this.fillToZero){var aF=this.negativeColor;if(!this.useNegativeColors){aF=aq.fillStyle}var ao=false;var ap=aq.fillStyle;if(ah){var aH=aI.slice(0)}if(this.index==0||!this._stack){var aw=[];var aL=(this.renderer.smooth)?this.renderer._smoothedPlotData:this._plotData;this._areaPoints=[];var aG=this._yaxis.series_u2p(this.fillToValue);var aj=this._xaxis.series_u2p(this.fillToValue);aq.closePath=true;if(this.fillAxis=="y"){aw.push([aI[0][0],aG]);this._areaPoints.push([aI[0][0],aG]);for(var aC=0;aC<aI.length-1;aC++){aw.push(aI[aC]);this._areaPoints.push(aI[aC]);if(aL[aC][1]*aL[aC+1][1]<=0){if(aL[aC][1]<0){ao=true;aq.fillStyle=aF}else{ao=false;aq.fillStyle=ap}var an=aI[aC][0]+(aI[aC+1][0]-aI[aC][0])*(aG-aI[aC][1])/(aI[aC+1][1]-aI[aC][1]);aw.push([an,aG]);this._areaPoints.push([an,aG]);if(ak){this.renderer.shadowRenderer.draw(ax,aw,aq)}this.renderer.shapeRenderer.draw(ax,aw,aq);aw=[[an,aG]]}}if(aL[aI.length-1][1]<0){ao=true;aq.fillStyle=aF}else{ao=false;aq.fillStyle=ap}aw.push(aI[aI.length-1]);this._areaPoints.push(aI[aI.length-1]);aw.push([aI[aI.length-1][0],aG]);this._areaPoints.push([aI[aI.length-1][0],aG])}if(ak){this.renderer.shadowRenderer.draw(ax,aw,aq)}this.renderer.shapeRenderer.draw(ax,aw,aq)}else{var au=this._prevGridData;for(var aC=au.length;aC>0;aC--){aI.push(au[aC-1])}if(ak){this.renderer.shadowRenderer.draw(ax,aI,aq)}this._areaPoints=aI;this.renderer.shapeRenderer.draw(ax,aI,aq)}}else{if(ah){var aH=aI.slice(0)}if(this.index==0||!this._stack){var al=ax.canvas.height;aI.unshift([aI[0][0],al]);var aD=aI.length;aI.push([aI[aD-1][0],al])}else{var au=this._prevGridData;for(var aC=au.length;aC>0;aC--){aI.push(au[aC-1])}}this._areaPoints=aI;if(ak){this.renderer.shadowRenderer.draw(ax,aI,aq)}this.renderer.shapeRenderer.draw(ax,aI,aq)}if(ah){var az=L.extend(true,{},aq,{fill:false,closePath:false});this.renderer.shapeRenderer.draw(ax,aH,az);if(this.markerRenderer.show){if(this.renderer.smooth){aH=this.gridData}for(aC=0;aC<aH.length;aC++){this.markerRenderer.draw(aH[aC][0],aH[aC][1],ax,aq.markerOptions)}}}}else{if(this.renderer.bands.show){var am;var aK=L.extend(true,{},aq);if(this.renderer.bands.showLines){am=(this.renderer.smooth)?this.renderer._hiBandSmoothedData:this.renderer._hiBandGridData;this.renderer.shapeRenderer.draw(ax,am,aq);am=(this.renderer.smooth)?this.renderer._lowBandSmoothedData:this.renderer._lowBandGridData;this.renderer.shapeRenderer.draw(ax,am,aK)}if(this.renderer.bands.fill){if(this.renderer.smooth){am=this.renderer._hiBandSmoothedData.concat(this.renderer._lowBandSmoothedData.reverse())}else{am=this.renderer._hiBandGridData.concat(this.renderer._lowBandGridData.reverse())}this._areaPoints=am;aK.closePath=true;aK.fill=true;aK.fillStyle=this.renderer.bands.fillColor;this.renderer.shapeRenderer.draw(ax,am,aK)}}if(ak){this.renderer.shadowRenderer.draw(ax,aI,aq)}this.renderer.shapeRenderer.draw(ax,aI,aq)}}var ar=av=ay=aE=null;for(aC=0;aC<this._areaPoints.length;aC++){var at=this._areaPoints[aC];if(ar>at[0]||ar==null){ar=at[0]}if(aE<at[1]||aE==null){aE=at[1]}if(av<at[0]||av==null){av=at[0]}if(ay>at[1]||ay==null){ay=at[1]}}if(this.type==="line"&&this.renderer.bands.show){aE=this._yaxis.series_u2p(this.renderer.bands._min);ay=this._yaxis.series_u2p(this.renderer.bands._max)}this._boundingBox=[[ar,aE],[av,ay]];if(this.markerRenderer.show&&!aA){if(this.renderer.smooth){aI=this.gridData}for(aC=0;aC<aI.length;aC++){if(aI[aC][0]!=null&&aI[aC][1]!=null){this.markerRenderer.draw(aI[aC][0],aI[aC][1],ax,aq.markerOptions)}}}}ax.restore()};L.jqplot.LineRenderer.prototype.drawShadow=function(ah,aj,ai){};function z(ak,aj,ah){for(var ai=0;ai<this.series.length;ai++){if(this.series[ai].renderer.constructor==L.jqplot.LineRenderer){if(this.series[ai].highlightMouseOver){this.series[ai].highlightMouseDown=false}}}}function af(){if(this.plugins.lineRenderer&&this.plugins.lineRenderer.highlightCanvas){this.plugins.lineRenderer.highlightCanvas.resetCanvas();this.plugins.lineRenderer.highlightCanvas=null}this.plugins.lineRenderer.highlightedSeriesIndex=null;this.plugins.lineRenderer.highlightCanvas=new L.jqplot.GenericCanvas();this.eventCanvas._elem.before(this.plugins.lineRenderer.highlightCanvas.createElement(this._gridPadding,"jqplot-lineRenderer-highlight-canvas",this._plotDimensions,this));this.plugins.lineRenderer.highlightCanvas.setContext();this.eventCanvas._elem.bind("mouseleave",{plot:this},function(ah){aa(ah.data.plot)})}function ac(an,am,ak,aj){var ai=an.series[am];var ah=an.plugins.lineRenderer.highlightCanvas;ah._ctx.clearRect(0,0,ah._ctx.canvas.width,ah._ctx.canvas.height);ai._highlightedPoint=ak;an.plugins.lineRenderer.highlightedSeriesIndex=am;var al={fillStyle:ai.highlightColor};if(ai.type==="line"&&ai.renderer.bands.show){al.fill=true;al.closePath=true}ai.renderer.shapeRenderer.draw(ah._ctx,aj,al);ah=null}function aa(aj){var ah=aj.plugins.lineRenderer.highlightCanvas;ah._ctx.clearRect(0,0,ah._ctx.canvas.width,ah._ctx.canvas.height);for(var ai=0;ai<aj.series.length;ai++){aj.series[ai]._highlightedPoint=null}aj.plugins.lineRenderer.highlightedSeriesIndex=null;aj.target.trigger("jqplotDataUnhighlight");ah=null}function h(al,ak,ao,an,am){if(an){var aj=[an.seriesIndex,an.pointIndex,an.data];var ai=jQuery.Event("jqplotDataMouseOver");ai.pageX=al.pageX;ai.pageY=al.pageY;am.target.trigger(ai,aj);if(am.series[aj[0]].highlightMouseOver&&!(aj[0]==am.plugins.lineRenderer.highlightedSeriesIndex)){var ah=jQuery.Event("jqplotDataHighlight");ah.which=al.which;ah.pageX=al.pageX;ah.pageY=al.pageY;am.target.trigger(ah,aj);ac(am,an.seriesIndex,an.pointIndex,an.points)}}else{if(an==null){aa(am)}}}function e(ak,aj,an,am,al){if(am){var ai=[am.seriesIndex,am.pointIndex,am.data];if(al.series[ai[0]].highlightMouseDown&&!(ai[0]==al.plugins.lineRenderer.highlightedSeriesIndex)){var ah=jQuery.Event("jqplotDataHighlight");ah.which=ak.which;ah.pageX=ak.pageX;ah.pageY=ak.pageY;al.target.trigger(ah,ai);ac(al,am.seriesIndex,am.pointIndex,am.points)}}else{if(am==null){aa(al)}}}function ad(aj,ai,am,al,ak){var ah=ak.plugins.lineRenderer.highlightedSeriesIndex;if(ah!=null&&ak.series[ah].highlightMouseDown){aa(ak)}}function g(ak,aj,an,am,al){if(am){var ai=[am.seriesIndex,am.pointIndex,am.data];var ah=jQuery.Event("jqplotDataClick");ah.which=ak.which;ah.pageX=ak.pageX;ah.pageY=ak.pageY;al.target.trigger(ah,ai)}}function s(al,ak,ao,an,am){if(an){var aj=[an.seriesIndex,an.pointIndex,an.data];var ah=am.plugins.lineRenderer.highlightedSeriesIndex;if(ah!=null&&am.series[ah].highlightMouseDown){aa(am)}var ai=jQuery.Event("jqplotDataRightClick");ai.which=al.which;ai.pageX=al.pageX;ai.pageY=al.pageY;am.target.trigger(ai,aj)}}L.jqplot.LinearAxisRenderer=function(){};L.jqplot.LinearAxisRenderer.prototype.init=function(ah){this.breakPoints=null;this.breakTickLabel="≈";this.drawBaseline=true;this.baselineWidth=null;this.baselineColor=null;this.forceTickAt0=false;this.forceTickAt100=false;this.tickInset=0;this.minorTicks=0;this.alignTicks=false;this._autoFormatString="";this._overrideFormatString=false;this._scalefact=1;L.extend(true,this,ah);if(this.breakPoints){if(!L.isArray(this.breakPoints)){this.breakPoints=null}else{if(this.breakPoints.length<2||this.breakPoints[1]<=this.breakPoints[0]){this.breakPoints=null}}}if(this.numberTicks!=null&&this.numberTicks<2){this.numberTicks=2}this.resetDataBounds()};L.jqplot.LinearAxisRenderer.prototype.draw=function(ah,ao){if(this.show){this.renderer.createTicks.call(this,ao);var an=0;var ai;if(this._elem){this._elem.emptyForce();this._elem=null}this._elem=L(document.createElement("div"));this._elem.addClass("jqplot-axis jqplot-"+this.name);this._elem.css("position","absolute");if(this.name=="xaxis"||this.name=="x2axis"){this._elem.width(this._plotDimensions.width)}else{this._elem.height(this._plotDimensions.height)}this.labelOptions.axis=this.name;this._label=new this.labelRenderer(this.labelOptions);if(this._label.show){var am=this._label.draw(ah,ao);am.appendTo(this._elem);am=null}var al=this._ticks;var ak;for(var aj=0;aj<al.length;aj++){ak=al[aj];if(ak.show&&ak.showLabel&&(!ak.isMinorTick||this.showMinorTicks)){this._elem.append(ak.draw(ah,ao))}}ak=null;al=null}return this._elem};L.jqplot.LinearAxisRenderer.prototype.reset=function(){this.min=this._options.min;this.max=this._options.max;this.tickInterval=this._options.tickInterval;this.numberTicks=this._options.numberTicks;this._autoFormatString="";if(this._overrideFormatString&&this.tickOptions&&this.tickOptions.formatString){this.tickOptions.formatString=""}};L.jqplot.LinearAxisRenderer.prototype.set=function(){var ao=0;var aj;var ai=0;var an=0;var ah=(this._label==null)?false:this._label.show;if(this.show){var am=this._ticks;var al;for(var ak=0;ak<am.length;ak++){al=am[ak];if(!al._breakTick&&al.show&&al.showLabel&&(!al.isMinorTick||this.showMinorTicks)){if(this.name=="xaxis"||this.name=="x2axis"){aj=al._elem.outerHeight(true)}else{aj=al._elem.outerWidth(true)}if(aj>ao){ao=aj}}}al=null;am=null;if(ah){ai=this._label._elem.outerWidth(true);an=this._label._elem.outerHeight(true)}if(this.name=="xaxis"){ao=ao+an;this._elem.css({height:ao+"px",left:"0px",bottom:"0px"})}else{if(this.name=="x2axis"){ao=ao+an;this._elem.css({height:ao+"px",left:"0px",top:"0px"})}else{if(this.name=="yaxis"){ao=ao+ai;this._elem.css({width:ao+"px",left:"0px",top:"0px"});if(ah&&this._label.constructor==L.jqplot.AxisLabelRenderer){this._label._elem.css("width",ai+"px")}}else{ao=ao+ai;this._elem.css({width:ao+"px",right:"0px",top:"0px"});if(ah&&this._label.constructor==L.jqplot.AxisLabelRenderer){this._label._elem.css("width",ai+"px")}}}}}};L.jqplot.LinearAxisRenderer.prototype.createTicks=function(aj){var aT=this._ticks;var aK=this.ticks;var az=this.name;var aB=this._dataBounds;var ah=(this.name.charAt(0)==="x")?this._plotDimensions.width:this._plotDimensions.height;var an;var a6,aI;var ap,ao;var a4,a0;var aH=this.min;var a5=this.max;var aW=this.numberTicks;var ba=this.tickInterval;var am=30;this._scalefact=(Math.max(ah,am+1)-am)/300;if(aK.length){for(a0=0;a0<aK.length;a0++){var aO=aK[a0];var aU=new this.tickRenderer(this.tickOptions);if(L.isArray(aO)){aU.value=aO[0];if(this.breakPoints){if(aO[0]==this.breakPoints[0]){aU.label=this.breakTickLabel;aU._breakTick=true;aU.showGridline=false;aU.showMark=false}else{if(aO[0]>this.breakPoints[0]&&aO[0]<=this.breakPoints[1]){aU.show=false;aU.showGridline=false;aU.label=aO[1]}else{aU.label=aO[1]}}}else{aU.label=aO[1]}aU.setTick(aO[0],this.name);this._ticks.push(aU)}else{if(L.isPlainObject(aO)){L.extend(true,aU,aO);aU.axis=this.name;this._ticks.push(aU)}else{aU.value=aO;if(this.breakPoints){if(aO==this.breakPoints[0]){aU.label=this.breakTickLabel;aU._breakTick=true;aU.showGridline=false;aU.showMark=false}else{if(aO>this.breakPoints[0]&&aO<=this.breakPoints[1]){aU.show=false;aU.showGridline=false}}}aU.setTick(aO,this.name);this._ticks.push(aU)}}}this.numberTicks=aK.length;this.min=this._ticks[0].value;this.max=this._ticks[this.numberTicks-1].value;this.tickInterval=(this.max-this.min)/(this.numberTicks-1)}else{if(az=="xaxis"||az=="x2axis"){ah=this._plotDimensions.width}else{ah=this._plotDimensions.height}var ax=this.numberTicks;if(this.alignTicks){if(this.name==="x2axis"&&aj.axes.xaxis.show){ax=aj.axes.xaxis.numberTicks}else{if(this.name.charAt(0)==="y"&&this.name!=="yaxis"&&this.name!=="yMidAxis"&&aj.axes.yaxis.show){ax=aj.axes.yaxis.numberTicks}}}a6=((this.min!=null)?this.min:aB.min);aI=((this.max!=null)?this.max:aB.max);var av=aI-a6;var aS,ay;var at;if(this.tickOptions==null||!this.tickOptions.formatString){this._overrideFormatString=true}if(this.min==null||this.max==null&&this.tickInterval==null&&!this.autoscale){if(this.forceTickAt0){if(a6>0){a6=0}if(aI<0){aI=0}}if(this.forceTickAt100){if(a6>100){a6=100}if(aI<100){aI=100}}var aE=false,a1=false;if(this.min!=null){aE=true}else{if(this.max!=null){a1=true}}var aP=L.jqplot.LinearTickGenerator(a6,aI,this._scalefact,ax,aE,a1);var aw=(this.min!=null)?a6:a6+av*(this.padMin-1);var aQ=(this.max!=null)?aI:aI-av*(this.padMax-1);if(a6<aw||aI>aQ){aw=(this.min!=null)?a6:a6-av*(this.padMin-1);aQ=(this.max!=null)?aI:aI+av*(this.padMax-1);aP=L.jqplot.LinearTickGenerator(aw,aQ,this._scalefact,ax,aE,a1)}this.min=aP[0];this.max=aP[1];this.numberTicks=aP[2];this._autoFormatString=aP[3];this.tickInterval=aP[4]}else{if(a6==aI){var ai=0.05;if(a6>0){ai=Math.max(Math.log(a6)/Math.LN10,0.05)}a6-=ai;aI+=ai}if(this.autoscale&&this.min==null&&this.max==null){var ak,al,ar;var aC=false;var aN=false;var aA={min:null,max:null,average:null,stddev:null};for(var a0=0;a0<this._series.length;a0++){var aV=this._series[a0];var aD=(aV.fillAxis=="x")?aV._xaxis.name:aV._yaxis.name;if(this.name==aD){var aR=aV._plotValues[aV.fillAxis];var aG=aR[0];var a2=aR[0];for(var aZ=1;aZ<aR.length;aZ++){if(aR[aZ]<aG){aG=aR[aZ]}else{if(aR[aZ]>a2){a2=aR[aZ]}}}var au=(a2-aG)/a2;if(aV.renderer.constructor==L.jqplot.BarRenderer){if(aG>=0&&(aV.fillToZero||au>0.1)){aC=true}else{aC=false;if(aV.fill&&aV.fillToZero&&aG<0&&a2>0){aN=true}else{aN=false}}}else{if(aV.fill){if(aG>=0&&(aV.fillToZero||au>0.1)){aC=true}else{if(aG<0&&a2>0&&aV.fillToZero){aC=false;aN=true}else{aC=false;aN=false}}}else{if(aG<0){aC=false}}}}}if(aC){this.numberTicks=2+Math.ceil((ah-(this.tickSpacing-1))/this.tickSpacing);this.min=0;aH=0;al=aI/(this.numberTicks-1);at=Math.pow(10,Math.abs(Math.floor(Math.log(al)/Math.LN10)));if(al/at==parseInt(al/at,10)){al+=at}this.tickInterval=Math.ceil(al/at)*at;this.max=this.tickInterval*(this.numberTicks-1)}else{if(aN){this.numberTicks=2+Math.ceil((ah-(this.tickSpacing-1))/this.tickSpacing);var aJ=Math.ceil(Math.abs(a6)/av*(this.numberTicks-1));var a9=this.numberTicks-1-aJ;al=Math.max(Math.abs(a6/aJ),Math.abs(aI/a9));at=Math.pow(10,Math.abs(Math.floor(Math.log(al)/Math.LN10)));this.tickInterval=Math.ceil(al/at)*at;this.max=this.tickInterval*a9;this.min=-this.tickInterval*aJ}else{if(this.numberTicks==null){if(this.tickInterval){this.numberTicks=3+Math.ceil(av/this.tickInterval)}else{this.numberTicks=2+Math.ceil((ah-(this.tickSpacing-1))/this.tickSpacing)}}if(this.tickInterval==null){al=av/(this.numberTicks-1);if(al<1){at=Math.pow(10,Math.abs(Math.floor(Math.log(al)/Math.LN10)))}else{at=1}this.tickInterval=Math.ceil(al*at*this.pad)/at}else{at=1/this.tickInterval}ak=this.tickInterval*(this.numberTicks-1);ar=(ak-av)/2;if(this.min==null){this.min=Math.floor(at*(a6-ar))/at}if(this.max==null){this.max=this.min+ak}}}var aF=L.jqplot.getSignificantFigures(this.tickInterval);var aM;if(aF.digitsLeft>=aF.significantDigits){aM="%d"}else{var at=Math.max(0,5-aF.digitsLeft);at=Math.min(at,aF.digitsRight);aM="%."+at+"f"}this._autoFormatString=aM}else{aS=(this.min!=null)?this.min:a6-av*(this.padMin-1);ay=(this.max!=null)?this.max:aI+av*(this.padMax-1);av=ay-aS;if(this.numberTicks==null){if(this.tickInterval!=null){this.numberTicks=Math.ceil((ay-aS)/this.tickInterval)+1}else{if(ah>100){this.numberTicks=parseInt(3+(ah-100)/75,10)}else{this.numberTicks=2}}}if(this.tickInterval==null){this.tickInterval=av/(this.numberTicks-1)}if(this.max==null){ay=aS+this.tickInterval*(this.numberTicks-1)}if(this.min==null){aS=ay-this.tickInterval*(this.numberTicks-1)}var aF=L.jqplot.getSignificantFigures(this.tickInterval);var aM;if(aF.digitsLeft>=aF.significantDigits){aM="%d"}else{var at=Math.max(0,5-aF.digitsLeft);at=Math.min(at,aF.digitsRight);aM="%."+at+"f"}this._autoFormatString=aM;this.min=aS;this.max=ay}if(this.renderer.constructor==L.jqplot.LinearAxisRenderer&&this._autoFormatString==""){av=this.max-this.min;var a7=new this.tickRenderer(this.tickOptions);var aL=a7.formatString||L.jqplot.config.defaultTickFormatString;var aL=aL.match(L.jqplot.sprintf.regex)[0];var a3=0;if(aL){if(aL.search(/[fFeEgGpP]/)>-1){var aY=aL.match(/\%\.(\d{0,})?[eEfFgGpP]/);if(aY){a3=parseInt(aY[1],10)}else{a3=6}}else{if(aL.search(/[di]/)>-1){a3=0}}var aq=Math.pow(10,-a3);if(this.tickInterval<aq){if(aW==null&&ba==null){this.tickInterval=aq;if(a5==null&&aH==null){this.min=Math.floor(this._dataBounds.min/aq)*aq;if(this.min==this._dataBounds.min){this.min=this._dataBounds.min-this.tickInterval}this.max=Math.ceil(this._dataBounds.max/aq)*aq;if(this.max==this._dataBounds.max){this.max=this._dataBounds.max+this.tickInterval}var aX=(this.max-this.min)/this.tickInterval;aX=aX.toFixed(11);aX=Math.ceil(aX);this.numberTicks=aX+1}else{if(a5==null){var aX=(this._dataBounds.max-this.min)/this.tickInterval;aX=aX.toFixed(11);this.numberTicks=Math.ceil(aX)+2;this.max=this.min+this.tickInterval*(this.numberTicks-1)}else{if(aH==null){var aX=(this.max-this._dataBounds.min)/this.tickInterval;aX=aX.toFixed(11);this.numberTicks=Math.ceil(aX)+2;this.min=this.max-this.tickInterval*(this.numberTicks-1)}else{this.numberTicks=Math.ceil((a5-aH)/this.tickInterval)+1;this.min=Math.floor(aH*Math.pow(10,a3))/Math.pow(10,a3);this.max=Math.ceil(a5*Math.pow(10,a3))/Math.pow(10,a3);this.numberTicks=Math.ceil((this.max-this.min)/this.tickInterval)+1}}}}}}}}if(this._overrideFormatString&&this._autoFormatString!=""){this.tickOptions=this.tickOptions||{};this.tickOptions.formatString=this._autoFormatString}var aU,a8;for(var a0=0;a0<this.numberTicks;a0++){a4=this.min+a0*this.tickInterval;aU=new this.tickRenderer(this.tickOptions);aU.setTick(a4,this.name);this._ticks.push(aU);if(a0<this.numberTicks-1){for(var aZ=0;aZ<this.minorTicks;aZ++){a4+=this.tickInterval/(this.minorTicks+1);a8=L.extend(true,{},this.tickOptions,{name:this.name,value:a4,label:"",isMinorTick:true});aU=new this.tickRenderer(a8);this._ticks.push(aU)}}aU=null}}if(this.tickInset){this.min=this.min-this.tickInset*this.tickInterval;this.max=this.max+this.tickInset*this.tickInterval}aT=null};L.jqplot.LinearAxisRenderer.prototype.resetTickValues=function(aj){if(L.isArray(aj)&&aj.length==this._ticks.length){var ai;for(var ah=0;ah<aj.length;ah++){ai=this._ticks[ah];ai.value=aj[ah];ai.label=ai.formatter(ai.formatString,aj[ah]);ai.label=ai.prefix+ai.label;ai._elem.html(ai.label)}ai=null;this.min=L.jqplot.arrayMin(aj);this.max=L.jqplot.arrayMax(aj);this.pack()}};L.jqplot.LinearAxisRenderer.prototype.pack=function(aj,ai){aj=aj||{};ai=ai||this._offsets;var ay=this._ticks;var au=this.max;var at=this.min;var ao=ai.max;var am=ai.min;var aq=(this._label==null)?false:this._label.show;for(var ar in aj){this._elem.css(ar,aj[ar])}this._offsets=ai;var ak=ao-am;var al=au-at;if(this.breakPoints){al=al-this.breakPoints[1]+this.breakPoints[0];this.p2u=function(aA){return(aA-am)*al/ak+at};this.u2p=function(aA){if(aA>this.breakPoints[0]&&aA<this.breakPoints[1]){aA=this.breakPoints[0]}if(aA<=this.breakPoints[0]){return(aA-at)*ak/al+am}else{return(aA-this.breakPoints[1]+this.breakPoints[0]-at)*ak/al+am}};if(this.name.charAt(0)=="x"){this.series_u2p=function(aA){if(aA>this.breakPoints[0]&&aA<this.breakPoints[1]){aA=this.breakPoints[0]}if(aA<=this.breakPoints[0]){return(aA-at)*ak/al}else{return(aA-this.breakPoints[1]+this.breakPoints[0]-at)*ak/al}};this.series_p2u=function(aA){return aA*al/ak+at}}else{this.series_u2p=function(aA){if(aA>this.breakPoints[0]&&aA<this.breakPoints[1]){aA=this.breakPoints[0]}if(aA>=this.breakPoints[1]){return(aA-au)*ak/al}else{return(aA+this.breakPoints[1]-this.breakPoints[0]-au)*ak/al}};this.series_p2u=function(aA){return aA*al/ak+au}}}else{this.p2u=function(aA){return(aA-am)*al/ak+at};this.u2p=function(aA){return(aA-at)*ak/al+am};if(this.name=="xaxis"||this.name=="x2axis"){this.series_u2p=function(aA){return(aA-at)*ak/al};this.series_p2u=function(aA){return aA*al/ak+at}}else{this.series_u2p=function(aA){return(aA-au)*ak/al};this.series_p2u=function(aA){return aA*al/ak+au}}}if(this.show){if(this.name=="xaxis"||this.name=="x2axis"){for(var av=0;av<ay.length;av++){var ap=ay[av];if(ap.show&&ap.showLabel){var ah;if(ap.constructor==L.jqplot.CanvasAxisTickRenderer&&ap.angle){var ax=(this.name=="xaxis")?1:-1;switch(ap.labelPosition){case"auto":if(ax*ap.angle<0){ah=-ap.getWidth()+ap._textRenderer.height*Math.sin(-ap._textRenderer.angle)/2}else{ah=-ap._textRenderer.height*Math.sin(ap._textRenderer.angle)/2}break;case"end":ah=-ap.getWidth()+ap._textRenderer.height*Math.sin(-ap._textRenderer.angle)/2;break;case"start":ah=-ap._textRenderer.height*Math.sin(ap._textRenderer.angle)/2;break;case"middle":ah=-ap.getWidth()/2+ap._textRenderer.height*Math.sin(-ap._textRenderer.angle)/2;break;default:ah=-ap.getWidth()/2+ap._textRenderer.height*Math.sin(-ap._textRenderer.angle)/2;break}}else{ah=-ap.getWidth()/2}var az=this.u2p(ap.value)+ah+"px";ap._elem.css("left",az);ap.pack()}}if(aq){var an=this._label._elem.outerWidth(true);this._label._elem.css("left",am+ak/2-an/2+"px");if(this.name=="xaxis"){this._label._elem.css("bottom","0px")}else{this._label._elem.css("top","0px")}this._label.pack()}}else{for(var av=0;av<ay.length;av++){var ap=ay[av];if(ap.show&&ap.showLabel){var ah;if(ap.constructor==L.jqplot.CanvasAxisTickRenderer&&ap.angle){var ax=(this.name=="yaxis")?1:-1;switch(ap.labelPosition){case"auto":case"end":if(ax*ap.angle<0){ah=-ap._textRenderer.height*Math.cos(-ap._textRenderer.angle)/2}else{ah=-ap.getHeight()+ap._textRenderer.height*Math.cos(ap._textRenderer.angle)/2}break;case"start":if(ap.angle>0){ah=-ap._textRenderer.height*Math.cos(-ap._textRenderer.angle)/2}else{ah=-ap.getHeight()+ap._textRenderer.height*Math.cos(ap._textRenderer.angle)/2}break;case"middle":ah=-ap.getHeight()/2;break;default:ah=-ap.getHeight()/2;break}}else{ah=-ap.getHeight()/2}var az=this.u2p(ap.value)+ah+"px";ap._elem.css("top",az);ap.pack()}}if(aq){var aw=this._label._elem.outerHeight(true);this._label._elem.css("top",ao-ak/2-aw/2+"px");if(this.name=="yaxis"){this._label._elem.css("left","0px")}else{this._label._elem.css("right","0px")}this._label.pack()}}}ay=null};function i(ai){var ah;ai=Math.abs(ai);if(ai>=10){ah="%d"}else{if(ai>1){if(ai===parseInt(ai,10)){ah="%d"}else{ah="%.1f"}}else{var aj=-Math.floor(Math.log(ai)/Math.LN10);ah="%."+aj+"f"}}return ah}var b=[0.1,0.2,0.3,0.4,0.5,0.8,1,2,3,4,5];var c=function(ai){var ah=b.indexOf(ai);if(ah>0){return b[ah-1]}else{return b[b.length-1]/100}};var k=function(ai){var ah=b.indexOf(ai);if(ah<b.length-1){return b[ah+1]}else{return b[0]*100}};function d(al,au,at){var aq=Math.floor(at/2);var ai=Math.ceil(at*1.5);var ak=Number.MAX_VALUE;var ah=(au-al);var ax;var ap;var ar;var ay=L.jqplot.getSignificantFigures;var aw;var an;var ao;var av;for(var am=0,aj=ai-aq+1;am<aj;am++){ao=aq+am;ax=ah/(ao-1);ap=ay(ax);ax=Math.abs(at-ao)+ap.digitsRight;if(ax<ak){ak=ax;ar=ao;av=ap.digitsRight}else{if(ax===ak){if(ap.digitsRight<av){ar=ao;av=ap.digitsRight}}}}aw=Math.max(av,Math.max(ay(al).digitsRight,ay(au).digitsRight));if(aw===0){an="%d"}else{an="%."+aw+"f"}ax=ah/(ar-1);return[al,au,ar,an,ax]}function W(ai,al){al=al||7;var ak=ai/(al-1);var aj=Math.pow(10,Math.floor(Math.log(ak)/Math.LN10));var am=ak/aj;var ah;if(aj<1){if(am>5){ah=10*aj}else{if(am>2){ah=5*aj}else{if(am>1){ah=2*aj}else{ah=aj}}}}else{if(am>5){ah=10*aj}else{if(am>4){ah=5*aj}else{if(am>3){ah=4*aj}else{if(am>2){ah=3*aj}else{if(am>1){ah=2*aj}else{ah=aj}}}}}}return ah}function Q(ai,ah){ah=ah||1;var ak=Math.floor(Math.log(ai)/Math.LN10);var am=Math.pow(10,ak);var al=ai/am;var aj;al=al/ah;if(al<=0.38){aj=0.1}else{if(al<=1.6){aj=0.2}else{if(al<=4){aj=0.5}else{if(al<=8){aj=1}else{if(al<=16){aj=2}else{aj=5}}}}}return aj*am}function x(aj,ai){var al=Math.floor(Math.log(aj)/Math.LN10);var an=Math.pow(10,al);var am=aj/an;var ah;var ak;am=am/ai;if(am<=0.38){ak=0.1}else{if(am<=1.6){ak=0.2}else{if(am<=4){ak=0.5}else{if(am<=8){ak=1}else{if(am<=16){ak=2}else{ak=5}}}}}ah=ak*an;return[ah,ak,an]}L.jqplot.LinearTickGenerator=function(an,aq,aj,ak,ao,ar){ao=(ao===null)?false:ao;ar=(ar===null||ao)?false:ar;if(an===aq){aq=(aq)?0:1}aj=aj||1;if(aq<an){var at=aq;aq=an;an=at}var ai=[];var aw=Q(aq-an,aj);var av=L.jqplot.getSignificantFigures;if(ak==null){if(!ao&&!ar){ai[0]=Math.floor(an/aw)*aw;ai[1]=Math.ceil(aq/aw)*aw;ai[2]=Math.round((ai[1]-ai[0])/aw+1);ai[3]=i(aw);ai[4]=aw}else{if(ao){ai[0]=an;ai[2]=Math.ceil((aq-an)/aw+1);ai[1]=an+(ai[2]-1)*aw;var au=av(an).digitsRight;var ap=av(aw).digitsRight;if(au<ap){ai[3]=i(aw)}else{ai[3]="%."+au+"f"}ai[4]=aw}else{if(ar){ai[1]=aq;ai[2]=Math.ceil((aq-an)/aw+1);ai[0]=aq-(ai[2]-1)*aw;var al=av(aq).digitsRight;var ap=av(aw).digitsRight;if(al<ap){ai[3]=i(aw)}else{ai[3]="%."+al+"f"}ai[4]=aw}}}}else{var am=[];am[0]=Math.floor(an/aw)*aw;am[1]=Math.ceil(aq/aw)*aw;am[2]=Math.round((am[1]-am[0])/aw+1);am[3]=i(aw);am[4]=aw;if(am[2]===ak){ai=am}else{var ah=W(am[1]-am[0],ak);ai[0]=am[0];ai[2]=ak;ai[4]=ah;ai[3]=i(ah);ai[1]=ai[0]+(ai[2]-1)*ai[4]}}return ai};L.jqplot.LinearTickGenerator.bestLinearInterval=Q;L.jqplot.LinearTickGenerator.bestInterval=W;L.jqplot.LinearTickGenerator.bestLinearComponents=x;L.jqplot.LinearTickGenerator.bestConstrainedInterval=d;L.jqplot.MarkerRenderer=function(ah){this.show=true;this.style="filledCircle";this.lineWidth=2;this.size=9;this.color="#666666";this.shadow=true;this.shadowAngle=45;this.shadowOffset=1;this.shadowDepth=3;this.shadowAlpha="0.07";this.shadowRenderer=new L.jqplot.ShadowRenderer();this.shapeRenderer=new L.jqplot.ShapeRenderer();L.extend(true,this,ah)};L.jqplot.MarkerRenderer.prototype.init=function(ah){L.extend(true,this,ah);var aj={angle:this.shadowAngle,offset:this.shadowOffset,alpha:this.shadowAlpha,lineWidth:this.lineWidth,depth:this.shadowDepth,closePath:true};if(this.style.indexOf("filled")!=-1){aj.fill=true}if(this.style.indexOf("ircle")!=-1){aj.isarc=true;aj.closePath=false}this.shadowRenderer.init(aj);var ai={fill:false,isarc:false,strokeStyle:this.color,fillStyle:this.color,lineWidth:this.lineWidth,closePath:true};if(this.style.indexOf("filled")!=-1){ai.fill=true}if(this.style.indexOf("ircle")!=-1){ai.isarc=true;ai.closePath=false}this.shapeRenderer.init(ai)};L.jqplot.MarkerRenderer.prototype.drawDiamond=function(aj,ai,am,al,ao){var ah=1.2;var ap=this.size/2/ah;var an=this.size/2*ah;var ak=[[aj-ap,ai],[aj,ai+an],[aj+ap,ai],[aj,ai-an]];if(this.shadow){this.shadowRenderer.draw(am,ak)}this.shapeRenderer.draw(am,ak,ao)};L.jqplot.MarkerRenderer.prototype.drawPlus=function(ak,aj,an,am,aq){var ai=1;var ar=this.size/2*ai;var ao=this.size/2*ai;var ap=[[ak,aj-ao],[ak,aj+ao]];var al=[[ak+ar,aj],[ak-ar,aj]];var ah=L.extend(true,{},this.options,{closePath:false});if(this.shadow){this.shadowRenderer.draw(an,ap,{closePath:false});this.shadowRenderer.draw(an,al,{closePath:false})}this.shapeRenderer.draw(an,ap,ah);this.shapeRenderer.draw(an,al,ah)};L.jqplot.MarkerRenderer.prototype.drawX=function(ak,aj,an,am,aq){var ai=1;var ar=this.size/2*ai;var ao=this.size/2*ai;var ah=L.extend(true,{},this.options,{closePath:false});var ap=[[ak-ar,aj-ao],[ak+ar,aj+ao]];var al=[[ak-ar,aj+ao],[ak+ar,aj-ao]];if(this.shadow){this.shadowRenderer.draw(an,ap,{closePath:false});this.shadowRenderer.draw(an,al,{closePath:false})}this.shapeRenderer.draw(an,ap,ah);this.shapeRenderer.draw(an,al,ah)};L.jqplot.MarkerRenderer.prototype.drawDash=function(aj,ai,am,al,ao){var ah=1;var ap=this.size/2*ah;var an=this.size/2*ah;var ak=[[aj-ap,ai],[aj+ap,ai]];if(this.shadow){this.shadowRenderer.draw(am,ak)}this.shapeRenderer.draw(am,ak,ao)};L.jqplot.MarkerRenderer.prototype.drawLine=function(am,al,ah,ak,ai){var aj=[am,al];if(this.shadow){this.shadowRenderer.draw(ah,aj)}this.shapeRenderer.draw(ah,aj,ai)};L.jqplot.MarkerRenderer.prototype.drawSquare=function(aj,ai,am,al,ao){var ah=1;var ap=this.size/2/ah;var an=this.size/2*ah;var ak=[[aj-ap,ai-an],[aj-ap,ai+an],[aj+ap,ai+an],[aj+ap,ai-an]];if(this.shadow){this.shadowRenderer.draw(am,ak)}this.shapeRenderer.draw(am,ak,ao)};L.jqplot.MarkerRenderer.prototype.drawCircle=function(ai,ao,ak,an,al){var ah=this.size/2;var aj=2*Math.PI;var am=[ai,ao,ah,0,aj,true];if(this.shadow){this.shadowRenderer.draw(ak,am)}this.shapeRenderer.draw(ak,am,al)};L.jqplot.MarkerRenderer.prototype.draw=function(ah,ak,ai,aj){aj=aj||{};if(aj.show==null||aj.show!=false){if(aj.color&&!aj.fillStyle){aj.fillStyle=aj.color}if(aj.color&&!aj.strokeStyle){aj.strokeStyle=aj.color}switch(this.style){case"diamond":this.drawDiamond(ah,ak,ai,false,aj);break;case"filledDiamond":this.drawDiamond(ah,ak,ai,true,aj);break;case"circle":this.drawCircle(ah,ak,ai,false,aj);break;case"filledCircle":this.drawCircle(ah,ak,ai,true,aj);break;case"square":this.drawSquare(ah,ak,ai,false,aj);break;case"filledSquare":this.drawSquare(ah,ak,ai,true,aj);break;case"x":this.drawX(ah,ak,ai,true,aj);break;case"plus":this.drawPlus(ah,ak,ai,true,aj);break;case"dash":this.drawDash(ah,ak,ai,true,aj);break;case"line":this.drawLine(ah,ak,ai,false,aj);break;default:this.drawDiamond(ah,ak,ai,false,aj);break}}};L.jqplot.ShadowRenderer=function(ah){this.angle=45;this.offset=1;this.alpha=0.07;this.lineWidth=1.5;this.lineJoin="miter";this.lineCap="round";this.closePath=false;this.fill=false;this.depth=3;this.strokeStyle="rgba(0,0,0,0.1)";this.isarc=false;L.extend(true,this,ah)};L.jqplot.ShadowRenderer.prototype.init=function(ah){L.extend(true,this,ah)};L.jqplot.ShadowRenderer.prototype.draw=function(av,at,ax){av.save();var ah=(ax!=null)?ax:{};var au=(ah.fill!=null)?ah.fill:this.fill;var ap=(ah.fillRect!=null)?ah.fillRect:this.fillRect;var ao=(ah.closePath!=null)?ah.closePath:this.closePath;var al=(ah.offset!=null)?ah.offset:this.offset;var aj=(ah.alpha!=null)?ah.alpha:this.alpha;var an=(ah.depth!=null)?ah.depth:this.depth;var aw=(ah.isarc!=null)?ah.isarc:this.isarc;var aq=(ah.linePattern!=null)?ah.linePattern:this.linePattern;av.lineWidth=(ah.lineWidth!=null)?ah.lineWidth:this.lineWidth;av.lineJoin=(ah.lineJoin!=null)?ah.lineJoin:this.lineJoin;av.lineCap=(ah.lineCap!=null)?ah.lineCap:this.lineCap;av.strokeStyle=ah.strokeStyle||this.strokeStyle||"rgba(0,0,0,"+aj+")";av.fillStyle=ah.fillStyle||this.fillStyle||"rgba(0,0,0,"+aj+")";for(var ak=0;ak<an;ak++){var ar=L.jqplot.LinePattern(av,aq);av.translate(Math.cos(this.angle*Math.PI/180)*al,Math.sin(this.angle*Math.PI/180)*al);ar.beginPath();if(aw){av.arc(at[0],at[1],at[2],at[3],at[4],true)}else{if(ap){if(ap){av.fillRect(at[0],at[1],at[2],at[3])}}else{if(at&&at.length){var ai=true;for(var am=0;am<at.length;am++){if(at[am][0]!=null&&at[am][1]!=null){if(ai){ar.moveTo(at[am][0],at[am][1]);ai=false}else{ar.lineTo(at[am][0],at[am][1])}}else{ai=true}}}}}if(ao){ar.closePath()}if(au){av.fill()}else{av.stroke()}}av.restore()};L.jqplot.ShapeRenderer=function(ah){this.lineWidth=1.5;this.linePattern="solid";this.lineJoin="miter";this.lineCap="round";this.closePath=false;this.fill=false;this.isarc=false;this.fillRect=false;this.strokeRect=false;this.clearRect=false;this.strokeStyle="#999999";this.fillStyle="#999999";L.extend(true,this,ah)};L.jqplot.ShapeRenderer.prototype.init=function(ah){L.extend(true,this,ah)};L.jqplot.ShapeRenderer.prototype.draw=function(at,aq,av){at.save();var ah=(av!=null)?av:{};var ar=(ah.fill!=null)?ah.fill:this.fill;var am=(ah.closePath!=null)?ah.closePath:this.closePath;var an=(ah.fillRect!=null)?ah.fillRect:this.fillRect;var ak=(ah.strokeRect!=null)?ah.strokeRect:this.strokeRect;var ai=(ah.clearRect!=null)?ah.clearRect:this.clearRect;var au=(ah.isarc!=null)?ah.isarc:this.isarc;var ao=(ah.linePattern!=null)?ah.linePattern:this.linePattern;var ap=L.jqplot.LinePattern(at,ao);at.lineWidth=ah.lineWidth||this.lineWidth;at.lineJoin=ah.lineJoin||this.lineJoin;at.lineCap=ah.lineCap||this.lineCap;at.strokeStyle=(ah.strokeStyle||ah.color)||this.strokeStyle;at.fillStyle=ah.fillStyle||this.fillStyle;at.beginPath();if(au){at.arc(aq[0],aq[1],aq[2],aq[3],aq[4],true);if(am){at.closePath()}if(ar){at.fill()}else{at.stroke()}at.restore();return}else{if(ai){at.clearRect(aq[0],aq[1],aq[2],aq[3]);at.restore();return}else{if(an||ak){if(an){at.fillRect(aq[0],aq[1],aq[2],aq[3])}if(ak){at.strokeRect(aq[0],aq[1],aq[2],aq[3]);at.restore();return}}else{if(aq&&aq.length){var aj=true;for(var al=0;al<aq.length;al++){if(aq[al][0]!=null&&aq[al][1]!=null){if(aj){ap.moveTo(aq[al][0],aq[al][1]);aj=false}else{ap.lineTo(aq[al][0],aq[al][1])}}else{aj=true}}if(am){ap.closePath()}if(ar){at.fill()}else{at.stroke()}}}}}at.restore()};L.jqplot.TableLegendRenderer=function(){};L.jqplot.TableLegendRenderer.prototype.init=function(ah){L.extend(true,this,ah)};L.jqplot.TableLegendRenderer.prototype.addrow=function(aq,ak,ah,ao){var al=(ah)?this.rowSpacing+"px":"0px";var ap;var aj;var ai;var an;var am;ai=document.createElement("tr");ap=L(ai);ap.addClass("jqplot-table-legend");ai=null;if(ao){ap.prependTo(this._elem)}else{ap.appendTo(this._elem)}if(this.showSwatches){aj=L(document.createElement("td"));aj.addClass("jqplot-table-legend jqplot-table-legend-swatch");aj.css({textAlign:"center",paddingTop:al});an=L(document.createElement("div"));an.addClass("jqplot-table-legend-swatch-outline");am=L(document.createElement("div"));am.addClass("jqplot-table-legend-swatch");am.css({backgroundColor:ak,borderColor:ak});ap.append(aj.append(an.append(am)))}if(this.showLabels){aj=L(document.createElement("td"));aj.addClass("jqplot-table-legend jqplot-table-legend-label");aj.css("paddingTop",al);ap.append(aj);if(this.escapeHtml){aj.text(aq)}else{aj.html(aq)}}aj=null;an=null;am=null;ap=null;ai=null};L.jqplot.TableLegendRenderer.prototype.draw=function(){if(this._elem){this._elem.emptyForce();this._elem=null}if(this.show){var am=this._series;var ai=document.createElement("table");this._elem=L(ai);this._elem.addClass("jqplot-table-legend");var ar={position:"absolute"};if(this.background){ar.background=this.background}if(this.border){ar.border=this.border}if(this.fontSize){ar.fontSize=this.fontSize}if(this.fontFamily){ar.fontFamily=this.fontFamily}if(this.textColor){ar.textColor=this.textColor}if(this.marginTop!=null){ar.marginTop=this.marginTop}if(this.marginBottom!=null){ar.marginBottom=this.marginBottom}if(this.marginLeft!=null){ar.marginLeft=this.marginLeft}if(this.marginRight!=null){ar.marginRight=this.marginRight}var ah=false,ao=false,aq;for(var an=0;an<am.length;an++){aq=am[an];if(aq._stack||aq.renderer.constructor==L.jqplot.BezierCurveRenderer){ao=true}if(aq.show&&aq.showLabel){var al=this.labels[an]||aq.label.toString();if(al){var aj=aq.color;if(ao&&an<am.length-1){ah=true}else{if(ao&&an==am.length-1){ah=false}}this.renderer.addrow.call(this,al,aj,ah,ao);ah=true}for(var ak=0;ak<L.jqplot.addLegendRowHooks.length;ak++){var ap=L.jqplot.addLegendRowHooks[ak].call(this,aq);if(ap){this.renderer.addrow.call(this,ap.label,ap.color,ah);ah=true}}al=null}}}return this._elem};L.jqplot.TableLegendRenderer.prototype.pack=function(aj){if(this.show){if(this.placement=="insideGrid"){switch(this.location){case"nw":var ai=aj.left;var ah=aj.top;this._elem.css("left",ai);this._elem.css("top",ah);break;case"n":var ai=(aj.left+(this._plotDimensions.width-aj.right))/2-this.getWidth()/2;var ah=aj.top;this._elem.css("left",ai);this._elem.css("top",ah);break;case"ne":var ai=aj.right;var ah=aj.top;this._elem.css({right:ai,top:ah});break;case"e":var ai=aj.right;var ah=(aj.top+(this._plotDimensions.height-aj.bottom))/2-this.getHeight()/2;this._elem.css({right:ai,top:ah});break;case"se":var ai=aj.right;var ah=aj.bottom;this._elem.css({right:ai,bottom:ah});break;case"s":var ai=(aj.left+(this._plotDimensions.width-aj.right))/2-this.getWidth()/2;var ah=aj.bottom;this._elem.css({left:ai,bottom:ah});break;case"sw":var ai=aj.left;var ah=aj.bottom;this._elem.css({left:ai,bottom:ah});break;case"w":var ai=aj.left;var ah=(aj.top+(this._plotDimensions.height-aj.bottom))/2-this.getHeight()/2;this._elem.css({left:ai,top:ah});break;default:var ai=aj.right;var ah=aj.bottom;this._elem.css({right:ai,bottom:ah});break}}else{if(this.placement=="outside"){switch(this.location){case"nw":var ai=this._plotDimensions.width-aj.left;var ah=aj.top;this._elem.css("right",ai);this._elem.css("top",ah);break;case"n":var ai=(aj.left+(this._plotDimensions.width-aj.right))/2-this.getWidth()/2;var ah=this._plotDimensions.height-aj.top;this._elem.css("left",ai);this._elem.css("bottom",ah);break;case"ne":var ai=this._plotDimensions.width-aj.right;var ah=aj.top;this._elem.css({left:ai,top:ah});break;case"e":var ai=this._plotDimensions.width-aj.right;var ah=(aj.top+(this._plotDimensions.height-aj.bottom))/2-this.getHeight()/2;this._elem.css({left:ai,top:ah});break;case"se":var ai=this._plotDimensions.width-aj.right;var ah=aj.bottom;this._elem.css({left:ai,bottom:ah});break;case"s":var ai=(aj.left+(this._plotDimensions.width-aj.right))/2-this.getWidth()/2;var ah=this._plotDimensions.height-aj.bottom;this._elem.css({left:ai,top:ah});break;case"sw":var ai=this._plotDimensions.width-aj.left;var ah=aj.bottom;this._elem.css({right:ai,bottom:ah});break;case"w":var ai=this._plotDimensions.width-aj.left;var ah=(aj.top+(this._plotDimensions.height-aj.bottom))/2-this.getHeight()/2;this._elem.css({right:ai,top:ah});break;default:var ai=aj.right;var ah=aj.bottom;this._elem.css({right:ai,bottom:ah});break}}else{switch(this.location){case"nw":this._elem.css({left:0,top:aj.top});break;case"n":var ai=(aj.left+(this._plotDimensions.width-aj.right))/2-this.getWidth()/2;this._elem.css({left:ai,top:aj.top});break;case"ne":this._elem.css({right:0,top:aj.top});break;case"e":var ah=(aj.top+(this._plotDimensions.height-aj.bottom))/2-this.getHeight()/2;this._elem.css({right:aj.right,top:ah});break;case"se":this._elem.css({right:aj.right,bottom:aj.bottom});break;case"s":var ai=(aj.left+(this._plotDimensions.width-aj.right))/2-this.getWidth()/2;this._elem.css({left:ai,bottom:aj.bottom});break;case"sw":this._elem.css({left:aj.left,bottom:aj.bottom});break;case"w":var ah=(aj.top+(this._plotDimensions.height-aj.bottom))/2-this.getHeight()/2;this._elem.css({left:aj.left,top:ah});break;default:this._elem.css({right:aj.right,bottom:aj.bottom});break}}}}};L.jqplot.ThemeEngine=function(){this.themes={};this.activeTheme=null};L.jqplot.ThemeEngine.prototype.init=function(){var ak=new L.jqplot.Theme({_name:"Default"});var an,ai,am;for(an in ak.target){if(an=="textColor"){ak.target[an]=this.target.css("color")}else{ak.target[an]=this.target.css(an)}}if(this.title.show&&this.title._elem){for(an in ak.title){if(an=="textColor"){ak.title[an]=this.title._elem.css("color")}else{ak.title[an]=this.title._elem.css(an)}}}for(an in ak.grid){ak.grid[an]=this.grid[an]}if(ak.grid.backgroundColor==null&&this.grid.background!=null){ak.grid.backgroundColor=this.grid.background}if(this.legend.show&&this.legend._elem){for(an in ak.legend){if(an=="textColor"){ak.legend[an]=this.legend._elem.css("color")}else{ak.legend[an]=this.legend._elem.css(an)}}}var aj;for(ai=0;ai<this.series.length;ai++){aj=this.series[ai];if(aj.renderer.constructor==L.jqplot.LineRenderer){ak.series.push(new p())}else{if(aj.renderer.constructor==L.jqplot.BarRenderer){ak.series.push(new T())}else{if(aj.renderer.constructor==L.jqplot.PieRenderer){ak.series.push(new f())}else{if(aj.renderer.constructor==L.jqplot.DonutRenderer){ak.series.push(new G())}else{if(aj.renderer.constructor==L.jqplot.FunnelRenderer){ak.series.push(new Z())}else{if(aj.renderer.constructor==L.jqplot.MeterGaugeRenderer){ak.series.push(new D())}else{ak.series.push({})}}}}}}for(an in ak.series[ai]){ak.series[ai][an]=aj[an]}}var ah,al;for(an in this.axes){al=this.axes[an];ah=ak.axes[an]=new P();ah.borderColor=al.borderColor;ah.borderWidth=al.borderWidth;if(al._ticks&&al._ticks[0]){for(am in ah.ticks){if(al._ticks[0].hasOwnProperty(am)){ah.ticks[am]=al._ticks[0][am]}else{if(al._ticks[0]._elem){ah.ticks[am]=al._ticks[0]._elem.css(am)}}}}if(al._label&&al._label.show){for(am in ah.label){if(al._label[am]){ah.label[am]=al._label[am]}else{if(al._label._elem){if(am=="textColor"){ah.label[am]=al._label._elem.css("color")}else{ah.label[am]=al._label._elem.css(am)}}}}}}this.themeEngine._add(ak);this.themeEngine.activeTheme=this.themeEngine.themes[ak._name]};L.jqplot.ThemeEngine.prototype.get=function(ah){if(!ah){return this.activeTheme}else{return this.themes[ah]}};function O(ai,ah){return ai-ah}L.jqplot.ThemeEngine.prototype.getThemeNames=function(){var ah=[];for(var ai in this.themes){ah.push(ai)}return ah.sort(O)};L.jqplot.ThemeEngine.prototype.getThemes=function(){var ai=[];var ah=[];for(var ak in this.themes){ai.push(ak)}ai.sort(O);for(var aj=0;aj<ai.length;aj++){ah.push(this.themes[ai[aj]])}return ah};L.jqplot.ThemeEngine.prototype.activate=function(av,aB){var ah=false;if(!aB&&this.activeTheme&&this.activeTheme._name){aB=this.activeTheme._name}if(!this.themes.hasOwnProperty(aB)){throw new Error("No theme of that name")}else{var am=this.themes[aB];this.activeTheme=am;var aA,at=false,ar=false;var ai=["xaxis","x2axis","yaxis","y2axis"];for(aw=0;aw<ai.length;aw++){var an=ai[aw];if(am.axesStyles.borderColor!=null){av.axes[an].borderColor=am.axesStyles.borderColor}if(am.axesStyles.borderWidth!=null){av.axes[an].borderWidth=am.axesStyles.borderWidth}}for(var az in av.axes){var ak=av.axes[az];if(ak.show){var aq=am.axes[az]||{};var ao=am.axesStyles;var al=L.jqplot.extend(true,{},aq,ao);aA=(am.axesStyles.borderColor!=null)?am.axesStyles.borderColor:al.borderColor;if(al.borderColor!=null){ak.borderColor=al.borderColor;ah=true}aA=(am.axesStyles.borderWidth!=null)?am.axesStyles.borderWidth:al.borderWidth;if(al.borderWidth!=null){ak.borderWidth=al.borderWidth;ah=true}if(ak._ticks&&ak._ticks[0]){for(var aj in al.ticks){aA=al.ticks[aj];if(aA!=null){ak.tickOptions[aj]=aA;ak._ticks=[];ah=true}}}if(ak._label&&ak._label.show){for(var aj in al.label){aA=al.label[aj];if(aA!=null){ak.labelOptions[aj]=aA;ah=true}}}}}for(var au in am.grid){if(am.grid[au]!=null){av.grid[au]=am.grid[au]}}if(!ah){av.grid.draw()}if(av.legend.show){for(au in am.legend){if(am.legend[au]!=null){av.legend[au]=am.legend[au]}}}if(av.title.show){for(au in am.title){if(am.title[au]!=null){av.title[au]=am.title[au]}}}var aw;for(aw=0;aw<am.series.length;aw++){var ap={};var ay=false;for(au in am.series[aw]){aA=(am.seriesStyles[au]!=null)?am.seriesStyles[au]:am.series[aw][au];if(aA!=null){ap[au]=aA;if(au=="color"){av.series[aw].renderer.shapeRenderer.fillStyle=aA;av.series[aw].renderer.shapeRenderer.strokeStyle=aA;av.series[aw][au]=aA}else{if((au=="lineWidth")||(au=="linePattern")){av.series[aw].renderer.shapeRenderer[au]=aA;av.series[aw][au]=aA}else{if(au=="markerOptions"){V(av.series[aw].markerOptions,aA);V(av.series[aw].markerRenderer,aA)}else{av.series[aw][au]=aA}}}ah=true}}}if(ah){av.target.empty();av.draw()}for(au in am.target){if(am.target[au]!=null){av.target.css(au,am.target[au])}}}};L.jqplot.ThemeEngine.prototype._add=function(ai,ah){if(ah){ai._name=ah}if(!ai._name){ai._name=Date.parse(new Date())}if(!this.themes.hasOwnProperty(ai._name)){this.themes[ai._name]=ai}else{throw new Error("jqplot.ThemeEngine Error: Theme already in use")}};L.jqplot.ThemeEngine.prototype.remove=function(ah){if(ah=="Default"){return false}return delete this.themes[ah]};L.jqplot.ThemeEngine.prototype.newTheme=function(ah,aj){if(typeof(ah)=="object"){aj=aj||ah;ah=null}if(aj&&aj._name){ah=aj._name}else{ah=ah||Date.parse(new Date())}var ai=this.copy(this.themes.Default._name,ah);L.jqplot.extend(ai,aj);return ai};function B(aj){if(aj==null||typeof(aj)!="object"){return aj}var ah=new aj.constructor();for(var ai in aj){ah[ai]=B(aj[ai])}return ah}L.jqplot.clone=B;function V(aj,ai){if(ai==null||typeof(ai)!="object"){return}for(var ah in ai){if(ah=="highlightColors"){aj[ah]=B(ai[ah])}if(ai[ah]!=null&&typeof(ai[ah])=="object"){if(!aj.hasOwnProperty(ah)){aj[ah]={}}V(aj[ah],ai[ah])}else{aj[ah]=ai[ah]}}}L.jqplot.merge=V;L.jqplot.extend=function(){var am=arguments[0]||{},ak=1,al=arguments.length,ah=false,aj;if(typeof am==="boolean"){ah=am;am=arguments[1]||{};ak=2}if(typeof am!=="object"&&!toString.call(am)==="[object Function]"){am={}}for(;ak<al;ak++){if((aj=arguments[ak])!=null){for(var ai in aj){var an=am[ai],ao=aj[ai];if(am===ao){continue}if(ah&&ao&&typeof ao==="object"&&!ao.nodeType){am[ai]=L.jqplot.extend(ah,an||(ao.length!=null?[]:{}),ao)}else{if(ao!==u){am[ai]=ao}}}}}return am};L.jqplot.ThemeEngine.prototype.rename=function(ai,ah){if(ai=="Default"||ah=="Default"){throw new Error("jqplot.ThemeEngine Error: Cannot rename from/to Default")}if(this.themes.hasOwnProperty(ah)){throw new Error("jqplot.ThemeEngine Error: New name already in use.")}else{if(this.themes.hasOwnProperty(ai)){var aj=this.copy(ai,ah);this.remove(ai);return aj}}throw new Error("jqplot.ThemeEngine Error: Old name or new name invalid")};L.jqplot.ThemeEngine.prototype.copy=function(ah,aj,al){if(aj=="Default"){throw new Error("jqplot.ThemeEngine Error: Cannot copy over Default theme")}if(!this.themes.hasOwnProperty(ah)){var ai="jqplot.ThemeEngine Error: Source name invalid";throw new Error(ai)}if(this.themes.hasOwnProperty(aj)){var ai="jqplot.ThemeEngine Error: Target name invalid";throw new Error(ai)}else{var ak=B(this.themes[ah]);ak._name=aj;L.jqplot.extend(true,ak,al);this._add(ak);return ak}};L.jqplot.Theme=function(ah,ai){if(typeof(ah)=="object"){ai=ai||ah;ah=null}ah=ah||Date.parse(new Date());this._name=ah;this.target={backgroundColor:null};this.legend={textColor:null,fontFamily:null,fontSize:null,border:null,background:null};this.title={textColor:null,fontFamily:null,fontSize:null,textAlign:null};this.seriesStyles={};this.series=[];this.grid={drawGridlines:null,gridLineColor:null,gridLineWidth:null,backgroundColor:null,borderColor:null,borderWidth:null,shadow:null};this.axesStyles={label:{},ticks:{}};this.axes={};if(typeof(ai)=="string"){this._name=ai}else{if(typeof(ai)=="object"){L.jqplot.extend(true,this,ai)}}};var P=function(){this.borderColor=null;this.borderWidth=null;this.ticks=new o();this.label=new t()};var o=function(){this.show=null;this.showGridline=null;this.showLabel=null;this.showMark=null;this.size=null;this.textColor=null;this.whiteSpace=null;this.fontSize=null;this.fontFamily=null};var t=function(){this.textColor=null;this.whiteSpace=null;this.fontSize=null;this.fontFamily=null;this.fontWeight=null};var p=function(){this.color=null;this.lineWidth=null;this.linePattern=null;this.shadow=null;this.fillColor=null;this.showMarker=null;this.markerOptions=new I()};var I=function(){this.show=null;this.style=null;this.lineWidth=null;this.size=null;this.color=null;this.shadow=null};var T=function(){this.color=null;this.seriesColors=null;this.lineWidth=null;this.shadow=null;this.barPadding=null;this.barMargin=null;this.barWidth=null;this.highlightColors=null};var f=function(){this.seriesColors=null;this.padding=null;this.sliceMargin=null;this.fill=null;this.shadow=null;this.startAngle=null;this.lineWidth=null;this.highlightColors=null};var G=function(){this.seriesColors=null;this.padding=null;this.sliceMargin=null;this.fill=null;this.shadow=null;this.startAngle=null;this.lineWidth=null;this.innerDiameter=null;this.thickness=null;this.ringMargin=null;this.highlightColors=null};var Z=function(){this.color=null;this.lineWidth=null;this.shadow=null;this.padding=null;this.sectionMargin=null;this.seriesColors=null;this.highlightColors=null};var D=function(){this.padding=null;this.backgroundColor=null;this.ringColor=null;this.tickColor=null;this.ringWidth=null;this.intervalColors=null;this.intervalInnerRadius=null;this.intervalOuterRadius=null;this.hubRadius=null;this.needleThickness=null;this.needlePad=null};L.fn.jqplotChildText=function(){return L(this).contents().filter(function(){return this.nodeType==3}).text()};L.fn.jqplotGetComputedFontStyle=function(){var ak=window.getComputedStyle?window.getComputedStyle(this[0],""):this[0].currentStyle;var ai=ak["font-style"]?["font-style","font-weight","font-size","font-family"]:["fontStyle","fontWeight","fontSize","fontFamily"];var al=[];for(var aj=0;aj<ai.length;++aj){var ah=String(ak[ai[aj]]);if(ah&&ah!="normal"){al.push(ah)}}return al.join(" ")};L.fn.jqplotToImageCanvas=function(aj){aj=aj||{};var av=(aj.x_offset==null)?0:aj.x_offset;var ax=(aj.y_offset==null)?0:aj.y_offset;var al=(aj.backgroundColor==null)?"rgb(255,255,255)":aj.backgroundColor;if(L(this).width()==0||L(this).height()==0){return null}if(L.jqplot.use_excanvas){return null}var an=document.createElement("canvas");var aA=L(this).outerHeight(true);var at=L(this).outerWidth(true);var am=L(this).offset();var ao=am.left;var aq=am.top;var au=0,ar=0;var ay=["jqplot-table-legend","jqplot-xaxis-tick","jqplot-x2axis-tick","jqplot-yaxis-tick","jqplot-y2axis-tick","jqplot-y3axis-tick","jqplot-y4axis-tick","jqplot-y5axis-tick","jqplot-y6axis-tick","jqplot-y7axis-tick","jqplot-y8axis-tick","jqplot-y9axis-tick","jqplot-xaxis-label","jqplot-x2axis-label","jqplot-yaxis-label","jqplot-y2axis-label","jqplot-y3axis-label","jqplot-y4axis-label","jqplot-y5axis-label","jqplot-y6axis-label","jqplot-y7axis-label","jqplot-y8axis-label","jqplot-y9axis-label"];var ap,ah,ai,aB;for(var az=0;az<ay.length;az++){L(this).find("."+ay[az]).each(function(){ap=L(this).offset().top-aq;ah=L(this).offset().left-ao;aB=ah+L(this).outerWidth(true)+au;ai=ap+L(this).outerHeight(true)+ar;if(ah<-au){at=at-au-ah;au=-ah}if(ap<-ar){aA=aA-ar-ap;ar=-ap}if(aB>at){at=aB}if(ai>aA){aA=ai}})}an.width=at+Number(av);an.height=aA+Number(ax);var ak=an.getContext("2d");ak.save();ak.fillStyle=al;ak.fillRect(0,0,an.width,an.height);ak.restore();ak.translate(au,ar);ak.textAlign="left";ak.textBaseline="top";function aC(aE){var aF=parseInt(L(aE).css("line-height"),10);if(isNaN(aF)){aF=parseInt(L(aE).css("font-size"),10)*1.2}return aF}function aD(aF,aE,aS,aG,aO,aH){var aQ=aC(aF);var aK=L(aF).innerWidth();var aL=L(aF).innerHeight();var aN=aS.split(/\s+/);var aR=aN.length;var aP="";var aM=[];var aU=aO;var aT=aG;for(var aJ=0;aJ<aR;aJ++){aP+=aN[aJ];if(aE.measureText(aP).width>aK&&aP.length>aN[aJ].length){aM.push(aJ);aP="";aJ--}}if(aM.length===0){if(L(aF).css("textAlign")==="center"){aT=aG+(aH-aE.measureText(aP).width)/2-au}aE.fillText(aS,aT,aO)}else{aP=aN.slice(0,aM[0]).join(" ");if(L(aF).css("textAlign")==="center"){aT=aG+(aH-aE.measureText(aP).width)/2-au}aE.fillText(aP,aT,aU);aU+=aQ;for(var aJ=1,aI=aM.length;aJ<aI;aJ++){aP=aN.slice(aM[aJ-1],aM[aJ]).join(" ");if(L(aF).css("textAlign")==="center"){aT=aG+(aH-aE.measureText(aP).width)/2-au}aE.fillText(aP,aT,aU);aU+=aQ}aP=aN.slice(aM[aJ-1],aN.length).join(" ");if(L(aF).css("textAlign")==="center"){aT=aG+(aH-aE.measureText(aP).width)/2-au}aE.fillText(aP,aT,aU)}}function aw(aG,aJ,aE){var aN=aG.tagName.toLowerCase();var aF=L(aG).position();var aK=window.getComputedStyle?window.getComputedStyle(aG,""):aG.currentStyle;var aI=aJ+aF.left+parseInt(aK.marginLeft,10)+parseInt(aK.borderLeftWidth,10)+parseInt(aK.paddingLeft,10);var aL=aE+aF.top+parseInt(aK.marginTop,10)+parseInt(aK.borderTopWidth,10)+parseInt(aK.paddingTop,10);var aM=an.width;if((aN=="div"||aN=="span")&&!L(aG).hasClass("jqplot-highlighter-tooltip")){L(aG).children().each(function(){aw(this,aI,aL)});var aO=L(aG).jqplotChildText();if(aO){ak.font=L(aG).jqplotGetComputedFontStyle();ak.fillStyle=L(aG).css("color");aD(aG,ak,aO,aI,aL,aM)}}else{if(aN==="table"&&L(aG).hasClass("jqplot-table-legend")){ak.strokeStyle=L(aG).css("border-top-color");ak.fillStyle=L(aG).css("background-color");ak.fillRect(aI,aL,L(aG).innerWidth(),L(aG).innerHeight());if(parseInt(L(aG).css("border-top-width"),10)>0){ak.strokeRect(aI,aL,L(aG).innerWidth(),L(aG).innerHeight())}L(aG).find("div.jqplot-table-legend-swatch-outline").each(function(){var aU=L(this);ak.strokeStyle=aU.css("border-top-color");var aQ=aI+aU.position().left;var aR=aL+aU.position().top;ak.strokeRect(aQ,aR,aU.innerWidth(),aU.innerHeight());aQ+=parseInt(aU.css("padding-left"),10);aR+=parseInt(aU.css("padding-top"),10);var aT=aU.innerHeight()-2*parseInt(aU.css("padding-top"),10);var aP=aU.innerWidth()-2*parseInt(aU.css("padding-left"),10);var aS=aU.children("div.jqplot-table-legend-swatch");ak.fillStyle=aS.css("background-color");ak.fillRect(aQ,aR,aP,aT)});L(aG).find("td.jqplot-table-legend-label").each(function(){var aR=L(this);var aP=aI+aR.position().left;var aQ=aL+aR.position().top+parseInt(aR.css("padding-top"),10);ak.font=aR.jqplotGetComputedFontStyle();ak.fillStyle=aR.css("color");aD(aR,ak,aR.text(),aP,aQ,aM)});var aH=null}else{if(aN=="canvas"){ak.drawImage(aG,aI,aL)}}}}L(this).children().each(function(){aw(this,av,ax)});return an};L.fn.jqplotToImageStr=function(ai){var ah=L(this).jqplotToImageCanvas(ai);if(ah){return ah.toDataURL("image/png")}else{return null}};L.fn.jqplotToImageElem=function(ah){var ai=document.createElement("img");var aj=L(this).jqplotToImageStr(ah);ai.src=aj;return ai};L.fn.jqplotToImageElemStr=function(ah){var ai="<img src="+L(this).jqplotToImageStr(ah)+" />";return ai};L.fn.jqplotSaveImage=function(){var ah=L(this).jqplotToImageStr({});if(ah){window.location.href=ah.replace("image/png","image/octet-stream")}};L.fn.jqplotViewImage=function(){var ai=L(this).jqplotToImageElemStr({});var aj=L(this).jqplotToImageStr({});if(ai){var ah=window.open("");ah.document.open("image/png");ah.document.write(ai);ah.document.close();ah=null}};var ag=function(){this.syntax=ag.config.syntax;this._type="jsDate";this.proxy=new Date();this.options={};this.locale=ag.regional.getLocale();this.formatString="";this.defaultCentury=ag.config.defaultCentury;switch(arguments.length){case 0:break;case 1:if(l(arguments[0])=="[object Object]"&&arguments[0]._type!="jsDate"){var aj=this.options=arguments[0];this.syntax=aj.syntax||this.syntax;this.defaultCentury=aj.defaultCentury||this.defaultCentury;this.proxy=ag.createDate(aj.date)}else{this.proxy=ag.createDate(arguments[0])}break;default:var ah=[];for(var ai=0;ai<arguments.length;ai++){ah.push(arguments[ai])}this.proxy=new Date();this.proxy.setFullYear.apply(this.proxy,ah.slice(0,3));if(ah.slice(3).length){this.proxy.setHours.apply(this.proxy,ah.slice(3))}break}};ag.config={defaultLocale:"en",syntax:"perl",defaultCentury:1900};ag.prototype.add=function(aj,ai){var ah=E[ai]||E.day;if(typeof ah=="number"){this.proxy.setTime(this.proxy.getTime()+(ah*aj))}else{ah.add(this,aj)}return this};ag.prototype.clone=function(){return new ag(this.proxy.getTime())};ag.prototype.getUtcOffset=function(){return this.proxy.getTimezoneOffset()*60000};ag.prototype.diff=function(ai,al,ah){ai=new ag(ai);if(ai===null){return null}var aj=E[al]||E.day;if(typeof aj=="number"){var ak=(this.proxy.getTime()-ai.proxy.getTime())/aj}else{var ak=aj.diff(this.proxy,ai.proxy)}return(ah?ak:Math[ak>0?"floor":"ceil"](ak))};ag.prototype.getAbbrDayName=function(){return ag.regional[this.locale]["dayNamesShort"][this.proxy.getDay()]};ag.prototype.getAbbrMonthName=function(){return ag.regional[this.locale]["monthNamesShort"][this.proxy.getMonth()]};ag.prototype.getAMPM=function(){return this.proxy.getHours()>=12?"PM":"AM"};ag.prototype.getAmPm=function(){return this.proxy.getHours()>=12?"pm":"am"};ag.prototype.getCentury=function(){return parseInt(this.proxy.getFullYear()/100,10)};ag.prototype.getDate=function(){return this.proxy.getDate()};ag.prototype.getDay=function(){return this.proxy.getDay()};ag.prototype.getDayOfWeek=function(){var ah=this.proxy.getDay();return ah===0?7:ah};ag.prototype.getDayOfYear=function(){var ai=this.proxy;var ah=ai-new Date(""+ai.getFullYear()+"/1/1 GMT");ah+=ai.getTimezoneOffset()*60000;ai=null;return parseInt(ah/60000/60/24,10)+1};ag.prototype.getDayName=function(){return ag.regional[this.locale]["dayNames"][this.proxy.getDay()]};ag.prototype.getFullWeekOfYear=function(){var ak=this.proxy;var ah=this.getDayOfYear();var aj=6-ak.getDay();var ai=parseInt((ah+aj)/7,10);return ai};ag.prototype.getFullYear=function(){return this.proxy.getFullYear()};ag.prototype.getGmtOffset=function(){var ah=this.proxy.getTimezoneOffset()/60;var ai=ah<0?"+":"-";ah=Math.abs(ah);return ai+N(Math.floor(ah),2)+":"+N((ah%1)*60,2)};ag.prototype.getHours=function(){return this.proxy.getHours()};ag.prototype.getHours12=function(){var ah=this.proxy.getHours();return ah>12?ah-12:(ah==0?12:ah)};ag.prototype.getIsoWeek=function(){var ak=this.proxy;var aj=this.getWeekOfYear();var ah=(new Date(""+ak.getFullYear()+"/1/1")).getDay();var ai=aj+(ah>4||ah<=1?0:1);if(ai==53&&(new Date(""+ak.getFullYear()+"/12/31")).getDay()<4){ai=1}else{if(ai===0){ak=new ag(new Date(""+(ak.getFullYear()-1)+"/12/31"));ai=ak.getIsoWeek()}}ak=null;return ai};ag.prototype.getMilliseconds=function(){return this.proxy.getMilliseconds()};ag.prototype.getMinutes=function(){return this.proxy.getMinutes()};ag.prototype.getMonth=function(){return this.proxy.getMonth()};ag.prototype.getMonthName=function(){return ag.regional[this.locale]["monthNames"][this.proxy.getMonth()]};ag.prototype.getMonthNumber=function(){return this.proxy.getMonth()+1};ag.prototype.getSeconds=function(){return this.proxy.getSeconds()};ag.prototype.getShortYear=function(){return this.proxy.getYear()%100};ag.prototype.getTime=function(){return this.proxy.getTime()};ag.prototype.getTimezoneAbbr=function(){return this.proxy.toString().replace(/^.*\(([^)]+)\)$/,"$1")};ag.prototype.getTimezoneName=function(){var ah=/(?:\((.+)\)$| ([A-Z]{3}) )/.exec(this.toString());return ah[1]||ah[2]||"GMT"+this.getGmtOffset()};ag.prototype.getTimezoneOffset=function(){return this.proxy.getTimezoneOffset()};ag.prototype.getWeekOfYear=function(){var ah=this.getDayOfYear();var aj=7-this.getDayOfWeek();var ai=parseInt((ah+aj)/7,10);return ai};ag.prototype.getUnix=function(){return Math.round(this.proxy.getTime()/1000,0)};ag.prototype.getYear=function(){return this.proxy.getYear()};ag.prototype.next=function(ah){ah=ah||"day";return this.clone().add(1,ah)};ag.prototype.set=function(){switch(arguments.length){case 0:this.proxy=new Date();break;case 1:if(l(arguments[0])=="[object Object]"&&arguments[0]._type!="jsDate"){var aj=this.options=arguments[0];this.syntax=aj.syntax||this.syntax;this.defaultCentury=aj.defaultCentury||this.defaultCentury;this.proxy=ag.createDate(aj.date)}else{this.proxy=ag.createDate(arguments[0])}break;default:var ah=[];for(var ai=0;ai<arguments.length;ai++){ah.push(arguments[ai])}this.proxy=new Date();this.proxy.setFullYear.apply(this.proxy,ah.slice(0,3));if(ah.slice(3).length){this.proxy.setHours.apply(this.proxy,ah.slice(3))}break}return this};ag.prototype.setDate=function(ah){this.proxy.setDate(ah);return this};ag.prototype.setFullYear=function(){this.proxy.setFullYear.apply(this.proxy,arguments);return this};ag.prototype.setHours=function(){this.proxy.setHours.apply(this.proxy,arguments);return this};ag.prototype.setMilliseconds=function(ah){this.proxy.setMilliseconds(ah);return this};ag.prototype.setMinutes=function(){this.proxy.setMinutes.apply(this.proxy,arguments);return this};ag.prototype.setMonth=function(){this.proxy.setMonth.apply(this.proxy,arguments);return this};ag.prototype.setSeconds=function(){this.proxy.setSeconds.apply(this.proxy,arguments);return this};ag.prototype.setTime=function(ah){this.proxy.setTime(ah);return this};ag.prototype.setYear=function(){this.proxy.setYear.apply(this.proxy,arguments);return this};ag.prototype.strftime=function(ah){ah=ah||this.formatString||ag.regional[this.locale]["formatString"];return ag.strftime(this,ah,this.syntax)};ag.prototype.toString=function(){return this.proxy.toString()};ag.prototype.toYmdInt=function(){return(this.proxy.getFullYear()*10000)+(this.getMonthNumber()*100)+this.proxy.getDate()};ag.regional={en:{monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],formatString:"%Y-%m-%d %H:%M:%S"},fr:{monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthNamesShort:["Jan","Fév","Mar","Avr","Mai","Jun","Jul","Aoû","Sep","Oct","Nov","Déc"],dayNames:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],dayNamesShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],formatString:"%Y-%m-%d %H:%M:%S"},de:{monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],formatString:"%Y-%m-%d %H:%M:%S"},es:{monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthNamesShort:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],dayNames:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],dayNamesShort:["Dom","Lun","Mar","Mié","Juv","Vie","Sáb"],formatString:"%Y-%m-%d %H:%M:%S"},ru:{monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],formatString:"%Y-%m-%d %H:%M:%S"},ar:{monthNames:["كانون الثاني","شباط","آذار","نيسان","آذار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["السبت","الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة"],dayNamesShort:["سبت","أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة"],formatString:"%Y-%m-%d %H:%M:%S"},pt:{monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],formatString:"%Y-%m-%d %H:%M:%S"},"pt-BR":{monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],formatString:"%Y-%m-%d %H:%M:%S"},pl:{monthNames:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],monthNamesShort:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Paź","Lis","Gru"],dayNames:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota"],dayNamesShort:["Ni","Pn","Wt","Śr","Cz","Pt","Sb"],formatString:"%Y-%m-%d %H:%M:%S"},nl:{monthNames:["Januari","Februari","Maart","April","Mei","Juni","July","Augustus","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNames:","["Zondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag"],dayNamesShort:["Zo","Ma","Di","Wo","Do","Vr","Za"],formatString:"%Y-%m-%d %H:%M:%S"},sv:{monthNames:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],monthNamesShort:["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],dayNames:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],dayNamesShort:["sön","mån","tis","ons","tor","fre","lör"],formatString:"%Y-%m-%d %H:%M:%S"}};ag.regional["en-US"]=ag.regional["en-GB"]=ag.regional.en;ag.regional.getLocale=function(){var ah=ag.config.defaultLocale;if(document&&document.getElementsByTagName("html")&&document.getElementsByTagName("html")[0].lang){ah=document.getElementsByTagName("html")[0].lang;if(!ag.regional.hasOwnProperty(ah)){ah=ag.config.defaultLocale}}return ah};var C=24*60*60*1000;var N=function(ah,ak){ah=String(ah);var ai=ak-ah.length;var aj=String(Math.pow(10,ai)).slice(1);return aj.concat(ah)};var E={millisecond:1,second:1000,minute:60*1000,hour:60*60*1000,day:C,week:7*C,month:{add:function(aj,ah){E.year.add(aj,Math[ah>0?"floor":"ceil"](ah/12));var ai=aj.getMonth()+(ah%12);if(ai==12){ai=0;aj.setYear(aj.getFullYear()+1)}else{if(ai==-1){ai=11;aj.setYear(aj.getFullYear()-1)}}aj.setMonth(ai)},diff:function(al,aj){var ah=al.getFullYear()-aj.getFullYear();var ai=al.getMonth()-aj.getMonth()+(ah*12);var ak=al.getDate()-aj.getDate();return ai+(ak/30)}},year:{add:function(ai,ah){ai.setYear(ai.getFullYear()+Math[ah>0?"floor":"ceil"](ah))},diff:function(ai,ah){return E.month.diff(ai,ah)/12}}};for(var Y in E){if(Y.substring(Y.length-1)!="s"){E[Y+"s"]=E[Y]}}var H=function(al,ak,ai){if(ag.formats[ai]["shortcuts"][ak]){return ag.strftime(al,ag.formats[ai]["shortcuts"][ak],ai)}else{var ah=(ag.formats[ai]["codes"][ak]||"").split(".");var aj=al["get"+ah[0]]?al["get"+ah[0]]():"";if(ah[1]){aj=N(aj,ah[1])}return aj}};ag.strftime=function(an,ak,aj,ao){var ai="perl";var am=ag.regional.getLocale();if(aj&&ag.formats.hasOwnProperty(aj)){ai=aj}else{if(aj&&ag.regional.hasOwnProperty(aj)){am=aj}}if(ao&&ag.formats.hasOwnProperty(ao)){ai=ao}else{if(ao&&ag.regional.hasOwnProperty(ao)){am=ao}}if(l(an)!="[object Object]"||an._type!="jsDate"){an=new ag(an);an.locale=am}if(!ak){ak=an.formatString||ag.regional[am]["formatString"]}var ah=ak||"%Y-%m-%d",ap="",al;while(ah.length>0){if(al=ah.match(ag.formats[ai].codes.matcher)){ap+=ah.slice(0,al.index);ap+=(al[1]||"")+H(an,al[2],ai);ah=ah.slice(al.index+al[0].length)}else{ap+=ah;ah=""}}return ap};ag.formats={ISO:"%Y-%m-%dT%H:%M:%S.%N%G",SQL:"%Y-%m-%d %H:%M:%S"};ag.formats.perl={codes:{matcher:/()%(#?(%|[a-z]))/i,Y:"FullYear",y:"ShortYear.2",m:"MonthNumber.2","#m":"MonthNumber",B:"MonthName",b:"AbbrMonthName",d:"Date.2","#d":"Date",e:"Date",A:"DayName",a:"AbbrDayName",w:"Day",H:"Hours.2","#H":"Hours",I:"Hours12.2","#I":"Hours12",p:"AMPM",M:"Minutes.2","#M":"Minutes",S:"Seconds.2","#S":"Seconds",s:"Unix",N:"Milliseconds.3","#N":"Milliseconds",O:"TimezoneOffset",Z:"TimezoneName",G:"GmtOffset"},shortcuts:{F:"%Y-%m-%d",T:"%H:%M:%S",X:"%H:%M:%S",x:"%m/%d/%y",D:"%m/%d/%y","#c":"%a %b %e %H:%M:%S %Y",v:"%e-%b-%Y",R:"%H:%M",r:"%I:%M:%S %p",t:"\t",n:"\n","%":"%"}};ag.formats.php={codes:{matcher:/()%((%|[a-z]))/i,a:"AbbrDayName",A:"DayName",d:"Date.2",e:"Date",j:"DayOfYear.3",u:"DayOfWeek",w:"Day",U:"FullWeekOfYear.2",V:"IsoWeek.2",W:"WeekOfYear.2",b:"AbbrMonthName",B:"MonthName",m:"MonthNumber.2",h:"AbbrMonthName",C:"Century.2",y:"ShortYear.2",Y:"FullYear",H:"Hours.2",I:"Hours12.2",l:"Hours12",p:"AMPM",P:"AmPm",M:"Minutes.2",S:"Seconds.2",s:"Unix",O:"TimezoneOffset",z:"GmtOffset",Z:"TimezoneAbbr"},shortcuts:{D:"%m/%d/%y",F:"%Y-%m-%d",T:"%H:%M:%S",X:"%H:%M:%S",x:"%m/%d/%y",R:"%H:%M",r:"%I:%M:%S %p",t:"\t",n:"\n","%":"%"}};ag.createDate=function(aj){if(aj==null){return new Date()}if(aj instanceof Date){return aj}if(typeof aj=="number"){return new Date(aj)}var ao=String(aj).replace(/^\s*(.+)\s*$/g,"$1");ao=ao.replace(/^([0-9]{1,4})-([0-9]{1,2})-([0-9]{1,4})/,"$1/$2/$3");ao=ao.replace(/^(3[01]|[0-2]?\d)[-\/]([a-z]{3,})[-\/](\d{4})/i,"$1 $2 $3");var an=ao.match(/^(3[01]|[0-2]?\d)[-\/]([a-z]{3,})[-\/](\d{2})\D*/i);if(an&&an.length>3){var at=parseFloat(an[3]);var am=ag.config.defaultCentury+at;am=String(am);ao=ao.replace(/^(3[01]|[0-2]?\d)[-\/]([a-z]{3,})[-\/](\d{2})\D*/i,an[1]+" "+an[2]+" "+am)}an=ao.match(/^([0-9]{1,2})[-\/]([0-9]{1,2})[-\/]([0-9]{1,2})[^0-9]/);function ar(ax,aw){var aC=parseFloat(aw[1]);var aB=parseFloat(aw[2]);var aA=parseFloat(aw[3]);var az=ag.config.defaultCentury;var av,au,aD,ay;if(aC>31){au=aA;aD=aB;av=az+aC}else{au=aB;aD=aC;av=az+aA}ay=aD+"/"+au+"/"+av;return ax.replace(/^([0-9]{1,2})[-\/]([0-9]{1,2})[-\/]([0-9]{1,2})/,ay)}if(an&&an.length>3){ao=ar(ao,an)}var an=ao.match(/^([0-9]{1,2})[-\/]([0-9]{1,2})[-\/]([0-9]{1,2})$/);if(an&&an.length>3){ao=ar(ao,an)}var al=0;var ai=ag.matchers.length;var aq,ah,ap=ao,ak;while(al<ai){ah=Date.parse(ap);if(!isNaN(ah)){return new Date(ah)}aq=ag.matchers[al];if(typeof aq=="function"){ak=aq.call(ag,ap);if(ak instanceof Date){return ak}}else{ap=ao.replace(aq[0],aq[1])}al++}return NaN};ag.daysInMonth=function(ah,ai){if(ai==2){return new Date(ah,1,29).getDate()==29?29:28}return[u,31,u,31,30,31,30,31,31,30,31,30,31][ai]};ag.matchers=[[/(3[01]|[0-2]\d)\s*\.\s*(1[0-2]|0\d)\s*\.\s*([1-9]\d{3})/,"$2/$1/$3"],[/([1-9]\d{3})\s*-\s*(1[0-2]|0\d)\s*-\s*(3[01]|[0-2]\d)/,"$2/$3/$1"],function(ak){var ai=ak.match(/^(?:(.+)\s+)?([012]?\d)(?:\s*\:\s*(\d\d))?(?:\s*\:\s*(\d\d(\.\d*)?))?\s*(am|pm)?\s*$/i);if(ai){if(ai[1]){var aj=this.createDate(ai[1]);if(isNaN(aj)){return}}else{var aj=new Date();aj.setMilliseconds(0)}var ah=parseFloat(ai[2]);if(ai[6]){ah=ai[6].toLowerCase()=="am"?(ah==12?0:ah):(ah==12?12:ah+12)}aj.setHours(ah,parseInt(ai[3]||0,10),parseInt(ai[4]||0,10),((parseFloat(ai[5]||0))||0)*1000);return aj}else{return ak}},function(ak){var ai=ak.match(/^(?:(.+))[T|\s+]([012]\d)(?:\:(\d\d))(?:\:(\d\d))(?:\.\d+)([\+\-]\d\d\:\d\d)$/i);if(ai){if(ai[1]){var aj=this.createDate(ai[1]);if(isNaN(aj)){return}}else{var aj=new Date();aj.setMilliseconds(0)}var ah=parseFloat(ai[2]);aj.setHours(ah,parseInt(ai[3],10),parseInt(ai[4],10),parseFloat(ai[5])*1000);return aj}else{return ak}},function(al){var aj=al.match(/^([0-3]?\d)\s*[-\/.\s]{1}\s*([a-zA-Z]{3,9})\s*[-\/.\s]{1}\s*([0-3]?\d)$/);if(aj){var ak=new Date();var am=ag.config.defaultCentury;var ao=parseFloat(aj[1]);var an=parseFloat(aj[3]);var ai,ah,ap;if(ao>31){ah=an;ai=am+ao}else{ah=ao;ai=am+an}var ap=ab(aj[2],ag.regional[ag.regional.getLocale()]["monthNamesShort"]);if(ap==-1){ap=ab(aj[2],ag.regional[ag.regional.getLocale()]["monthNames"])}ak.setFullYear(ai,ap,ah);ak.setHours(0,0,0,0);return ak}else{return al}}];function ab(aj,ak){if(ak.indexOf){return ak.indexOf(aj)}for(var ah=0,ai=ak.length;ah<ai;ah++){if(ak[ah]===aj){return ah}}return -1}function l(ah){if(ah===null){return"[object Null]"}return Object.prototype.toString.call(ah)}L.jsDate=ag;L.jqplot.sprintf=function(){function an(au,ap,aq,at){var ar=(au.length>=ap)?"":Array(1+ap-au.length>>>0).join(aq);return at?au+ar:ar+au}function ak(ar){var aq=new String(ar);for(var ap=10;ap>0;ap--){if(aq==(aq=aq.replace(/^(\d+)(\d{3})/,"$1"+L.jqplot.sprintf.thousandsSeparator+"$2"))){break}}return aq}function aj(av,au,ax,ar,at,aq){var aw=ar-av.length;if(aw>0){var ap=" ";if(aq){ap=" "}if(ax||!at){av=an(av,ar,ap,ax)}else{av=av.slice(0,au.length)+an("",aw,"0",true)+av.slice(au.length)}}return av}function ao(ay,aq,aw,ar,ap,av,ax,au){var at=ay>>>0;aw=aw&&at&&{"2":"0b","8":"0","16":"0x"}[aq]||"";ay=aw+an(at.toString(aq),av||0,"0",false);return aj(ay,aw,ar,ap,ax,au)}function ah(au,av,ar,ap,at,aq){if(ap!=null){au=au.slice(0,ap)}return aj(au,"",av,ar,at,aq)}var ai=arguments,al=0,am=ai[al++];return am.replace(L.jqplot.sprintf.regex,function(aM,ax,ay,aB,aO,aJ,av){if(aM=="%%"){return"%"}var aD=false,az="",aA=false,aL=false,aw=false,au=false;for(var aI=0;ay&&aI<ay.length;aI++){switch(ay.charAt(aI)){case" ":az=" ";break;case"+":az="+";break;case"-":aD=true;break;case"0":aA=true;break;case"#":aL=true;break;case"&":aw=true;break;case"'":au=true;break}}if(!aB){aB=0}else{if(aB=="*"){aB=+ai[al++]}else{if(aB.charAt(0)=="*"){aB=+ai[aB.slice(1,-1)]}else{aB=+aB}}}if(aB<0){aB=-aB;aD=true}if(!isFinite(aB)){throw new Error("$.jqplot.sprintf: (minimum-)width must be finite")}if(!aJ){aJ="fFeE".indexOf(av)>-1?6:(av=="d")?0:void (0)}else{if(aJ=="*"){aJ=+ai[al++]}else{if(aJ.charAt(0)=="*"){aJ=+ai[aJ.slice(1,-1)]}else{aJ=+aJ}}}var aF=ax?ai[ax.slice(0,-1)]:ai[al++];switch(av){case"s":if(aF==null){return""}return ah(String(aF),aD,aB,aJ,aA,aw);case"c":return ah(String.fromCharCode(+aF),aD,aB,aJ,aA,aw);case"b":return ao(aF,2,aL,aD,aB,aJ,aA,aw);case"o":return ao(aF,8,aL,aD,aB,aJ,aA,aw);case"x":return ao(aF,16,aL,aD,aB,aJ,aA,aw);case"X":return ao(aF,16,aL,aD,aB,aJ,aA,aw).toUpperCase();case"u":return ao(aF,10,aL,aD,aB,aJ,aA,aw);case"i":var ar=parseInt(+aF,10);if(isNaN(ar)){return""}var aH=ar<0?"-":az;var aK=au?ak(String(Math.abs(ar))):String(Math.abs(ar));aF=aH+an(aK,aJ,"0",false);return aj(aF,aH,aD,aB,aA,aw);case"d":var ar=Math.round(+aF);if(isNaN(ar)){return""}var aH=ar<0?"-":az;var aK=au?ak(String(Math.abs(ar))):String(Math.abs(ar));aF=aH+an(aK,aJ,"0",false);return aj(aF,aH,aD,aB,aA,aw);case"e":case"E":case"f":case"F":case"g":case"G":var ar=+aF;if(isNaN(ar)){return""}var aH=ar<0?"-":az;var at=["toExponential","toFixed","toPrecision"]["efg".indexOf(av.toLowerCase())];var aN=["toString","toUpperCase"]["eEfFgG".indexOf(av)%2];var aK=Math.abs(ar)[at](aJ);var aE=aK.toString().split(".");aE[0]=au?ak(aE[0]):aE[0];aK=aE.join(L.jqplot.sprintf.decimalMark);aF=aH+aK;var aC=aj(aF,aH,aD,aB,aA,aw)[aN]();return aC;case"p":case"P":var ar=+aF;if(isNaN(ar)){return""}var aH=ar<0?"-":az;var aE=String(Number(Math.abs(ar)).toExponential()).split(/e|E/);var aq=(aE[0].indexOf(".")!=-1)?aE[0].length-1:String(ar).length;var aG=(aE[1]<0)?-aE[1]-1:0;if(Math.abs(ar)<1){if(aq+aG<=aJ){aF=aH+Math.abs(ar).toPrecision(aq)}else{if(aq<=aJ-1){aF=aH+Math.abs(ar).toExponential(aq-1)}else{aF=aH+Math.abs(ar).toExponential(aJ-1)}}}else{var ap=(aq<=aJ)?aq:aJ;aF=aH+Math.abs(ar).toPrecision(ap)}var aN=["toString","toUpperCase"]["pP".indexOf(av)%2];return aj(aF,aH,aD,aB,aA,aw)[aN]();case"n":return"";default:return aM}})};L.jqplot.sprintf.thousandsSeparator=",";L.jqplot.sprintf.decimalMark=".";L.jqplot.sprintf.regex=/%%|%(\d+\$)?([-+#0&\' ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([nAscboxXuidfegpEGP])/g;L.jqplot.getSignificantFigures=function(al){var an=String(Number(Math.abs(al)).toExponential()).split(/e|E/);var am=(an[0].indexOf(".")!=-1)?an[0].length-1:an[0].length;var ai=(an[1]<0)?-an[1]-1:0;var ah=parseInt(an[1],10);var aj=(ah+1>0)?ah+1:0;var ak=(am<=aj)?0:am-ah-1;return{significantDigits:am,digitsLeft:aj,digitsRight:ak,zeros:ai,exponent:ah}};L.jqplot.getPrecision=function(ah){return L.jqplot.getSignificantFigures(ah).digitsRight};var X=L.uiBackCompat!==false;L.jqplot.effects={effect:{}};var m="jqplot.storage.";L.extend(L.jqplot.effects,{version:"1.9pre",save:function(ai,aj){for(var ah=0;ah<aj.length;ah++){if(aj[ah]!==null){ai.data(m+aj[ah],ai[0].style[aj[ah]])}}},restore:function(ai,aj){for(var ah=0;ah<aj.length;ah++){if(aj[ah]!==null){ai.css(aj[ah],ai.data(m+aj[ah]))}}},setMode:function(ah,ai){if(ai==="toggle"){ai=ah.is(":hidden")?"show":"hide"}return ai},createWrapper:function(ai){if(ai.parent().is(".ui-effects-wrapper")){return ai.parent()}var aj={width:ai.outerWidth(true),height:ai.outerHeight(true),"float":ai.css("float")},al=L("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),ah={width:ai.width(),height:ai.height()},ak=document.activeElement;ai.wrap(al);if(ai[0]===ak||L.contains(ai[0],ak)){L(ak).focus()}al=ai.parent();if(ai.css("position")==="static"){al.css({position:"relative"});ai.css({position:"relative"})}else{L.extend(aj,{position:ai.css("position"),zIndex:ai.css("z-index")});L.each(["top","left","bottom","right"],function(am,an){aj[an]=ai.css(an);if(isNaN(parseInt(aj[an],10))){aj[an]="auto"}});ai.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}ai.css(ah);return al.css(aj).show()},removeWrapper:function(ah){var ai=document.activeElement;if(ah.parent().is(".ui-effects-wrapper")){ah.parent().replaceWith(ah);if(ah[0]===ai||L.contains(ah[0],ai)){L(ai).focus()}}return ah}});function j(ai,ah,aj,ak){if(L.isPlainObject(ai)){return ai}ai={effect:ai};if(ah===u){ah={}}if(L.isFunction(ah)){ak=ah;aj=null;ah={}}if(L.type(ah)==="number"||L.fx.speeds[ah]){ak=aj;aj=ah;ah={}}if(L.isFunction(aj)){ak=aj;aj=null}if(ah){L.extend(ai,ah)}aj=aj||ah.duration;ai.duration=L.fx.off?0:typeof aj==="number"?aj:aj in L.fx.speeds?L.fx.speeds[aj]:L.fx.speeds._default;ai.complete=ak||ah.complete;return ai}function ae(ah){if(!ah||typeof ah==="number"||L.fx.speeds[ah]){return true}if(typeof ah==="string"&&!L.jqplot.effects.effect[ah]){if(X&&L.jqplot.effects[ah]){return false}return true}return false}L.fn.extend({jqplotEffect:function(ap,aq,ai,ao){var an=j.apply(this,arguments),ak=an.mode,al=an.queue,am=L.jqplot.effects.effect[an.effect],ah=!am&&X&&L.jqplot.effects[an.effect];if(L.fx.off||!(am||ah)){if(ak){return this[ak](an.duration,an.complete)}else{return this.each(function(){if(an.complete){an.complete.call(this)}})}}function aj(au){var av=L(this),at=an.complete,aw=an.mode;function ar(){if(L.isFunction(at)){at.call(av[0])}if(L.isFunction(au)){au()}}if(av.is(":hidden")?aw==="hide":aw==="show"){ar()}else{am.call(av[0],an,ar)}}if(am){return al===false?this.each(aj):this.queue(al||"fx",aj)}else{return ah.call(this,{options:an,duration:an.duration,callback:an.complete,mode:an.mode})}}});var a=/up|down|vertical/,v=/up|left|vertical|horizontal/;L.jqplot.effects.effect.blind=function(aj,ao){var ak=L(this),ar=["position","top","bottom","left","right","height","width"],ap=L.jqplot.effects.setMode(ak,aj.mode||"hide"),au=aj.direction||"up",am=a.test(au),al=am?"height":"width",aq=am?"top":"left",aw=v.test(au),an={},av=ap==="show",ai,ah,at;if(ak.parent().is(".ui-effects-wrapper")){L.jqplot.effects.save(ak.parent(),ar)}else{L.jqplot.effects.save(ak,ar)}ak.show();at=parseInt(ak.css("top"),10);ai=L.jqplot.effects.createWrapper(ak).css({overflow:"hidden"});ah=am?ai[al]()+at:ai[al]();an[al]=av?String(ah):"0";if(!aw){ak.css(am?"bottom":"right",0).css(am?"top":"left","").css({position:"absolute"});an[aq]=av?"0":String(ah)}if(av){ai.css(al,0);if(!aw){ai.css(aq,ah)}}ai.animate(an,{duration:aj.duration,easing:aj.easing,queue:false,complete:function(){if(ap==="hide"){ak.hide()}L.jqplot.effects.restore(ak,ar);L.jqplot.effects.removeWrapper(ak);ao()}})}})(jQuery);
|
||
</script> <script type="text/javascript">
|
||
|
||
(function(e){e.jqplot.PieRenderer=function(){e.jqplot.LineRenderer.call(this)};e.jqplot.PieRenderer.prototype=new e.jqplot.LineRenderer();e.jqplot.PieRenderer.prototype.constructor=e.jqplot.PieRenderer;e.jqplot.PieRenderer.prototype.init=function(q,u){this.diameter=null;this.padding=20;this.sliceMargin=0;this.fill=true;this.shadowOffset=2;this.shadowAlpha=0.07;this.shadowDepth=5;this.highlightMouseOver=true;this.highlightMouseDown=false;this.highlightColors=[];this.dataLabels="percent";this.showDataLabels=false;this.dataLabelFormatString=null;this.dataLabelThreshold=3;this.dataLabelPositionFactor=0.52;this.dataLabelNudge=2;this.dataLabelCenterOn=true;this.startAngle=0;this.tickRenderer=e.jqplot.PieTickRenderer;this._drawData=true;this._type="pie";if(q.highlightMouseDown&&q.highlightMouseOver==null){q.highlightMouseOver=false}e.extend(true,this,q);if(this.sliceMargin<0){this.sliceMargin=0}this._diameter=null;this._radius=null;this._sliceAngles=[];this._highlightedPoint=null;if(this.highlightColors.length==0){for(var s=0;s<this.seriesColors.length;s++){var r=e.jqplot.getColorComponents(this.seriesColors[s]);var o=[r[0],r[1],r[2]];var t=o[0]+o[1]+o[2];for(var p=0;p<3;p++){o[p]=(t>570)?o[p]*0.8:o[p]+0.3*(255-o[p]);o[p]=parseInt(o[p],10)}this.highlightColors.push("rgb("+o[0]+","+o[1]+","+o[2]+")")}}this.highlightColorGenerator=new e.jqplot.ColorGenerator(this.highlightColors);u.postParseOptionsHooks.addOnce(m);u.postInitHooks.addOnce(g);u.eventListenerHooks.addOnce("jqplotMouseMove",b);u.eventListenerHooks.addOnce("jqplotMouseDown",a);u.eventListenerHooks.addOnce("jqplotMouseUp",l);u.eventListenerHooks.addOnce("jqplotClick",f);u.eventListenerHooks.addOnce("jqplotRightClick",n);u.postDrawHooks.addOnce(i)};e.jqplot.PieRenderer.prototype.setGridData=function(t){var p=[];var u=[];var o=this.startAngle/180*Math.PI;var s=0;this._drawData=false;for(var r=0;r<this.data.length;r++){if(this.data[r][1]!=0){this._drawData=true}p.push(this.data[r][1]);u.push([this.data[r][0]]);if(r>0){p[r]+=p[r-1]}s+=this.data[r][1]}var q=Math.PI*2/p[p.length-1];for(var r=0;r<p.length;r++){u[r][1]=p[r]*q;u[r][2]=this.data[r][1]/s}this.gridData=u};e.jqplot.PieRenderer.prototype.makeGridData=function(t,u){var p=[];var v=[];var s=0;var o=this.startAngle/180*Math.PI;this._drawData=false;for(var r=0;r<t.length;r++){if(this.data[r][1]!=0){this._drawData=true}p.push(t[r][1]);v.push([t[r][0]]);if(r>0){p[r]+=p[r-1]}s+=t[r][1]}var q=Math.PI*2/p[p.length-1];for(var r=0;r<p.length;r++){v[r][1]=p[r]*q;v[r][2]=t[r][1]/s}return v};function h(o){return Math.sin((o-(o-Math.PI)/8/Math.PI)/2)}function j(u,t,o,v,r){var w=0;var q=t-u;var s=Math.abs(q);var p=o;if(v==false){p+=r}if(p>0&&s>0.01&&s<6.282){w=parseFloat(p)/2/h(q)}return w}e.jqplot.PieRenderer.prototype.drawSlice=function(B,z,y,u,w){if(this._drawData){var p=this._radius;var A=this.fill;var x=this.lineWidth;var s=this.sliceMargin;if(this.fill==false){s+=this.lineWidth}B.save();B.translate(this._center[0],this._center[1]);var D=j(z,y,this.sliceMargin,this.fill,this.lineWidth);var o=D*Math.cos((z+y)/2);var C=D*Math.sin((z+y)/2);if((y-z)<=Math.PI){p-=D}else{p+=D}B.translate(o,C);if(w){for(var v=0,t=this.shadowDepth;v<t;v++){B.save();B.translate(this.shadowOffset*Math.cos(this.shadowAngle/180*Math.PI),this.shadowOffset*Math.sin(this.shadowAngle/180*Math.PI));q(p)}for(var v=0,t=this.shadowDepth;v<t;v++){B.restore()}}else{q(p)}B.restore()}function q(r){if(y>6.282+this.startAngle){y=6.282+this.startAngle;if(z>y){z=6.281+this.startAngle}}if(z>=y){return}B.beginPath();B.fillStyle=u;B.strokeStyle=u;B.lineWidth=x;B.arc(0,0,r,z,y,false);B.lineTo(0,0);B.closePath();if(A){B.fill()}else{B.stroke()}}};e.jqplot.PieRenderer.prototype.draw=function(B,z,E,o){var W;var H=(E!=undefined)?E:{};var t=0;var s=0;var N=1;var L=new e.jqplot.ColorGenerator(this.seriesColors);if(E.legendInfo&&E.legendInfo.placement=="insideGrid"){var J=E.legendInfo;switch(J.location){case"nw":t=J.width+J.xoffset;break;case"w":t=J.width+J.xoffset;break;case"sw":t=J.width+J.xoffset;break;case"ne":t=J.width+J.xoffset;N=-1;break;case"e":t=J.width+J.xoffset;N=-1;break;case"se":t=J.width+J.xoffset;N=-1;break;case"n":s=J.height+J.yoffset;break;case"s":s=J.height+J.yoffset;N=-1;break;default:break}}var K=(H.shadow!=undefined)?H.shadow:this.shadow;var A=(H.fill!=undefined)?H.fill:this.fill;var C=B.canvas.width;var I=B.canvas.height;var Q=C-t-2*this.padding;var X=I-s-2*this.padding;var M=Math.min(Q,X);var Y=M;this._sliceAngles=[];var v=this.sliceMargin;if(this.fill==false){v+=this.lineWidth}var q;var G=0;var R,aa,Z,ab;var D=this.startAngle/180*Math.PI;for(var W=0,V=z.length;W<V;W++){aa=(W==0)?D:z[W-1][1]+D;Z=z[W][1]+D;this._sliceAngles.push([aa,Z]);q=j(aa,Z,this.sliceMargin,this.fill,this.lineWidth);if(Math.abs(Z-aa)>Math.PI){G=Math.max(q,G)}}if(this.diameter!=null&&this.diameter>0){this._diameter=this.diameter-2*G}else{this._diameter=Y-2*G}if(this._diameter<6){e.jqplot.log("Diameter of pie too small, not rendering.");return}var S=this._radius=this._diameter/2;this._center=[(C-N*t)/2+N*t+G*Math.cos(D),(I-N*s)/2+N*s+G*Math.sin(D)];if(this.shadow){for(var W=0,V=z.length;W<V;W++){ab="rgba(0,0,0,"+this.shadowAlpha+")";this.renderer.drawSlice.call(this,B,this._sliceAngles[W][0],this._sliceAngles[W][1],ab,true)}}for(var W=0;W<z.length;W++){this.renderer.drawSlice.call(this,B,this._sliceAngles[W][0],this._sliceAngles[W][1],L.next(),false);if(this.showDataLabels&&z[W][2]*100>=this.dataLabelThreshold){var F,U=(this._sliceAngles[W][0]+this._sliceAngles[W][1])/2,T;if(this.dataLabels=="label"){F=this.dataLabelFormatString||"%s";T=e.jqplot.sprintf(F,z[W][0])}else{if(this.dataLabels=="value"){F=this.dataLabelFormatString||"%d";T=e.jqplot.sprintf(F,this.data[W][1])}else{if(this.dataLabels=="percent"){F=this.dataLabelFormatString||"%d%%";T=e.jqplot.sprintf(F,z[W][2]*100)}else{if(this.dataLabels.constructor==Array){F=this.dataLabelFormatString||"%s";T=e.jqplot.sprintf(F,this.dataLabels[W])}}}}var p=(this._radius)*this.dataLabelPositionFactor+this.sliceMargin+this.dataLabelNudge;var P=this._center[0]+Math.cos(U)*p+this.canvas._offsets.left;var O=this._center[1]+Math.sin(U)*p+this.canvas._offsets.top;var u=e('<div class="jqplot-pie-series jqplot-data-label" style="position:absolute;">'+T+"</div>").insertBefore(o.eventCanvas._elem);if(this.dataLabelCenterOn){P-=u.width()/2;O-=u.height()/2}else{P-=u.width()*Math.sin(U/2);O-=u.height()/2}P=Math.round(P);O=Math.round(O);u.css({left:P,top:O})}}};e.jqplot.PieAxisRenderer=function(){e.jqplot.LinearAxisRenderer.call(this)};e.jqplot.PieAxisRenderer.prototype=new e.jqplot.LinearAxisRenderer();e.jqplot.PieAxisRenderer.prototype.constructor=e.jqplot.PieAxisRenderer;e.jqplot.PieAxisRenderer.prototype.init=function(o){this.tickRenderer=e.jqplot.PieTickRenderer;e.extend(true,this,o);this._dataBounds={min:0,max:100};this.min=0;this.max=100;this.showTicks=false;this.ticks=[];this.showMark=false;this.show=false};e.jqplot.PieLegendRenderer=function(){e.jqplot.TableLegendRenderer.call(this)};e.jqplot.PieLegendRenderer.prototype=new e.jqplot.TableLegendRenderer();e.jqplot.PieLegendRenderer.prototype.constructor=e.jqplot.PieLegendRenderer;e.jqplot.PieLegendRenderer.prototype.init=function(o){this.numberRows=null;this.numberColumns=null;e.extend(true,this,o)};e.jqplot.PieLegendRenderer.prototype.draw=function(){var r=this;if(this.show){var B=this._series;this._elem=e(document.createElement("table"));this._elem.addClass("jqplot-table-legend");var E={position:"absolute"};if(this.background){E.background=this.background}if(this.border){E.border=this.border}if(this.fontSize){E.fontSize=this.fontSize}if(this.fontFamily){E.fontFamily=this.fontFamily}if(this.textColor){E.textColor=this.textColor}if(this.marginTop!=null){E.marginTop=this.marginTop}if(this.marginBottom!=null){E.marginBottom=this.marginBottom}if(this.marginLeft!=null){E.marginLeft=this.marginLeft}if(this.marginRight!=null){E.marginRight=this.marginRight}this._elem.css(E);var I=false,A=false,o,y;var C=B[0];var p=new e.jqplot.ColorGenerator(C.seriesColors);if(C.show){var J=C.data;if(this.numberRows){o=this.numberRows;if(!this.numberColumns){y=Math.ceil(J.length/o)}else{y=this.numberColumns}}else{if(this.numberColumns){y=this.numberColumns;o=Math.ceil(J.length/this.numberColumns)}else{o=J.length;y=1}}var H,G;var q,w,v;var x,z,F;var D=0;var u,t;for(H=0;H<o;H++){q=e(document.createElement("tr"));q.addClass("jqplot-table-legend");if(A){q.prependTo(this._elem)}else{q.appendTo(this._elem)}for(G=0;G<y;G++){if(D<J.length){x=this.labels[D]||J[D][0].toString();F=p.next();if(!A){if(H>0){I=true}else{I=false}}else{if(H==o-1){I=false}else{I=true}}z=(I)?this.rowSpacing:"0";w=e(document.createElement("td"));w.addClass("jqplot-table-legend jqplot-table-legend-swatch");w.css({textAlign:"center",paddingTop:z});u=e(document.createElement("div"));u.addClass("jqplot-table-legend-swatch-outline");t=e(document.createElement("div"));t.addClass("jqplot-table-legend-swatch");t.css({backgroundColor:F,borderColor:F});w.append(u.append(t));v=e(document.createElement("td"));v.addClass("jqplot-table-legend jqplot-table-legend-label");v.css("paddingTop",z);if(this.escapeHtml){v.text(x)}else{v.html(x)}if(A){v.prependTo(q);w.prependTo(q)}else{w.appendTo(q);v.appendTo(q)}I=true}D++}}}}return this._elem};e.jqplot.PieRenderer.prototype.handleMove=function(q,p,t,s,r){if(s){var o=[s.seriesIndex,s.pointIndex,s.data];r.target.trigger("jqplotDataMouseOver",o);if(r.series[o[0]].highlightMouseOver&&!(o[0]==r.plugins.pieRenderer.highlightedSeriesIndex&&o[1]==r.series[o[0]]._highlightedPoint)){r.target.trigger("jqplotDataHighlight",o);d(r,o[0],o[1])}}else{if(s==null){k(r)}}};function c(s,r,p){p=p||{};p.axesDefaults=p.axesDefaults||{};p.legend=p.legend||{};p.seriesDefaults=p.seriesDefaults||{};var o=false;if(p.seriesDefaults.renderer==e.jqplot.PieRenderer){o=true}else{if(p.series){for(var q=0;q<p.series.length;q++){if(p.series[q].renderer==e.jqplot.PieRenderer){o=true}}}}if(o){p.axesDefaults.renderer=e.jqplot.PieAxisRenderer;p.legend.renderer=e.jqplot.PieLegendRenderer;p.legend.preDraw=true;p.seriesDefaults.pointLabels={show:false}}}function g(r,q,o){for(var p=0;p<this.series.length;p++){if(this.series[p].renderer.constructor==e.jqplot.PieRenderer){if(this.series[p].highlightMouseOver){this.series[p].highlightMouseDown=false}}}}function m(o){for(var p=0;p<this.series.length;p++){this.series[p].seriesColors=this.seriesColors;this.series[p].colorGenerator=e.jqplot.colorGenerator}}function d(t,r,q){var p=t.series[r];var o=t.plugins.pieRenderer.highlightCanvas;o._ctx.clearRect(0,0,o._ctx.canvas.width,o._ctx.canvas.height);p._highlightedPoint=q;t.plugins.pieRenderer.highlightedSeriesIndex=r;p.renderer.drawSlice.call(p,o._ctx,p._sliceAngles[q][0],p._sliceAngles[q][1],p.highlightColorGenerator.get(q),false)}function k(q){var o=q.plugins.pieRenderer.highlightCanvas;o._ctx.clearRect(0,0,o._ctx.canvas.width,o._ctx.canvas.height);for(var p=0;p<q.series.length;p++){q.series[p]._highlightedPoint=null}q.plugins.pieRenderer.highlightedSeriesIndex=null;q.target.trigger("jqplotDataUnhighlight")}function b(s,r,v,u,t){if(u){var q=[u.seriesIndex,u.pointIndex,u.data];var p=jQuery.Event("jqplotDataMouseOver");p.pageX=s.pageX;p.pageY=s.pageY;t.target.trigger(p,q);if(t.series[q[0]].highlightMouseOver&&!(q[0]==t.plugins.pieRenderer.highlightedSeriesIndex&&q[1]==t.series[q[0]]._highlightedPoint)){var o=jQuery.Event("jqplotDataHighlight");o.which=s.which;o.pageX=s.pageX;o.pageY=s.pageY;t.target.trigger(o,q);d(t,q[0],q[1])}}else{if(u==null){k(t)}}}function a(r,q,u,t,s){if(t){var p=[t.seriesIndex,t.pointIndex,t.data];if(s.series[p[0]].highlightMouseDown&&!(p[0]==s.plugins.pieRenderer.highlightedSeriesIndex&&p[1]==s.series[p[0]]._highlightedPoint)){var o=jQuery.Event("jqplotDataHighlight");o.which=r.which;o.pageX=r.pageX;o.pageY=r.pageY;s.target.trigger(o,p);d(s,p[0],p[1])}}else{if(t==null){k(s)}}}function l(q,p,t,s,r){var o=r.plugins.pieRenderer.highlightedSeriesIndex;if(o!=null&&r.series[o].highlightMouseDown){k(r)}}function f(r,q,u,t,s){if(t){var p=[t.seriesIndex,t.pointIndex,t.data];var o=jQuery.Event("jqplotDataClick");o.which=r.which;o.pageX=r.pageX;o.pageY=r.pageY;s.target.trigger(o,p)}}function n(s,r,v,u,t){if(u){var q=[u.seriesIndex,u.pointIndex,u.data];var o=t.plugins.pieRenderer.highlightedSeriesIndex;if(o!=null&&t.series[o].highlightMouseDown){k(t)}var p=jQuery.Event("jqplotDataRightClick");p.which=s.which;p.pageX=s.pageX;p.pageY=s.pageY;t.target.trigger(p,q)}}function i(){if(this.plugins.pieRenderer&&this.plugins.pieRenderer.highlightCanvas){this.plugins.pieRenderer.highlightCanvas.resetCanvas();this.plugins.pieRenderer.highlightCanvas=null}this.plugins.pieRenderer={highlightedSeriesIndex:null};this.plugins.pieRenderer.highlightCanvas=new e.jqplot.GenericCanvas();var p=e(this.targetId+" .jqplot-data-label");if(p.length){e(p[0]).before(this.plugins.pieRenderer.highlightCanvas.createElement(this._gridPadding,"jqplot-pieRenderer-highlight-canvas",this._plotDimensions,this))}else{this.eventCanvas._elem.before(this.plugins.pieRenderer.highlightCanvas.createElement(this._gridPadding,"jqplot-pieRenderer-highlight-canvas",this._plotDimensions,this))}var o=this.plugins.pieRenderer.highlightCanvas.setContext();this.eventCanvas._elem.bind("mouseleave",{plot:this},function(q){k(q.data.plot)})}e.jqplot.preInitHooks.push(c);e.jqplot.PieTickRenderer=function(){e.jqplot.AxisTickRenderer.call(this)};e.jqplot.PieTickRenderer.prototype=new e.jqplot.AxisTickRenderer();e.jqplot.PieTickRenderer.prototype.constructor=e.jqplot.PieTickRenderer})(jQuery);
|
||
</script> <script type="text/javascript">
|
||
|
||
(function(d){d.jqplot.BarRenderer=function(){d.jqplot.LineRenderer.call(this)};d.jqplot.BarRenderer.prototype=new d.jqplot.LineRenderer();d.jqplot.BarRenderer.prototype.constructor=d.jqplot.BarRenderer;d.jqplot.BarRenderer.prototype.init=function(o,q){this.barPadding=8;this.barMargin=10;this.barDirection="vertical";this.barWidth=null;this.shadowOffset=2;this.shadowDepth=5;this.shadowAlpha=0.08;this.waterfall=false;this.groups=1;this.varyBarColor=false;this.highlightMouseOver=true;this.highlightMouseDown=false;this.highlightColors=[];this.transposedData=true;this.renderer.animation={show:false,direction:"down",speed:3000,_supported:true};this._type="bar";if(o.highlightMouseDown&&o.highlightMouseOver==null){o.highlightMouseOver=false}d.extend(true,this,o);d.extend(true,this.renderer,o);this.fill=true;if(this.barDirection==="horizontal"&&this.rendererOptions.animation&&this.rendererOptions.animation.direction==null){this.renderer.animation.direction="left"}if(this.waterfall){this.fillToZero=false;this.disableStack=true}if(this.barDirection=="vertical"){this._primaryAxis="_xaxis";this._stackAxis="y";this.fillAxis="y"}else{this._primaryAxis="_yaxis";this._stackAxis="x";this.fillAxis="x"}this._highlightedPoint=null;this._plotSeriesInfo=null;this._dataColors=[];this._barPoints=[];var p={lineJoin:"miter",lineCap:"round",fill:true,isarc:false,strokeStyle:this.color,fillStyle:this.color,closePath:this.fill};this.renderer.shapeRenderer.init(p);var n={lineJoin:"miter",lineCap:"round",fill:true,isarc:false,angle:this.shadowAngle,offset:this.shadowOffset,alpha:this.shadowAlpha,depth:this.shadowDepth,closePath:this.fill};this.renderer.shadowRenderer.init(n);q.postInitHooks.addOnce(h);q.postDrawHooks.addOnce(j);q.eventListenerHooks.addOnce("jqplotMouseMove",b);q.eventListenerHooks.addOnce("jqplotMouseDown",a);q.eventListenerHooks.addOnce("jqplotMouseUp",l);q.eventListenerHooks.addOnce("jqplotClick",e);q.eventListenerHooks.addOnce("jqplotRightClick",m)};function g(t,p,o,w){if(this.rendererOptions.barDirection=="horizontal"){this._stackAxis="x";this._primaryAxis="_yaxis"}if(this.rendererOptions.waterfall==true){this._data=d.extend(true,[],this.data);var s=0;var u=(!this.rendererOptions.barDirection||this.rendererOptions.barDirection==="vertical"||this.transposedData===false)?1:0;for(var q=0;q<this.data.length;q++){s+=this.data[q][u];if(q>0){this.data[q][u]+=this.data[q-1][u]}}this.data[this.data.length]=(u==1)?[this.data.length+1,s]:[s,this.data.length+1];this._data[this._data.length]=(u==1)?[this._data.length+1,s]:[s,this._data.length+1]}if(this.rendererOptions.groups>1){this.breakOnNull=true;var n=this.data.length;var v=parseInt(n/this.rendererOptions.groups,10);var r=0;for(var q=v;q<n;q+=v){this.data.splice(q+r,0,[null,null]);this._plotData.splice(q+r,0,[null,null]);this._stackData.splice(q+r,0,[null,null]);r++}for(q=0;q<this.data.length;q++){if(this._primaryAxis=="_xaxis"){this.data[q][0]=q+1;this._plotData[q][0]=q+1;this._stackData[q][0]=q+1}else{this.data[q][1]=q+1;this._plotData[q][1]=q+1;this._stackData[q][1]=q+1}}}}d.jqplot.preSeriesInitHooks.push(g);d.jqplot.BarRenderer.prototype.calcSeriesNumbers=function(){var r=0;var t=0;var q=this[this._primaryAxis];var p,o,u;for(var n=0;n<q._series.length;n++){o=q._series[n];if(o===this){u=n}if(o.renderer.constructor==d.jqplot.BarRenderer){r+=o.data.length;t+=1}}return[r,t,u]};d.jqplot.BarRenderer.prototype.setBarWidth=function(){var q;var n=0;var o=0;var t=this[this._primaryAxis];var x,r,v;var w=this._plotSeriesInfo=this.renderer.calcSeriesNumbers.call(this);n=w[0];o=w[1];var u=t.numberTicks;var p=(u-1)/2;if(t.name=="xaxis"||t.name=="x2axis"){if(this._stack){this.barWidth=(t._offsets.max-t._offsets.min)/n*o-this.barMargin}else{this.barWidth=((t._offsets.max-t._offsets.min)/p-this.barPadding*(o-1)-this.barMargin*2)/o}}else{if(this._stack){this.barWidth=(t._offsets.min-t._offsets.max)/n*o-this.barMargin}else{this.barWidth=((t._offsets.min-t._offsets.max)/p-this.barPadding*(o-1)-this.barMargin*2)/o}}return[n,o]};function f(o){var q=[];for(var s=0;s<o.length;s++){var r=d.jqplot.getColorComponents(o[s]);var n=[r[0],r[1],r[2]];var t=n[0]+n[1]+n[2];for(var p=0;p<3;p++){n[p]=(t>570)?n[p]*0.8:n[p]+0.3*(255-n[p]);n[p]=parseInt(n[p],10)}q.push("rgb("+n[0]+","+n[1]+","+n[2]+")")}return q}function i(v,u,s,t,o){var q=v,w=v-1,n,p,r=(o==="x")?0:1;if(q>0){p=t.series[w]._plotData[u][r];if((s*p)<0){n=i(w,u,s,t,o)}else{n=t.series[w].gridData[u][r]}}else{n=(r===0)?t.series[q]._xaxis.series_u2p(0):t.series[q]._yaxis.series_u2p(0)}return n}d.jqplot.BarRenderer.prototype.draw=function(E,L,q,G){var I;var A=d.extend({},q);var w=(A.shadow!=undefined)?A.shadow:this.shadow;var O=(A.showLine!=undefined)?A.showLine:this.showLine;var F=(A.fill!=undefined)?A.fill:this.fill;var p=this.xaxis;var J=this.yaxis;var y=this._xaxis.series_u2p;var K=this._yaxis.series_u2p;var D,C;this._dataColors=[];this._barPoints=[];if(this.barWidth==null){this.renderer.setBarWidth.call(this)}var N=this._plotSeriesInfo=this.renderer.calcSeriesNumbers.call(this);var x=N[0];var v=N[1];var s=N[2];var H=[];if(this._stack){this._barNudge=0}else{this._barNudge=(-Math.abs(v/2-0.5)+s)*(this.barWidth+this.barPadding)}if(O){var u=new d.jqplot.ColorGenerator(this.negativeSeriesColors);var B=new d.jqplot.ColorGenerator(this.seriesColors);var M=u.get(this.index);if(!this.useNegativeColors){M=A.fillStyle}var t=A.fillStyle;var r;var P;var o;if(this.barDirection=="vertical"){for(var I=0;I<L.length;I++){if(!this._stack&&this.data[I][1]==null){continue}H=[];r=L[I][0]+this._barNudge;if(this._stack&&this._prevGridData.length){o=i(this.index,I,this._plotData[I][1],G,"y")}else{if(this.fillToZero){o=this._yaxis.series_u2p(0)}else{if(this.waterfall&&I>0&&I<this.gridData.length-1){o=this.gridData[I-1][1]}else{if(this.waterfall&&I==0&&I<this.gridData.length-1){if(this._yaxis.min<=0&&this._yaxis.max>=0){o=this._yaxis.series_u2p(0)}else{if(this._yaxis.min>0){o=E.canvas.height}else{o=0}}}else{if(this.waterfall&&I==this.gridData.length-1){if(this._yaxis.min<=0&&this._yaxis.max>=0){o=this._yaxis.series_u2p(0)}else{if(this._yaxis.min>0){o=E.canvas.height}else{o=0}}}else{o=E.canvas.height}}}}}if((this.fillToZero&&this._plotData[I][1]<0)||(this.waterfall&&this._data[I][1]<0)){if(this.varyBarColor&&!this._stack){if(this.useNegativeColors){A.fillStyle=u.next()}else{A.fillStyle=B.next()}}else{A.fillStyle=M}}else{if(this.varyBarColor&&!this._stack){A.fillStyle=B.next()}else{A.fillStyle=t}}if(!this.fillToZero||this._plotData[I][1]>=0){H.push([r-this.barWidth/2,o]);H.push([r-this.barWidth/2,L[I][1]]);H.push([r+this.barWidth/2,L[I][1]]);H.push([r+this.barWidth/2,o])}else{H.push([r-this.barWidth/2,L[I][1]]);H.push([r-this.barWidth/2,o]);H.push([r+this.barWidth/2,o]);H.push([r+this.barWidth/2,L[I][1]])}this._barPoints.push(H);if(w&&!this._stack){var z=d.extend(true,{},A);delete z.fillStyle;this.renderer.shadowRenderer.draw(E,H,z)}var n=A.fillStyle||this.color;this._dataColors.push(n);this.renderer.shapeRenderer.draw(E,H,A)}}else{if(this.barDirection=="horizontal"){for(var I=0;I<L.length;I++){if(!this._stack&&this.data[I][0]==null){continue}H=[];r=L[I][1]-this._barNudge;P;if(this._stack&&this._prevGridData.length){P=i(this.index,I,this._plotData[I][0],G,"x")}else{if(this.fillToZero){P=this._xaxis.series_u2p(0)}else{if(this.waterfall&&I>0&&I<this.gridData.length-1){P=this.gridData[I-1][0]}else{if(this.waterfall&&I==0&&I<this.gridData.length-1){if(this._xaxis.min<=0&&this._xaxis.max>=0){P=this._xaxis.series_u2p(0)}else{if(this._xaxis.min>0){P=0}else{P=0}}}else{if(this.waterfall&&I==this.gridData.length-1){if(this._xaxis.min<=0&&this._xaxis.max>=0){P=this._xaxis.series_u2p(0)}else{if(this._xaxis.min>0){P=0}else{P=E.canvas.width}}}else{P=0}}}}}if((this.fillToZero&&this._plotData[I][0]<0)||(this.waterfall&&this._data[I][0]<0)){if(this.varyBarColor&&!this._stack){if(this.useNegativeColors){A.fillStyle=u.next()}else{A.fillStyle=B.next()}}else{A.fillStyle=M}}else{if(this.varyBarColor&&!this._stack){A.fillStyle=B.next()}else{A.fillStyle=t}}if(!this.fillToZero||this._plotData[I][0]>=0){H.push([P,r+this.barWidth/2]);H.push([P,r-this.barWidth/2]);H.push([L[I][0],r-this.barWidth/2]);H.push([L[I][0],r+this.barWidth/2])}else{H.push([L[I][0],r+this.barWidth/2]);H.push([L[I][0],r-this.barWidth/2]);H.push([P,r-this.barWidth/2]);H.push([P,r+this.barWidth/2])}this._barPoints.push(H);if(w&&!this._stack){var z=d.extend(true,{},A);delete z.fillStyle;this.renderer.shadowRenderer.draw(E,H,z)}var n=A.fillStyle||this.color;this._dataColors.push(n);this.renderer.shapeRenderer.draw(E,H,A)}}}}if(this.highlightColors.length==0){this.highlightColors=d.jqplot.computeHighlightColors(this._dataColors)}else{if(typeof(this.highlightColors)=="string"){var N=this.highlightColors;this.highlightColors=[];for(var I=0;I<this._dataColors.length;I++){this.highlightColors.push(N)}}}};d.jqplot.BarRenderer.prototype.drawShadow=function(z,G,p,B){var D;var w=(p!=undefined)?p:{};var t=(w.shadow!=undefined)?w.shadow:this.shadow;var I=(w.showLine!=undefined)?w.showLine:this.showLine;var A=(w.fill!=undefined)?w.fill:this.fill;var o=this.xaxis;var E=this.yaxis;var v=this._xaxis.series_u2p;var F=this._yaxis.series_u2p;var y,C,x,u,s,r;if(this._stack&&this.shadow){if(this.barWidth==null){this.renderer.setBarWidth.call(this)}var H=this._plotSeriesInfo=this.renderer.calcSeriesNumbers.call(this);u=H[0];s=H[1];r=H[2];if(this._stack){this._barNudge=0}else{this._barNudge=(-Math.abs(s/2-0.5)+r)*(this.barWidth+this.barPadding)}if(I){if(this.barDirection=="vertical"){for(var D=0;D<G.length;D++){if(this.data[D][1]==null){continue}C=[];var q=G[D][0]+this._barNudge;var n;if(this._stack&&this._prevGridData.length){n=i(this.index,D,this._plotData[D][1],B,"y")}else{if(this.fillToZero){n=this._yaxis.series_u2p(0)}else{n=z.canvas.height}}C.push([q-this.barWidth/2,n]);C.push([q-this.barWidth/2,G[D][1]]);C.push([q+this.barWidth/2,G[D][1]]);C.push([q+this.barWidth/2,n]);this.renderer.shadowRenderer.draw(z,C,w)}}else{if(this.barDirection=="horizontal"){for(var D=0;D<G.length;D++){if(this.data[D][0]==null){continue}C=[];var q=G[D][1]-this._barNudge;var J;if(this._stack&&this._prevGridData.length){J=i(this.index,D,this._plotData[D][0],B,"x")}else{if(this.fillToZero){J=this._xaxis.series_u2p(0)}else{J=0}}C.push([J,q+this.barWidth/2]);C.push([G[D][0],q+this.barWidth/2]);C.push([G[D][0],q-this.barWidth/2]);C.push([J,q-this.barWidth/2]);this.renderer.shadowRenderer.draw(z,C,w)}}}}}};function h(q,p,n){for(var o=0;o<this.series.length;o++){if(this.series[o].renderer.constructor==d.jqplot.BarRenderer){if(this.series[o].highlightMouseOver){this.series[o].highlightMouseDown=false}}}}function j(){if(this.plugins.barRenderer&&this.plugins.barRenderer.highlightCanvas){this.plugins.barRenderer.highlightCanvas.resetCanvas();this.plugins.barRenderer.highlightCanvas=null}this.plugins.barRenderer={highlightedSeriesIndex:null};this.plugins.barRenderer.highlightCanvas=new d.jqplot.GenericCanvas();this.eventCanvas._elem.before(this.plugins.barRenderer.highlightCanvas.createElement(this._gridPadding,"jqplot-barRenderer-highlight-canvas",this._plotDimensions,this));this.plugins.barRenderer.highlightCanvas.setContext();this.eventCanvas._elem.bind("mouseleave",{plot:this},function(n){k(n.data.plot)})}function c(u,t,q,p){var o=u.series[t];var n=u.plugins.barRenderer.highlightCanvas;n._ctx.clearRect(0,0,n._ctx.canvas.width,n._ctx.canvas.height);o._highlightedPoint=q;u.plugins.barRenderer.highlightedSeriesIndex=t;var r={fillStyle:o.highlightColors[q]};o.renderer.shapeRenderer.draw(n._ctx,p,r);n=null}function k(p){var n=p.plugins.barRenderer.highlightCanvas;n._ctx.clearRect(0,0,n._ctx.canvas.width,n._ctx.canvas.height);for(var o=0;o<p.series.length;o++){p.series[o]._highlightedPoint=null}p.plugins.barRenderer.highlightedSeriesIndex=null;p.target.trigger("jqplotDataUnhighlight");n=null}function b(r,q,u,t,s){if(t){var p=[t.seriesIndex,t.pointIndex,t.data];var o=jQuery.Event("jqplotDataMouseOver");o.pageX=r.pageX;o.pageY=r.pageY;s.target.trigger(o,p);if(s.series[p[0]].show&&s.series[p[0]].highlightMouseOver&&!(p[0]==s.plugins.barRenderer.highlightedSeriesIndex&&p[1]==s.series[p[0]]._highlightedPoint)){var n=jQuery.Event("jqplotDataHighlight");n.which=r.which;n.pageX=r.pageX;n.pageY=r.pageY;s.target.trigger(n,p);c(s,t.seriesIndex,t.pointIndex,t.points)}}else{if(t==null){k(s)}}}function a(q,p,t,s,r){if(s){var o=[s.seriesIndex,s.pointIndex,s.data];if(r.series[o[0]].highlightMouseDown&&!(o[0]==r.plugins.barRenderer.highlightedSeriesIndex&&o[1]==r.series[o[0]]._highlightedPoint)){var n=jQuery.Event("jqplotDataHighlight");n.which=q.which;n.pageX=q.pageX;n.pageY=q.pageY;r.target.trigger(n,o);c(r,s.seriesIndex,s.pointIndex,s.points)}}else{if(s==null){k(r)}}}function l(p,o,s,r,q){var n=q.plugins.barRenderer.highlightedSeriesIndex;if(n!=null&&q.series[n].highlightMouseDown){k(q)}}function e(q,p,t,s,r){if(s){var o=[s.seriesIndex,s.pointIndex,s.data];var n=jQuery.Event("jqplotDataClick");n.which=q.which;n.pageX=q.pageX;n.pageY=q.pageY;r.target.trigger(n,o)}}function m(r,q,u,t,s){if(t){var p=[t.seriesIndex,t.pointIndex,t.data];var n=s.plugins.barRenderer.highlightedSeriesIndex;if(n!=null&&s.series[n].highlightMouseDown){k(s)}var o=jQuery.Event("jqplotDataRightClick");o.which=r.which;o.pageX=r.pageX;o.pageY=r.pageY;s.target.trigger(o,p)}}})(jQuery);
|
||
</script> <script type="text/javascript">
|
||
|
||
(function(h){h.jqplot.DateAxisRenderer=function(){h.jqplot.LinearAxisRenderer.call(this);this.date=new h.jsDate()};var c=1000;var e=60*c;var f=60*e;var l=24*f;var b=7*l;var j=30.4368499*l;var k=365.242199*l;var g=[31,28,31,30,31,30,31,30,31,30,31,30];var i=["%M:%S.%#N","%M:%S.%#N","%M:%S.%#N","%M:%S","%M:%S","%M:%S","%M:%S","%H:%M:%S","%H:%M:%S","%H:%M","%H:%M","%H:%M","%H:%M","%H:%M","%H:%M","%a %H:%M","%a %H:%M","%b %e %H:%M","%b %e %H:%M","%b %e %H:%M","%b %e %H:%M","%v","%v","%v","%v","%v","%v","%v"];var m=[0.1*c,0.2*c,0.5*c,c,2*c,5*c,10*c,15*c,30*c,e,2*e,5*e,10*e,15*e,30*e,f,2*f,4*f,6*f,8*f,12*f,l,2*l,3*l,4*l,5*l,b,2*b];var d=[];function a(p,s,t){var o=Number.MAX_VALUE;var u,r,v;for(var q=0,n=m.length;q<n;q++){u=Math.abs(t-m[q]);if(u<o){o=u;r=m[q];v=i[q]}}return[r,v]}h.jqplot.DateAxisRenderer.prototype=new h.jqplot.LinearAxisRenderer();h.jqplot.DateAxisRenderer.prototype.constructor=h.jqplot.DateAxisRenderer;h.jqplot.DateTickFormatter=function(n,o){if(!n){n="%Y/%m/%d"}return h.jsDate.strftime(o,n)};h.jqplot.DateAxisRenderer.prototype.init=function(E){this.tickOptions.formatter=h.jqplot.DateTickFormatter;this.tickInset=0;this.drawBaseline=true;this.baselineWidth=null;this.baselineColor=null;this.daTickInterval=null;this._daTickInterval=null;h.extend(true,this,E);var C=this._dataBounds,u,x,D,y,A,z,o;for(var t=0;t<this._series.length;t++){u={intervals:[],frequencies:{},sortedIntervals:[],min:null,max:null,mean:null};x=0;D=this._series[t];y=D.data;A=D._plotData;z=D._stackData;o=0;for(var r=0;r<y.length;r++){if(this.name=="xaxis"||this.name=="x2axis"){y[r][0]=new h.jsDate(y[r][0]).getTime();A[r][0]=new h.jsDate(y[r][0]).getTime();z[r][0]=new h.jsDate(y[r][0]).getTime();if((y[r][0]!=null&&y[r][0]<C.min)||C.min==null){C.min=y[r][0]}if((y[r][0]!=null&&y[r][0]>C.max)||C.max==null){C.max=y[r][0]}if(r>0){o=Math.abs(y[r][0]-y[r-1][0]);u.intervals.push(o);if(u.frequencies.hasOwnProperty(o)){u.frequencies[o]+=1}else{u.frequencies[o]=1}}x+=o}else{y[r][1]=new h.jsDate(y[r][1]).getTime();A[r][1]=new h.jsDate(y[r][1]).getTime();z[r][1]=new h.jsDate(y[r][1]).getTime();if((y[r][1]!=null&&y[r][1]<C.min)||C.min==null){C.min=y[r][1]}if((y[r][1]!=null&&y[r][1]>C.max)||C.max==null){C.max=y[r][1]}if(r>0){o=Math.abs(y[r][1]-y[r-1][1]);u.intervals.push(o);if(u.frequencies.hasOwnProperty(o)){u.frequencies[o]+=1}else{u.frequencies[o]=1}}}x+=o}if(D.renderer.bands){if(D.renderer.bands.hiData.length){var w=D.renderer.bands.hiData;for(var r=0,q=w.length;r<q;r++){if(this.name==="xaxis"||this.name==="x2axis"){w[r][0]=new h.jsDate(w[r][0]).getTime();if((w[r][0]!=null&&w[r][0]>C.max)||C.max==null){C.max=w[r][0]}}else{w[r][1]=new h.jsDate(w[r][1]).getTime();if((w[r][1]!=null&&w[r][1]>C.max)||C.max==null){C.max=w[r][1]}}}}if(D.renderer.bands.lowData.length){var w=D.renderer.bands.lowData;for(var r=0,q=w.length;r<q;r++){if(this.name==="xaxis"||this.name==="x2axis"){w[r][0]=new h.jsDate(w[r][0]).getTime();if((w[r][0]!=null&&w[r][0]<C.min)||C.min==null){C.min=w[r][0]}}else{w[r][1]=new h.jsDate(w[r][1]).getTime();if((w[r][1]!=null&&w[r][1]<C.min)||C.min==null){C.min=w[r][1]}}}}}var B=0,v=0;for(var p in u.frequencies){u.sortedIntervals.push({interval:p,frequency:u.frequencies[p]})}u.sortedIntervals.sort(function(s,n){return n.frequency-s.frequency});u.min=h.jqplot.arrayMin(u.intervals);u.max=h.jqplot.arrayMax(u.intervals);u.mean=x/y.length;this._intervalStats.push(u);u=x=D=y=A=z=null}C=null};h.jqplot.DateAxisRenderer.prototype.reset=function(){this.min=this._options.min;this.max=this._options.max;this.tickInterval=this._options.tickInterval;this.numberTicks=this._options.numberTicks;this._autoFormatString="";if(this._overrideFormatString&&this.tickOptions&&this.tickOptions.formatString){this.tickOptions.formatString=""}this.daTickInterval=this._daTickInterval};h.jqplot.DateAxisRenderer.prototype.createTicks=function(p){var X=this._ticks;var L=this.ticks;var F=this.name;var H=this._dataBounds;var M=this._intervalStats;var n=(this.name.charAt(0)==="x")?this._plotDimensions.width:this._plotDimensions.height;var w;var ae,J;var y,x;var ad,aa;var s=30;var O=1;var U=null;if(this.tickInterval!=null){if(Number(this.tickInterval)){U=[Number(this.tickInterval),"seconds"]}else{if(typeof this.tickInterval=="string"){var ac=this.tickInterval.split(" ");if(ac.length==1){U=[1,ac[0]]}else{if(ac.length==2){U=[ac[0],ac[1]]}}}}}var v=this.tickInterval;ae=new h.jsDate((this.min!=null)?this.min:H.min).getTime();J=new h.jsDate((this.max!=null)?this.max:H.max).getTime();var A=p.plugins.cursor;if(A&&A._zoom&&A._zoom.zooming){this.min=null;this.max=null}var B=J-ae;if(this.tickOptions==null||!this.tickOptions.formatString){this._overrideFormatString=true}if(L.length){for(aa=0;aa<L.length;aa++){var P=L[aa];var Y=new this.tickRenderer(this.tickOptions);if(P.constructor==Array){Y.value=new h.jsDate(P[0]).getTime();Y.label=P[1];if(!this.showTicks){Y.showLabel=false;Y.showMark=false}else{if(!this.showTickMarks){Y.showMark=false}}Y.setTick(Y.value,this.name);this._ticks.push(Y)}else{Y.value=new h.jsDate(P).getTime();if(!this.showTicks){Y.showLabel=false;Y.showMark=false}else{if(!this.showTickMarks){Y.showMark=false}}Y.setTick(Y.value,this.name);this._ticks.push(Y)}}this.numberTicks=L.length;this.min=this._ticks[0].value;this.max=this._ticks[this.numberTicks-1].value;this.daTickInterval=[(this.max-this.min)/(this.numberTicks-1)/1000,"seconds"]}else{if(this.min==null&&this.max==null&&H.min==H.max){var E=h.extend(true,{},this.tickOptions,{name:this.name,value:null});var T=300000;this.min=H.min-T;this.max=H.max+T;this.numberTicks=3;for(var aa=this.min;aa<=this.max;aa+=T){E.value=aa;var Y=new this.tickRenderer(E);if(this._overrideFormatString&&this._autoFormatString!=""){Y.formatString=this._autoFormatString}Y.showLabel=false;Y.showMark=false;this._ticks.push(Y)}if(this.showTicks){this._ticks[1].showLabel=true}if(this.showTickMarks){this._ticks[1].showTickMarks=true}}else{if(this.min==null&&this.max==null){var N=h.extend(true,{},this.tickOptions,{name:this.name,value:null});var ab,I;if(!this.tickInterval&&!this.numberTicks){var R=Math.max(n,s+1);var Z=115;if(this.tickRenderer===h.jqplot.CanvasAxisTickRenderer&&this.tickOptions.angle){Z=115-40*Math.abs(Math.sin(this.tickOptions.angle/180*Math.PI))}ab=Math.ceil((R-s)/Z+1);I=(J-ae)/(ab-1)}else{if(this.tickInterval){I=new h.jsDate(0).add(U[0],U[1]).getTime()}else{if(this.numberTicks){ab=this.numberTicks;I=(J-ae)/(ab-1)}}}if(I<=19*l){var Q=a(ae,J,I);var r=Q[0];this._autoFormatString=Q[1];ae=new h.jsDate(ae);ae=Math.floor((ae.getTime()-ae.getUtcOffset())/r)*r+ae.getUtcOffset();ab=Math.ceil((J-ae)/r)+1;this.min=ae;this.max=ae+(ab-1)*r;if(this.max<J){this.max+=r;ab+=1}this.tickInterval=r;this.numberTicks=ab;for(var aa=0;aa<ab;aa++){N.value=this.min+aa*r;Y=new this.tickRenderer(N);if(this._overrideFormatString&&this._autoFormatString!=""){Y.formatString=this._autoFormatString}if(!this.showTicks){Y.showLabel=false;Y.showMark=false}else{if(!this.showTickMarks){Y.showMark=false}}this._ticks.push(Y)}O=this.tickInterval}else{if(I<=9*j){this._autoFormatString="%v";var D=Math.round(I/j);if(D<1){D=1}else{if(D>6){D=6}}var V=new h.jsDate(ae).setDate(1).setHours(0,0,0,0);var q=new h.jsDate(J);var z=new h.jsDate(J).setDate(1).setHours(0,0,0,0);if(q.getTime()!==z.getTime()){z=z.add(1,"month")}var S=z.diff(V,"month");ab=Math.ceil(S/D)+1;this.min=V.getTime();this.max=V.clone().add((ab-1)*D,"month").getTime();this.numberTicks=ab;for(var aa=0;aa<ab;aa++){if(aa===0){N.value=V.getTime()}else{N.value=V.add(D,"month").getTime()}Y=new this.tickRenderer(N);if(this._overrideFormatString&&this._autoFormatString!=""){Y.formatString=this._autoFormatString}if(!this.showTicks){Y.showLabel=false;Y.showMark=false}else{if(!this.showTickMarks){Y.showMark=false}}this._ticks.push(Y)}O=D*j}else{this._autoFormatString="%v";var D=Math.round(I/k);if(D<1){D=1}var V=new h.jsDate(ae).setMonth(0,1).setHours(0,0,0,0);var z=new h.jsDate(J).add(1,"year").setMonth(0,1).setHours(0,0,0,0);var K=z.diff(V,"year");ab=Math.ceil(K/D)+1;this.min=V.getTime();this.max=V.clone().add((ab-1)*D,"year").getTime();this.numberTicks=ab;for(var aa=0;aa<ab;aa++){if(aa===0){N.value=V.getTime()}else{N.value=V.add(D,"year").getTime()}Y=new this.tickRenderer(N);if(this._overrideFormatString&&this._autoFormatString!=""){Y.formatString=this._autoFormatString}if(!this.showTicks){Y.showLabel=false;Y.showMark=false}else{if(!this.showTickMarks){Y.showMark=false}}this._ticks.push(Y)}O=D*k}}}else{if(F=="xaxis"||F=="x2axis"){n=this._plotDimensions.width}else{n=this._plotDimensions.height}if(this.min!=null&&this.max!=null&&this.numberTicks!=null){this.tickInterval=null}if(this.tickInterval!=null&&U!=null){this.daTickInterval=U}if(ae==J){var o=24*60*60*500;ae-=o;J+=o}B=J-ae;var G=2+parseInt(Math.max(0,n-100)/100,10);var W,C;W=(this.min!=null)?new h.jsDate(this.min).getTime():ae-B/2*(this.padMin-1);C=(this.max!=null)?new h.jsDate(this.max).getTime():J+B/2*(this.padMax-1);this.min=W;this.max=C;B=this.max-this.min;if(this.numberTicks==null){if(this.daTickInterval!=null){var u=new h.jsDate(this.max).diff(this.min,this.daTickInterval[1],true);this.numberTicks=Math.ceil(u/this.daTickInterval[0])+1;this.max=new h.jsDate(this.min).add((this.numberTicks-1)*this.daTickInterval[0],this.daTickInterval[1]).getTime()}else{if(n>200){this.numberTicks=parseInt(3+(n-200)/100,10)}else{this.numberTicks=2}}}O=B/(this.numberTicks-1)/1000;if(this.daTickInterval==null){this.daTickInterval=[O,"seconds"]}for(var aa=0;aa<this.numberTicks;aa++){var ae=new h.jsDate(this.min);ad=ae.add(aa*this.daTickInterval[0],this.daTickInterval[1]).getTime();var Y=new this.tickRenderer(this.tickOptions);if(!this.showTicks){Y.showLabel=false;Y.showMark=false}else{if(!this.showTickMarks){Y.showMark=false}}Y.setTick(ad,this.name);this._ticks.push(Y)}}}}if(this.tickInset){this.min=this.min-this.tickInset*O;this.max=this.max+this.tickInset*O}if(this._daTickInterval==null){this._daTickInterval=this.daTickInterval}X=null}})(jQuery);
|
||
</script> <script type="text/javascript">
|
||
|
||
(function(a){a.jqplot.CanvasTextRenderer=function(b){this.fontStyle="normal";this.fontVariant="normal";this.fontWeight="normal";this.fontSize="10px";this.fontFamily="sans-serif";this.fontStretch=1;this.fillStyle="#666666";this.angle=0;this.textAlign="start";this.textBaseline="alphabetic";this.text;this.width;this.height;this.pt2px=1.28;a.extend(true,this,b);this.normalizedFontSize=this.normalizeFontSize(this.fontSize);this.setHeight()};a.jqplot.CanvasTextRenderer.prototype.init=function(b){a.extend(true,this,b);this.normalizedFontSize=this.normalizeFontSize(this.fontSize);this.setHeight()};a.jqplot.CanvasTextRenderer.prototype.normalizeFontSize=function(b){b=String(b);var c=parseFloat(b);if(b.indexOf("px")>-1){return c/this.pt2px}else{if(b.indexOf("pt")>-1){return c}else{if(b.indexOf("em")>-1){return c*12}else{if(b.indexOf("%")>-1){return c*12/100}else{return c/this.pt2px}}}}};a.jqplot.CanvasTextRenderer.prototype.fontWeight2Float=function(b){if(Number(b)){return b/400}else{switch(b){case"normal":return 1;break;case"bold":return 1.75;break;case"bolder":return 2.25;break;case"lighter":return 0.75;break;default:return 1;break}}};a.jqplot.CanvasTextRenderer.prototype.getText=function(){return this.text};a.jqplot.CanvasTextRenderer.prototype.setText=function(c,b){this.text=c;this.setWidth(b);return this};a.jqplot.CanvasTextRenderer.prototype.getWidth=function(b){return this.width};a.jqplot.CanvasTextRenderer.prototype.setWidth=function(c,b){if(!b){this.width=this.measure(c,this.text)}else{this.width=b}return this};a.jqplot.CanvasTextRenderer.prototype.getHeight=function(b){return this.height};a.jqplot.CanvasTextRenderer.prototype.setHeight=function(b){if(!b){this.height=this.normalizedFontSize*this.pt2px}else{this.height=b}return this};a.jqplot.CanvasTextRenderer.prototype.letter=function(b){return this.letters[b]};a.jqplot.CanvasTextRenderer.prototype.ascent=function(){return this.normalizedFontSize};a.jqplot.CanvasTextRenderer.prototype.descent=function(){return 7*this.normalizedFontSize/25};a.jqplot.CanvasTextRenderer.prototype.measure=function(d,g){var f=0;var b=g.length;for(var e=0;e<b;e++){var h=this.letter(g.charAt(e));if(h){f+=h.width*this.normalizedFontSize/25*this.fontStretch}}return f};a.jqplot.CanvasTextRenderer.prototype.draw=function(s,n){var r=0;var o=this.height*0.72;var p=0;var l=n.length;var k=this.normalizedFontSize/25;s.save();var h,f;if((-Math.PI/2<=this.angle&&this.angle<=0)||(Math.PI*3/2<=this.angle&&this.angle<=Math.PI*2)){h=0;f=-Math.sin(this.angle)*this.width}else{if((0<this.angle&&this.angle<=Math.PI/2)||(-Math.PI*2<=this.angle&&this.angle<=-Math.PI*3/2)){h=Math.sin(this.angle)*this.height;f=0}else{if((-Math.PI<this.angle&&this.angle<-Math.PI/2)||(Math.PI<=this.angle&&this.angle<=Math.PI*3/2)){h=-Math.cos(this.angle)*this.width;f=-Math.sin(this.angle)*this.width-Math.cos(this.angle)*this.height}else{if((-Math.PI*3/2<this.angle&&this.angle<Math.PI)||(Math.PI/2<this.angle&&this.angle<Math.PI)){h=Math.sin(this.angle)*this.height-Math.cos(this.angle)*this.width;f=-Math.cos(this.angle)*this.height}}}}s.strokeStyle=this.fillStyle;s.fillStyle=this.fillStyle;s.translate(h,f);s.rotate(this.angle);s.lineCap="round";var t=(this.normalizedFontSize>30)?2:2+(30-this.normalizedFontSize)/20;s.lineWidth=t*k*this.fontWeight2Float(this.fontWeight);for(var g=0;g<l;g++){var m=this.letter(n.charAt(g));if(!m){continue}s.beginPath();var e=1;var b=0;for(var d=0;d<m.points.length;d++){var q=m.points[d];if(q[0]==-1&&q[1]==-1){e=1;continue}if(e){s.moveTo(r+q[0]*k*this.fontStretch,o-q[1]*k);e=false}else{s.lineTo(r+q[0]*k*this.fontStretch,o-q[1]*k)}}s.stroke();r+=m.width*k*this.fontStretch}s.restore();return p};a.jqplot.CanvasTextRenderer.prototype.letters={" ":{width:16,points:[]},"!":{width:10,points:[[5,21],[5,7],[-1,-1],[5,2],[4,1],[5,0],[6,1],[5,2]]},'"':{width:16,points:[[4,21],[4,14],[-1,-1],[12,21],[12,14]]},"#":{width:21,points:[[11,25],[4,-7],[-1,-1],[17,25],[10,-7],[-1,-1],[4,12],[18,12],[-1,-1],[3,6],[17,6]]},"$":{width:20,points:[[8,25],[8,-4],[-1,-1],[12,25],[12,-4],[-1,-1],[17,18],[15,20],[12,21],[8,21],[5,20],[3,18],[3,16],[4,14],[5,13],[7,12],[13,10],[15,9],[16,8],[17,6],[17,3],[15,1],[12,0],[8,0],[5,1],[3,3]]},"%":{width:24,points:[[21,21],[3,0],[-1,-1],[8,21],[10,19],[10,17],[9,15],[7,14],[5,14],[3,16],[3,18],[4,20],[6,21],[8,21],[10,20],[13,19],[16,19],[19,20],[21,21],[-1,-1],[17,7],[15,6],[14,4],[14,2],[16,0],[18,0],[20,1],[21,3],[21,5],[19,7],[17,7]]},"&":{width:26,points:[[23,12],[23,13],[22,14],[21,14],[20,13],[19,11],[17,6],[15,3],[13,1],[11,0],[7,0],[5,1],[4,2],[3,4],[3,6],[4,8],[5,9],[12,13],[13,14],[14,16],[14,18],[13,20],[11,21],[9,20],[8,18],[8,16],[9,13],[11,10],[16,3],[18,1],[20,0],[22,0],[23,1],[23,2]]},"'":{width:10,points:[[5,19],[4,20],[5,21],[6,20],[6,18],[5,16],[4,15]]},"(":{width:14,points:[[11,25],[9,23],[7,20],[5,16],[4,11],[4,7],[5,2],[7,-2],[9,-5],[11,-7]]},")":{width:14,points:[[3,25],[5,23],[7,20],[9,16],[10,11],[10,7],[9,2],[7,-2],[5,-5],[3,-7]]},"*":{width:16,points:[[8,21],[8,9],[-1,-1],[3,18],[13,12],[-1,-1],[13,18],[3,12]]},"+":{width:26,points:[[13,18],[13,0],[-1,-1],[4,9],[22,9]]},",":{width:10,points:[[6,1],[5,0],[4,1],[5,2],[6,1],[6,-1],[5,-3],[4,-4]]},"-":{width:18,points:[[6,9],[12,9]]},".":{width:10,points:[[5,2],[4,1],[5,0],[6,1],[5,2]]},"/":{width:22,points:[[20,25],[2,-7]]},"0":{width:20,points:[[9,21],[6,20],[4,17],[3,12],[3,9],[4,4],[6,1],[9,0],[11,0],[14,1],[16,4],[17,9],[17,12],[16,17],[14,20],[11,21],[9,21]]},"1":{width:20,points:[[6,17],[8,18],[11,21],[11,0]]},"2":{width:20,points:[[4,16],[4,17],[5,19],[6,20],[8,21],[12,21],[14,20],[15,19],[16,17],[16,15],[15,13],[13,10],[3,0],[17,0]]},"3":{width:20,points:[[5,21],[16,21],[10,13],[13,13],[15,12],[16,11],[17,8],[17,6],[16,3],[14,1],[11,0],[8,0],[5,1],[4,2],[3,4]]},"4":{width:20,points:[[13,21],[3,7],[18,7],[-1,-1],[13,21],[13,0]]},"5":{width:20,points:[[15,21],[5,21],[4,12],[5,13],[8,14],[11,14],[14,13],[16,11],[17,8],[17,6],[16,3],[14,1],[11,0],[8,0],[5,1],[4,2],[3,4]]},"6":{width:20,points:[[16,18],[15,20],[12,21],[10,21],[7,20],[5,17],[4,12],[4,7],[5,3],[7,1],[10,0],[11,0],[14,1],[16,3],[17,6],[17,7],[16,10],[14,12],[11,13],[10,13],[7,12],[5,10],[4,7]]},"7":{width:20,points:[[17,21],[7,0],[-1,-1],[3,21],[17,21]]},"8":{width:20,points:[[8,21],[5,20],[4,18],[4,16],[5,14],[7,13],[11,12],[14,11],[16,9],[17,7],[17,4],[16,2],[15,1],[12,0],[8,0],[5,1],[4,2],[3,4],[3,7],[4,9],[6,11],[9,12],[13,13],[15,14],[16,16],[16,18],[15,20],[12,21],[8,21]]},"9":{width:20,points:[[16,14],[15,11],[13,9],[10,8],[9,8],[6,9],[4,11],[3,14],[3,15],[4,18],[6,20],[9,21],[10,21],[13,20],[15,18],[16,14],[16,9],[15,4],[13,1],[10,0],[8,0],[5,1],[4,3]]},":":{width:10,points:[[5,14],[4,13],[5,12],[6,13],[5,14],[-1,-1],[5,2],[4,1],[5,0],[6,1],[5,2]]},";":{width:10,points:[[5,14],[4,13],[5,12],[6,13],[5,14],[-1,-1],[6,1],[5,0],[4,1],[5,2],[6,1],[6,-1],[5,-3],[4,-4]]},"<":{width:24,points:[[20,18],[4,9],[20,0]]},"=":{width:26,points:[[4,12],[22,12],[-1,-1],[4,6],[22,6]]},">":{width:24,points:[[4,18],[20,9],[4,0]]},"?":{width:18,points:[[3,16],[3,17],[4,19],[5,20],[7,21],[11,21],[13,20],[14,19],[15,17],[15,15],[14,13],[13,12],[9,10],[9,7],[-1,-1],[9,2],[8,1],[9,0],[10,1],[9,2]]},"@":{width:27,points:[[18,13],[17,15],[15,16],[12,16],[10,15],[9,14],[8,11],[8,8],[9,6],[11,5],[14,5],[16,6],[17,8],[-1,-1],[12,16],[10,14],[9,11],[9,8],[10,6],[11,5],[-1,-1],[18,16],[17,8],[17,6],[19,5],[21,5],[23,7],[24,10],[24,12],[23,15],[22,17],[20,19],[18,20],[15,21],[12,21],[9,20],[7,19],[5,17],[4,15],[3,12],[3,9],[4,6],[5,4],[7,2],[9,1],[12,0],[15,0],[18,1],[20,2],[21,3],[-1,-1],[19,16],[18,8],[18,6],[19,5]]},A:{width:18,points:[[9,21],[1,0],[-1,-1],[9,21],[17,0],[-1,-1],[4,7],[14,7]]},B:{width:21,points:[[4,21],[4,0],[-1,-1],[4,21],[13,21],[16,20],[17,19],[18,17],[18,15],[17,13],[16,12],[13,11],[-1,-1],[4,11],[13,11],[16,10],[17,9],[18,7],[18,4],[17,2],[16,1],[13,0],[4,0]]},C:{width:21,points:[[18,16],[17,18],[15,20],[13,21],[9,21],[7,20],[5,18],[4,16],[3,13],[3,8],[4,5],[5,3],[7,1],[9,0],[13,0],[15,1],[17,3],[18,5]]},D:{width:21,points:[[4,21],[4,0],[-1,-1],[4,21],[11,21],[14,20],[16,18],[17,16],[18,13],[18,8],[17,5],[16,3],[14,1],[11,0],[4,0]]},E:{width:19,points:[[4,21],[4,0],[-1,-1],[4,21],[17,21],[-1,-1],[4,11],[12,11],[-1,-1],[4,0],[17,0]]},F:{width:18,points:[[4,21],[4,0],[-1,-1],[4,21],[17,21],[-1,-1],[4,11],[12,11]]},G:{width:21,points:[[18,16],[17,18],[15,20],[13,21],[9,21],[7,20],[5,18],[4,16],[3,13],[3,8],[4,5],[5,3],[7,1],[9,0],[13,0],[15,1],[17,3],[18,5],[18,8],[-1,-1],[13,8],[18,8]]},H:{width:22,points:[[4,21],[4,0],[-1,-1],[18,21],[18,0],[-1,-1],[4,11],[18,11]]},I:{width:8,points:[[4,21],[4,0]]},J:{width:16,points:[[12,21],[12,5],[11,2],[10,1],[8,0],[6,0],[4,1],[3,2],[2,5],[2,7]]},K:{width:21,points:[[4,21],[4,0],[-1,-1],[18,21],[4,7],[-1,-1],[9,12],[18,0]]},L:{width:17,points:[[4,21],[4,0],[-1,-1],[4,0],[16,0]]},M:{width:24,points:[[4,21],[4,0],[-1,-1],[4,21],[12,0],[-1,-1],[20,21],[12,0],[-1,-1],[20,21],[20,0]]},N:{width:22,points:[[4,21],[4,0],[-1,-1],[4,21],[18,0],[-1,-1],[18,21],[18,0]]},O:{width:22,points:[[9,21],[7,20],[5,18],[4,16],[3,13],[3,8],[4,5],[5,3],[7,1],[9,0],[13,0],[15,1],[17,3],[18,5],[19,8],[19,13],[18,16],[17,18],[15,20],[13,21],[9,21]]},P:{width:21,points:[[4,21],[4,0],[-1,-1],[4,21],[13,21],[16,20],[17,19],[18,17],[18,14],[17,12],[16,11],[13,10],[4,10]]},Q:{width:22,points:[[9,21],[7,20],[5,18],[4,16],[3,13],[3,8],[4,5],[5,3],[7,1],[9,0],[13,0],[15,1],[17,3],[18,5],[19,8],[19,13],[18,16],[17,18],[15,20],[13,21],[9,21],[-1,-1],[12,4],[18,-2]]},R:{width:21,points:[[4,21],[4,0],[-1,-1],[4,21],[13,21],[16,20],[17,19],[18,17],[18,15],[17,13],[16,12],[13,11],[4,11],[-1,-1],[11,11],[18,0]]},S:{width:20,points:[[17,18],[15,20],[12,21],[8,21],[5,20],[3,18],[3,16],[4,14],[5,13],[7,12],[13,10],[15,9],[16,8],[17,6],[17,3],[15,1],[12,0],[8,0],[5,1],[3,3]]},T:{width:16,points:[[8,21],[8,0],[-1,-1],[1,21],[15,21]]},U:{width:22,points:[[4,21],[4,6],[5,3],[7,1],[10,0],[12,0],[15,1],[17,3],[18,6],[18,21]]},V:{width:18,points:[[1,21],[9,0],[-1,-1],[17,21],[9,0]]},W:{width:24,points:[[2,21],[7,0],[-1,-1],[12,21],[7,0],[-1,-1],[12,21],[17,0],[-1,-1],[22,21],[17,0]]},X:{width:20,points:[[3,21],[17,0],[-1,-1],[17,21],[3,0]]},Y:{width:18,points:[[1,21],[9,11],[9,0],[-1,-1],[17,21],[9,11]]},Z:{width:20,points:[[17,21],[3,0],[-1,-1],[3,21],[17,21],[-1,-1],[3,0],[17,0]]},"[":{width:14,points:[[4,25],[4,-7],[-1,-1],[5,25],[5,-7],[-1,-1],[4,25],[11,25],[-1,-1],[4,-7],[11,-7]]},"\\":{width:14,points:[[0,21],[14,-3]]},"]":{width:14,points:[[9,25],[9,-7],[-1,-1],[10,25],[10,-7],[-1,-1],[3,25],[10,25],[-1,-1],[3,-7],[10,-7]]},"^":{width:16,points:[[6,15],[8,18],[10,15],[-1,-1],[3,12],[8,17],[13,12],[-1,-1],[8,17],[8,0]]},_:{width:16,points:[[0,-2],[16,-2]]},"`":{width:10,points:[[6,21],[5,20],[4,18],[4,16],[5,15],[6,16],[5,17]]},a:{width:19,points:[[15,14],[15,0],[-1,-1],[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},b:{width:19,points:[[4,21],[4,0],[-1,-1],[4,11],[6,13],[8,14],[11,14],[13,13],[15,11],[16,8],[16,6],[15,3],[13,1],[11,0],[8,0],[6,1],[4,3]]},c:{width:18,points:[[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},d:{width:19,points:[[15,21],[15,0],[-1,-1],[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},e:{width:18,points:[[3,8],[15,8],[15,10],[14,12],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},f:{width:12,points:[[10,21],[8,21],[6,20],[5,17],[5,0],[-1,-1],[2,14],[9,14]]},g:{width:19,points:[[15,14],[15,-2],[14,-5],[13,-6],[11,-7],[8,-7],[6,-6],[-1,-1],[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},h:{width:19,points:[[4,21],[4,0],[-1,-1],[4,10],[7,13],[9,14],[12,14],[14,13],[15,10],[15,0]]},i:{width:8,points:[[3,21],[4,20],[5,21],[4,22],[3,21],[-1,-1],[4,14],[4,0]]},j:{width:10,points:[[5,21],[6,20],[7,21],[6,22],[5,21],[-1,-1],[6,14],[6,-3],[5,-6],[3,-7],[1,-7]]},k:{width:17,points:[[4,21],[4,0],[-1,-1],[14,14],[4,4],[-1,-1],[8,8],[15,0]]},l:{width:8,points:[[4,21],[4,0]]},m:{width:30,points:[[4,14],[4,0],[-1,-1],[4,10],[7,13],[9,14],[12,14],[14,13],[15,10],[15,0],[-1,-1],[15,10],[18,13],[20,14],[23,14],[25,13],[26,10],[26,0]]},n:{width:19,points:[[4,14],[4,0],[-1,-1],[4,10],[7,13],[9,14],[12,14],[14,13],[15,10],[15,0]]},o:{width:19,points:[[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3],[16,6],[16,8],[15,11],[13,13],[11,14],[8,14]]},p:{width:19,points:[[4,14],[4,-7],[-1,-1],[4,11],[6,13],[8,14],[11,14],[13,13],[15,11],[16,8],[16,6],[15,3],[13,1],[11,0],[8,0],[6,1],[4,3]]},q:{width:19,points:[[15,14],[15,-7],[-1,-1],[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},r:{width:13,points:[[4,14],[4,0],[-1,-1],[4,8],[5,11],[7,13],[9,14],[12,14]]},s:{width:17,points:[[14,11],[13,13],[10,14],[7,14],[4,13],[3,11],[4,9],[6,8],[11,7],[13,6],[14,4],[14,3],[13,1],[10,0],[7,0],[4,1],[3,3]]},t:{width:12,points:[[5,21],[5,4],[6,1],[8,0],[10,0],[-1,-1],[2,14],[9,14]]},u:{width:19,points:[[4,14],[4,4],[5,1],[7,0],[10,0],[12,1],[15,4],[-1,-1],[15,14],[15,0]]},v:{width:16,points:[[2,14],[8,0],[-1,-1],[14,14],[8,0]]},w:{width:22,points:[[3,14],[7,0],[-1,-1],[11,14],[7,0],[-1,-1],[11,14],[15,0],[-1,-1],[19,14],[15,0]]},x:{width:17,points:[[3,14],[14,0],[-1,-1],[14,14],[3,0]]},y:{width:16,points:[[2,14],[8,0],[-1,-1],[14,14],[8,0],[6,-4],[4,-6],[2,-7],[1,-7]]},z:{width:17,points:[[14,14],[3,0],[-1,-1],[3,14],[14,14],[-1,-1],[3,0],[14,0]]},"{":{width:14,points:[[9,25],[7,24],[6,23],[5,21],[5,19],[6,17],[7,16],[8,14],[8,12],[6,10],[-1,-1],[7,24],[6,22],[6,20],[7,18],[8,17],[9,15],[9,13],[8,11],[4,9],[8,7],[9,5],[9,3],[8,1],[7,0],[6,-2],[6,-4],[7,-6],[-1,-1],[6,8],[8,6],[8,4],[7,2],[6,1],[5,-1],[5,-3],[6,-5],[7,-6],[9,-7]]},"|":{width:8,points:[[4,25],[4,-7]]},"}":{width:14,points:[[5,25],[7,24],[8,23],[9,21],[9,19],[8,17],[7,16],[6,14],[6,12],[8,10],[-1,-1],[7,24],[8,22],[8,20],[7,18],[6,17],[5,15],[5,13],[6,11],[10,9],[6,7],[5,5],[5,3],[6,1],[7,0],[8,-2],[8,-4],[7,-6],[-1,-1],[8,8],[6,6],[6,4],[7,2],[8,1],[9,-1],[9,-3],[8,-5],[7,-6],[5,-7]]},"~":{width:24,points:[[3,6],[3,8],[4,11],[6,12],[8,12],[10,11],[14,8],[16,7],[18,7],[20,8],[21,10],[-1,-1],[3,8],[4,10],[6,11],[8,11],[10,10],[14,7],[16,6],[18,6],[20,7],[21,10],[21,12]]}};a.jqplot.CanvasFontRenderer=function(b){b=b||{};if(!b.pt2px){b.pt2px=1.5}a.jqplot.CanvasTextRenderer.call(this,b)};a.jqplot.CanvasFontRenderer.prototype=new a.jqplot.CanvasTextRenderer({});a.jqplot.CanvasFontRenderer.prototype.constructor=a.jqplot.CanvasFontRenderer;a.jqplot.CanvasFontRenderer.prototype.measure=function(c,e){var d=this.fontSize+" "+this.fontFamily;c.save();c.font=d;var b=c.measureText(e).width;c.restore();return b};a.jqplot.CanvasFontRenderer.prototype.draw=function(e,g){var c=0;var h=this.height*0.72;e.save();var d,b;if((-Math.PI/2<=this.angle&&this.angle<=0)||(Math.PI*3/2<=this.angle&&this.angle<=Math.PI*2)){d=0;b=-Math.sin(this.angle)*this.width}else{if((0<this.angle&&this.angle<=Math.PI/2)||(-Math.PI*2<=this.angle&&this.angle<=-Math.PI*3/2)){d=Math.sin(this.angle)*this.height;b=0}else{if((-Math.PI<this.angle&&this.angle<-Math.PI/2)||(Math.PI<=this.angle&&this.angle<=Math.PI*3/2)){d=-Math.cos(this.angle)*this.width;b=-Math.sin(this.angle)*this.width-Math.cos(this.angle)*this.height}else{if((-Math.PI*3/2<this.angle&&this.angle<Math.PI)||(Math.PI/2<this.angle&&this.angle<Math.PI)){d=Math.sin(this.angle)*this.height-Math.cos(this.angle)*this.width;b=-Math.cos(this.angle)*this.height}}}}e.strokeStyle=this.fillStyle;e.fillStyle=this.fillStyle;var f=this.fontSize+" "+this.fontFamily;e.font=f;e.translate(d,b);e.rotate(this.angle);e.fillText(g,c,h);e.restore()}})(jQuery);
|
||
</script> <script type="text/javascript">
|
||
|
||
(function(a){a.jqplot.CategoryAxisRenderer=function(b){a.jqplot.LinearAxisRenderer.call(this);this.sortMergedLabels=false};a.jqplot.CategoryAxisRenderer.prototype=new a.jqplot.LinearAxisRenderer();a.jqplot.CategoryAxisRenderer.prototype.constructor=a.jqplot.CategoryAxisRenderer;a.jqplot.CategoryAxisRenderer.prototype.init=function(e){this.groups=1;this.groupLabels=[];this._groupLabels=[];this._grouped=false;this._barsPerGroup=null;this.reverse=false;a.extend(true,this,{tickOptions:{formatString:"%d"}},e);var b=this._dataBounds;for(var f=0;f<this._series.length;f++){var g=this._series[f];if(g.groups){this.groups=g.groups}var h=g.data;for(var c=0;c<h.length;c++){if(this.name=="xaxis"||this.name=="x2axis"){if(h[c][0]<b.min||b.min==null){b.min=h[c][0]}if(h[c][0]>b.max||b.max==null){b.max=h[c][0]}}else{if(h[c][1]<b.min||b.min==null){b.min=h[c][1]}if(h[c][1]>b.max||b.max==null){b.max=h[c][1]}}}}if(this.groupLabels.length){this.groups=this.groupLabels.length}};a.jqplot.CategoryAxisRenderer.prototype.createTicks=function(){var D=this._ticks;var z=this.ticks;var F=this.name;var C=this._dataBounds;var v,A;var q,w;var d,c;var b,x;if(z.length){if(this.groups>1&&!this._grouped){var r=z.length;var p=parseInt(r/this.groups,10);var e=0;for(var x=p;x<r;x+=p){z.splice(x+e,0," ");e++}this._grouped=true}this.min=0.5;this.max=z.length+0.5;var m=this.max-this.min;this.numberTicks=2*z.length+1;for(x=0;x<z.length;x++){b=this.min+2*x*m/(this.numberTicks-1);var h=new this.tickRenderer(this.tickOptions);h.showLabel=false;h.setTick(b,this.name);this._ticks.push(h);var h=new this.tickRenderer(this.tickOptions);h.label=z[x];h.showMark=false;h.showGridline=false;h.setTick(b+0.5,this.name);this._ticks.push(h)}var h=new this.tickRenderer(this.tickOptions);h.showLabel=false;h.setTick(b+1,this.name);this._ticks.push(h)}else{if(F=="xaxis"||F=="x2axis"){v=this._plotDimensions.width}else{v=this._plotDimensions.height}if(this.min!=null&&this.max!=null&&this.numberTicks!=null){this.tickInterval=null}if(this.min!=null&&this.max!=null&&this.tickInterval!=null){if(parseInt((this.max-this.min)/this.tickInterval,10)!=(this.max-this.min)/this.tickInterval){this.tickInterval=null}}var y=[];var B=0;var q=0.5;var w,E;var f=false;for(var x=0;x<this._series.length;x++){var k=this._series[x];for(var u=0;u<k.data.length;u++){if(this.name=="xaxis"||this.name=="x2axis"){E=k.data[u][0]}else{E=k.data[u][1]}if(a.inArray(E,y)==-1){f=true;B+=1;y.push(E)}}}if(f&&this.sortMergedLabels){if(typeof y[0]=="string"){y.sort()}else{y.sort(function(j,i){return j-i})}}this.ticks=y;for(var x=0;x<this._series.length;x++){var k=this._series[x];for(var u=0;u<k.data.length;u++){if(this.name=="xaxis"||this.name=="x2axis"){E=k.data[u][0]}else{E=k.data[u][1]}var n=a.inArray(E,y)+1;if(this.name=="xaxis"||this.name=="x2axis"){k.data[u][0]=n}else{k.data[u][1]=n}}}if(this.groups>1&&!this._grouped){var r=y.length;var p=parseInt(r/this.groups,10);var e=0;for(var x=p;x<r;x+=p+1){y[x]=" "}this._grouped=true}w=B+0.5;if(this.numberTicks==null){this.numberTicks=2*B+1}var m=w-q;this.min=q;this.max=w;var o=0;var g=parseInt(3+v/10,10);var p=parseInt(B/g,10);if(this.tickInterval==null){this.tickInterval=m/(this.numberTicks-1)}for(var x=0;x<this.numberTicks;x++){b=this.min+x*this.tickInterval;var h=new this.tickRenderer(this.tickOptions);if(x/2==parseInt(x/2,10)){h.showLabel=false;h.showMark=true}else{if(p>0&&o<p){h.showLabel=false;o+=1}else{h.showLabel=true;o=0}h.label=h.formatter(h.formatString,y[(x-1)/2]);h.showMark=false;h.showGridline=false}h.setTick(b,this.name);this._ticks.push(h)}}};a.jqplot.CategoryAxisRenderer.prototype.draw=function(b,j){if(this.show){this.renderer.createTicks.call(this);var h=0;var c;if(this._elem){this._elem.emptyForce()}this._elem=this._elem||a('<div class="jqplot-axis jqplot-'+this.name+'" style="position:absolute;"></div>');if(this.name=="xaxis"||this.name=="x2axis"){this._elem.width(this._plotDimensions.width)}else{this._elem.height(this._plotDimensions.height)}this.labelOptions.axis=this.name;this._label=new this.labelRenderer(this.labelOptions);if(this._label.show){var g=this._label.draw(b,j);g.appendTo(this._elem)}var f=this._ticks;for(var e=0;e<f.length;e++){var d=f[e];if(d.showLabel&&(!d.isMinorTick||this.showMinorTicks)){var g=d.draw(b,j);g.appendTo(this._elem)}}this._groupLabels=[];for(var e=0;e<this.groupLabels.length;e++){var g=a('<div style="position:absolute;" class="jqplot-'+this.name+'-groupLabel"></div>');g.html(this.groupLabels[e]);this._groupLabels.push(g);g.appendTo(this._elem)}}return this._elem};a.jqplot.CategoryAxisRenderer.prototype.set=function(){var e=0;var m;var k=0;var f=0;var d=(this._label==null)?false:this._label.show;if(this.show){var n=this._ticks;for(var c=0;c<n.length;c++){var g=n[c];if(g.showLabel&&(!g.isMinorTick||this.showMinorTicks)){if(this.name=="xaxis"||this.name=="x2axis"){m=g._elem.outerHeight(true)}else{m=g._elem.outerWidth(true)}if(m>e){e=m}}}var j=0;for(var c=0;c<this._groupLabels.length;c++){var b=this._groupLabels[c];if(this.name=="xaxis"||this.name=="x2axis"){m=b.outerHeight(true)}else{m=b.outerWidth(true)}if(m>j){j=m}}if(d){k=this._label._elem.outerWidth(true);f=this._label._elem.outerHeight(true)}if(this.name=="xaxis"){e+=j+f;this._elem.css({height:e+"px",left:"0px",bottom:"0px"})}else{if(this.name=="x2axis"){e+=j+f;this._elem.css({height:e+"px",left:"0px",top:"0px"})}else{if(this.name=="yaxis"){e+=j+k;this._elem.css({width:e+"px",left:"0px",top:"0px"});if(d&&this._label.constructor==a.jqplot.AxisLabelRenderer){this._label._elem.css("width",k+"px")}}else{e+=j+k;this._elem.css({width:e+"px",right:"0px",top:"0px"});if(d&&this._label.constructor==a.jqplot.AxisLabelRenderer){this._label._elem.css("width",k+"px")}}}}}};a.jqplot.CategoryAxisRenderer.prototype.pack=function(e,c){var C=this._ticks;var v=this.max;var s=this.min;var n=c.max;var l=c.min;var q=(this._label==null)?false:this._label.show;var x;for(var r in e){this._elem.css(r,e[r])}this._offsets=c;var g=n-l;var k=v-s;if(!this.reverse){this.u2p=function(h){return(h-s)*g/k+l};this.p2u=function(h){return(h-l)*k/g+s};if(this.name=="xaxis"||this.name=="x2axis"){this.series_u2p=function(h){return(h-s)*g/k};this.series_p2u=function(h){return h*k/g+s}}else{this.series_u2p=function(h){return(h-v)*g/k};this.series_p2u=function(h){return h*k/g+v}}}else{this.u2p=function(h){return l+(v-h)*g/k};this.p2u=function(h){return s+(h-l)*k/g};if(this.name=="xaxis"||this.name=="x2axis"){this.series_u2p=function(h){return(v-h)*g/k};this.series_p2u=function(h){return h*k/g+v}}else{this.series_u2p=function(h){return(s-h)*g/k};this.series_p2u=function(h){return h*k/g+s}}}if(this.show){if(this.name=="xaxis"||this.name=="x2axis"){for(x=0;x<C.length;x++){var o=C[x];if(o.show&&o.showLabel){var b;if(o.constructor==a.jqplot.CanvasAxisTickRenderer&&o.angle){var A=(this.name=="xaxis")?1:-1;switch(o.labelPosition){case"auto":if(A*o.angle<0){b=-o.getWidth()+o._textRenderer.height*Math.sin(-o._textRenderer.angle)/2}else{b=-o._textRenderer.height*Math.sin(o._textRenderer.angle)/2}break;case"end":b=-o.getWidth()+o._textRenderer.height*Math.sin(-o._textRenderer.angle)/2;break;case"start":b=-o._textRenderer.height*Math.sin(o._textRenderer.angle)/2;break;case"middle":b=-o.getWidth()/2+o._textRenderer.height*Math.sin(-o._textRenderer.angle)/2;break;default:b=-o.getWidth()/2+o._textRenderer.height*Math.sin(-o._textRenderer.angle)/2;break}}else{b=-o.getWidth()/2}var D=this.u2p(o.value)+b+"px";o._elem.css("left",D);o.pack()}}var z=["bottom",0];if(q){var m=this._label._elem.outerWidth(true);this._label._elem.css("left",l+g/2-m/2+"px");if(this.name=="xaxis"){this._label._elem.css("bottom","0px");z=["bottom",this._label._elem.outerHeight(true)]}else{this._label._elem.css("top","0px");z=["top",this._label._elem.outerHeight(true)]}this._label.pack()}var d=parseInt(this._ticks.length/this.groups,10)+1;for(x=0;x<this._groupLabels.length;x++){var B=0;var f=0;for(var u=x*d;u<(x+1)*d;u++){if(u>=this._ticks.length-1){continue}if(this._ticks[u]._elem&&this._ticks[u].label!=" "){var o=this._ticks[u]._elem;var r=o.position();B+=r.left+o.outerWidth(true)/2;f++}}B=B/f;this._groupLabels[x].css({left:(B-this._groupLabels[x].outerWidth(true)/2)});this._groupLabels[x].css(z[0],z[1])}}else{for(x=0;x<C.length;x++){var o=C[x];if(o.show&&o.showLabel){var b;if(o.constructor==a.jqplot.CanvasAxisTickRenderer&&o.angle){var A=(this.name=="yaxis")?1:-1;switch(o.labelPosition){case"auto":case"end":if(A*o.angle<0){b=-o._textRenderer.height*Math.cos(-o._textRenderer.angle)/2}else{b=-o.getHeight()+o._textRenderer.height*Math.cos(o._textRenderer.angle)/2}break;case"start":if(o.angle>0){b=-o._textRenderer.height*Math.cos(-o._textRenderer.angle)/2}else{b=-o.getHeight()+o._textRenderer.height*Math.cos(o._textRenderer.angle)/2}break;case"middle":b=-o.getHeight()/2;break;default:b=-o.getHeight()/2;break}}else{b=-o.getHeight()/2}var D=this.u2p(o.value)+b+"px";o._elem.css("top",D);o.pack()}}var z=["left",0];if(q){var y=this._label._elem.outerHeight(true);this._label._elem.css("top",n-g/2-y/2+"px");if(this.name=="yaxis"){this._label._elem.css("left","0px");z=["left",this._label._elem.outerWidth(true)]}else{this._label._elem.css("right","0px");z=["right",this._label._elem.outerWidth(true)]}this._label.pack()}var d=parseInt(this._ticks.length/this.groups,10)+1;for(x=0;x<this._groupLabels.length;x++){var B=0;var f=0;for(var u=x*d;u<(x+1)*d;u++){if(u>=this._ticks.length-1){continue}if(this._ticks[u]._elem&&this._ticks[u].label!=" "){var o=this._ticks[u]._elem;var r=o.position();B+=r.top+o.outerHeight()/2;f++}}B=B/f;this._groupLabels[x].css({top:B-this._groupLabels[x].outerHeight()/2});this._groupLabels[x].css(z[0],z[1])}}}}})(jQuery);
|
||
</script> <script type="text/javascript">
|
||
|
||
(function(a){a.jqplot.CanvasAxisTickRenderer=function(b){this.mark="outside";this.showMark=true;this.showGridline=true;this.isMinorTick=false;this.angle=0;this.markSize=4;this.show=true;this.showLabel=true;this.labelPosition="auto";this.label="";this.value=null;this._styles={};this.formatter=a.jqplot.DefaultTickFormatter;this.formatString="";this.prefix="";this.fontFamily='"Trebuchet MS", Arial, Helvetica, sans-serif';this.fontSize="10pt";this.fontWeight="normal";this.fontStretch=1;this.textColor="#666666";this.enableFontSupport=true;this.pt2px=null;this._elem;this._ctx;this._plotWidth;this._plotHeight;this._plotDimensions={height:null,width:null};a.extend(true,this,b);var c={fontSize:this.fontSize,fontWeight:this.fontWeight,fontStretch:this.fontStretch,fillStyle:this.textColor,angle:this.getAngleRad(),fontFamily:this.fontFamily};if(this.pt2px){c.pt2px=this.pt2px}if(this.enableFontSupport){if(a.jqplot.support_canvas_text()){this._textRenderer=new a.jqplot.CanvasFontRenderer(c)}else{this._textRenderer=new a.jqplot.CanvasTextRenderer(c)}}else{this._textRenderer=new a.jqplot.CanvasTextRenderer(c)}};a.jqplot.CanvasAxisTickRenderer.prototype.init=function(b){a.extend(true,this,b);this._textRenderer.init({fontSize:this.fontSize,fontWeight:this.fontWeight,fontStretch:this.fontStretch,fillStyle:this.textColor,angle:this.getAngleRad(),fontFamily:this.fontFamily})};a.jqplot.CanvasAxisTickRenderer.prototype.getWidth=function(d){if(this._elem){return this._elem.outerWidth(true)}else{var f=this._textRenderer;var c=f.getWidth(d);var e=f.getHeight(d);var b=Math.abs(Math.sin(f.angle)*e)+Math.abs(Math.cos(f.angle)*c);return b}};a.jqplot.CanvasAxisTickRenderer.prototype.getHeight=function(d){if(this._elem){return this._elem.outerHeight(true)}else{var f=this._textRenderer;var c=f.getWidth(d);var e=f.getHeight(d);var b=Math.abs(Math.cos(f.angle)*e)+Math.abs(Math.sin(f.angle)*c);return b}};a.jqplot.CanvasAxisTickRenderer.prototype.getTop=function(b){if(this._elem){return this._elem.position().top}else{return null}};a.jqplot.CanvasAxisTickRenderer.prototype.getAngleRad=function(){var b=this.angle*Math.PI/180;return b};a.jqplot.CanvasAxisTickRenderer.prototype.setTick=function(b,d,c){this.value=b;if(c){this.isMinorTick=true}return this};a.jqplot.CanvasAxisTickRenderer.prototype.draw=function(c,f){if(!this.label){this.label=this.prefix+this.formatter(this.formatString,this.value)}if(this._elem){if(a.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==undefined){window.G_vmlCanvasManager.uninitElement(this._elem.get(0))}this._elem.emptyForce();this._elem=null}var e=f.canvasManager.getCanvas();this._textRenderer.setText(this.label,c);var b=this.getWidth(c);var d=this.getHeight(c);e.width=b;e.height=d;e.style.width=b;e.style.height=d;e.style.textAlign="left";e.style.position="absolute";e=f.canvasManager.initCanvas(e);this._elem=a(e);this._elem.css(this._styles);this._elem.addClass("jqplot-"+this.axis+"-tick");e=null;return this._elem};a.jqplot.CanvasAxisTickRenderer.prototype.pack=function(){this._textRenderer.draw(this._elem.get(0).getContext("2d"),this.label)}})(jQuery);
|
||
</script> <script type="text/javascript">
|
||
|
||
(function(d){d.jqplot.eventListenerHooks.push(["jqplotMouseMove",f]);d.jqplot.Highlighter=function(h){this.show=d.jqplot.config.enablePlugins;this.markerRenderer=new d.jqplot.MarkerRenderer({shadow:false});this.showMarker=true;this.lineWidthAdjust=2.5;this.sizeAdjust=5;this.showTooltip=true;this.tooltipLocation="nw";this.fadeTooltip=true;this.tooltipFadeSpeed="fast";this.tooltipOffset=2;this.tooltipAxes="both";this.tooltipSeparator=", ";this.tooltipContentEditor=null;this.useAxesFormatters=true;this.tooltipFormatString="%.5P";this.formatString=null;this.yvalues=1;this.bringSeriesToFront=false;this._tooltipElem;this.isHighlighting=false;this.currentNeighbor=null;d.extend(true,this,h)};var b=["nw","n","ne","e","se","s","sw","w"];var e={nw:0,n:1,ne:2,e:3,se:4,s:5,sw:6,w:7};var c=["se","s","sw","w","nw","n","ne","e"];d.jqplot.Highlighter.init=function(k,j,i){var h=i||{};this.plugins.highlighter=new d.jqplot.Highlighter(h.highlighter)};d.jqplot.Highlighter.parseOptions=function(i,h){this.showHighlight=true};d.jqplot.Highlighter.postPlotDraw=function(){if(this.plugins.highlighter&&this.plugins.highlighter.highlightCanvas){this.plugins.highlighter.highlightCanvas.resetCanvas();this.plugins.highlighter.highlightCanvas=null}if(this.plugins.highlighter&&this.plugins.highlighter._tooltipElem){this.plugins.highlighter._tooltipElem.emptyForce();this.plugins.highlighter._tooltipElem=null}this.plugins.highlighter.highlightCanvas=new d.jqplot.GenericCanvas();this.eventCanvas._elem.before(this.plugins.highlighter.highlightCanvas.createElement(this._gridPadding,"jqplot-highlight-canvas",this._plotDimensions,this));this.plugins.highlighter.highlightCanvas.setContext();var h=document.createElement("div");this.plugins.highlighter._tooltipElem=d(h);h=null;this.plugins.highlighter._tooltipElem.addClass("jqplot-highlighter-tooltip");this.plugins.highlighter._tooltipElem.css({position:"absolute",display:"none"});this.eventCanvas._elem.before(this.plugins.highlighter._tooltipElem)};d.jqplot.preInitHooks.push(d.jqplot.Highlighter.init);d.jqplot.preParseSeriesOptionsHooks.push(d.jqplot.Highlighter.parseOptions);d.jqplot.postDrawHooks.push(d.jqplot.Highlighter.postPlotDraw);function a(m,o){var j=m.plugins.highlighter;var p=m.series[o.seriesIndex];var h=p.markerRenderer;var i=j.markerRenderer;i.style=h.style;i.lineWidth=h.lineWidth+j.lineWidthAdjust;i.size=h.size+j.sizeAdjust;var l=d.jqplot.getColorComponents(h.color);var n=[l[0],l[1],l[2]];var k=(l[3]>=0.6)?l[3]*0.6:l[3]*(2-l[3]);i.color="rgba("+n[0]+","+n[1]+","+n[2]+","+k+")";i.init();i.draw(p.gridData[o.pointIndex][0],p.gridData[o.pointIndex][1],j.highlightCanvas._ctx)}function g(A,q,m){var k=A.plugins.highlighter;var D=k._tooltipElem;var r=q.highlighter||{};var t=d.extend(true,{},k,r);if(t.useAxesFormatters){var w=q._xaxis._ticks[0].formatter;var h=q._yaxis._ticks[0].formatter;var E=q._xaxis._ticks[0].formatString;var s=q._yaxis._ticks[0].formatString;var z;var u=w(E,m.data[0]);var l=[];for(var B=1;B<t.yvalues+1;B++){l.push(h(s,m.data[B]))}if(typeof t.formatString==="string"){switch(t.tooltipAxes){case"both":case"xy":l.unshift(u);l.unshift(t.formatString);z=d.jqplot.sprintf.apply(d.jqplot.sprintf,l);break;case"yx":l.push(u);l.unshift(t.formatString);z=d.jqplot.sprintf.apply(d.jqplot.sprintf,l);break;case"x":z=d.jqplot.sprintf.apply(d.jqplot.sprintf,[t.formatString,u]);break;case"y":l.unshift(t.formatString);z=d.jqplot.sprintf.apply(d.jqplot.sprintf,l);break;default:l.unshift(u);l.unshift(t.formatString);z=d.jqplot.sprintf.apply(d.jqplot.sprintf,l);break}}else{switch(t.tooltipAxes){case"both":case"xy":z=u;for(var B=0;B<l.length;B++){z+=t.tooltipSeparator+l[B]}break;case"yx":z="";for(var B=0;B<l.length;B++){z+=l[B]+t.tooltipSeparator}z+=u;break;case"x":z=u;break;case"y":z=l.join(t.tooltipSeparator);break;default:z=u;for(var B=0;B<l.length;B++){z+=t.tooltipSeparator+l[B]}break}}}else{var z;if(typeof t.formatString==="string"){z=d.jqplot.sprintf.apply(d.jqplot.sprintf,[t.formatString].concat(m.data))}else{if(t.tooltipAxes=="both"||t.tooltipAxes=="xy"){z=d.jqplot.sprintf(t.tooltipFormatString,m.data[0])+t.tooltipSeparator+d.jqplot.sprintf(t.tooltipFormatString,m.data[1])}else{if(t.tooltipAxes=="yx"){z=d.jqplot.sprintf(t.tooltipFormatString,m.data[1])+t.tooltipSeparator+d.jqplot.sprintf(t.tooltipFormatString,m.data[0])}else{if(t.tooltipAxes=="x"){z=d.jqplot.sprintf(t.tooltipFormatString,m.data[0])}else{if(t.tooltipAxes=="y"){z=d.jqplot.sprintf(t.tooltipFormatString,m.data[1])}}}}}}if(d.isFunction(t.tooltipContentEditor)){z=t.tooltipContentEditor(z,m.seriesIndex,m.pointIndex,A)}D.html(z);var C={x:m.gridData[0],y:m.gridData[1]};var v=0;var j=0.707;if(q.markerRenderer.show==true){v=(q.markerRenderer.size+t.sizeAdjust)/2}var o=b;if(q.fillToZero&&q.fill&&m.data[1]<0){o=c}switch(o[e[t.tooltipLocation]]){case"nw":var p=C.x+A._gridPadding.left-D.outerWidth(true)-t.tooltipOffset-j*v;var n=C.y+A._gridPadding.top-t.tooltipOffset-D.outerHeight(true)-j*v;break;case"n":var p=C.x+A._gridPadding.left-D.outerWidth(true)/2;var n=C.y+A._gridPadding.top-t.tooltipOffset-D.outerHeight(true)-v;break;case"ne":var p=C.x+A._gridPadding.left+t.tooltipOffset+j*v;var n=C.y+A._gridPadding.top-t.tooltipOffset-D.outerHeight(true)-j*v;break;case"e":var p=C.x+A._gridPadding.left+t.tooltipOffset+v;var n=C.y+A._gridPadding.top-D.outerHeight(true)/2;break;case"se":var p=C.x+A._gridPadding.left+t.tooltipOffset+j*v;var n=C.y+A._gridPadding.top+t.tooltipOffset+j*v;break;case"s":var p=C.x+A._gridPadding.left-D.outerWidth(true)/2;var n=C.y+A._gridPadding.top+t.tooltipOffset+v;break;case"sw":var p=C.x+A._gridPadding.left-D.outerWidth(true)-t.tooltipOffset-j*v;var n=C.y+A._gridPadding.top+t.tooltipOffset+j*v;break;case"w":var p=C.x+A._gridPadding.left-D.outerWidth(true)-t.tooltipOffset-v;var n=C.y+A._gridPadding.top-D.outerHeight(true)/2;break;default:var p=C.x+A._gridPadding.left-D.outerWidth(true)-t.tooltipOffset-j*v;var n=C.y+A._gridPadding.top-t.tooltipOffset-D.outerHeight(true)-j*v;break}D.css("left",p);D.css("top",n);if(t.fadeTooltip){D.stop(true,true).fadeIn(t.tooltipFadeSpeed)}else{D.show()}D=null}function f(n,j,i,p,l){var h=l.plugins.highlighter;var m=l.plugins.cursor;if(h.show){if(p==null&&h.isHighlighting){var o=jQuery.Event("jqplotHighlighterUnhighlight");l.target.trigger(o);var q=h.highlightCanvas._ctx;q.clearRect(0,0,q.canvas.width,q.canvas.height);if(h.fadeTooltip){h._tooltipElem.fadeOut(h.tooltipFadeSpeed)}else{h._tooltipElem.hide()}if(h.bringSeriesToFront){l.restorePreviousSeriesOrder()}h.isHighlighting=false;h.currentNeighbor=null;q=null}else{if(p!=null&&l.series[p.seriesIndex].showHighlight&&!h.isHighlighting){var o=jQuery.Event("jqplotHighlighterHighlight");o.which=n.which;o.pageX=n.pageX;o.pageY=n.pageY;var k=[p.seriesIndex,p.pointIndex,p.data,l];l.target.trigger(o,k);h.isHighlighting=true;h.currentNeighbor=p;if(h.showMarker){a(l,p)}if(l.series[p.seriesIndex].show&&h.showTooltip&&(!m||!m._zoom.started)){g(l,l.series[p.seriesIndex],p)}if(h.bringSeriesToFront){l.moveSeriesToFront(p.seriesIndex)}}else{if(p!=null&&h.isHighlighting&&h.currentNeighbor!=p){if(l.series[p.seriesIndex].showHighlight){var q=h.highlightCanvas._ctx;q.clearRect(0,0,q.canvas.width,q.canvas.height);h.isHighlighting=true;h.currentNeighbor=p;if(h.showMarker){a(l,p)}if(l.series[p.seriesIndex].show&&h.showTooltip&&(!m||!m._zoom.started)){g(l,l.series[p.seriesIndex],p)}if(h.bringSeriesToFront){l.moveSeriesToFront(p.seriesIndex)}}}}}}}})(jQuery);
|
||
</script> <script type="text/javascript">
|
||
|
||
(function(d){d.jqplot.eventListenerHooks.push(["jqplotMouseMove",f]);d.jqplot.Highlighter=function(h){this.show=d.jqplot.config.enablePlugins;this.markerRenderer=new d.jqplot.MarkerRenderer({shadow:false});this.showMarker=true;this.lineWidthAdjust=2.5;this.sizeAdjust=5;this.showTooltip=true;this.tooltipLocation="nw";this.fadeTooltip=true;this.tooltipFadeSpeed="fast";this.tooltipOffset=2;this.tooltipAxes="both";this.tooltipSeparator=", ";this.tooltipContentEditor=null;this.useAxesFormatters=true;this.tooltipFormatString="%.5P";this.formatString=null;this.yvalues=1;this.bringSeriesToFront=false;this._tooltipElem;this.isHighlighting=false;this.currentNeighbor=null;d.extend(true,this,h)};var b=["nw","n","ne","e","se","s","sw","w"];var e={nw:0,n:1,ne:2,e:3,se:4,s:5,sw:6,w:7};var c=["se","s","sw","w","nw","n","ne","e"];d.jqplot.Highlighter.init=function(k,j,i){var h=i||{};this.plugins.highlighter=new d.jqplot.Highlighter(h.highlighter)};d.jqplot.Highlighter.parseOptions=function(i,h){this.showHighlight=true};d.jqplot.Highlighter.postPlotDraw=function(){if(this.plugins.highlighter&&this.plugins.highlighter.highlightCanvas){this.plugins.highlighter.highlightCanvas.resetCanvas();this.plugins.highlighter.highlightCanvas=null}if(this.plugins.highlighter&&this.plugins.highlighter._tooltipElem){this.plugins.highlighter._tooltipElem.emptyForce();this.plugins.highlighter._tooltipElem=null}this.plugins.highlighter.highlightCanvas=new d.jqplot.GenericCanvas();this.eventCanvas._elem.before(this.plugins.highlighter.highlightCanvas.createElement(this._gridPadding,"jqplot-highlight-canvas",this._plotDimensions,this));this.plugins.highlighter.highlightCanvas.setContext();var h=document.createElement("div");this.plugins.highlighter._tooltipElem=d(h);h=null;this.plugins.highlighter._tooltipElem.addClass("jqplot-highlighter-tooltip");this.plugins.highlighter._tooltipElem.css({position:"absolute",display:"none"});this.eventCanvas._elem.before(this.plugins.highlighter._tooltipElem)};d.jqplot.preInitHooks.push(d.jqplot.Highlighter.init);d.jqplot.preParseSeriesOptionsHooks.push(d.jqplot.Highlighter.parseOptions);d.jqplot.postDrawHooks.push(d.jqplot.Highlighter.postPlotDraw);function a(m,o){var j=m.plugins.highlighter;var p=m.series[o.seriesIndex];var h=p.markerRenderer;var i=j.markerRenderer;i.style=h.style;i.lineWidth=h.lineWidth+j.lineWidthAdjust;i.size=h.size+j.sizeAdjust;var l=d.jqplot.getColorComponents(h.color);var n=[l[0],l[1],l[2]];var k=(l[3]>=0.6)?l[3]*0.6:l[3]*(2-l[3]);i.color="rgba("+n[0]+","+n[1]+","+n[2]+","+k+")";i.init();i.draw(p.gridData[o.pointIndex][0],p.gridData[o.pointIndex][1],j.highlightCanvas._ctx)}function g(A,q,m){var k=A.plugins.highlighter;var D=k._tooltipElem;var r=q.highlighter||{};var t=d.extend(true,{},k,r);if(t.useAxesFormatters){var w=q._xaxis._ticks[0].formatter;var h=q._yaxis._ticks[0].formatter;var E=q._xaxis._ticks[0].formatString;var s=q._yaxis._ticks[0].formatString;var z;var u=w(E,m.data[0]);var l=[];for(var B=1;B<t.yvalues+1;B++){l.push(h(s,m.data[B]))}if(typeof t.formatString==="string"){switch(t.tooltipAxes){case"both":case"xy":l.unshift(u);l.unshift(t.formatString);z=d.jqplot.sprintf.apply(d.jqplot.sprintf,l);break;case"yx":l.push(u);l.unshift(t.formatString);z=d.jqplot.sprintf.apply(d.jqplot.sprintf,l);break;case"x":z=d.jqplot.sprintf.apply(d.jqplot.sprintf,[t.formatString,u]);break;case"y":l.unshift(t.formatString);z=d.jqplot.sprintf.apply(d.jqplot.sprintf,l);break;default:l.unshift(u);l.unshift(t.formatString);z=d.jqplot.sprintf.apply(d.jqplot.sprintf,l);break}}else{switch(t.tooltipAxes){case"both":case"xy":z=u;for(var B=0;B<l.length;B++){z+=t.tooltipSeparator+l[B]}break;case"yx":z="";for(var B=0;B<l.length;B++){z+=l[B]+t.tooltipSeparator}z+=u;break;case"x":z=u;break;case"y":z=l.join(t.tooltipSeparator);break;default:z=u;for(var B=0;B<l.length;B++){z+=t.tooltipSeparator+l[B]}break}}}else{var z;if(typeof t.formatString==="string"){z=d.jqplot.sprintf.apply(d.jqplot.sprintf,[t.formatString].concat(m.data))}else{if(t.tooltipAxes=="both"||t.tooltipAxes=="xy"){z=d.jqplot.sprintf(t.tooltipFormatString,m.data[0])+t.tooltipSeparator+d.jqplot.sprintf(t.tooltipFormatString,m.data[1])}else{if(t.tooltipAxes=="yx"){z=d.jqplot.sprintf(t.tooltipFormatString,m.data[1])+t.tooltipSeparator+d.jqplot.sprintf(t.tooltipFormatString,m.data[0])}else{if(t.tooltipAxes=="x"){z=d.jqplot.sprintf(t.tooltipFormatString,m.data[0])}else{if(t.tooltipAxes=="y"){z=d.jqplot.sprintf(t.tooltipFormatString,m.data[1])}}}}}}if(d.isFunction(t.tooltipContentEditor)){z=t.tooltipContentEditor(z,m.seriesIndex,m.pointIndex,A)}D.html(z);var C={x:m.gridData[0],y:m.gridData[1]};var v=0;var j=0.707;if(q.markerRenderer.show==true){v=(q.markerRenderer.size+t.sizeAdjust)/2}var o=b;if(q.fillToZero&&q.fill&&m.data[1]<0){o=c}switch(o[e[t.tooltipLocation]]){case"nw":var p=C.x+A._gridPadding.left-D.outerWidth(true)-t.tooltipOffset-j*v;var n=C.y+A._gridPadding.top-t.tooltipOffset-D.outerHeight(true)-j*v;break;case"n":var p=C.x+A._gridPadding.left-D.outerWidth(true)/2;var n=C.y+A._gridPadding.top-t.tooltipOffset-D.outerHeight(true)-v;break;case"ne":var p=C.x+A._gridPadding.left+t.tooltipOffset+j*v;var n=C.y+A._gridPadding.top-t.tooltipOffset-D.outerHeight(true)-j*v;break;case"e":var p=C.x+A._gridPadding.left+t.tooltipOffset+v;var n=C.y+A._gridPadding.top-D.outerHeight(true)/2;break;case"se":var p=C.x+A._gridPadding.left+t.tooltipOffset+j*v;var n=C.y+A._gridPadding.top+t.tooltipOffset+j*v;break;case"s":var p=C.x+A._gridPadding.left-D.outerWidth(true)/2;var n=C.y+A._gridPadding.top+t.tooltipOffset+v;break;case"sw":var p=C.x+A._gridPadding.left-D.outerWidth(true)-t.tooltipOffset-j*v;var n=C.y+A._gridPadding.top+t.tooltipOffset+j*v;break;case"w":var p=C.x+A._gridPadding.left-D.outerWidth(true)-t.tooltipOffset-v;var n=C.y+A._gridPadding.top-D.outerHeight(true)/2;break;default:var p=C.x+A._gridPadding.left-D.outerWidth(true)-t.tooltipOffset-j*v;var n=C.y+A._gridPadding.top-t.tooltipOffset-D.outerHeight(true)-j*v;break}D.css("left",p);D.css("top",n);if(t.fadeTooltip){D.stop(true,true).fadeIn(t.tooltipFadeSpeed)}else{D.show()}D=null}function f(n,j,i,p,l){var h=l.plugins.highlighter;var m=l.plugins.cursor;if(h.show){if(p==null&&h.isHighlighting){var o=jQuery.Event("jqplotHighlighterUnhighlight");l.target.trigger(o);var q=h.highlightCanvas._ctx;q.clearRect(0,0,q.canvas.width,q.canvas.height);if(h.fadeTooltip){h._tooltipElem.fadeOut(h.tooltipFadeSpeed)}else{h._tooltipElem.hide()}if(h.bringSeriesToFront){l.restorePreviousSeriesOrder()}h.isHighlighting=false;h.currentNeighbor=null;q=null}else{if(p!=null&&l.series[p.seriesIndex].showHighlight&&!h.isHighlighting){var o=jQuery.Event("jqplotHighlighterHighlight");o.which=n.which;o.pageX=n.pageX;o.pageY=n.pageY;var k=[p.seriesIndex,p.pointIndex,p.data,l];l.target.trigger(o,k);h.isHighlighting=true;h.currentNeighbor=p;if(h.showMarker){a(l,p)}if(l.series[p.seriesIndex].show&&h.showTooltip&&(!m||!m._zoom.started)){g(l,l.series[p.seriesIndex],p)}if(h.bringSeriesToFront){l.moveSeriesToFront(p.seriesIndex)}}else{if(p!=null&&h.isHighlighting&&h.currentNeighbor!=p){if(l.series[p.seriesIndex].showHighlight){var q=h.highlightCanvas._ctx;q.clearRect(0,0,q.canvas.width,q.canvas.height);h.isHighlighting=true;h.currentNeighbor=p;if(h.showMarker){a(l,p)}if(l.series[p.seriesIndex].show&&h.showTooltip&&(!m||!m._zoom.started)){g(l,l.series[p.seriesIndex],p)}if(h.bringSeriesToFront){l.moveSeriesToFront(p.seriesIndex)}}}}}}}})(jQuery);
|
||
</script> <script type="text/javascript">
|
||
|
||
(function(j){j.jqplot.Cursor=function(q){this.style="crosshair";this.previousCursor="auto";this.show=j.jqplot.config.enablePlugins;this.showTooltip=true;this.followMouse=false;this.tooltipLocation="se";this.tooltipOffset=6;this.showTooltipGridPosition=false;this.showTooltipUnitPosition=true;this.showTooltipDataPosition=false;this.tooltipFormatString="%.4P, %.4P";this.useAxesFormatters=true;this.tooltipAxisGroups=[];this.zoom=false;this.zoomProxy=false;this.zoomTarget=false;this.looseZoom=true;this.clickReset=false;this.dblClickReset=true;this.showVerticalLine=false;this.showHorizontalLine=false;this.constrainZoomTo="none";this.shapeRenderer=new j.jqplot.ShapeRenderer();this._zoom={start:[],end:[],started:false,zooming:false,isZoomed:false,axes:{start:{},end:{}},gridpos:{},datapos:{}};this._tooltipElem;this.zoomCanvas;this.cursorCanvas;this.intersectionThreshold=2;this.showCursorLegend=false;this.cursorLegendFormatString=j.jqplot.Cursor.cursorLegendFormatString;this._oldHandlers={onselectstart:null,ondrag:null,onmousedown:null};this.constrainOutsideZoom=true;this.showTooltipOutsideZoom=false;this.onGrid=false;j.extend(true,this,q)};j.jqplot.Cursor.cursorLegendFormatString="%s x:%s, y:%s";j.jqplot.Cursor.init=function(t,s,r){var q=r||{};this.plugins.cursor=new j.jqplot.Cursor(q.cursor);var u=this.plugins.cursor;if(u.show){j.jqplot.eventListenerHooks.push(["jqplotMouseEnter",b]);j.jqplot.eventListenerHooks.push(["jqplotMouseLeave",f]);j.jqplot.eventListenerHooks.push(["jqplotMouseMove",i]);if(u.showCursorLegend){r.legend=r.legend||{};r.legend.renderer=j.jqplot.CursorLegendRenderer;r.legend.formatString=this.plugins.cursor.cursorLegendFormatString;r.legend.show=true}if(u.zoom){j.jqplot.eventListenerHooks.push(["jqplotMouseDown",a]);if(u.clickReset){j.jqplot.eventListenerHooks.push(["jqplotClick",k])}if(u.dblClickReset){j.jqplot.eventListenerHooks.push(["jqplotDblClick",c])}}this.resetZoom=function(){var x=this.axes;if(!u.zoomProxy){for(var w in x){x[w].reset();x[w]._ticks=[];if(u._zoom.axes[w]!==undefined){x[w]._autoFormatString=u._zoom.axes[w].tickFormatString}}this.redraw()}else{var v=this.plugins.cursor.zoomCanvas._ctx;v.clearRect(0,0,v.canvas.width,v.canvas.height);v=null}this.plugins.cursor._zoom.isZoomed=false;this.target.trigger("jqplotResetZoom",[this,this.plugins.cursor])};if(u.showTooltipDataPosition){u.showTooltipUnitPosition=false;u.showTooltipGridPosition=false;if(q.cursor.tooltipFormatString==undefined){u.tooltipFormatString=j.jqplot.Cursor.cursorLegendFormatString}}}};j.jqplot.Cursor.postDraw=function(){var x=this.plugins.cursor;if(x.zoomCanvas){x.zoomCanvas.resetCanvas();x.zoomCanvas=null}if(x.cursorCanvas){x.cursorCanvas.resetCanvas();x.cursorCanvas=null}if(x._tooltipElem){x._tooltipElem.emptyForce();x._tooltipElem=null}if(x.zoom){x.zoomCanvas=new j.jqplot.GenericCanvas();this.eventCanvas._elem.before(x.zoomCanvas.createElement(this._gridPadding,"jqplot-zoom-canvas",this._plotDimensions,this));x.zoomCanvas.setContext()}var v=document.createElement("div");x._tooltipElem=j(v);v=null;x._tooltipElem.addClass("jqplot-cursor-tooltip");x._tooltipElem.css({position:"absolute",display:"none"});if(x.zoomCanvas){x.zoomCanvas._elem.before(x._tooltipElem)}else{this.eventCanvas._elem.before(x._tooltipElem)}if(x.showVerticalLine||x.showHorizontalLine){x.cursorCanvas=new j.jqplot.GenericCanvas();this.eventCanvas._elem.before(x.cursorCanvas.createElement(this._gridPadding,"jqplot-cursor-canvas",this._plotDimensions,this));x.cursorCanvas.setContext()}if(x.showTooltipUnitPosition){if(x.tooltipAxisGroups.length===0){var t=this.series;var u;var q=[];for(var r=0;r<t.length;r++){u=t[r];var w=u.xaxis+","+u.yaxis;if(j.inArray(w,q)==-1){q.push(w)}}for(var r=0;r<q.length;r++){x.tooltipAxisGroups.push(q[r].split(","))}}}};j.jqplot.Cursor.zoomProxy=function(v,r){var q=v.plugins.cursor;var u=r.plugins.cursor;q.zoomTarget=true;q.zoom=true;q.style="auto";q.dblClickReset=false;u.zoom=true;u.zoomProxy=true;r.target.bind("jqplotZoom",t);r.target.bind("jqplotResetZoom",s);function t(x,w,z,y,A){q.doZoom(w,z,v,A)}function s(w,x,y){v.resetZoom()}};j.jqplot.Cursor.prototype.resetZoom=function(u,v){var t=u.axes;var s=v._zoom.axes;if(!u.plugins.cursor.zoomProxy&&v._zoom.isZoomed){for(var r in t){t[r].reset();t[r]._ticks=[];t[r]._autoFormatString=s[r].tickFormatString}u.redraw();v._zoom.isZoomed=false}else{var q=v.zoomCanvas._ctx;q.clearRect(0,0,q.canvas.width,q.canvas.height);q=null}u.target.trigger("jqplotResetZoom",[u,v])};j.jqplot.Cursor.resetZoom=function(q){q.resetZoom()};j.jqplot.Cursor.prototype.doZoom=function(G,t,C,u){var I=u;var F=C.axes;var r=I._zoom.axes;var w=r.start;var s=r.end;var B,E,z,D,v,x,q,H,J;var A=C.plugins.cursor.zoomCanvas._ctx;if((I.constrainZoomTo=="none"&&Math.abs(G.x-I._zoom.start[0])>6&&Math.abs(G.y-I._zoom.start[1])>6)||(I.constrainZoomTo=="x"&&Math.abs(G.x-I._zoom.start[0])>6)||(I.constrainZoomTo=="y"&&Math.abs(G.y-I._zoom.start[1])>6)){if(!C.plugins.cursor.zoomProxy){for(var y in t){if(I._zoom.axes[y]==undefined){I._zoom.axes[y]={};I._zoom.axes[y].numberTicks=F[y].numberTicks;I._zoom.axes[y].tickInterval=F[y].tickInterval;I._zoom.axes[y].daTickInterval=F[y].daTickInterval;I._zoom.axes[y].min=F[y].min;I._zoom.axes[y].max=F[y].max;I._zoom.axes[y].tickFormatString=(F[y].tickOptions!=null)?F[y].tickOptions.formatString:""}if((I.constrainZoomTo=="none")||(I.constrainZoomTo=="x"&&y.charAt(0)=="x")||(I.constrainZoomTo=="y"&&y.charAt(0)=="y")){z=t[y];if(z!=null){if(z>w[y]){v=w[y];x=z}else{D=w[y]-z;v=z;x=w[y]}q=F[y];H=null;if(q.alignTicks){if(q.name==="x2axis"&&C.axes.xaxis.show){H=C.axes.xaxis.numberTicks}else{if(q.name.charAt(0)==="y"&&q.name!=="yaxis"&&q.name!=="yMidAxis"&&C.axes.yaxis.show){H=C.axes.yaxis.numberTicks}}}if(this.looseZoom&&(F[y].renderer.constructor===j.jqplot.LinearAxisRenderer||F[y].renderer.constructor===j.jqplot.LogAxisRenderer)){J=j.jqplot.LinearTickGenerator(v,x,q._scalefact,H);if(F[y].tickInset&&J[0]<F[y].min+F[y].tickInset*F[y].tickInterval){J[0]+=J[4];J[2]-=1}if(F[y].tickInset&&J[1]>F[y].max-F[y].tickInset*F[y].tickInterval){J[1]-=J[4];J[2]-=1}if(F[y].renderer.constructor===j.jqplot.LogAxisRenderer&&J[0]<F[y].min){J[0]+=J[4];J[2]-=1}F[y].min=J[0];F[y].max=J[1];F[y]._autoFormatString=J[3];F[y].numberTicks=J[2];F[y].tickInterval=J[4];F[y].daTickInterval=[J[4]/1000,"seconds"]}else{F[y].min=v;F[y].max=x;F[y].tickInterval=null;F[y].numberTicks=null;F[y].daTickInterval=null}F[y]._ticks=[]}}}A.clearRect(0,0,A.canvas.width,A.canvas.height);C.redraw();I._zoom.isZoomed=true;A=null}C.target.trigger("jqplotZoom",[G,t,C,u])}};j.jqplot.preInitHooks.push(j.jqplot.Cursor.init);j.jqplot.postDrawHooks.push(j.jqplot.Cursor.postDraw);function e(G,r,C){var J=C.plugins.cursor;var w="";var N=false;if(J.showTooltipGridPosition){w=G.x+", "+G.y;N=true}if(J.showTooltipUnitPosition){var F;for(var E=0;E<J.tooltipAxisGroups.length;E++){F=J.tooltipAxisGroups[E];if(N){w+="<br />"}if(J.useAxesFormatters){for(var D=0;D<F.length;D++){if(D){w+=", "}var H=C.axes[F[D]]._ticks[0].formatter;var B=C.axes[F[D]]._ticks[0].formatString;w+=H(B,r[F[D]])}}else{w+=j.jqplot.sprintf(J.tooltipFormatString,r[F[0]],r[F[1]])}N=true}}if(J.showTooltipDataPosition){var u=C.series;var M=d(C,G.x,G.y);var N=false;for(var E=0;E<u.length;E++){if(u[E].show){var y=u[E].index;var t=u[E].label.toString();var I=j.inArray(y,M.indices);var z=undefined;var x=undefined;if(I!=-1){var L=M.data[I].data;if(J.useAxesFormatters){var A=u[E]._xaxis._ticks[0].formatter;var q=u[E]._yaxis._ticks[0].formatter;var K=u[E]._xaxis._ticks[0].formatString;var v=u[E]._yaxis._ticks[0].formatString;z=A(K,L[0]);x=q(v,L[1])}else{z=L[0];x=L[1]}if(N){w+="<br />"}w+=j.jqplot.sprintf(J.tooltipFormatString,t,z,x);N=true}}}}J._tooltipElem.html(w)}function g(C,A){var E=A.plugins.cursor;var z=E.cursorCanvas._ctx;z.clearRect(0,0,z.canvas.width,z.canvas.height);if(E.showVerticalLine){E.shapeRenderer.draw(z,[[C.x,0],[C.x,z.canvas.height]])}if(E.showHorizontalLine){E.shapeRenderer.draw(z,[[0,C.y],[z.canvas.width,C.y]])}var G=d(A,C.x,C.y);if(E.showCursorLegend){var r=j(A.targetId+" td.jqplot-cursor-legend-label");for(var B=0;B<r.length;B++){var v=j(r[B]).data("seriesIndex");var t=A.series[v];var s=t.label.toString();var D=j.inArray(v,G.indices);var x=undefined;var w=undefined;if(D!=-1){var H=G.data[D].data;if(E.useAxesFormatters){var y=t._xaxis._ticks[0].formatter;var q=t._yaxis._ticks[0].formatter;var F=t._xaxis._ticks[0].formatString;var u=t._yaxis._ticks[0].formatString;x=y(F,H[0]);w=q(u,H[1])}else{x=H[0];w=H[1]}}if(A.legend.escapeHtml){j(r[B]).text(j.jqplot.sprintf(E.cursorLegendFormatString,s,x,w))}else{j(r[B]).html(j.jqplot.sprintf(E.cursorLegendFormatString,s,x,w))}}}z=null}function d(A,F,E){var B={indices:[],data:[]};var G,w,u,C,v,q,t;var z;var D=A.plugins.cursor;for(var w=0;w<A.series.length;w++){G=A.series[w];q=G.renderer;if(G.show){z=D.intersectionThreshold;if(G.showMarker){z+=G.markerRenderer.size/2}for(var v=0;v<G.gridData.length;v++){t=G.gridData[v];if(D.showVerticalLine){if(Math.abs(F-t[0])<=z){B.indices.push(w);B.data.push({seriesIndex:w,pointIndex:v,gridData:t,data:G.data[v]})}}}}}return B}function n(r,t){var v=t.plugins.cursor;var s=v._tooltipElem;switch(v.tooltipLocation){case"nw":var q=r.x+t._gridPadding.left-s.outerWidth(true)-v.tooltipOffset;var u=r.y+t._gridPadding.top-v.tooltipOffset-s.outerHeight(true);break;case"n":var q=r.x+t._gridPadding.left-s.outerWidth(true)/2;var u=r.y+t._gridPadding.top-v.tooltipOffset-s.outerHeight(true);break;case"ne":var q=r.x+t._gridPadding.left+v.tooltipOffset;var u=r.y+t._gridPadding.top-v.tooltipOffset-s.outerHeight(true);break;case"e":var q=r.x+t._gridPadding.left+v.tooltipOffset;var u=r.y+t._gridPadding.top-s.outerHeight(true)/2;break;case"se":var q=r.x+t._gridPadding.left+v.tooltipOffset;var u=r.y+t._gridPadding.top+v.tooltipOffset;break;case"s":var q=r.x+t._gridPadding.left-s.outerWidth(true)/2;var u=r.y+t._gridPadding.top+v.tooltipOffset;break;case"sw":var q=r.x+t._gridPadding.left-s.outerWidth(true)-v.tooltipOffset;var u=r.y+t._gridPadding.top+v.tooltipOffset;break;case"w":var q=r.x+t._gridPadding.left-s.outerWidth(true)-v.tooltipOffset;var u=r.y+t._gridPadding.top-s.outerHeight(true)/2;break;default:var q=r.x+t._gridPadding.left+v.tooltipOffset;var u=r.y+t._gridPadding.top+v.tooltipOffset;break}s.css("left",q);s.css("top",u);s=null}function m(u){var s=u._gridPadding;var v=u.plugins.cursor;var t=v._tooltipElem;switch(v.tooltipLocation){case"nw":var r=s.left+v.tooltipOffset;var q=s.top+v.tooltipOffset;t.css("left",r);t.css("top",q);break;case"n":var r=(s.left+(u._plotDimensions.width-s.right))/2-t.outerWidth(true)/2;var q=s.top+v.tooltipOffset;t.css("left",r);t.css("top",q);break;case"ne":var r=s.right+v.tooltipOffset;var q=s.top+v.tooltipOffset;t.css({right:r,top:q});break;case"e":var r=s.right+v.tooltipOffset;var q=(s.top+(u._plotDimensions.height-s.bottom))/2-t.outerHeight(true)/2;t.css({right:r,top:q});break;case"se":var r=s.right+v.tooltipOffset;var q=s.bottom+v.tooltipOffset;t.css({right:r,bottom:q});break;case"s":var r=(s.left+(u._plotDimensions.width-s.right))/2-t.outerWidth(true)/2;var q=s.bottom+v.tooltipOffset;t.css({left:r,bottom:q});break;case"sw":var r=s.left+v.tooltipOffset;var q=s.bottom+v.tooltipOffset;t.css({left:r,bottom:q});break;case"w":var r=s.left+v.tooltipOffset;var q=(s.top+(u._plotDimensions.height-s.bottom))/2-t.outerHeight(true)/2;t.css({left:r,top:q});break;default:var r=s.right-v.tooltipOffset;var q=s.bottom+v.tooltipOffset;t.css({right:r,bottom:q});break}t=null}function k(r,q,v,u,t){r.preventDefault();r.stopImmediatePropagation();var w=t.plugins.cursor;if(w.clickReset){w.resetZoom(t,w)}var s=window.getSelection;if(document.selection&&document.selection.empty){document.selection.empty()}else{if(s&&!s().isCollapsed){s().collapse()}}return false}function c(r,q,v,u,t){r.preventDefault();r.stopImmediatePropagation();var w=t.plugins.cursor;if(w.dblClickReset){w.resetZoom(t,w)}var s=window.getSelection;if(document.selection&&document.selection.empty){document.selection.empty()}else{if(s&&!s().isCollapsed){s().collapse()}}return false}function f(w,t,q,z,u){var v=u.plugins.cursor;v.onGrid=false;if(v.show){j(w.target).css("cursor",v.previousCursor);if(v.showTooltip&&!(v._zoom.zooming&&v.showTooltipOutsideZoom&&!v.constrainOutsideZoom)){v._tooltipElem.empty();v._tooltipElem.hide()}if(v.zoom){v._zoom.gridpos=t;v._zoom.datapos=q}if(v.showVerticalLine||v.showHorizontalLine){var B=v.cursorCanvas._ctx;B.clearRect(0,0,B.canvas.width,B.canvas.height);B=null}if(v.showCursorLegend){var A=j(u.targetId+" td.jqplot-cursor-legend-label");for(var s=0;s<A.length;s++){var y=j(A[s]).data("seriesIndex");var r=u.series[y];var x=r.label.toString();if(u.legend.escapeHtml){j(A[s]).text(j.jqplot.sprintf(v.cursorLegendFormatString,x,undefined,undefined))}else{j(A[s]).html(j.jqplot.sprintf(v.cursorLegendFormatString,x,undefined,undefined))}}}}}function b(r,q,u,t,s){var v=s.plugins.cursor;v.onGrid=true;if(v.show){v.previousCursor=r.target.style.cursor;r.target.style.cursor=v.style;if(v.showTooltip){e(q,u,s);if(v.followMouse){n(q,s)}else{m(s)}v._tooltipElem.show()}if(v.showVerticalLine||v.showHorizontalLine){g(q,s)}}}function i(r,q,u,t,s){var v=s.plugins.cursor;if(v.show){if(v.showTooltip){e(q,u,s);if(v.followMouse){n(q,s)}}if(v.showVerticalLine||v.showHorizontalLine){g(q,s)}}}function o(y){var x=y.data.plot;var t=x.eventCanvas._elem.offset();var w={x:y.pageX-t.left,y:y.pageY-t.top};var u={xaxis:null,yaxis:null,x2axis:null,y2axis:null,y3axis:null,y4axis:null,y5axis:null,y6axis:null,y7axis:null,y8axis:null,y9axis:null,yMidAxis:null};var v=["xaxis","yaxis","x2axis","y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis","yMidAxis"];var q=x.axes;var r,s;for(r=11;r>0;r--){s=v[r-1];if(q[s].show){u[s]=q[s].series_p2u(w[s.charAt(0)])}}return{offsets:t,gridPos:w,dataPos:u}}function h(z){var x=z.data.plot;var y=x.plugins.cursor;if(y.show&&y.zoom&&y._zoom.started&&!y.zoomTarget){z.preventDefault();var B=y.zoomCanvas._ctx;var v=o(z);var w=v.gridPos;var t=v.dataPos;y._zoom.gridpos=w;y._zoom.datapos=t;y._zoom.zooming=true;var u=w.x;var s=w.y;var A=B.canvas.height;var q=B.canvas.width;if(y.showTooltip&&!y.onGrid&&y.showTooltipOutsideZoom){e(w,t,x);if(y.followMouse){n(w,x)}}if(y.constrainZoomTo=="x"){y._zoom.end=[u,A]}else{if(y.constrainZoomTo=="y"){y._zoom.end=[q,s]}else{y._zoom.end=[u,s]}}var r=window.getSelection;if(document.selection&&document.selection.empty){document.selection.empty()}else{if(r&&!r().isCollapsed){r().collapse()}}l.call(y);B=null}}function a(w,s,r,x,t){var v=t.plugins.cursor;if(t.plugins.mobile){j(document).one("vmouseup.jqplot_cursor",{plot:t},p)}else{j(document).one("mouseup.jqplot_cursor",{plot:t},p)}var u=t.axes;if(document.onselectstart!=undefined){v._oldHandlers.onselectstart=document.onselectstart;document.onselectstart=function(){return false}}if(document.ondrag!=undefined){v._oldHandlers.ondrag=document.ondrag;document.ondrag=function(){return false}}if(document.onmousedown!=undefined){v._oldHandlers.onmousedown=document.onmousedown;document.onmousedown=function(){return false}}if(v.zoom){if(!v.zoomProxy){var y=v.zoomCanvas._ctx;y.clearRect(0,0,y.canvas.width,y.canvas.height);y=null}if(v.constrainZoomTo=="x"){v._zoom.start=[s.x,0]}else{if(v.constrainZoomTo=="y"){v._zoom.start=[0,s.y]}else{v._zoom.start=[s.x,s.y]}}v._zoom.started=true;for(var q in r){v._zoom.axes.start[q]=r[q]}if(t.plugins.mobile){j(document).bind("vmousemove.jqplotCursor",{plot:t},h)}else{j(document).bind("mousemove.jqplotCursor",{plot:t},h)}}}function p(y){var v=y.data.plot;var x=v.plugins.cursor;if(x.zoom&&x._zoom.zooming&&!x.zoomTarget){var u=x._zoom.gridpos.x;var r=x._zoom.gridpos.y;var t=x._zoom.datapos;var z=x.zoomCanvas._ctx.canvas.height;var q=x.zoomCanvas._ctx.canvas.width;var w=v.axes;if(x.constrainOutsideZoom&&!x.onGrid){if(u<0){u=0}else{if(u>q){u=q}}if(r<0){r=0}else{if(r>z){r=z}}for(var s in t){if(t[s]){if(s.charAt(0)=="x"){t[s]=w[s].series_p2u(u)}else{t[s]=w[s].series_p2u(r)}}}}if(x.constrainZoomTo=="x"){r=z}else{if(x.constrainZoomTo=="y"){u=q}}x._zoom.end=[u,r];x._zoom.gridpos={x:u,y:r};x.doZoom(x._zoom.gridpos,t,v,x)}x._zoom.started=false;x._zoom.zooming=false;j(document).unbind("mousemove.jqplotCursor",h);if(document.onselectstart!=undefined&&x._oldHandlers.onselectstart!=null){document.onselectstart=x._oldHandlers.onselectstart;x._oldHandlers.onselectstart=null}if(document.ondrag!=undefined&&x._oldHandlers.ondrag!=null){document.ondrag=x._oldHandlers.ondrag;x._oldHandlers.ondrag=null}if(document.onmousedown!=undefined&&x._oldHandlers.onmousedown!=null){document.onmousedown=x._oldHandlers.onmousedown;x._oldHandlers.onmousedown=null}}function l(){var y=this._zoom.start;var u=this._zoom.end;var s=this.zoomCanvas._ctx;var r,v,x,q;if(u[0]>y[0]){r=y[0];q=u[0]-y[0]}else{r=u[0];q=y[0]-u[0]}if(u[1]>y[1]){v=y[1];x=u[1]-y[1]}else{v=u[1];x=y[1]-u[1]}s.fillStyle="rgba(0,0,0,0.2)";s.strokeStyle="#999999";s.lineWidth=1;s.clearRect(0,0,s.canvas.width,s.canvas.height);s.fillRect(0,0,s.canvas.width,s.canvas.height);s.clearRect(r,v,q,x);s.strokeRect(r,v,q,x);s=null}j.jqplot.CursorLegendRenderer=function(q){j.jqplot.TableLegendRenderer.call(this,q);this.formatString="%s"};j.jqplot.CursorLegendRenderer.prototype=new j.jqplot.TableLegendRenderer();j.jqplot.CursorLegendRenderer.prototype.constructor=j.jqplot.CursorLegendRenderer;j.jqplot.CursorLegendRenderer.prototype.draw=function(){if(this._elem){this._elem.emptyForce();this._elem=null}if(this.show){var w=this._series,A;var r=document.createElement("table");this._elem=j(r);r=null;this._elem.addClass("jqplot-legend jqplot-cursor-legend");this._elem.css("position","absolute");var q=false;for(var x=0;x<w.length;x++){A=w[x];if(A.show&&A.showLabel){var v=j.jqplot.sprintf(this.formatString,A.label.toString());if(v){var t=A.color;if(A._stack&&!A.fill){t=""}z.call(this,v,t,q,x);q=true}for(var u=0;u<j.jqplot.addLegendRowHooks.length;u++){var y=j.jqplot.addLegendRowHooks[u].call(this,A);if(y){z.call(this,y.label,y.color,q);q=true}}}}w=A=null;delete w;delete A}function z(D,C,F,s){var B=(F)?this.rowSpacing:"0";var E=j('<tr class="jqplot-legend jqplot-cursor-legend"></tr>').appendTo(this._elem);E.data("seriesIndex",s);j('<td class="jqplot-legend jqplot-cursor-legend-swatch" style="padding-top:'+B+';"><div style="border:1px solid #cccccc;padding:0.2em;"><div class="jqplot-cursor-legend-swatch" style="background-color:'+C+';"></div></div></td>').appendTo(E);var G=j('<td class="jqplot-legend jqplot-cursor-legend-label" style="vertical-align:middle;padding-top:'+B+';"></td>');G.appendTo(E);G.data("seriesIndex",s);if(this.escapeHtml){G.text(D)}else{G.html(D)}E=null;G=null}return this._elem}})(jQuery);
|
||
</script> <script type="text/javascript">
|
||
|
||
(function(c){c.jqplot.PointLabels=function(e){this.show=c.jqplot.config.enablePlugins;this.location="n";this.labelsFromSeries=false;this.seriesLabelIndex=null;this.labels=[];this._labels=[];this.stackedValue=false;this.ypadding=6;this.xpadding=6;this.escapeHTML=true;this.edgeTolerance=-5;this.formatter=c.jqplot.DefaultTickFormatter;this.formatString="";this.hideZeros=false;this._elems=[];c.extend(true,this,e)};var a=["nw","n","ne","e","se","s","sw","w"];var d={nw:0,n:1,ne:2,e:3,se:4,s:5,sw:6,w:7};var b=["se","s","sw","w","nw","n","ne","e"];c.jqplot.PointLabels.init=function(j,h,f,g,i){var e=c.extend(true,{},f,g);e.pointLabels=e.pointLabels||{};if(this.renderer.constructor===c.jqplot.BarRenderer&&this.barDirection==="horizontal"&&!e.pointLabels.location){e.pointLabels.location="e"}this.plugins.pointLabels=new c.jqplot.PointLabels(e.pointLabels);this.plugins.pointLabels.setLabels.call(this)};c.jqplot.PointLabels.prototype.setLabels=function(){var f=this.plugins.pointLabels;var h;if(f.seriesLabelIndex!=null){h=f.seriesLabelIndex}else{if(this.renderer.constructor===c.jqplot.BarRenderer&&this.barDirection==="horizontal"){h=(this._plotData[0].length<3)?0:this._plotData[0].length-1}else{h=(this._plotData.length===0)?0:this._plotData[0].length-1}}f._labels=[];if(f.labels.length===0||f.labelsFromSeries){if(f.stackedValue){if(this._plotData.length&&this._plotData[0].length){for(var e=0;e<this._plotData.length;e++){f._labels.push(this._plotData[e][h])}}}else{var g=this.data;if(this.renderer.constructor===c.jqplot.BarRenderer&&this.waterfall){g=this._data}if(g.length&&g[0].length){for(var e=0;e<g.length;e++){f._labels.push(g[e][h])}}g=null}}else{if(f.labels.length){f._labels=f.labels}}};c.jqplot.PointLabels.prototype.xOffset=function(f,e,g){e=e||this.location;g=g||this.xpadding;var h;switch(e){case"nw":h=-f.outerWidth(true)-this.xpadding;break;case"n":h=-f.outerWidth(true)/2;break;case"ne":h=this.xpadding;break;case"e":h=this.xpadding;break;case"se":h=this.xpadding;break;case"s":h=-f.outerWidth(true)/2;break;case"sw":h=-f.outerWidth(true)-this.xpadding;break;case"w":h=-f.outerWidth(true)-this.xpadding;break;default:h=-f.outerWidth(true)-this.xpadding;break}return h};c.jqplot.PointLabels.prototype.yOffset=function(f,e,g){e=e||this.location;g=g||this.xpadding;var h;switch(e){case"nw":h=-f.outerHeight(true)-this.ypadding;break;case"n":h=-f.outerHeight(true)-this.ypadding;break;case"ne":h=-f.outerHeight(true)-this.ypadding;break;case"e":h=-f.outerHeight(true)/2;break;case"se":h=this.ypadding;break;case"s":h=this.ypadding;break;case"sw":h=this.ypadding;break;case"w":h=-f.outerHeight(true)/2;break;default:h=-f.outerHeight(true)-this.ypadding;break}return h};c.jqplot.PointLabels.draw=function(x,j,v){var t=this.plugins.pointLabels;t.setLabels.call(this);for(var w=0;w<t._elems.length;w++){t._elems[w].emptyForce()}t._elems.splice(0,t._elems.length);if(t.show){var r="_"+this._stackAxis+"axis";if(!t.formatString){t.formatString=this[r]._ticks[0].formatString;t.formatter=this[r]._ticks[0].formatter}var E=this._plotData;var D=this._prevPlotData;var A=this._xaxis;var q=this._yaxis;var z,f;for(var w=0,u=t._labels.length;w<u;w++){var o=t._labels[w];if(o==null||(t.hideZeros&&parseInt(o,10)==0)){continue}o=t.formatter(t.formatString,o);f=document.createElement("div");t._elems[w]=c(f);z=t._elems[w];z.addClass("jqplot-point-label jqplot-series-"+this.index+" jqplot-point-"+w);z.css("position","absolute");z.insertAfter(x.canvas);if(t.escapeHTML){z.text(o)}else{z.html(o)}var g=t.location;if((this.fillToZero&&E[w][1]<0)||(this.fillToZero&&this._type==="bar"&&this.barDirection==="horizontal"&&E[w][0]<0)||(this.waterfall&&parseInt(o,10))<0){g=b[d[g]]}var n=A.u2p(E[w][0])+t.xOffset(z,g);var h=q.u2p(E[w][1])+t.yOffset(z,g);if(this._stack&&!t.stackedValue){if(this.barDirection==="vertical"){h=(this._barPoints[w][0][1]+this._barPoints[w][1][1])/2+v._gridPadding.top-0.5*z.outerHeight(true)}else{n=(this._barPoints[w][2][0]+this._barPoints[w][0][0])/2+v._gridPadding.left-0.5*z.outerWidth(true)}}if(this.renderer.constructor==c.jqplot.BarRenderer){if(this.barDirection=="vertical"){n+=this._barNudge}else{h-=this._barNudge}}z.css("left",n);z.css("top",h);var k=n+z.width();var s=h+z.height();var C=t.edgeTolerance;var e=c(x.canvas).position().left;var y=c(x.canvas).position().top;var B=x.canvas.width+e;var m=x.canvas.height+y;if(n-C<e||h-C<y||k+C>B||s+C>m){z.remove()}z=null;f=null}}};c.jqplot.postSeriesInitHooks.push(c.jqplot.PointLabels.init);c.jqplot.postDrawSeriesHooks.push(c.jqplot.PointLabels.draw)})(jQuery);
|
||
</script> <script type="text/javascript">
|
||
|
||
/*
|
||
* Bean - copyright (c) Jacob Thornton 2011-2012
|
||
* https://github.com/fat/bean
|
||
* MIT license
|
||
*/
|
||
(function(a,c,b){if(typeof module!="undefined"&&module.exports){module.exports=b()}else{if(typeof define=="function"&&define.amd){define(b)}else{c[a]=b()}}})("bean",this,function(l,O){l=l||"bean";O=O||this;var G=window,H=O[l],t=/[^\.]*(?=\..*)\.|.*/,C=/\..*/,j="addEventListener",a="removeEventListener",g=document||{},u=g.documentElement||{},q=u[j],v=q?j:"attachEvent",A={},n=Array.prototype.slice,I=function(P,Q){return P.split(Q||" ")},k=function(P){return typeof P=="string"},o=function(P){return typeof P=="function"},z="click dblclick mouseup mousedown contextmenu mousewheel mousemultiwheel DOMMouseScroll mouseover mouseout mousemove selectstart selectend keydown keypress keyup orientationchange focus blur change reset select submit load unload beforeunload resize move DOMContentLoaded readystatechange message error abort scroll ",c="show input invalid touchstart touchmove touchend touchcancel gesturestart gesturechange gestureend textinput readystatechange pageshow pagehide popstate hashchange offline online afterprint beforeprint dragstart dragenter dragover dragleave drag drop dragend loadstart progress suspend emptied stalled loadmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate play pause ratechange volumechange cuechange checking noupdate downloading cached updateready obsolete ",M=(function(R,Q,P){for(P=0;P<Q.length;P++){Q[P]&&(R[Q[P]]=1)}return R}({},I(z+(q?c:"")))),y=(function(){var Q="compareDocumentPosition" in u?function(S,R){return R.compareDocumentPosition&&(R.compareDocumentPosition(S)&16)===16}:"contains" in u?function(S,R){R=R.nodeType===9||R===window?u:R;return R!==S&&R.contains(S)}:function(S,R){while(S=S.parentNode){if(S===R){return 1}}return 0},P=function(R){var S=R.relatedTarget;return !S?S==null:(S!==this&&S.prefix!=="xul"&&!/document/.test(this.toString())&&!Q(S,this))};return{mouseenter:{base:"mouseover",condition:P},mouseleave:{base:"mouseout",condition:P},mousewheel:{base:/Firefox/.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel"}}}()),E=(function(){var Y=I("altKey attrChange attrName bubbles cancelable ctrlKey currentTarget detail eventPhase getModifierState isTrusted metaKey relatedNode relatedTarget shiftKey srcElement target timeStamp type view which propertyName"),W=Y.concat(I("button buttons clientX clientY dataTransfer fromElement offsetX offsetY pageX pageY screenX screenY toElement")),Q=W.concat(I("wheelDelta wheelDeltaX wheelDeltaY wheelDeltaZ axis")),S=Y.concat(I("char charCode key keyCode keyIdentifier keyLocation location")),R=Y.concat(I("data")),X=Y.concat(I("touches targetTouches changedTouches scale rotation")),aa=Y.concat(I("data origin source")),T=Y.concat(I("state")),U=/over|out/,P=[{reg:/key/i,fix:function(ab,ac){ac.keyCode=ab.keyCode||ab.which;return S}},{reg:/click|mouse(?!(.*wheel|scroll))|menu|drag|drop/i,fix:function(ac,ad,ab){ad.rightClick=ac.which===3||ac.button===2;ad.pos={x:0,y:0};if(ac.pageX||ac.pageY){ad.clientX=ac.pageX;ad.clientY=ac.pageY}else{if(ac.clientX||ac.clientY){ad.clientX=ac.clientX+g.body.scrollLeft+u.scrollLeft;ad.clientY=ac.clientY+g.body.scrollTop+u.scrollTop}}if(U.test(ab)){ad.relatedTarget=ac.relatedTarget||ac[(ab=="mouseover"?"from":"to")+"Element"]}return W}},{reg:/mouse.*(wheel|scroll)/i,fix:function(){return Q}},{reg:/^text/i,fix:function(){return R}},{reg:/^touch|^gesture/i,fix:function(){return X}},{reg:/^message$/i,fix:function(){return aa}},{reg:/^popstate$/i,fix:function(){return T}},{reg:/.*/,fix:function(){return Y}}],V={},Z=function(ac,af,ab){if(!arguments.length){return}ac=ac||((af.ownerDocument||af.document||af).parentWindow||G).event;this.originalEvent=ac;this.isNative=ab;this.isBean=true;if(!ac){return}var aj=ac.type,ah=ac.target||ac.srcElement,ag,ae,ad,ai,ak;this.target=ah&&ah.nodeType===3?ah.parentNode:ah;if(ab){ak=V[aj];if(!ak){for(ag=0,ae=P.length;ag<ae;ag++){if(P[ag].reg.test(aj)){V[aj]=ak=P[ag].fix;break}}}ai=ak(ac,this,aj);for(ag=ai.length;ag--;){if(!((ad=ai[ag]) in this)&&ad in ac){this[ad]=ac[ad]}}}};Z.prototype.preventDefault=function(){if(this.originalEvent.preventDefault){this.originalEvent.preventDefault()}else{this.originalEvent.returnValue=false}};Z.prototype.stopPropagation=function(){if(this.originalEvent.stopPropagation){this.originalEvent.stopPropagation()}else{this.originalEvent.cancelBubble=true}};Z.prototype.stop=function(){this.preventDefault();this.stopPropagation();this.stopped=true};Z.prototype.stopImmediatePropagation=function(){if(this.originalEvent.stopImmediatePropagation){this.originalEvent.stopImmediatePropagation()}this.isImmediatePropagationStopped=function(){return true}};Z.prototype.isImmediatePropagationStopped=function(){return this.originalEvent.isImmediatePropagationStopped&&this.originalEvent.isImmediatePropagationStopped()};Z.prototype.clone=function(ac){var ab=new Z(this,this.element,this.isNative);ab.currentTarget=ac;return ab};return Z}()),d=function(Q,P){return !q&&!P&&(Q===g||Q===G)?u:Q},i=(function(){var Q=function(S,V,X,R){var U=function(Z,Y){return V.apply(S,R?n.call(Y,Z?0:1).concat(R):Y)},W=function(Z,Y){return V.__beanDel?V.__beanDel.ft(Z.target,S):Y},T=X?function(Y){var Z=W(Y,this);if(X.apply(Z,arguments)){if(Y){Y.currentTarget=Z}return U(Y,arguments)}}:function(Y){if(V.__beanDel){Y=Y.clone(W(Y))}return U(Y,arguments)};T.__beanDel=V.__beanDel;return T},P=function(V,X,Z,T,S,W,Y){var U=y[X],R;if(X=="unload"){Z=s(b,V,X,Z,T)}if(U){if(U.condition){Z=Q(V,Z,U.condition,W)}X=U.base||X}this.isNative=R=M[X]&&!!V[v];this.customType=!q&&!R&&X;this.element=V;this.type=X;this.original=T;this.namespaces=S;this.eventType=q||R?X:"propertychange";this.target=d(V,R);this[v]=!!this.target[v];this.root=Y;this.handler=Q(V,Z,null,W)};P.prototype.inNamespaces=function(T){var S,R,U=0;if(!T){return true}if(!this.namespaces){return false}for(S=T.length;S--;){for(R=this.namespaces.length;R--;){if(T[S]==this.namespaces[R]){U++}}}return T.length===U};P.prototype.matches=function(S,R,T){return this.element===S&&(!R||this.original===R)&&(!T||this.handler===T)};return P}()),K=(function(){var U={},T=function(Z,ac,W,ag,ae,ad){var ab=ae?"r":"$";if(!ac||ac=="*"){for(var ah in U){if(ah.charAt(0)==ab){T(Z,ah.substr(1),W,ag,ae,ad)}}}else{var Y=0,X,aa=U[ab+ac],af=Z=="*";if(!aa){return}for(X=aa.length;Y<X;Y++){if((af||aa[Y].matches(Z,W,ag))&&!ad(aa[Y],aa,Y,ac)){return}}}},S=function(Z,aa,Y,W){var X,ab=U[(W?"r":"$")+aa];if(ab){for(X=ab.length;X--;){if(!ab[X].root&&ab[X].matches(Z,Y,null)){return true}}}return false},R=function(Z,aa,Y,X){var W=[];T(Z,aa,Y,null,X,function(ab){return W.push(ab)});return W},V=function(Y){var W=!Y.root&&!this.has(Y.element,Y.type,null,false),X=(Y.root?"r":"$")+Y.type;(U[X]||(U[X]=[])).push(Y);return W},Q=function(W){T(W.element,W.type,null,W.handler,W.root,function(Y,Z,X){Z.splice(X,1);Y.removed=true;if(Z.length===0){delete U[(Y.root?"r":"$")+Y.type]}return false})},P=function(){var X,W=[];for(X in U){if(X.charAt(0)=="$"){W=W.concat(U[X])}}return W};return{has:S,get:R,put:V,del:Q,entries:P}}()),w,N=function(P){if(!arguments.length){w=g.querySelectorAll?function(Q,R){return R.querySelectorAll(Q)}:function(){throw new Error("Bean: No selector engine installed")}}else{w=P}},D=function(T,S){if(!q&&S&&T&&T.propertyName!="_on"+S){return}var R=K.get(this,S||T.type,null,false),P=R.length,Q=0;T=new E(T,this,true);if(S){T.type=S}for(;Q<P&&!T.isImmediatePropagationStopped();Q++){if(!R[Q].removed){R[Q].handler.call(this,T)}}},J=q?function(P,Q,R){P[R?j:a](Q,D,false)}:function(P,Q,T,S){var R;if(T){K.put(R=new i(P,S||Q,function(U){D.call(P,U,S)},D,null,null,true));if(S&&P["_on"+S]==null){P["_on"+S]=0}R.target.attachEvent("on"+R.eventType,R.handler)}else{R=K.get(P,S||Q,D,true)[0];if(R){R.target.detachEvent("on"+R.eventType,R.handler);K.del(R)}}},s=function(T,P,R,Q,S){return function(){Q.apply(this,arguments);T(P,R,S)}},b=function(T,S,X,P){var W=S&&S.replace(C,""),Q=K.get(T,W,null,false),V={},U,R;for(U=0,R=Q.length;U<R;U++){if((!X||Q[U].original===X)&&Q[U].inNamespaces(P)){K.del(Q[U]);if(!V[Q[U].eventType]&&Q[U][v]){V[Q[U].eventType]={t:Q[U].eventType,c:Q[U].type}}}}for(U in V){if(!K.has(T,V[U].t,null,false)){J(T,V[U].t,false,V[U].c)}}},m=function(P,R){var S=function(V,T){var U,W=k(P)?w(P,T):P;for(;V&&V!==T;V=V.parentNode){for(U=W.length;U--;){if(W[U]===V){return V}}}},Q=function(U){var T=S(U.target,this);if(T){R.apply(T,arguments)}};Q.__beanDel={ft:S,selector:P};return Q},L=q?function(Q,S,R){var P=g.createEvent(Q?"HTMLEvents":"UIEvents");P[Q?"initEvent":"initUIEvent"](S,true,true,G,1);R.dispatchEvent(P)}:function(P,R,Q){Q=d(Q,P);P?Q.fireEvent("on"+R,g.createEventObject()):Q["_on"+R]++},F=function(T,P,V){var S=k(P),Q,U,W,R;if(S&&P.indexOf(" ")>0){P=I(P);for(R=P.length;R--;){F(T,P[R],V)}return T}U=S&&P.replace(C,"");if(U&&y[U]){U=y[U].base}if(!P||S){if(W=S&&P.replace(t,"")){W=I(W,".")}b(T,U,V,W)}else{if(o(P)){b(T,null,P)}else{for(Q in P){if(P.hasOwnProperty(Q)){F(T,Q,P[Q])}}}}return T},x=function(Q,Z,P,X){var W,V,T,R,U,Y,S;if(P===undefined&&typeof Z=="object"){for(V in Z){if(Z.hasOwnProperty(V)){x.call(this,Q,V,Z[V])}}return}if(!o(P)){W=X;U=n.call(arguments,4);X=m(P,W,w)}else{U=n.call(arguments,3);X=W=P}T=I(Z);if(this===A){X=s(F,Q,Z,X,W)}for(R=T.length;R--;){S=K.put(Y=new i(Q,T[R].replace(C,""),X,W,I(T[R].replace(t,""),"."),U,false));if(Y[v]&&S){J(Q,Y.eventType,true,Y.customType)}}return Q},f=function(R,Q,S,P){return x.apply(null,!k(S)?n.call(arguments):[R,S,Q,P].concat(arguments.length>3?n.call(arguments,5):[]))},h=function(){return x.apply(A,arguments)},r=function(S,X,V){var U=I(X),T,R,Q,W,P;for(T=U.length;T--;){X=U[T].replace(C,"");if(W=U[T].replace(t,"")){W=I(W,".")}if(!W&&!V&&S[v]){L(M[X],X,S)}else{P=K.get(S,X,null,false);V=[false].concat(V);for(R=0,Q=P.length;R<Q;R++){if(P[R].inNamespaces(W)){P[R].handler.apply(S,V)}}}}return S},p=function(T,W,U){var Q=K.get(W,U,null,false),P=Q.length,S=0,R,V;for(;S<P;S++){if(Q[S].original){R=[T,Q[S].type];if(V=Q[S].handler.__beanDel){R.push(V.selector)}R.push(Q[S].original);x.apply(null,R)}}return T},B={on:x,add:f,one:h,off:F,remove:F,clone:p,fire:r,Event:E,setSelectorEngine:N,noConflict:function(){O[l]=H;return this}};if(G.attachEvent){var e=function(){var Q,P=K.entries();for(Q in P){if(P[Q].type&&P[Q].type!=="unload"){F(P[Q].element,P[Q].type)}}G.detachEvent("onunload",e);G.CollectGarbage&&G.CollectGarbage()};G.attachEvent("onunload",e)}N();return B});
|
||
</script> <script type="text/javascript">
|
||
|
||
(function(){var v=this;var k=v._;var I=Array.prototype,g=Object.prototype,n=Function.prototype;var L=I.push,l=I.slice,c=g.toString,j=g.hasOwnProperty;var s=Array.isArray,e=Object.keys,J=n.bind,B=Object.create;var E=function(){};var P=function(Q){if(Q instanceof P){return Q}if(!(this instanceof P)){return new P(Q)}this._wrapped=Q};if(typeof exports!=="undefined"){if(typeof module!=="undefined"&&module.exports){exports=module.exports=P}exports._=P}else{v._=P}P.VERSION="1.8.3";var b=function(R,Q,S){if(Q===void 0){return R}switch(S==null?3:S){case 1:return function(T){return R.call(Q,T)};case 2:return function(U,T){return R.call(Q,U,T)};case 3:return function(U,T,V){return R.call(Q,U,T,V)};case 4:return function(T,V,U,W){return R.call(Q,T,V,U,W)}}return function(){return R.apply(Q,arguments)}};var F=function(R,Q,S){if(R==null){return P.identity}if(P.isFunction(R)){return b(R,Q,S)}if(P.isObject(R)){return P.matcher(R)}return P.property(R)};P.iteratee=function(R,Q){return F(R,Q,Infinity)};var p=function(R,Q){return function(Z){var X=arguments.length;if(X<2||Z==null){return Z}for(var T=1;T<X;T++){var Y=arguments[T],W=R(Y),S=W.length;for(var V=0;V<S;V++){var U=W[V];if(!Q||Z[U]===void 0){Z[U]=Y[U]}}}return Z}};var C=function(R){if(!P.isObject(R)){return{}}if(B){return B(R)}E.prototype=R;var Q=new E;E.prototype=null;return Q};var M=function(Q){return function(R){return R==null?void 0:R[Q]}};var K=Math.pow(2,53)-1;var O=M("length");var D=function(R){var Q=O(R);return typeof Q=="number"&&Q>=0&&Q<=K};P.each=P.forEach=function(U,V,R){V=b(V,R);var Q,T;if(D(U)){for(Q=0,T=U.length;Q<T;Q++){V(U[Q],Q,U)}}else{var S=P.keys(U);for(Q=0,T=S.length;Q<T;Q++){V(U[S[Q]],S[Q],U)}}return U};P.map=P.collect=function(V,X,S){X=F(X,S);var U=!D(V)&&P.keys(V),T=(U||V).length,R=Array(T);for(var Q=0;Q<T;Q++){var W=U?U[Q]:Q;R[Q]=X(V[W],W,V)}return R};function z(Q){function R(W,Y,S,V,T,U){for(;T>=0&&T<U;T+=Q){var X=V?V[T]:T;S=Y(S,W[X],X,W)}return S}return function(X,Y,S,U){Y=b(Y,U,4);var W=!D(X)&&P.keys(X),V=(W||X).length,T=Q>0?0:V-1;if(arguments.length<3){S=X[W?W[T]:T];T+=Q}return R(X,Y,S,W,T,V)}}P.reduce=P.foldl=P.inject=z(1);P.reduceRight=P.foldr=z(-1);P.find=P.detect=function(T,Q,S){var R;if(D(T)){R=P.findIndex(T,Q,S)}else{R=P.findKey(T,Q,S)}if(R!==void 0&&R!==-1){return T[R]}};P.filter=P.select=function(T,Q,S){var R=[];Q=F(Q,S);P.each(T,function(W,U,V){if(Q(W,U,V)){R.push(W)}});return R};P.reject=function(S,Q,R){return P.filter(S,P.negate(F(Q)),R)};P.every=P.all=function(V,Q,S){Q=F(Q,S);var U=!D(V)&&P.keys(V),T=(U||V).length;for(var R=0;R<T;R++){var W=U?U[R]:R;if(!Q(V[W],W,V)){return false}}return true};P.some=P.any=function(V,Q,S){Q=F(Q,S);var U=!D(V)&&P.keys(V),T=(U||V).length;for(var R=0;R<T;R++){var W=U?U[R]:R;if(Q(V[W],W,V)){return true}}return false};P.contains=P.includes=P.include=function(T,S,Q,R){if(!D(T)){T=P.values(T)}if(typeof Q!="number"||R){Q=0}return P.indexOf(T,S,Q)>=0};P.invoke=function(S,T){var Q=l.call(arguments,2);var R=P.isFunction(T);return P.map(S,function(V){var U=R?T:V[T];return U==null?U:U.apply(V,Q)})};P.pluck=function(R,Q){return P.map(R,P.property(Q))};P.where=function(R,Q){return P.filter(R,P.matcher(Q))};P.findWhere=function(R,Q){return P.find(R,P.matcher(Q))};P.max=function(T,V,Q){var Y=-Infinity,W=-Infinity,X,S;if(V==null&&T!=null){T=D(T)?T:P.values(T);for(var U=0,R=T.length;U<R;U++){X=T[U];if(X>Y){Y=X}}}else{V=F(V,Q);P.each(T,function(ab,Z,aa){S=V(ab,Z,aa);if(S>W||S===-Infinity&&Y===-Infinity){Y=ab;W=S}})}return Y};P.min=function(T,V,Q){var Y=Infinity,W=Infinity,X,S;if(V==null&&T!=null){T=D(T)?T:P.values(T);for(var U=0,R=T.length;U<R;U++){X=T[U];if(X<Y){Y=X}}}else{V=F(V,Q);P.each(T,function(ab,Z,aa){S=V(ab,Z,aa);if(S<W||S===Infinity&&Y===Infinity){Y=ab;W=S}})}return Y};P.shuffle=function(U){var V=D(U)?U:P.values(U);var T=V.length;var Q=Array(T);for(var R=0,S;R<T;R++){S=P.random(0,R);if(S!==R){Q[R]=Q[S]}Q[S]=V[R]}return Q};P.sample=function(R,S,Q){if(S==null||Q){if(!D(R)){R=P.values(R)}return R[P.random(R.length-1)]}return P.shuffle(R).slice(0,Math.max(0,S))};P.sortBy=function(R,S,Q){S=F(S,Q);return P.pluck(P.map(R,function(V,T,U){return{value:V,index:T,criteria:S(V,T,U)}}).sort(function(W,V){var U=W.criteria;var T=V.criteria;if(U!==T){if(U>T||U===void 0){return 1}if(U<T||T===void 0){return -1}}return W.index-V.index}),"value")};var q=function(Q){return function(T,U,S){var R={};U=F(U,S);P.each(T,function(X,V){var W=U(X,V,T);Q(R,X,W)});return R}};P.groupBy=q(function(Q,S,R){if(P.has(Q,R)){Q[R].push(S)}else{Q[R]=[S]}});P.indexBy=q(function(Q,S,R){Q[R]=S});P.countBy=q(function(Q,S,R){if(P.has(Q,R)){Q[R]++}else{Q[R]=1}});P.toArray=function(Q){if(!Q){return[]}if(P.isArray(Q)){return l.call(Q)}if(D(Q)){return P.map(Q,P.identity)}return P.values(Q)};P.size=function(Q){if(Q==null){return 0}return D(Q)?Q.length:P.keys(Q).length};P.partition=function(U,Q,S){Q=F(Q,S);var T=[],R=[];P.each(U,function(W,V,X){(Q(W,V,X)?T:R).push(W)});return[T,R]};P.first=P.head=P.take=function(S,R,Q){if(S==null){return void 0}if(R==null||Q){return S[0]}return P.initial(S,S.length-R)};P.initial=function(S,R,Q){return l.call(S,0,Math.max(0,S.length-(R==null||Q?1:R)))};P.last=function(S,R,Q){if(S==null){return void 0}if(R==null||Q){return S[S.length-1]}return P.rest(S,Math.max(0,S.length-R))};P.rest=P.tail=P.drop=function(S,R,Q){return l.call(S,R==null||Q?1:R)};P.compact=function(Q){return P.filter(Q,P.identity)};var x=function(W,S,X,aa){var R=[],Z=0;for(var U=aa||0,Q=O(W);U<Q;U++){var Y=W[U];if(D(Y)&&(P.isArray(Y)||P.isArguments(Y))){if(!S){Y=x(Y,S,X)}var T=0,V=Y.length;R.length+=V;while(T<V){R[Z++]=Y[T++]}}else{if(!X){R[Z++]=Y}}}return R};P.flatten=function(R,Q){return x(R,Q,false)};P.without=function(Q){return P.difference(Q,l.call(arguments,1))};P.uniq=P.unique=function(X,T,W,R){if(!P.isBoolean(T)){R=W;W=T;T=false}if(W!=null){W=F(W,R)}var Z=[];var Q=[];for(var V=0,S=O(X);V<S;V++){var Y=X[V],U=W?W(Y,V,X):Y;if(T){if(!V||Q!==U){Z.push(Y)}Q=U}else{if(W){if(!P.contains(Q,U)){Q.push(U);Z.push(Y)}}else{if(!P.contains(Z,Y)){Z.push(Y)}}}}return Z};P.union=function(){return P.uniq(x(arguments,true,true))};P.intersection=function(W){var Q=[];var V=arguments.length;for(var S=0,U=O(W);S<U;S++){var T=W[S];if(P.contains(Q,T)){continue}for(var R=1;R<V;R++){if(!P.contains(arguments[R],T)){break}}if(R===V){Q.push(T)}}return Q};P.difference=function(R){var Q=x(arguments,true,true,1);return P.filter(R,function(S){return !P.contains(Q,S)})};P.zip=function(){return P.unzip(arguments)};P.unzip=function(T){var S=T&&P.max(T,O).length||0;var Q=Array(S);for(var R=0;R<S;R++){Q[R]=P.pluck(T,R)}return Q};P.object=function(U,R){var Q={};for(var S=0,T=O(U);S<T;S++){if(R){Q[U[S]]=R[S]}else{Q[U[S][0]]=U[S][1]}}return Q};function u(Q){return function(V,R,T){R=F(R,T);var U=O(V);var S=Q>0?0:U-1;for(;S>=0&&S<U;S+=Q){if(R(V[S],S,V)){return S}}return -1}}P.findIndex=u(1);P.findLastIndex=u(-1);P.sortedIndex=function(X,V,W,S){W=F(W,S,1);var U=W(V);var Q=0,T=O(X);while(Q<T){var R=Math.floor((Q+T)/2);if(W(X[R])<U){Q=R+1}else{T=R}}return Q};function f(Q,R,S){return function(X,W,T){var U=0,V=O(X);if(typeof T=="number"){if(Q>0){U=T>=0?T:Math.max(T+V,U)}else{V=T>=0?Math.min(T+1,V):T+V+1}}else{if(S&&T&&V){T=S(X,W);return X[T]===W?T:-1}}if(W!==W){T=R(l.call(X,U,V),P.isNaN);return T>=0?T+U:-1}for(T=Q>0?U:V-1;T>=0&&T<V;T+=Q){if(X[T]===W){return T}}return -1}}P.indexOf=f(1,P.findIndex,P.sortedIndex);P.lastIndexOf=f(-1,P.findLastIndex);P.range=function(V,S,U){if(S==null){S=V||0;V=0}U=U||1;var T=Math.max(Math.ceil((S-V)/U),0);var R=Array(T);for(var Q=0;Q<T;Q++,V+=U){R[Q]=V}return R};var y=function(V,S,U,W,T){if(!(W instanceof S)){return V.apply(U,T)}var R=C(V.prototype);var Q=V.apply(R,T);if(P.isObject(Q)){return Q}return R};P.bind=function(T,R){if(J&&T.bind===J){return J.apply(T,l.call(arguments,1))}if(!P.isFunction(T)){throw new TypeError("Bind must be called on a function")}var Q=l.call(arguments,2);var S=function(){return y(T,S,R,this,Q.concat(l.call(arguments)))};return S};P.partial=function(R){var S=l.call(arguments,1);var Q=function(){var T=0,W=S.length;var U=Array(W);for(var V=0;V<W;V++){U[V]=S[V]===P?arguments[T++]:S[V]}while(T<arguments.length){U.push(arguments[T++])}return y(R,Q,this,this,U)};return Q};P.bindAll=function(T){var R,S=arguments.length,Q;if(S<=1){throw new Error("bindAll must be passed function names")}for(R=1;R<S;R++){Q=arguments[R];T[Q]=P.bind(T[Q],T)}return T};P.memoize=function(R,Q){var S=function(V){var U=S.cache;var T=""+(Q?Q.apply(this,arguments):V);if(!P.has(U,T)){U[T]=R.apply(this,arguments)}return U[T]};S.cache={};return S};P.delay=function(R,S){var Q=l.call(arguments,2);return setTimeout(function(){return R.apply(null,Q)},S)};P.defer=P.partial(P.delay,P,1);P.throttle=function(R,T,X){var Q,V,Y;var W=null;var U=0;if(!X){X={}}var S=function(){U=X.leading===false?0:P.now();W=null;Y=R.apply(Q,V);if(!W){Q=V=null}};return function(){var Z=P.now();if(!U&&X.leading===false){U=Z}var aa=T-(Z-U);Q=this;V=arguments;if(aa<=0||aa>T){if(W){clearTimeout(W);W=null}U=Z;Y=R.apply(Q,V);if(!W){Q=V=null}}else{if(!W&&X.trailing!==false){W=setTimeout(S,aa)}}return Y}};P.debounce=function(S,U,R){var X,W,Q,V,Y;var T=function(){var Z=P.now()-V;if(Z<U&&Z>=0){X=setTimeout(T,U-Z)}else{X=null;if(!R){Y=S.apply(Q,W);if(!X){Q=W=null}}}};return function(){Q=this;W=arguments;V=P.now();var Z=R&&!X;if(!X){X=setTimeout(T,U)}if(Z){Y=S.apply(Q,W);Q=W=null}return Y}};P.wrap=function(Q,R){return P.partial(R,Q)};P.negate=function(Q){return function(){return !Q.apply(this,arguments)}};P.compose=function(){var Q=arguments;var R=Q.length-1;return function(){var T=R;var S=Q[R].apply(this,arguments);while(T--){S=Q[T].call(this,S)}return S}};P.after=function(R,Q){return function(){if(--R<1){return Q.apply(this,arguments)}}};P.before=function(S,R){var Q;return function(){if(--S>0){Q=R.apply(this,arguments)}if(S<=1){R=null}return Q}};P.once=P.partial(P.before,2);var G=!{toString:null}.propertyIsEnumerable("toString");var a=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function d(U,T){var Q=a.length;var R=U.constructor;var S=(P.isFunction(R)&&R.prototype)||g;var V="constructor";if(P.has(U,V)&&!P.contains(T,V)){T.push(V)}while(Q--){V=a[Q];if(V in U&&U[V]!==S[V]&&!P.contains(T,V)){T.push(V)}}}P.keys=function(S){if(!P.isObject(S)){return[]}if(e){return e(S)}var R=[];for(var Q in S){if(P.has(S,Q)){R.push(Q)}}if(G){d(S,R)}return R};P.allKeys=function(S){if(!P.isObject(S)){return[]}var R=[];for(var Q in S){R.push(Q)}if(G){d(S,R)}return R};P.values=function(U){var T=P.keys(U);var S=T.length;var Q=Array(S);for(var R=0;R<S;R++){Q[R]=U[T[R]]}return Q};P.mapObject=function(V,X,S){X=F(X,S);var U=P.keys(V),T=U.length,R={},W;for(var Q=0;Q<T;Q++){W=U[Q];R[W]=X(V[W],W,V)}return R};P.pairs=function(U){var S=P.keys(U);var R=S.length;var T=Array(R);for(var Q=0;Q<R;Q++){T[Q]=[S[Q],U[S[Q]]]}return T};P.invert=function(U){var Q={};var T=P.keys(U);for(var R=0,S=T.length;R<S;R++){Q[U[T[R]]]=T[R]}return Q};P.functions=P.methods=function(S){var R=[];for(var Q in S){if(P.isFunction(S[Q])){R.push(Q)}}return R.sort()};P.extend=p(P.allKeys);P.extendOwn=P.assign=p(P.keys);P.findKey=function(W,Q,T){Q=F(Q,T);var V=P.keys(W),S;for(var R=0,U=V.length;R<U;R++){S=V[R];if(Q(W[S],S,W)){return S}}};P.pick=function(S,W,Q){var aa={},T=S,V,Z;if(T==null){return aa}if(P.isFunction(W)){Z=P.allKeys(T);V=b(W,Q)}else{Z=x(arguments,false,false,1);V=function(ac,ab,ad){return ab in ad};T=Object(T)}for(var U=0,R=Z.length;U<R;U++){var Y=Z[U];var X=T[Y];if(V(X,Y,T)){aa[Y]=X}}return aa};P.omit=function(S,T,Q){if(P.isFunction(T)){T=P.negate(T)}else{var R=P.map(x(arguments,false,false,1),String);T=function(V,U){return !P.contains(R,U)}}return P.pick(S,T,Q)};P.defaults=p(P.allKeys,true);P.create=function(R,S){var Q=C(R);if(S){P.extendOwn(Q,S)}return Q};P.clone=function(Q){if(!P.isObject(Q)){return Q}return P.isArray(Q)?Q.slice():P.extend({},Q)};P.tap=function(R,Q){Q(R);return R};P.isMatch=function(R,Q){var V=P.keys(Q),U=V.length;if(R==null){return !U}var W=Object(R);for(var T=0;T<U;T++){var S=V[T];if(Q[S]!==W[S]||!(S in W)){return false}}return true};var N=function(Y,X,R,T){if(Y===X){return Y!==0||1/Y===1/X}if(Y==null||X==null){return Y===X}if(Y instanceof P){Y=Y._wrapped}if(X instanceof P){X=X._wrapped}var V=c.call(Y);if(V!==c.call(X)){return false}switch(V){case"[object RegExp]":case"[object String]":return""+Y===""+X;case"[object Number]":if(+Y!==+Y){return +X!==+X}return +Y===0?1/+Y===1/X:+Y===+X;case"[object Date]":case"[object Boolean]":return +Y===+X}var S=V==="[object Array]";if(!S){if(typeof Y!="object"||typeof X!="object"){return false}var W=Y.constructor,U=X.constructor;if(W!==U&&!(P.isFunction(W)&&W instanceof W&&P.isFunction(U)&&U instanceof U)&&("constructor" in Y&&"constructor" in X)){return false}}R=R||[];T=T||[];var Q=R.length;while(Q--){if(R[Q]===Y){return T[Q]===X}}R.push(Y);T.push(X);if(S){Q=Y.length;if(Q!==X.length){return false}while(Q--){if(!N(Y[Q],X[Q],R,T)){return false}}}else{var aa=P.keys(Y),Z;Q=aa.length;if(P.keys(X).length!==Q){return false}while(Q--){Z=aa[Q];if(!(P.has(X,Z)&&N(Y[Z],X[Z],R,T))){return false}}}R.pop();T.pop();return true};P.isEqual=function(R,Q){return N(R,Q)};P.isEmpty=function(Q){if(Q==null){return true}if(D(Q)&&(P.isArray(Q)||P.isString(Q)||P.isArguments(Q))){return Q.length===0}return P.keys(Q).length===0};P.isElement=function(Q){return !!(Q&&Q.nodeType===1)};P.isArray=s||function(Q){return c.call(Q)==="[object Array]"};P.isObject=function(R){var Q=typeof R;return Q==="function"||Q==="object"&&!!R};P.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(Q){P["is"+Q]=function(R){return c.call(R)==="[object "+Q+"]"}});if(!P.isArguments(arguments)){P.isArguments=function(Q){return P.has(Q,"callee")}}if(typeof/./!="function"&&typeof Int8Array!="object"){P.isFunction=function(Q){return typeof Q=="function"||false}}P.isFinite=function(Q){return isFinite(Q)&&!isNaN(parseFloat(Q))};P.isNaN=function(Q){return P.isNumber(Q)&&Q!==+Q};P.isBoolean=function(Q){return Q===true||Q===false||c.call(Q)==="[object Boolean]"};P.isNull=function(Q){return Q===null};P.isUndefined=function(Q){return Q===void 0};P.has=function(R,Q){return R!=null&&j.call(R,Q)};P.noConflict=function(){v._=k;return this};P.identity=function(Q){return Q};P.constant=function(Q){return function(){return Q}};P.noop=function(){};P.property=M;P.propertyOf=function(Q){return Q==null?function(){}:function(R){return Q[R]}};P.matcher=P.matches=function(Q){Q=P.extendOwn({},Q);return function(R){return P.isMatch(R,Q)}};P.times=function(U,T,S){var Q=Array(Math.max(0,U));T=b(T,S,1);for(var R=0;R<U;R++){Q[R]=T(R)}return Q};P.random=function(R,Q){if(Q==null){Q=R;R=0}return R+Math.floor(Math.random()*(Q-R+1))};P.now=Date.now||function(){return new Date().getTime()};var r={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"};var m=P.invert(r);var w=function(U){var R=function(V){return U[V]};var T="(?:"+P.keys(U).join("|")+")";var S=RegExp(T);var Q=RegExp(T,"g");return function(V){V=V==null?"":""+V;return S.test(V)?V.replace(Q,R):V}};P.escape=w(r);P.unescape=w(m);P.result=function(Q,S,T){var R=Q==null?void 0:Q[S];if(R===void 0){R=T}return P.isFunction(R)?R.call(Q):R};var A=0;P.uniqueId=function(Q){var R=++A+"";return Q?Q+R:R};P.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var t=/(.)^/;var h={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"};var i=/\\|'|\r|\n|\u2028|\u2029/g;var H=function(Q){return"\\"+h[Q]};P.template=function(Z,T,W){if(!T&&W){T=W}T=P.defaults({},T,P.templateSettings);var U=RegExp([(T.escape||t).source,(T.interpolate||t).source,(T.evaluate||t).source].join("|")+"|$","g");var V=0;var Q="__p+='";Z.replace(U,function(ab,ac,aa,ae,ad){Q+=Z.slice(V,ad).replace(i,H);V=ad+ab.length;if(ac){Q+="'+\n((__t=("+ac+"))==null?'':_.escape(__t))+\n'"}else{if(aa){Q+="'+\n((__t=("+aa+"))==null?'':__t)+\n'"}else{if(ae){Q+="';\n"+ae+"\n__p+='"}}}return ab});Q+="';\n";if(!T.variable){Q="with(obj||{}){\n"+Q+"}\n"}Q="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+Q+"return __p;\n";try{var S=new Function(T.variable||"obj","_",Q)}catch(X){X.source=Q;throw X}var Y=function(aa){return S.call(this,aa,P)};var R=T.variable||"obj";Y.source="function("+R+"){\n"+Q+"}";return Y};P.chain=function(R){var Q=P(R);Q._chain=true;return Q};var o=function(Q,R){return Q._chain?P(R).chain():R};P.mixin=function(Q){P.each(P.functions(Q),function(R){var S=P[R]=Q[R];P.prototype[R]=function(){var T=[this._wrapped];L.apply(T,arguments);return o(this,S.apply(P,T))}})};P.mixin(P);P.each(["pop","push","reverse","shift","sort","splice","unshift"],function(Q){var R=I[Q];P.prototype[Q]=function(){var S=this._wrapped;R.apply(S,arguments);if((Q==="shift"||Q==="splice")&&S.length===0){delete S[0]}return o(this,S)}});P.each(["concat","join","slice"],function(Q){var R=I[Q];P.prototype[Q]=function(){return o(this,R.apply(this._wrapped,arguments))}});P.prototype.value=function(){return this._wrapped};P.prototype.valueOf=P.prototype.toJSON=P.prototype.value;P.prototype.toString=function(){return""+this._wrapped};if(typeof define==="function"&&define.amd){define("underscore",[],function(){return P})}}.call(this));
|
||
</script> <style type="text/css">
|
||
|
||
/*!
|
||
* Bootstrap v3.3.7 (http://getbootstrap.com)
|
||
* Copyright 2011-2016 Twitter, Inc.
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||
*//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid #c0c0c0}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,*:before,*:after{color:#000!important;text-shadow:none!important;background:transparent!important;-webkit-box-shadow:none!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%!important}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered th,.table-bordered td{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url('../fonts/glyphicons-halflings-regular.eot');src:url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'),url('../fonts/glyphicons-halflings-regular.woff') format('woff'),url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'),url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:normal;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\002a"}.glyphicon-plus:before{content:"\002b"}.glyphicon-euro:before,.glyphicon-eur:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before{content:"\e227"}.glyphicon-btc:before{content:"\e227"}.glyphicon-xbt:before{content:"\e227"}.glyphicon-yen:before{content:"\00a5"}.glyphicon-jpy:before{content:"\00a5"}.glyphicon-ruble:before{content:"\20bd"}.glyphicon-rub:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}*:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}input,button,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:hover,a:focus{color:#23527c;text-decoration:underline}a:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.img-responsive,.thumbnail>img,.thumbnail a>img,.carousel-inner>.item>img,.carousel-inner>.item>a>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role="button"]{cursor:pointer}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small,.h1 small,.h2 small,.h3 small,.h4 small,.h5 small,.h6 small,h1 .small,h2 .small,h3 .small,h4 .small,h5 .small,h6 .small,.h1 .small,.h2 .small,.h3 .small,.h4 .small,.h5 .small,.h6 .small{font-weight:normal;line-height:1;color:#777}h1,.h1,h2,.h2,h3,.h3{margin-top:20px;margin-bottom:10px}h1 small,.h1 small,h2 small,.h2 small,h3 small,.h3 small,h1 .small,.h1 .small,h2 .small,.h2 .small,h3 .small,.h3 .small{font-size:65%}h4,.h4,h5,.h5,h6,.h6{margin-top:10px;margin-bottom:10px}h4 small,.h4 small,h5 small,.h5 small,h6 small,.h6 small,h4 .small,.h4 .small,h5 .small,.h5 .small,h6 .small,.h6 .small{font-size:75%}h1,.h1{font-size:36px}h2,.h2{font-size:30px}h3,.h3{font-size:24px}h4,.h4{font-size:18px}h5,.h5{font-size:14px}h6,.h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media(min-width:768px){.lead{font-size:21px}}small,.small{font-size:85%}mark,.mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:hover,a.text-primary:focus{color:#286090}.text-success{color:#3c763d}a.text-success:hover,a.text-success:focus{color:#2b542c}.text-info{color:#31708f}a.text-info:hover,a.text-info:focus{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:hover,a.text-warning:focus{color:#66512c}.text-danger{color:#a94442}a.text-danger:hover,a.text-danger:focus{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:hover,a.bg-primary:focus{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:hover,a.bg-success:focus{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:hover,a.bg-info:focus{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:hover,a.bg-warning:focus{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:hover,a.bg-danger:focus{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ul,ol{margin-top:0;margin-bottom:10px}ul ul,ol ul,ul ol,ol ol{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;margin-left:-5px;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dt,dd{line-height:1.42857143}dt{font-weight:bold}dd{margin-left:0}@media(min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote p:last-child,blockquote ul:last-child,blockquote ol:last-child{margin-bottom:0}blockquote footer,blockquote small,blockquote .small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote footer:before,blockquote small:before,blockquote .small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse footer:before,blockquote.pull-right footer:before,.blockquote-reverse small:before,blockquote.pull-right small:before,.blockquote-reverse .small:before,blockquote.pull-right .small:before{content:''}.blockquote-reverse footer:after,blockquote.pull-right footer:after,.blockquote-reverse small:after,blockquote.pull-right small:after,.blockquote-reverse .small:after,blockquote.pull-right .small:after{content:'\00A0 \2014'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:bold;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media(min-width:768px){.container{width:750px}}@media(min-width:992px){.container{width:970px}}@media(min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media(min-width:768px){.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media(min-width:992px){.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media(min-width:1200px){.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>thead>tr>th,.table>tbody>tr>th,.table>tfoot>tr>th,.table>thead>tr>td,.table>tbody>tr>td,.table>tfoot>tr>td{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>th,.table>caption+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>td,.table>thead:first-child>tr:first-child>td{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>thead>tr>th,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>tbody>tr>td,.table-condensed>tfoot>tr>td{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>tbody>tr>td,.table-bordered>tfoot>tr>td{border:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>thead>tr>td{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*="col-"]{position:static;display:table-column;float:none}table td[class*="col-"],table th[class*="col-"]{position:static;display:table-cell;float:none}.table>thead>tr>td.active,.table>tbody>tr>td.active,.table>tfoot>tr>td.active,.table>thead>tr>th.active,.table>tbody>tr>th.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>tbody>tr.active>td,.table>tfoot>tr.active>td,.table>thead>tr.active>th,.table>tbody>tr.active>th,.table>tfoot>tr.active>th{background-color:#f5f5f5}.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover,.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr.active:hover>th{background-color:#e8e8e8}.table>thead>tr>td.success,.table>tbody>tr>td.success,.table>tfoot>tr>td.success,.table>thead>tr>th.success,.table>tbody>tr>th.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>tbody>tr.success>td,.table>tfoot>tr.success>td,.table>thead>tr.success>th,.table>tbody>tr.success>th,.table>tfoot>tr.success>th{background-color:#dff0d8}.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover,.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr.success:hover>th{background-color:#d0e9c6}.table>thead>tr>td.info,.table>tbody>tr>td.info,.table>tfoot>tr>td.info,.table>thead>tr>th.info,.table>tbody>tr>th.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>tbody>tr.info>td,.table>tfoot>tr.info>td,.table>thead>tr.info>th,.table>tbody>tr.info>th,.table>tfoot>tr.info>th{background-color:#d9edf7}.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover,.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr.info:hover>th{background-color:#c4e3f3}.table>thead>tr>td.warning,.table>tbody>tr>td.warning,.table>tfoot>tr>td.warning,.table>thead>tr>th.warning,.table>tbody>tr>th.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>tbody>tr.warning>td,.table>tfoot>tr.warning>td,.table>thead>tr.warning>th,.table>tbody>tr.warning>th,.table>tfoot>tr.warning>th{background-color:#fcf8e3}.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover,.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr.warning:hover>th{background-color:#faf2cc}.table>thead>tr>td.danger,.table>tbody>tr>td.danger,.table>tfoot>tr>td.danger,.table>thead>tr>th.danger,.table>tbody>tr>th.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>tbody>tr.danger>td,.table>tfoot>tr.danger>td,.table>thead>tr.danger>th,.table>tbody>tr.danger>th,.table>tfoot>tr.danger>th{background-color:#f2dede}.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover,.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr.danger:hover>th{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>thead>tr>th,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tfoot>tr>td{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>thead>tr>th:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}.table-responsive>.table-bordered>thead>tr>th:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>th,.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>td{border-bottom:0}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:bold}input[type="search"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type="radio"],input[type="checkbox"]{margin:4px 0 0;margin-top:1px \9;line-height:normal}input[type="file"]{display:block}input[type="range"]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type="file"]:focus,input[type="radio"]:focus,input[type="checkbox"]:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control::-ms-expand{background-color:transparent;border:0}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type="search"]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type="date"].form-control,input[type="time"].form-control,input[type="datetime-local"].form-control,input[type="month"].form-control{line-height:34px}input[type="date"].input-sm,input[type="time"].input-sm,input[type="datetime-local"].input-sm,input[type="month"].input-sm,.input-group-sm input[type="date"],.input-group-sm input[type="time"],.input-group-sm input[type="datetime-local"],.input-group-sm input[type="month"]{line-height:30px}input[type="date"].input-lg,input[type="time"].input-lg,input[type="datetime-local"].input-lg,input[type="month"].input-lg,.input-group-lg input[type="date"],.input-group-lg input[type="time"],.input-group-lg input[type="datetime-local"],.input-group-lg input[type="month"]{line-height:46px}}.form-group{margin-bottom:15px}.radio,.checkbox{position:relative;display:block;margin-top:10px;margin-bottom:10px}.radio label,.checkbox label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:normal;cursor:pointer}.radio input[type="radio"],.radio-inline input[type="radio"],.checkbox input[type="checkbox"],.checkbox-inline input[type="checkbox"]{position:absolute;margin-top:4px \9;margin-left:-20px}.radio+.radio,.checkbox+.checkbox{margin-top:-5px}.radio-inline,.checkbox-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;font-weight:normal;vertical-align:middle;cursor:pointer}.radio-inline+.radio-inline,.checkbox-inline+.checkbox-inline{margin-top:0;margin-left:10px}input[type="radio"][disabled],input[type="checkbox"][disabled],input[type="radio"].disabled,input[type="checkbox"].disabled,fieldset[disabled] input[type="radio"],fieldset[disabled] input[type="checkbox"]{cursor:not-allowed}.radio-inline.disabled,.checkbox-inline.disabled,fieldset[disabled] .radio-inline,fieldset[disabled] .checkbox-inline{cursor:not-allowed}.radio.disabled label,.checkbox.disabled label,fieldset[disabled] .radio label,fieldset[disabled] .checkbox label{cursor:not-allowed}.form-control-static{min-height:34px;padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}textarea.input-sm,select[multiple].input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.form-group-sm select.form-control{height:30px;line-height:30px}.form-group-sm textarea.form-control,.form-group-sm select[multiple].form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}textarea.input-lg,select[multiple].input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.form-group-lg select.form-control{height:46px;line-height:46px}.form-group-lg textarea.form-control,.form-group-lg select[multiple].form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:11px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.input-lg+.form-control-feedback,.input-group-lg+.form-control-feedback,.form-group-lg .form-control+.form-control-feedback{width:46px;height:46px;line-height:46px}.input-sm+.form-control-feedback,.input-group-sm+.form-control-feedback,.form-group-sm .form-control+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .help-block,.has-success .control-label,.has-success .radio,.has-success .checkbox,.has-success .radio-inline,.has-success .checkbox-inline,.has-success.radio label,.has-success.checkbox label,.has-success.radio-inline label,.has-success.checkbox-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .help-block,.has-warning .control-label,.has-warning .radio,.has-warning .checkbox,.has-warning .radio-inline,.has-warning .checkbox-inline,.has-warning.radio label,.has-warning.checkbox label,.has-warning.radio-inline label,.has-warning.checkbox-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .help-block,.has-error .control-label,.has-error .radio,.has-error .checkbox,.has-error .radio-inline,.has-error .checkbox-inline,.has-error.radio label,.has-error.checkbox label,.has-error.radio-inline label,.has-error.checkbox-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label ~ .form-control-feedback{top:25px}.has-feedback label.sr-only ~ .form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media(min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn,.form-inline .input-group .form-control{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .radio,.form-inline .checkbox{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .radio label,.form-inline .checkbox label{padding-left:0}.form-inline .radio input[type="radio"],.form-inline .checkbox input[type="checkbox"]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .radio,.form-horizontal .checkbox,.form-horizontal .radio-inline,.form-horizontal .checkbox-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .radio,.form-horizontal .checkbox{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media(min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media(min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:11px;font-size:18px}}@media(min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px;font-size:12px}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:normal;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn:focus,.btn:active:focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn.active.focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn:hover,.btn:focus,.btn.focus{color:#333;text-decoration:none}.btn:active,.btn.active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default:focus,.btn-default.focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c}.btn-default:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default:active,.btn-default.active,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default:active:hover,.btn-default.active:hover,.open>.dropdown-toggle.btn-default:hover,.btn-default:active:focus,.btn-default.active:focus,.open>.dropdown-toggle.btn-default:focus,.btn-default:active.focus,.btn-default.active.focus,.open>.dropdown-toggle.btn-default.focus{color:#333;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default:active,.btn-default.active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled:hover,.btn-default[disabled]:hover,fieldset[disabled] .btn-default:hover,.btn-default.disabled:focus,.btn-default[disabled]:focus,fieldset[disabled] .btn-default:focus,.btn-default.disabled.focus,.btn-default[disabled].focus,fieldset[disabled] .btn-default.focus{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary:focus,.btn-primary.focus{color:#fff;background-color:#286090;border-color:#122b40}.btn-primary:hover{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary:active,.btn-primary.active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary:active:hover,.btn-primary.active:hover,.open>.dropdown-toggle.btn-primary:hover,.btn-primary:active:focus,.btn-primary.active:focus,.open>.dropdown-toggle.btn-primary:focus,.btn-primary:active.focus,.btn-primary.active.focus,.open>.dropdown-toggle.btn-primary.focus{color:#fff;background-color:#204d74;border-color:#122b40}.btn-primary:active,.btn-primary.active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled:hover,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary:hover,.btn-primary.disabled:focus,.btn-primary[disabled]:focus,fieldset[disabled] .btn-primary:focus,.btn-primary.disabled.focus,.btn-primary[disabled].focus,fieldset[disabled] .btn-primary.focus{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success:focus,.btn-success.focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success:hover{color:#fff;background-color:#449d44;border-color:#398439}.btn-success:active,.btn-success.active,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success:active:hover,.btn-success.active:hover,.open>.dropdown-toggle.btn-success:hover,.btn-success:active:focus,.btn-success.active:focus,.open>.dropdown-toggle.btn-success:focus,.btn-success:active.focus,.btn-success.active.focus,.open>.dropdown-toggle.btn-success.focus{color:#fff;background-color:#398439;border-color:#255625}.btn-success:active,.btn-success.active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled:hover,.btn-success[disabled]:hover,fieldset[disabled] .btn-success:hover,.btn-success.disabled:focus,.btn-success[disabled]:focus,fieldset[disabled] .btn-success:focus,.btn-success.disabled.focus,.btn-success[disabled].focus,fieldset[disabled] .btn-success.focus{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info:focus,.btn-info.focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info:active,.btn-info.active,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info:active:hover,.btn-info.active:hover,.open>.dropdown-toggle.btn-info:hover,.btn-info:active:focus,.btn-info.active:focus,.open>.dropdown-toggle.btn-info:focus,.btn-info:active.focus,.btn-info.active.focus,.open>.dropdown-toggle.btn-info.focus{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info:active,.btn-info.active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled:hover,.btn-info[disabled]:hover,fieldset[disabled] .btn-info:hover,.btn-info.disabled:focus,.btn-info[disabled]:focus,fieldset[disabled] .btn-info:focus,.btn-info.disabled.focus,.btn-info[disabled].focus,fieldset[disabled] .btn-info.focus{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning:focus,.btn-warning.focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning:active,.btn-warning.active,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning:active:hover,.btn-warning.active:hover,.open>.dropdown-toggle.btn-warning:hover,.btn-warning:active:focus,.btn-warning.active:focus,.open>.dropdown-toggle.btn-warning:focus,.btn-warning:active.focus,.btn-warning.active.focus,.open>.dropdown-toggle.btn-warning.focus{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning:active,.btn-warning.active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled:hover,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning:hover,.btn-warning.disabled:focus,.btn-warning[disabled]:focus,fieldset[disabled] .btn-warning:focus,.btn-warning.disabled.focus,.btn-warning[disabled].focus,fieldset[disabled] .btn-warning.focus{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger:focus,.btn-danger.focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger:active,.btn-danger.active,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger:active:hover,.btn-danger.active:hover,.open>.dropdown-toggle.btn-danger:hover,.btn-danger:active:focus,.btn-danger.active:focus,.open>.dropdown-toggle.btn-danger:focus,.btn-danger:active.focus,.btn-danger.active.focus,.open>.dropdown-toggle.btn-danger.focus{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger:active,.btn-danger.active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled:hover,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger:hover,.btn-danger.disabled:focus,.btn-danger[disabled]:focus,fieldset[disabled] .btn-danger:focus,.btn-danger.disabled.focus,.btn-danger[disabled].focus,fieldset[disabled] .btn-danger.focus{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:normal;color:#337ab7;border-radius:0}.btn-link,.btn-link:active,.btn-link.active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:hover,.btn-link:focus,.btn-link:active{border-color:transparent}.btn-link:hover,.btn-link:focus{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:hover,fieldset[disabled] .btn-link:hover,.btn-link[disabled]:focus,fieldset[disabled] .btn-link:focus{color:#777;text-decoration:none}.btn-lg,.btn-group-lg>.btn{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-sm,.btn-group-sm>.btn{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-xs,.btn-group-xs>.btn{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type="submit"].btn-block,input[type="reset"].btn-block,input[type="button"].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;-o-transition-property:height,visibility;transition-property:height,visibility}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-top:4px solid \9;border-right:4px solid transparent;border-left:4px solid transparent}.dropup,.dropdown{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:normal;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{color:#fff;text-decoration:none;background-color:#337ab7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{color:#777}.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px dashed;border-bottom:4px solid \9}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media(min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;float:left}.btn-group>.btn:hover,.btn-group-vertical>.btn:hover,.btn-group>.btn:focus,.btn-group-vertical>.btn:focus,.btn-group>.btn:active,.btn-group-vertical>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn.active{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle="buttons"]>.btn input[type="radio"],[data-toggle="buttons"]>.btn-group>.btn input[type="radio"],[data-toggle="buttons"]>.btn input[type="checkbox"],[data-toggle="buttons"]>.btn-group>.btn input[type="checkbox"]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*="col-"]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group .form-control:focus{z-index:3}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn,select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn,select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn{height:auto}.input-group-addon,.input-group-btn,.input-group .form-control{display:table-cell}.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child),.input-group .form-control:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:normal;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type="radio"],.input-group-addon input[type="checkbox"]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group-btn:last-child>.btn-group:not(:last-child)>.btn{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:first-child>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:hover,.input-group-btn>.btn:focus,.input-group-btn>.btn:active{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:hover,.nav>li>a:focus{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:hover,.nav>li.disabled>a:focus{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:hover,.nav .open>a:focus{background-color:#eee;border-color:#337ab7}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:hover,.nav-tabs>li.active>a:focus{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media(min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a:focus{border:1px solid #ddd}@media(min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a:focus{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:hover,.nav-pills>li.active>a:focus{color:#fff;background-color:#337ab7}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media(min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:hover,.nav-tabs-justified>.active>a:focus{border:1px solid #ddd}@media(min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:hover,.nav-tabs-justified>.active>a:focus{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media(min-width:768px){.navbar{border-radius:4px}}@media(min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}@media(min-width:768px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{max-height:340px}@media(max-device-width:480px) and (orientation:landscape){.navbar-fixed-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{max-height:200px}}.container>.navbar-header,.container-fluid>.navbar-header,.container>.navbar-collapse,.container-fluid>.navbar-collapse{margin-right:-15px;margin-left:-15px}@media(min-width:768px){.container>.navbar-header,.container-fluid>.navbar-header,.container>.navbar-collapse,.container-fluid>.navbar-collapse{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media(min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-top,.navbar-fixed-bottom{position:fixed;right:0;left:0;z-index:1030}@media(min-width:768px){.navbar-fixed-top,.navbar-fixed-bottom{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;height:50px;padding:15px 15px;font-size:18px;line-height:20px}.navbar-brand:hover,.navbar-brand:focus{text-decoration:none}.navbar-brand>img{display:block}@media(min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media(min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media(max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu>li>a,.navbar-nav .open .dropdown-menu .dropdown-header{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:hover,.navbar-nav .open .dropdown-menu>li>a:focus{background-image:none}}@media(min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}}.navbar-form{padding:10px 15px;margin-top:8px;margin-right:-15px;margin-bottom:8px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1)}@media(min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn,.navbar-form .input-group .form-control{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .radio,.navbar-form .checkbox{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .radio label,.navbar-form .checkbox label{padding-left:0}.navbar-form .radio input[type="radio"],.navbar-form .checkbox input[type="checkbox"]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media(max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media(min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media(min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}}@media(min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important;margin-right:-15px}.navbar-right ~ .navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:hover,.navbar-default .navbar-brand:focus{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:hover,.navbar-default .navbar-nav>li>a:focus{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:hover,.navbar-default .navbar-nav>.active>a:focus{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:hover,.navbar-default .navbar-nav>.disabled>a:focus{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:hover,.navbar-default .navbar-toggle:focus{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:hover,.navbar-default .navbar-nav>.open>a:focus{color:#555;background-color:#e7e7e7}@media(max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:hover,.navbar-default .btn-link:focus{color:#333}.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:hover,.navbar-default .btn-link[disabled]:focus,fieldset[disabled] .navbar-default .btn-link:focus{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:hover,.navbar-inverse .navbar-brand:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:hover,.navbar-inverse .navbar-nav>li>a:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:hover,.navbar-inverse .navbar-nav>.active>a:focus{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:hover,.navbar-inverse .navbar-nav>.disabled>a:focus{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:hover,.navbar-inverse .navbar-toggle:focus{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:hover,.navbar-inverse .navbar-nav>.open>a:focus{color:#fff;background-color:#080808}@media(max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:hover,.navbar-inverse .btn-link:focus{color:#fff}.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:hover,.navbar-inverse .btn-link[disabled]:focus,fieldset[disabled] .navbar-inverse .btn-link:focus{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:hover,.pagination>li>span:hover,.pagination>li>a:focus,.pagination>li>span:focus{z-index:2;color:#23527c;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>span,.pagination>.active>a:hover,.pagination>.active>span:hover,.pagination>.active>a:focus,.pagination>.active>span:focus{z-index:3;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination>.disabled>span,.pagination>.disabled>span:hover,.pagination>.disabled>span:focus,.pagination>.disabled>a,.pagination>.disabled>a:hover,.pagination>.disabled>a:focus{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px;line-height:1.3333333}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px;line-height:1.5}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:hover,.pager li>a:focus{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:hover,.pager .disabled>a:focus,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:bold;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:hover,a.label:focus{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:hover,.label-default[href]:focus{background-color:#5e5e5e}.label-primary{background-color:#337ab7}.label-primary[href]:hover,.label-primary[href]:focus{background-color:#286090}.label-success{background-color:#5cb85c}.label-success[href]:hover,.label-success[href]:focus{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:hover,.label-info[href]:focus{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:hover,.label-warning[href]:focus{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:hover,.label-danger[href]:focus{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:bold;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-xs .badge,.btn-group-xs>.btn .badge{top:0;padding:1px 5px}a.badge:hover,a.badge:focus{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding-top:30px;padding-bottom:30px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron h1,.jumbotron .h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{padding-right:15px;padding-left:15px;border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron,.container-fluid .jumbotron{padding-right:60px;padding-left:60px}.jumbotron h1,.jumbotron .h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail>img,.thumbnail a>img{margin-right:auto;margin-left:auto}a.thumbnail:hover,a.thumbnail:focus,a.thumbnail.active{border-color:#337ab7}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:bold}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-striped .progress-bar,.progress-bar-striped{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;background-size:40px 40px}.progress.active .progress-bar,.progress-bar.active{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:10000px}.media-object{display:block}.media-object.img-thumbnail{max-width:none}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-left,.media-right,.media-body{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}a.list-group-item,button.list-group-item{color:#555}a.list-group-item .list-group-item-heading,button.list-group-item .list-group-item-heading{color:#333}a.list-group-item:hover,button.list-group-item:hover,a.list-group-item:focus,button.list-group-item:focus{color:#555;text-decoration:none;background-color:#f5f5f5}button.list-group-item{width:100%;text-align:left}.list-group-item.disabled,.list-group-item.disabled:hover,.list-group-item.disabled:focus{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:hover,.list-group-item.active:focus{z-index:2;color:#fff;background-color:#337ab7;border-color:#337ab7}.list-group-item.active .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>.small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:hover .list-group-item-text,.list-group-item.active:focus .list-group-item-text{color:#c7ddef}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success,button.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:hover,button.list-group-item-success:hover,a.list-group-item-success:focus,button.list-group-item-success:focus{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,button.list-group-item-success.active,a.list-group-item-success.active:hover,button.list-group-item-success.active:hover,a.list-group-item-success.active:focus,button.list-group-item-success.active:focus{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info,button.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:hover,button.list-group-item-info:hover,a.list-group-item-info:focus,button.list-group-item-info:focus{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,button.list-group-item-info.active,a.list-group-item-info.active:hover,button.list-group-item-info.active:hover,a.list-group-item-info.active:focus,button.list-group-item-info.active:focus{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning,button.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:hover,button.list-group-item-warning:hover,a.list-group-item-warning:focus,button.list-group-item-warning:focus{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,button.list-group-item-warning.active,a.list-group-item-warning.active:hover,button.list-group-item-warning.active:hover,a.list-group-item-warning.active:focus,button.list-group-item-warning.active:focus{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger,button.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:hover,button.list-group-item-danger:hover,a.list-group-item-danger:focus,button.list-group-item-danger:focus{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,button.list-group-item-danger.active,a.list-group-item-danger.active:hover,button.list-group-item-danger.active:hover,a.list-group-item-danger.active:focus,button.list-group-item-danger.active:focus{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>a,.panel-title>small,.panel-title>.small,.panel-title>small>a,.panel-title>.small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child{border-top-left-radius:0;border-top-right-radius:0}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.table,.panel>.table-responsive>.table,.panel>.panel-collapse>.table{margin-bottom:0}.panel>.table caption,.panel>.table-responsive>.table caption,.panel>.panel-collapse>.table caption{padding-right:15px;padding-left:15px}.panel>.table:first-child,.panel>.table-responsive:first-child>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table:first-child>thead:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table:last-child,.panel>.table-responsive:last-child>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child th,.panel>.table>tbody:first-child>tr:first-child td{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.panel-body,.panel-group .panel-heading+.panel-collapse>.list-group{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#337ab7}.panel-primary>.panel-heading{color:#fff;background-color:#337ab7;border-color:#337ab7}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#337ab7}.panel-primary>.panel-heading .badge{color:#337ab7;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#337ab7}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive iframe,.embed-responsive embed,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:bold;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:transparent;border:0}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media(min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media(min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;font-style:normal;font-weight:normal;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;filter:alpha(opacity=0);opacity:0;line-break:auto}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{right:5px;bottom:0;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:normal;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);line-break:auto}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>img,.carousel-inner>.item>a>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;perspective:1000px}.carousel-inner>.item.next,.carousel-inner>.item.active.right{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.item.prev,.carousel-inner>.item.active.left{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right,.carousel-inner>.item.active{left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);background-color:rgba(0,0,0,0);filter:alpha(opacity=50);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000',endColorstr='#00000000',GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000',endColorstr='#80000000',GradientType=1);background-repeat:repeat-x}.carousel-control:hover,.carousel-control:focus{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .icon-prev,.carousel-control .icon-next,.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right{position:absolute;top:50%;z-index:5;display:inline-block;margin-top:-10px}.carousel-control .icon-prev,.carousel-control .glyphicon-chevron-left{left:50%;margin-left:-10px}.carousel-control .icon-next,.carousel-control .glyphicon-chevron-right{right:50%;margin-right:-10px}.carousel-control .icon-prev,.carousel-control .icon-next{width:20px;height:20px;font-family:serif;line-height:1}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000 \9;background-color:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-prev,.carousel-control .icon-next{width:30px;height:30px;margin-top:-10px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-10px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.clearfix:before,.clearfix:after,.dl-horizontal dd:before,.dl-horizontal dd:after,.container:before,.container:after,.container-fluid:before,.container-fluid:after,.row:before,.row:after,.form-horizontal .form-group:before,.form-horizontal .form-group:after,.btn-toolbar:before,.btn-toolbar:after,.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after,.nav:before,.nav:after,.navbar:before,.navbar:after,.navbar-header:before,.navbar-header:after,.navbar-collapse:before,.navbar-collapse:after,.pager:before,.pager:after,.panel-body:before,.panel-body:after,.modal-header:before,.modal-header:after,.modal-footer:before,.modal-footer:after{display:table;content:" "}.clearfix:after,.dl-horizontal dd:after,.container:after,.container-fluid:after,.row:after,.form-horizontal .form-group:after,.btn-toolbar:after,.btn-group-vertical>.btn-group:after,.nav:after,.navbar:after,.navbar-header:after,.navbar-collapse:after,.pager:after,.panel-body:after,.modal-header:after,.modal-footer:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-xs,.visible-sm,.visible-md,.visible-lg{display:none!important}.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block{display:none!important}@media(max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}th.visible-xs,td.visible-xs{display:table-cell!important}}@media(max-width:767px){.visible-xs-block{display:block!important}}@media(max-width:767px){.visible-xs-inline{display:inline!important}}@media(max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media(min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}th.visible-sm,td.visible-sm{display:table-cell!important}}@media(min-width:768px) and (max-width:991px){.visible-sm-block{display:block!important}}@media(min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline!important}}@media(min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media(min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}th.visible-md,td.visible-md{display:table-cell!important}}@media(min-width:992px) and (max-width:1199px){.visible-md-block{display:block!important}}@media(min-width:992px) and (max-width:1199px){.visible-md-inline{display:inline!important}}@media(min-width:992px) and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media(min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}th.visible-lg,td.visible-lg{display:table-cell!important}}@media(min-width:1200px){.visible-lg-block{display:block!important}}@media(min-width:1200px){.visible-lg-inline{display:inline!important}}@media(min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media(max-width:767px){.hidden-xs{display:none!important}}@media(min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media(min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media(min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}th.visible-print,td.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}
|
||
</style> <style type="text/css">
|
||
|
||
/*!
|
||
* Font Awesome 3.2.1
|
||
* the iconic font designed for Bootstrap
|
||
* ------------------------------------------------------------------------------
|
||
* The full suite of pictographic icons, examples, and documentation can be
|
||
* found at http://fontawesome.io. Stay up to date on Twitter at
|
||
* http://twitter.com/fontawesome.
|
||
*
|
||
* License
|
||
* ------------------------------------------------------------------------------
|
||
* - The Font Awesome font is licensed under SIL OFL 1.1 -
|
||
* http://scripts.sil.org/OFL
|
||
* - Font Awesome CSS, LESS, and SASS files are licensed under MIT License -
|
||
* http://opensource.org/licenses/mit-license.html
|
||
* - Font Awesome documentation licensed under CC BY 3.0 -
|
||
* http://creativecommons.org/licenses/by/3.0/
|
||
* - Attribution is no longer required in Font Awesome 3.0, but much appreciated:
|
||
* "Font Awesome by Dave Gandy - http://fontawesome.io"
|
||
*
|
||
* Author - Dave Gandy
|
||
* ------------------------------------------------------------------------------
|
||
* Email: dave@fontawesome.io
|
||
* Twitter: http://twitter.com/davegandy
|
||
* Work: Lead Product Designer @ Kyruus - http://kyruus.com
|
||
*/@font-face{font-family:'FontAwesome';src: url('data:font/opentype;charset=utf-8;base64,T1RUTwAJAIAAAwAQQ0ZGIIgPTLEAAA0cAADkqk9TLzKSboDVAAABAAAAAGBjbWFwYSUx7AAABLwAAAJsaGVhZP/LNjYAAACcAAAANmhoZWENgwf0AAAA1AAAACRobXR4vmwNkgAABygAAAXUbWF4cAF2UAAAAAD4AAAABm5hbWWfVdNsAAABYAAAA1lwb3N0/30AWgAADPwAAAAgAAEAAAADAIMXjfXEXw889QADBwAAAAAAy1SCMAAAAADN3WqL///+/weBBgEAAAADAAIAAAAAAAAAAQAABgD/AAAAB4D/////B4EAAQAAAAAAAAAAAAAAAAAAAXQAAFAAAXYAAAADBgUBkAAFAAQEjAQzAAAAhgSMBDMAAAJzAFoEMwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABweXJzAEAAIPUABgD/AAAABYABjwAAAAEAAAAABwAHAAAgACAAAAAAABUBAgABAAAAAAAAABkAAAABAAAAAAABAAsAGQABAAAAAAADABEAJAABAAAAAAAEAAsAGQABAAAAAAAFABIANQABAAAAAAAGAAsAGQABAAAAAAAHAFEARwABAAAAAAAIAAwAmAABAAAAAAAJAAoApAABAAAAAAALABUArgADAAEECQAAADIAwwADAAEECQABABYA9QADAAEECQACAA4BCwADAAEECQADACIBGQADAAEECQAEABYA9QADAAEECQAFACQBOwADAAEECQAGABYA9QADAAEECQAHAKIBXwADAAEECQAIABgCAQADAAEECQAJABQCGQADAAEECQALACoCLVNJTCBPcGVuIEZvbnQgTGljZW5zZSAxLjFGb250QXdlc29tZUZPTlRMQUI6T1RGRVhQT1JUVmVyc2lvbiAzLjIuMCAyMDEzUGxlYXNlIHJlZmVyIHRvIHRoZSBDb3B5cmlnaHQgc2VjdGlvbiBmb3IgdGhlIGZvbnQgdHJhZGVtYXJrIGF0dHJpYnV0aW9uIG5vdGljZXMuRm9ydCBBd2Vzb21lRGF2ZSBHYW5keWh0dHA6Ly9mb250YXdlc29tZS5pbwBTAEkATAAgAE8AcABlAG4AIABGAG8AbgB0ACAATABpAGMAZQBuAHMAZQAgADEALgAxAEYAbwBuAHQAQQB3AGUAcwBvAG0AZQBSAGUAZwB1AGwAYQByAEYATwBOAFQATABBAEIAOgBPAFQARgBFAFgAUABPAFIAVABWAGUAcgBzAGkAbwBuACAAMwAuADIALgAwACAAMgAwADEAMwBQAGwAZQBhAHMAZQAgAHIAZQBmAGUAcgAgAHQAbwAgAHQAaABlACAAQwBvAHAAeQByAGkAZwBoAHQAIABzAGUAYwB0AGkAbwBuACAAZgBvAHIAIAB0AGgAZQAgAGYAbwBuAHQAIAB0AHIAYQBkAGUAbQBhAHIAawAgAGEAdAB0AHIAaQBiAHUAdABpAG8AbgAgAG4AbwB0AGkAYwBlAHMALgBGAG8AcgB0ACAAQQB3AGUAcwBvAG0AZQBEAGEAdgBlACAARwBhAG4AZAB5AGgAdAB0AHAAOgAvAC8AZgBvAG4AdABhAHcAZQBzAG8AbQBlAC4AaQBvAAAAAAAAAwAAAAMAAAEiAAEAAAAAABwAAwABAAABIgAAAQYAAAAAAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkLCAUGsQcAsgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAFKAAAATABAAAUADAAgAKkArgC0AMYhIiIeImDwDvAe8D7wTvBe8GbwafBu8H7wjvCe8K7wsvDO8N7w7vD+8Q7xHvEn8SjxLvE+8U7xXvFu8X7xjvUA//8AAAAgAKgArgC0AMYhIiIeImDwAPAQ8CHwQPBQ8GDwZ/Bq8HDwgPCQ8KDwsPDA8NDw4PDw8QDxEPEg8SjxKfEw8UDxUPFg8XDxgPUA////4QAA/1v/Uf9B3ubelN5REAwQCxAJEAgQBxAGAAAQAxACEAEQAA//D/4P9A/zD/IP8Q/wD+8P7g7cD+0P7A/rD+oP6Q/oD+cLswABAAAASgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGAAsAAwAKAAIDgABwAcAAAAaAAHYFgAAABAAAXwcAAAAHAAAABwAAAAcAAAAHAAAABYAAAAcAAAAHAABdBgAAAAaAAAAHAAAABwAAAAaAAAAGgAAABYAAAAeAAAAGgAAABwAAAAcAAAAHAAB5BYAAbgaAAAAGgAAABgAAAAcAAAAGAAAABYAAAAaAABoFAAAABgAAAAeAADIGgAAABgAAAAYAAAAGAAAABgAAAAYAAAAGAAAABwAAAASAAAAHAABABoAAAAMAAAAEgAAABoAAAAWAAAAHAAAABgAAAAeAAAAGgP//BQAAAAaAAAAHgAAABoAAAAWAAAAEAAAABwAAAAYAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAeAAAAGAAAABAAAAAYAAAAEAAAABwAAAAaAAAAGgAAABwAAAAQAAAAHAAAABoAAegWAAAAGAAAABgAAAAaAAAAHAAAABAAAAAYC//8EgAA1BIAAdQYAAAAGAAAABgAAAAYAAAAGAAAABgAAAAYAAAAGAAAABgAAAAYAAAAGAABABgAAAAaAADUGgAA1BwAAAAYAAAAGAAANBgAAAAYAAAAHAAAABYAAAAcAAAAHAAAABwAAAAWAAAAGgAAABwAAAAcAAAAGAAAABoAANQaAADUHgAAABoAAAAaAAAAHgAAAAwAAQAcAAAAHgAAABgAAAAYAAAAHAAAABwAAAAeAAAAHAAAABgAAAAYAAAADgAAABwAAAAaAAAAGAAAABIAAAAcAAAAGAAAABoAAAAYAAAAGgAAABgAAAAWAAAAFgAAABQAAAAYAAAAGgAAsAwAAAAYAAAAGgAAAB4AAAAWAAAAGAAAABwAAAAaAAAAGAP//BwAAAAcAAAAGAAAABgAAAAYAAAAGAAAABgAAAAYAAAAGAAAABoAAFQcAAAAFgAAABwAAAAYAAAAHAAAABwAAAAcAAAAHgAAABoAAEAeAAAAGgABmBwAAAAcAAAAFgAAEBgAAAAYAAAAGAAAABwAAAAcAAA8HAAAABgAAAAaAAAAGgAAbBwAAQAYAAAAGAAAABgAAAAaAAAAHgAAABAAAAAQAAAACgABAAoAAAAaAAAAEAAAABAAAAAQAAAAHAAAABgAAAAYAAAAHAAAoBwAAAAcAAAAHAAAAA4AAAAcAAAAGgAAABwAAAAQAAAAHAAAAB4AAAAeAAAAFgAAABYAAAAcAAAAGgAAAB4AAAAWAAAAFAAAABYAAAAWAAAAHgABABwAAAAeAAAAGgABABgAAAAYAAAAEAAAtBAAADQSAAE0EgABNAoAALQKAAA0EgABNBIAATQeAAAAHgAAABIAAAAMAAAAGAAAABoAAAAaAAAAGIAAABgAAAAcAAAAGgAAABoAAAAeAAAAEgAAABIAAAAYAAAAGAAAABgAAAAeAAAAHgAAABwAAQAcAAEAGgAANB4AALQcAAAAGgAAABYAAAAaAAAAEAAAABoAAAAKAAAACgABiBgAABQYAAAUHgAAABoAAAASAAAAFgAANBQAAAAaAAAAFgAAABoAAIAcAAAAGAAAABgAAAAYAAAAGAAAABYAAAAcAAAwHAAAABIAAAAYAAAAFgAAAAYAAAAYAAAAGAAAABwAANQYAAAAFgAAABAAAAAQAAAAGAAAABgAAAAYAAAAGAAAABgAAAAYAAAAGAAAABgAAAAQAAAAEAAAABAAALQOCAAAEAwAABoAAHAcAAAAFAAA4BQAAAAUAAAAGgAAfBoAAHwcAAB8HAAAfBgAAHwYAAB8GgAAABoAAAAYAAAAGAAAbBYAAAAYAAAAHAAAABwAAQAWAAAAGAAAABgAAAAYAAAAFgAAABgAAAAQAAE4GAAAAAwAAAAMAAAAHAABABwAAAAWAAAAGgAAABYAAAAYAAAYGAAAABgAAAAaA//8GAAAABQAAAAQAAAAGAAAABwAAKgYAAAAHAABABoAAIAeA//8HAAAAB4AAAAcAAAAAAAAAAAMAAAAAAAD/egBaAAAAAAAAAAAAAAAAAAAAAAAAAAABAAQCAAEBAQxGb250QXdlc29tZQABAQFE+BAA+YUB+YYC+YYD+BkE+0cMA+UMBIr7lRwHgRwGAQUeoABVgDb/i4seoABVgDb/i4sMBxwghQ8cIKcRrh0AANUuEgFsAgABAAYACwARABkAHgAiACwAMAA0ADwAPgBFAEcATQBUAFwAXwBlAGgAbQBxAHkAfQCBAI0AlQCbAKAAqwCxALgAwADEAMgA0gDcAOcA8AD2AP0BAAEEAQgBEAEVARsBHwEjASkBNAE+AUgBVAFfAWwBcAF7AYcBlQGcAaIBrAGyAbYBugG/AcQByAHVAeIB6gHuAfMB9wH+AgoCFgIbAicCNAI9AkcCUgJZAmYCbwJ5AoYCjwKZAqMCrgK2AsACyQLUAuAC8AL0AvgC/AMEAw0DGQMeAyYDLAMzAzkDQwNPA1YDYwNvA3oDiQOaA6MDrwO8A8gDywPPA9cD5APzA/wEBwQOBBsEIgQvBDUEOwRGBFAEVQRaBGUEcwR9BIQEjASSBJgEowSmBKkEsQS1BMAEygTTBNoE4wT0BQYFFQUmBSsFMQU2BTwFRQVPBVcFXwVoBW0FcQV2BXwFfwWDBY0FkQWbBaIFpAWmBbMFvAXBBcYFywXUBeIF8gX9BgIGDAYUBh4GKQYwBjQGPQZEBlAGWAZcBmEGagZ1BoEGhQaMBpQGmQajBqsGuQbFBswG1wbfBucG7QbxBv4HBgcOBxcHHQcoBywHMgc2B0cHWQdoB3kHgweOB5YHoAenB60Hswe/B8sH1QfgB+cH7QfyB/wIDAgbCCUIMQg2CDsIPghFCE0IVQhjCGsIbwh4CIcIlQiZCKIIqAisCLcIwgjLCM8I2wjlCPMI+QkHCRgJHgkkCTUJRwlWCWcJbAlwCXYJgAmICZsJrAmwCbkJvwnNCdgJ4AnqCfQJ/QoBCgsKEgoaCiYKKgotCjAKMwo2CjkKPAo/CkIKRgpPCl8KYwp1CosKmAqpCq0KsQq9CsQKyArRCt0K5ArxCvoLAAsDCwcLFQsbCyYLNQtCC1ELYQtmC20LdAt5C4ALhQuPC5ULmwufC6ULqAusC7MLtgu4C70LwwvHC8sLzwvoC/NnbGFzc211c2ljc2VhcmNoZW52ZWxvcGVoZWFydHN0YXJzdGFyX2VtcHR5dXNlcmZpbG10aF9sYXJnZXRodGhfbGlzdG9rcmVtb3Zlem9vbV9pbnpvb21fb3V0b2Zmc2lnbmFsY29ndHJhc2hob21lZmlsZV9hbHR0aW1lcm9hZGRvd25sb2FkX2FsdGRvd25sb2FkdXBsb2FkaW5ib3hwbGF5X2NpcmNsZXJlcGVhdHJlZnJlc2hsaXN0X2FsdGxvY2tmbGFnaGVhZHBob25lc3ZvbHVtZV9vZmZ2b2x1bWVfZG93bnZvbHVtZV91cHFyY29kZWJhcmNvZGV0YWd0YWdzYm9va2Jvb2ttYXJrcHJpbnRjYW1lcmFmb250Ym9sZGl0YWxpY3RleHRfaGVpZ2h0dGV4dF93aWR0aGFsaWduX2xlZnRhbGlnbl9jZW50ZXJhbGlnbl9yaWdodGFsaWduX2p1c3RpZnlsaXN0aW5kZW50X2xlZnRpbmRlbnRfcmlnaHRmYWNldGltZV92aWRlb3BpY3R1cmVwZW5jaWxtYXBfbWFya2VyYWRqdXN0dGludGVkaXRzaGFyZWNoZWNrbW92ZXN0ZXBfYmFja3dhcmRmYXN0X2JhY2t3YXJkYmFja3dhcmRwbGF5cGF1c2VzdG9wZm9yd2FyZGZhc3RfZm9yd2FyZHN0ZXBfZm9yd2FyZGVqZWN0Y2hldnJvbl9sZWZ0Y2hldnJvbl9yaWdodHBsdXNfc2lnbm1pbnVzX3NpZ25yZW1vdmVfc2lnbm9rX3NpZ25xdWVzdGlvbl9zaWduaW5mb19zaWduc2NyZWVuc2hvdHJlbW92ZV9jaXJjbGVva19jaXJjbGViYW5fY2lyY2xlYXJyb3dfbGVmdGFycm93X3JpZ2h0YXJyb3dfdXBhcnJvd19kb3duc2hhcmVfYWx0cmVzaXplX2Z1bGxyZXNpemVfc21hbGxleGNsYW1hdGlvbl9zaWduZ2lmdGxlYWZmaXJlZXllX29wZW5leWVfY2xvc2V3YXJuaW5nX3NpZ25wbGFuZWNhbGVuZGFycmFuZG9tY29tbWVudG1hZ25ldGNoZXZyb25fdXBjaGV2cm9uX2Rvd25yZXR3ZWV0c2hvcHBpbmdfY2FydGZvbGRlcl9jbG9zZWZvbGRlcl9vcGVucmVzaXplX3ZlcnRpY2FscmVzaXplX2hvcml6b250YWxiYXJfY2hhcnR0d2l0dGVyX3NpZ25mYWNlYm9va19zaWduY2FtZXJhX3JldHJva2V5Y29nc2NvbW1lbnRzdGh1bWJzX3VwX2FsdHRodW1ic19kb3duX2FsdHN0YXJfaGFsZmhlYXJ0X2VtcHR5c2lnbm91dGxpbmtlZGluX3NpZ25wdXNocGluZXh0ZXJuYWxfbGlua3NpZ25pbnRyb3BoeWdpdGh1Yl9zaWdudXBsb2FkX2FsdGxlbW9ucGhvbmVjaGVja19lbXB0eWJvb2ttYXJrX2VtcHR5cGhvbmVfc2lnbnR3aXR0ZXJmYWNlYm9va2dpdGh1YnVubG9ja2NyZWRpdF9jYXJkcnNzaGRkYnVsbGhvcm5iZWxsY2VydGlmaWNhdGVoYW5kX3JpZ2h0aGFuZF9sZWZ0aGFuZF91cGhhbmRfZG93bmNpcmNsZV9hcnJvd19sZWZ0Y2lyY2xlX2Fycm93X3JpZ2h0Y2lyY2xlX2Fycm93X3VwY2lyY2xlX2Fycm93X2Rvd25nbG9iZXdyZW5jaHRhc2tzZmlsdGVyYnJpZWZjYXNlZnVsbHNjcmVlbm5vdGVxdWFsaW5maW5pdHlsZXNzZXF1YWxncm91cGxpbmtjbG91ZGJlYWtlcmN1dGNvcHlwYXBlcl9jbGlwc2F2ZXNpZ25fYmxhbmtyZW9yZGVydWxvbHN0cmlrZXRocm91Z2h1bmRlcmxpbmV0YWJsZW1hZ2ljdHJ1Y2twaW50ZXJlc3RwaW50ZXJlc3Rfc2lnbmdvb2dsZV9wbHVzX3NpZ25nb29nbGVfcGx1c21vbmV5Y2FyZXRfZG93bmNhcmV0X3VwY2FyZXRfbGVmdGNhcmV0X3JpZ2h0Y29sdW1uc3NvcnRzb3J0X2Rvd25zb3J0X3VwZW52ZWxvcGVfYWx0bGlua2VkaW51bmRvbGVnYWxkYXNoYm9hcmRjb21tZW50X2FsdGNvbW1lbnRzX2FsdGJvbHRzaXRlbWFwdW1icmVsbGFwYXN0ZWxpZ2h0X2J1bGJleGNoYW5nZWNsb3VkX2Rvd25sb2FkY2xvdWRfdXBsb2FkdXNlcl9tZHN0ZXRob3Njb3Blc3VpdGNhc2ViZWxsX2FsdGNvZmZlZWZvb2RmaWxlX3RleHRfYWx0YnVpbGRpbmdob3NwaXRhbGFtYnVsYW5jZW1lZGtpdGZpZ2h0ZXJfamV0YmVlcmhfc2lnbmYwZmVkb3VibGVfYW5nbGVfbGVmdGRvdWJsZV9hbmdsZV9yaWdodGRvdWJsZV9hbmdsZV91cGRvdWJsZV9hbmdsZV9kb3duYW5nbGVfbGVmdGFuZ2xlX3JpZ2h0YW5nbGVfdXBhbmdsZV9kb3duZGVza3RvcGxhcHRvcHRhYmxldG1vYmlsZV9waG9uZWNpcmNsZV9ibGFua3F1b3RlX2xlZnRxdW90ZV9yaWdodHNwaW5uZXJjaXJjbGVyZXBseWdpdGh1Yl9hbHRmb2xkZXJfY2xvc2VfYWx0Zm9sZGVyX29wZW5fYWx0ZXhwYW5kX2FsdGNvbGxhcHNlX2FsdHNtaWxlZnJvd25tZWhnYW1lcGFka2V5Ym9hcmRmbGFnX2FsdGZsYWdfY2hlY2tlcmVkdGVybWluYWxjb2RlcmVwbHlfYWxsc3Rhcl9oYWxmX2VtcHR5bG9jYXRpb25fYXJyb3djcm9wY29kZV9mb3JrdW5saW5rXzI3OWV4Y2xhbWF0aW9uc3VwZXJzY3JpcHRzdWJzY3JpcHRfMjgzcHV6emxlX3BpZWNlbWljcm9waG9uZW1pY3JvcGhvbmVfb2Zmc2hpZWxkY2FsZW5kYXJfZW1wdHlmaXJlX2V4dGluZ3Vpc2hlcnJvY2tldG1heGNkbmNoZXZyb25fc2lnbl9sZWZ0Y2hldnJvbl9zaWduX3JpZ2h0Y2hldnJvbl9zaWduX3VwY2hldnJvbl9zaWduX2Rvd25odG1sNWNzczNhbmNob3J1bmxvY2tfYWx0YnVsbHNleWVlbGxpcHNpc19ob3Jpem9udGFsZWxsaXBzaXNfdmVydGljYWxfMzAzcGxheV9zaWdudGlja2V0bWludXNfc2lnbl9hbHRjaGVja19taW51c2xldmVsX3VwbGV2ZWxfZG93bmNoZWNrX3NpZ25lZGl0X3NpZ25fMzEyc2hhcmVfc2lnbmNvbXBhc3Njb2xsYXBzZWNvbGxhcHNlX3RvcF8zMTdldXJnYnB1c2RpbnJqcHljbnlrcndidGNmaWxlZmlsZV90ZXh0c29ydF9ieV9hbHBoYWJldF8zMjlzb3J0X2J5X2F0dHJpYnV0ZXNzb3J0X2J5X2F0dHJpYnV0ZXNfYWx0c29ydF9ieV9vcmRlcnNvcnRfYnlfb3JkZXJfYWx0XzMzNF8zMzV5b3V0dWJlX3NpZ255b3V0dWJleGluZ3hpbmdfc2lnbnlvdXR1YmVfcGxheWRyb3Bib3hzdGFja2V4Y2hhbmdlaW5zdGFncmFtZmxpY2tyYWRuZjE3MWJpdGJ1Y2tldF9zaWdudHVtYmxydHVtYmxyX3NpZ25sb25nX2Fycm93X2Rvd25sb25nX2Fycm93X3VwbG9uZ19hcnJvd19sZWZ0bG9uZ19hcnJvd19yaWdodGFwcGxld2luZG93c2FuZHJvaWRsaW51eGRyaWJibGVza3lwZWZvdXJzcXVhcmV0cmVsbG9mZW1hbGVtYWxlZ2l0dGlwc3VuXzM2NmFyY2hpdmVidWd2a3dlaWJvcmVucmVuXzM3Ml8zNzNfMzc0U0lMIE9wZW4gRm9udCBMaWNlbnNlIDEuMUZvbnRBd2Vzb21lASMCAAEACQAWACcAOQA+AEsAVgBaAGIAdgB6AM4A1ADYANwA6gD3APwBEgEWATEBOgE/AUsBWQFnAWsBbwF0AXoCAQJKAk4CUQJVAmICZgJtAnICdwKBAoUCiQKSApoCqQMFAw8DVQNaA2ADZAO5A78D5QP5BAIECgQOBDYEOgReBG4EdATBBPIE9wT7BQAFRgVMBX0FoAWqBbkF7gYvBj8GRAZWBloGXgZiBmgGbQZ1Bn0Ggga3Bu4G8wb4Bv0HAwcHBxoHLQcxBzoHQQdKB04HUgdgB3sHhgeaB54HpQe9B8kH0gf+CCkIMQg2CDsIQAhFCEkIcQh1CIoIkQiUCJgIngijCKgIzgjUCN0I4gjnCPcI/QkGCQwJEgkjCS4JNQk8CUAJWwlfCWIJdwmACYsJmAmeCaMJqAm1Cb4JywnjCgIKIQopCkcKWApiCn0KmQqmCqsKtwrACsoK4wr1CvwLAwsICxULIwsxCzcLPAtAC1cLbguDC5kLrwu3C70LxAvKC9EL1gvbC/AMBQwXDCsMNww7DEMMSAxNDFsMbAx/DIgMmwyfDKgMrwy2DMgM0QzcDOEM5gzrDPwNDQ0SDRoNIg0yDTYNOg1CDUoNUQ1WDV0NZA1pDW4Ncg2BDZANmQ2hDaQNqQ2wDb4Nwg3KDdAN1Q3aDd8N6A3tDfMN9w39DgIOBw4UDiEOLA45Dj8ORg5KDk4OUg5WDlwOZg5uDnYOfg6EDokOjg6TDpgOng6mDrEOtw7CDskO0w7eDukO8g79DwEPBg8LDxD2CiId+lTECi4KSwZfCktEHctOCgv+VAb7M/sV+xX7Mx/+VCYdC6UduR1LHffA94i5HR73dBYgCmhubmgLlh2vHfdUWgr31HgKCwf7M/cV+xX3Mx4LBioKCwZfCvtURB0LaG5uaB77FPcTHfcAHW5oH/sUBwsuHR8LFYMd9xkd912tHfddrR33Jx0e+JT91BWtfax0oh776/frBdz3Cbb3IPciGvgZ+8/3z/wZ/Bn7z/vP/Bn8GffP+8/4Gfci9yC23PcJHvfr++r3Nh0LnX2ZeR4LNR0eCwYkHQsFhYWHgoMag4+CkYUeCzMdHPmAJgocBoAnHQsGOgofCysGgoSEgh8rB4KShJQe6waUkpKUHws7Ch4Llwr8HfdICvgdBZGFgo+DG4KDox34ZvxmZQoL9zP7FfcV+zMLeX19eQsFhZGUh5Mbk5S4CgskHWhuqK6uqKiuoB0eCwWRhYKPgxuDgoeFhR8LFSQKC0YdHwshCvuUC1ZgYFYfC5Sfte+dGo2KjoiNHpJ/IMqGG4WJaWltZG9kGYGMgYyBgYGKgQwkmoFA7n4bhiBLhX8fiImKiIkaerUmlHcef3uBeYN5CHeJ+xV9fBr7IAd89xV9n4kek3iVepd7CIJ3YSZ6GomMiI6JHoSX9kuQG5jW75qVH5WKlYqVlZWMlQwkfJXWJ5gbCxWcfJp6Hhz5QAZ6fHx6H/tUB3qafJweHAbABpyampwf+NQEnHyaeh7+1AZ6fHx6H/tUB3qafJwe+tSJHRz5QCgdHAbABjcKHw4VOB0LJx0OFSwdC1EKjwoDjwr3VBUwHQtTHR4LMAr7VC0KC8C2tsAL95RiHQv7IfcH+wdYCh4LFTMdC1IdiwulHYQd94j3wAsVdgqDCkgdC7Qdlgof/FT8VH0K+hRBHfc7+wL3KPs96B6aWpNYVxr7Ry/7Ofs7+w4e+wT7L/tfTftrG25tjY1uHzn3Efc6WfdJG8jGkZXDH95Q6WDwcaaEqIaph5uJmpiPnQjpCo+efpeAmGS3X7Jp3ggLG/xpi/xp/GkaC3cK+JT8NDIK+DT9lAb8FPoUFfgMB5yFnIKShPfN+80YkoSUepF6CPccaxXAbNVmsB77zPfMBbBmQapWG/0U9wYd+tQ2Cg4wCo0KC/sUVgoBCwdqCgsVbP5ui2wbfHyIhX0fX3pvYl4aHPr3B16nYrd6HoWZmoiaG6qol6CiH/hN+Dz4Tfw8BXaiqICqG5qajZGZH7ecp7S4GhwFCQe4b7RfnB6RfXyOfBsO9zkd9xQLjx1ZWQWFhYeCgxqDj4KRhR74Hfwd90gKwwr4ZvhmBZGRj5STGgvpHfyUBkVRUUUf/BQHqh34lIsKC1wdgYCLgU8dCwWRkY+UkxoLBl8dCxV6CvsG9wY5Hfvg++D7JPckfR38VCgK+FQG90Yd+yT3JPfg9+BZHQsWWwoLSR38VC4dnh0f9yT7JPvg++AvHfcG+wY3Hffg9+D3JPskfAoL9TXhIbgdIeE19fXh4fUeC52ZfXkfCxX3bfsU9xb7M/snIfsF+x77Fur7BvclxsagqacejQYjeE0n+wwbbnGRkncfgI6Aj4KPZPsFGJeGmYabhgiCpbCEuBv3gvcC92/3Xh8LH/u0B/gUyxXpHfsU6waFCkt7HSv8FOsHhQpLex0r+xQHRVFRRR8c+wAHqh1yHfcECvcUggoLNh0eCwagHR8L6PcNkJ4b9wzUiIa4H4W514fMG5SWi4yZH42YjJWRGpKJm4imHn2SepF4kGGXUZyGjHCQV6GBkIOlh5GMwIz3JxiI9/sFC2huqK4fC/c4HR77dAZWYLbAH6v3Mx0nHbcKHksG+677evt6+64f/VQHIeE19R74FAb14eH1HwsVnQr8tPi0fR37tPxUByQdH/wUKAr4VPu0BoId+LT4tHUdC8AKVgr81BW6HQsVgwr7IfsH9wf3IcEKHgsV/LQGVmC2wB/4tPy09y0KHPrAMgr61DYKiPo0FYK7ccFtqfvM98wYbalVpVuUCPyR+JEHDo+Hmh+ViJSEk4KQhZQsnlOeU51gnG6fjaGRpZUIjpmMnJ8ajMWK74r0jNqKvxmMfoKLhRthigWLc2prjR5pjQULxwr5OpoKHPqAmx35On8dC0RSUkQLqwbVCvvUBvsPJib7Dx/+VAcLBC4KCwaGCgscBYALeX2ZnR8L+xT3FAsFl5eSm5waC/do90D3KB0L0sTE0gtpOF9kZF+Afn5/j3gI6Qp6jpl/moyMi4wbqY+okKaS8KXptt7GCIHDxoXIG/gZ98/3efevC/e5+0f3Q/u/+0P7OPsePTwe2Tz7OPce+0Mb+7/7R/tD+7n7hPdw+12ThB/5BPzuBX+Xm4WbGwsGlAofCwaUHR8L90odHgtvCiQdHwscBIALB46Ej4WRhfla/VoYpHKflK4aCweIkoeRhZH9WvlaGHKkd4JoGgsVOQoLLwqcm5KXlx4L9xkd9ycdC/eI98D3wPeICweGHQs3Ch4LQB33lBY4HfcU93TgCgv3Lgr7dPt0Bqgd93T7dAdzHfdUWgr3dPd0BgtUCv7UKB361FQKC5OIowr70/fTBZGEg4+CGzAK+1QLFXwdCxWUhJKCHguSCvuU+5QFf3+Ee3oanh0e9xIKfAr3FAv3lPeUVR2THfcUAwt6Cvxm+GY5HQsV+zn5IvsPBvtU+03dNcnFmJiTlZCTGZKXBY17BoGKfn4a/ET7O/sG+GkHCxWXmIuff5h+l3eLfn/7lPuUGH9+i3eXfgiFkpOIkxuTk46Rkh/3lPeUBQv3LQr81MkKC/eU8R0LM0NDMwv3B/chC2Md+9QLbh1EC/oV9zsV+wEG+2D3vPdM958F9xH3PPuVBvsg+3hyYYaEh4SJhBmIBgscBMAL9xT3FPcU9xT3FPcU9xT3FPcU9xQLKAr3FCcdC3odDgcsHQt6knuXfwv4FPcUC66obmgLFfsS2ib3DGn3IWn7ISb7DPsSPAhg2ORz6hvp5KO22R/79PqJFQtCHYv7VAuHhYUfWVkvHQv3B/sHC/vA+4gL+5T3lPccCvuU+5R9CvcUCzEdy50dC3l9fdQKmZ0fC2YdaAoeC0XFUdEeC5z3Jh0e99T31AWRkY6UkxoL9xT3lPcU9xT3FAv3i/eL910LcqSLs6SkCwZzHQv7aPtA+0D7aPto+0D3KB12Hfdo90D7QPtoHgsVKR0LogoOFZ18mXoeHPtARwqgCnqZfJ33PQoLnQr8VPhUbwoLVmC2wEYdwLZgVgt/f3uFeht6e5GXfx8L9wAKmZ0LITU1IQv7iPvACy4KHPrAKB0cBUBOCgsyHfgU+zSMHQsuChz5QCgdHAbATgoLFVZgYFYe/VQGVmC2wB/5VAfAtrb3QQoLsaGltLoaHAXASxWhf6B4lx54lnSMd4GEh4CFfoQICxXU926Sn4yajpcZjp8FjwaFjIWMgx6XXNP7bgX9DAt/HRwFwOgKDgemT0mXSRv7AftnWPsh+yH3Z1j3AfcB92e+9yEfCxVt7W0pKW3tbakpqe3tqQULMx38FCod+xQHCxX3ECfv+xD7ECcn+xD7EO8n9xD3EO/v9xAeDhL3lPeU+Bf3s/tV9wz3mPe0+2b3DRP9QBwEpwt8HRz5wHEdmR33QgoL0B3mMAv5WvlakZGPkY6SGQsGTAoe+lQ2Cgv4PPfs9+z4PB8OMgefeZdxcBpWYGBWVmC2wKaXpZ+dHuQHC/cUEov3FPeU9xSL90QKi/cUC619rHSjHgt+fot3mH4Lnx34FAsFl5ebkfc8HYV/lx8LBXl5gXJyGnKVcp15Hgt0l3affx6GlZaIlhuWC/jUFVUKC88d9xQLat0KC/dN9xX3A/dRiR+yvaDLyxqZipqJmR4Lo8cb9wCgiIieH5GKj4mPiI6IjYWMhQuSi5GKkh81+Ij3//f2BZiYmJydGg5xdXVxcXWhpfc79x33Hfc7paF1cR4L97P1QAa69yQF94cGuvskBUAh97QGC1UdVgr3FAMLPQo7Ch8LpKSzi6RyCwGLch0DC3JyY4typAv3FJ8KC7kKnZkLBXmdgaOlGqSVo52dHvcn9yYFnJ0Lm5uRl5cf+QP47AWUlPdw9133hBoL9yUK+Eb3H9D3HcL3IAMcBUILiZKIkoWShJiEmoKZ+x/3eBj7qAv3FPcUi/cU95T3FAuL4B0LAYv6lAP6lAv3BR0eC34d9xQLBvsPJib7Dx/91PceCgsVRVFRRUVRxdGkCtHFUUUeC/sHiniIBWVgi1obPfsRjo2DHwv3KQp+HfcUAwtceGNpax6XdpFzcxpddFJhdB4LFdUKC/eU95T3lPeUC36Yd4t+fgsGwLZgVh8L+6/3eft596/3r/d593n3rx4LoB0f+xQH95QL9xQSi/cU9xT3FAv3SR2oCwH3MB0L9xRHHQvS9wn3X9b3JBv3D9tjWPAfC/wZ+8/7efuv+zbz+yX3Ni0L0VHFRQuEChz6wDIKC3MKHAXAeh0LUEDBH5d6lHmWegiAkpOFCxp2CgtDCh4L97T3tPu0BwsB2Pp6A/rHC/eU+BT3lAsH9yUdC6Ski7NypAt6hXt/fx4LB/ckHQt5HpgKCwapHQtmTfsWQPsKG2ptkZhxHwua+xWZd40eg52BnX+bCAsHPQoe+ZRkHQuLlRv3MVwdC3wKDvuL+10LBXSj9z0dC4UIhYWDh4Ib+xQGen0LBbYdCzoKHvdUWh0L+xT3Lh0LVR33FAv6lFUdC/vU4AoL/Dv37fvt+DsLdM4KagtExFLSHguUCh4Lk5SOkZEL+137iwv3QPdoC/cU9xT3FPcU9xQUcAulopujlR+VooaneJ0Li/eU+RT3lPclCgt+l5yFmxubnJGYlx8LVgr5FBUL95T6lPeUCxorCguLVgoLdwoVC5AKBgsH9wodywscBsD3JQoD+ZELBpybfXmMHwsFc6Ksfa0bCwWdnZWkpBoLFfU14SEL9xQBiwtqaRppC/mU9xQLnBucmwt1CqKiHwv6lPl0FS4KCwbOyE9HH/cUjBULBzsKVQoLBq6okpSUbpJoHwv7/6B23h0LHouLi/coCgwiC/sl+/J0+6Uafo0L+25x+yL7FPt1Ggs9CpyEm3+XHwv3DPct9wP3nPcMC/ciCg73FAauC3p8fHoLaRtpagsBAAEAAAsBACAAAH0AAIMAAIoAAJkAAKUBAKoAAYf/AodpAXYCAAEANQA5AMMA8wGRAZMBlQGXAZkBmwGtAa8B9gIrAkIC4wLzAyEDdQOyA/0EHARmBLEE9QVVBZYFvAZEBokHwQhZCOUI+gkrCdYKQgqGCtYLNwt1C+wMow0GDUUNzg5nDnQOtQ+fEF0RXRFgEaQSkBKjExQTjBSWFgcW7xevGGcYkBixGN0Y7xkZGVEZhhnUGiwaphrmGvobeBxAHQMdrR3+HhQeKx5YHogesh67HuAe9B8JH0Qfhx/YIBIgNSDTISghpyH0Ipsi9yM5I6kkCyR4JNklEiV9JYwlpCYFJsMncifRKIMpnConKuIrlyxALGgsuCz7LSot3C5cLngu3S8ULzQvlTAyMHoxCDHAM10zhzSiNfc2EDZlNqo3LjeiN+E4IzjJOeI6Szt0PBk8RzxzPPg9oT3jPis+Xj7JP35ADUCSQSNCJkMNRCNFN0ZmRr9HJkd7R8dMc0zvTS5Nak3OTm9OcU5zTnVPKFB/UNFRLVMIU7ZUj1UXVR9VOVWFVpVXvVkrWZJaJVqbW1pcHV0MXh1esF69Xspe8V8SX1VfZl9yX39gE2CaYRpiCmKZYw9jf2P2ZGJlGWWPZotm72c/Z5BoPmjqaTdpgmnXajxqemsoa8ZsbGzcbXpt4m4LbjBuZW58bpBupG7Fbv5vDW8cb2Fvz3AOcHJwgHCZcLNxX3FpcdtypXLyc6Jz8nQldHd0yXTldYV2hXcyeDl4WHjEeTZ5vHoNenp7JHw9fHd8vX0ifYN91n6+fxF/pn/7gEmBA4GZggWCPIJwgqeC2oM9g42Ea4SehOyFCoUlhaGF4oaJhqGG24c7h5uHzohPiKmJJIlYia2KAopWizWLwoyIjSSNwo5ij3+QeZCGkKaQ7ZEzkWWRppHJke2Sq5NylceYK5jSmYKaL5q4m0ycI5xXnIidqJ6/nziftqAAoFCgn6Duobuh+aL3p1+okKlgqkOqi6sZq2aroKynrTatea49rzqw4bGRsZOxlbGX/f+L9wQcBR/3BAH3BPcE+FT3BAP3dPcEFRwFIPhUHPrg/FQH+wT7BBX5NFYK/TQc+gAGDhz61Q4gUh33ChwFlAMcBcr4ehX7nvcu9573LsiuoNpoyBlL9wJoyDygTmgZ+577LQX3x/cUCvvHB/ue9y1Orjx2aE4ZS/sCaE6gPMhoGfee+y77nvsuTmh2PK5OGcv7Aq5O2nbIrhn3nvctBfvHB6od9xSLCvfHB/ee+y3IaNqgrsgZy/cCrsh22k6uGQ77/6B28wr8NPg0BkAK+1SECvw0/DT3LQr7VDIK+DT8NAZMCh73VDYK+DT4NAc7HQ79f4v31Pkw97gB+BT31AP5VPesFaF5nXUe+4QGdXl5dR/7hAd1nXmhHveEBqGdnaEf99D53BX3efuE9z/7avtg+yw0+0f7AB6AeY91nH73OPsRGIaTk4iUG5aXkZWTH8bVo6OjnAiaobSZuBvc1FlTS2tqPmgfM2P7DCP7DRpeB3WZaaEe94QGopyloR+LB6iw0MatHurA9xXU91IaDqAOoA6gDqAOoA77//iU+BTzChz7QCMKmR02Cg6gDqD3SQoB+ZT3lAMcBqMcBUYVvE2UZh4c+oAGZk2CWm6ibp93H/kM/QwF/ZT3NgovCh/6FPc/CvvU+ZQG+Qz5DAWfn6KoqBoOoHYBnwr3Ox0DVgocBSAVwGC2VoGCioiCHv3U+5QFY35vZmEa/lvBHflZB/mU94EF/K3BHQ4gi/eU+hSMCvoU95QDfh35VCsdpAofDqB0HfeU9xT5lNsdkAqrix0c+kBxHfmUB6BzonWkd/cj+wL3JPsE9x/7CAhM1ug+8xuMBowG8+jYytYf9x/3CPck9wT3I/cCpJ+ioaCjCP2UB/qvBDY5+wNKWB77GiL7GiH7GSEIYFYrL0UbigaKBkUr57ZWH/sZ9fsa9fsa9Agx0lLu9wYahh33OQqxhV9yH/cUsBWFChz6QHsd/tT3Bx0OoEodjwoD+hT7FBXjHXkdDuYKkAr6DRWpa5dzjx78itT7dfhbBZ6CeqF0G0gK+FX7gAWEl5mGmRuol6Ol2B3mChwEcfioFdP8OfwN91v8Dvtb1Pg5+8b3vfg6yfdR+BL3UfwS+DpNBfdxxxWpa5dzjx78itT7dfhbBZ6CeqF0G0gK+FX7gAWEl5mGmRuol6Km2B37/0odch0Dch33FxX3dlb37/u5Hmz7F/sf+1j7WPsX9x9s9z4K9wAq9zMf+f4G9zP3AOz3Nh/71PoRaQoO9yn7lO4KAYv3FPeU9xT3MQr3lPcUA/gUS0kK+pT9lLAK/pR+HbEdch0c+4CxHfwU+ZSwCvgU/BRJCvcU9zT3Bwoc+sBzChwGQJwdIKB29xEK+ZT4lBVXHX4dBFcd+hT8FBVXHX4dBFcdDqCgdq4K+JT3tDod+VQEJAr5FPvUOh39FJkdFcBgtlYe+9QGVmBgVh/7VAdWtmDAHvfUBsC2tsAf+RT71GwK/RSZHWwK+VQEJAoOoKB2rgr4lPe0Oh35VAQkCncK9yEd/lQGVmBgVh/7VMkKHPsAmR06HXcK9yEd/lQGVmBgVh/7VMkK+VQEQAr+VAZWYGBWH/tUyQoOoJkcBKQB9w0cBg4DHAaH+l4VpIGkeZ0e+xz3HKkK/ST9Jfu697upCvsc+xzRHff++/73HPsc0gr3HPcc+Wj5aPc3HQ77/452AfcCHASkAxwFEvdqFaSBpHmdHvu697r3uve69zcdpIGkeZ0e+xz3HKkK+7r7uvu697qpCvsc+xzRHfe6+7r7uvu60R33HPsc0gr3uve697r7utIK9xz3HPc3HQ4gi/eUzx2MCs8d95QU/Pc+Hft093QGLgpLBl8K+3T7dAdfCktEHfd0+3QGagoey04K93T3dAcsCvcUqysddx0fDiCL95TPHYwK+hT3lBTg9z4d/NQGXwpLRB341E4K9xSrKx13HR8O+xT3lAGL95T4FPcNHRRw9y0d94f7BPd0+1f3Jh5TtjqAYVJgU5c6w2EI9xYp1vsp+zYa+677evt6+677rvt693r3rvc21vcp9xbtHsO1l9xgw2HEO5ZSYAj7V/sm+wT7dPuHGvciHfg79+337fg7Hv0U+ZQV9wUdRVFRRR79FAdFxVHRpAoeDqD7FPeUAYv3lPcCHQP3lOsVnX2ZeR77VAZ5fX15H/tUwgr31IEd+9TCCvjUgR381MIK+lSBHf5UwgocBcCBHRz6QIAKDkoK+pT5FGod+JT3ARWcf5t6jh77S6eBrH2seqsZrbqwt625CJCSjpKUGpOJk4aRHmHGRclWvAiRhIKPghuCgoiFhR/7IiBumm2XbJUZb/dMBZyJe5h5G/tyBnl9f3uHH3tPhUqETmyBbH5ufPse9hiRg4KPghtp+xv7JmpzH4aEh4SCGoKPg5GEHrBer16tW3ttfm2Ba/tObxh8iH95fBr7cgd6l3uciB73S3CVaZlqnGsZaVxmX2ldCIaEiISCGoONg5CEHrVR0U3AWwiEkpSHlBuUlI6Rkh/3IfaofKl/qoEZp/tMBXqNm36dG/dyBp2Zl5uPH5vHkcySyKqVqpiomvce+wAYhpOUh5Qbrfcb9yerox+Rko6SlBqUh5SFkh5muGe3abybqJeplqv3TacYm46XnZoaDvv/dB36lPcU9xT3FAGaHQP4lPm0FV0K95T41BVdCveU+NQVXQr3FPsoFVtwb4Ye/dQGhnCnux/6SPoU/kgH/TT6yBW89wmOj5ORkYwZ99EGkIqUhY6Hu/sJGPh0a0Id+8kGRfc7Bbx3T7NWG/vUBlZPY1p3H0X7OwX7yQZRHev+TAb7AtMx4x751Abj0+n3Ah/6SOtrCh8OIKB2AX4d95QDch34tBWNi42KjR780/hu/NP8bgWJiomJGvx0KAr4FPgU95T8FPgUJx33c/i5FZaYiaB+lvtv90oY+CxcCvtXB/uI92BhrkeLYWgZ/WP8636AiXaWfhnJQZCFk4eTihmUipOOkpD5SPjVGPlI/NUFhpGSiZOMjIuMG5OMk4+QkcnVGA78f3Qd+ZT3FPgU90UKnx0D9xQWUB37FPd0+DT3FPi093QBi/d0+LT3FPg093QD+hT6dPcaCvv0+3QHUR331DEd+DTrFSMd9ymgdvfU91SfHQG9HAccA/rr+LAVe4x8f3wb+4gGfHyXm4wfjwej99T3NQr3Tvc1HaP71AWHB/mL/GcVs4CzfK8e/DX6qAWkgXChcBv75/c1HZr7VAV5jH59eRv7OgZ5fpmdjB+a91T3NQr75wZwcHVygR/8Nf6oBXxngGNjGm6TX7Ee+VQGen2ZnYwfn/eU9zUK96T3NR2f+5QFeYx9fXob+VQGsZO3qB8OIIv3FPcU95QBdwr3FPcU9xQDdwr3VIcd/GQG+xz7HAVnZlt3WBtYW5+vZh/7G/ccBfxlgQocBcA2CvvZ+g0VooF0m3Eb+5T4VAYzHfuUKh38VPuUB/crCvhU/FQY9ywd+FT4VJ6dkKeBoxkOYQr4NPeU+DT3dBQ4+vT49KId9/RcCvv0oAp+f4N/hh+Gf45+lIH31PvUGIWSk4iTG5OTjpGSH/fT99MF3wr79PjUOAphCvg095T4NPd0FDj68vkoFZCXiJiClfvU99QYkYSDjoMbg4OIhYQf+9P70wWFhIeDghp5mX2dHov3VPv0gAr39PdUB5iXk5eQH/vy+KA4CqB2+tT3VN4K+pP41BUs+1QF+9QGLPdUBfvQBo2QjJGNkPdo+IQY+VgG92j8hI2GjIWNhhn3WW0Vr4DAfa0e+4L4vAWsfWOlaBv91AZoY3FqfR/7gvy8BX1pgFZnGvx29AphCvrU93QDHASg+RQVon+gd5Ye/LT31HiXcot3gBl3f392dBr9FAfSHZaOkZUf+LT31AWflpegohr3FBYjHeUKi/eUE7BWCvcxHbUK+xb7FRj3Gfsh+1Pa+1kb/Dv77fvt/Dv3Ih33efds8PdE9yYflZiLnn+W+x33HhiRhIKOghuCioKHhoQI+xMp+ydD+zMb+677evd69673rvd693r3rvcX9xBZNOkfE9D7Hvse0Ar4VEEd5Qr3MB0TsBwF5/h0FZx9mvcSHXyBgn2GH3pjf2VzZAj7LC77OS/7Rhv7FfsRveMtH/cd9x11HTMd/FQqHfxUBxPQgh33FfcVBfsb9yL3UT73Vxv4Bfe494v39uAfjI2Ljo0apPm0FZIK+xb7FQX3Gvsi+1PZ+1gb/AX7u/uK+/c1H4mLiIkaepl8nR73WwaalZSZkB+cs5exo7II9yzo9znn90Yb9xX3EVoz6h/7HvsefQr4VEEdoIv3FPcU9xT3FPcU9xT3Hx33FHcK9xQD+BT39CEK99QEIR331AQhHX4d/FQVeQr31AR5CvfUBHkK9xT9FIsdHPpAcR351IUdHAXA9xAK/dQH9xT61BWFChz6QHsd/tT3Bx0O/P+gdpkd91QB9xT3VPiU91QD99T5lBX3VAfBCh6gCvfUK+AKa/dUBveK+173XvuK+4r7Xvte+4oe+1Rrkh0OoFId9xT3FAP31PcxHdJSxERuHV2kYrJ0Hhz7DkQdy04KHATyB7KipLS5GhwFwEtJHV/7Pfsc+zEbbG6QmW8fzPsf+w+/+zEb+yL7LVNL+xIfcX5ufXN7CHh9f3pzGv16By8Kl5WOkZYe1fce9zvT9zP3buP7IPdMG/cX9xHCyPcFH6iaopmwGg4goHaZHfdUAYv3VPfU9xSfHffU91QDkAr5HhX4L/wR9+/8V/xX/BH77/wv+wGfIbMoHp9a901qBfsBqO469wsbay0KyzEd+NSdHUtHCmsHKzhWPV8fR5cFeMmBy84a98L3v/ec9+n36fe/+5z7wkiBS3hNHkd/BdlfOMArG6sHXQqrB/cL7tz3Aagf902sn7wFs+6f9fcBGg7+f6uZHQGL+ZQDRgoO/P+rmR0B+pT3FANGCvgU+LQV707tLbAej4OCjIMbaG5vZx8/9wig+w37DfsIoD8aZ6hvrpOUjI+THumxyOzvGg4gHAVHdwH6lPcpHUYK+BT4tBXvTu0tsB6Pg4KMgxtobm9nHz/3CKD7DfsN+wigPxpnqG+uk5SMj5Me6bHI7O8a95QW91/7DvdR+1Da9zIKb5t4on8fpn2kf6N5CO5DxfsH+w4a+w5R+wcoQx5zeXJ/cH0IdH97eG8aTwqvk5SNjpMe91Da9w73UfdfGveUFvfH+0v3qvuu9w33MgpumnujfR+Zg5uGmoOnfKd6pXgI9zj7Dez7U/tgGvtgKvtT+zj7DR5xeG96b3x8g3uGfYMIc318e24aLwqUlI2Okx73rvcN90v3qvfHGg77/4v3FfcT9xSeCov3FPcU9xT3FPcU9xT3FBKOChPf+PgU+BQV+xR0HQb6FAT7FHQdBvc7HRX7FHQdBv6U/hMV+BP4FPwTB/wU+ZMV+BT4FPwUB/gUFvgU+BT8FAf9FPuUFf0U/RT5FAafChX7FHQdBveU9xQV+xT7FAYTIBj3FAb5FAT7FPsUBhOQMHQd/BT9FAYTIDj3FPgUBhPf+PcU+xT4FAb9lH4dFf0U/RT5FAb5lPkUFf0U/RT5FAYOoKB2oXYSi8qqq8qq9xKq6snqqquqq6rpyunKysrKyqrK6umqq6rKE3//wMoW+GuL+Gn4aBp2dot2G/xpi/xq/GkaoJ+LoRvKjBVbCoCBi4BPHZeUi5Yb6VgdlpWLlRv3MVgdl5T3Fx13igqhn4ufG/cSWB2WlYuVG8pYHZaVi5UbylgdE6AAAJaVi5Ub9zFXChNZwICinougG/cxVwqin4ufG/cSVwqhn4ugG/cSVwqhn4ugG+lXCqKei6Ab91FcHWtsi2xPHROAAMCrqouqG8pcHYCBi4BPHRNGPwCXlIuWG+mKFfhpi/hq+GkadnaLdhv8aYv8afxqGqKfi58bDksKDvcpSwr4FBbNHf1f+V4Fvlgqs0Qb+3QG0uxjWL4f+V/9XgWic5n3Oh19anR0Hvxq/GoFaK2lc78brayZoqMf+H/4gLIdIHQd9zEK9xT3lAGL9wQcBbzfAxwGZ/q2FXyfdpl0lIx5i3eFePvA/m8YZ4BgdmYb/i8GVEaXxXcfg6GMlJOXCJeUm46YG/n5BvcTpa33Lrof96b6Hpm6hbpxrxmucmGgXBv9jQZ6eoaHeh+MjvsTr4P7HWFNGXt0c3eHeIh5lXqJeoVWYyxzanx3dYGEdIV7lXSJdoZcaDJwXYF5eH2GeAiGepV1hniAV2k6bVl7cHZ6h3OJf5R+inuKc4d3iXd9ZYtfm14II7D3ATrxG/ovBuHjzeCkH/en+h6ZuYS6cq8Z/ryJoQo4+5ShCg78fyIcBekBi3cKAxwEjBwFgFQdIPsU9xT5FOAdAfeU9xT3MQr3FPcUA/gUFveU+hT7lAf+FPkUFfkU+RT7NDIK9zT8FAb3lEuZChb0NOIiHkv3lAbAbdRlsR77LPcsBbFlQqlWG/00hAr8tEsHIjQ0Ih/8NEQd93T7NMkd9zT3dAcsCg73KZ4KAYscB4AD+lT59BX7M/sV+xX7M/sz9xX7Ffcz9zP3FfcV9zM1HR/5VPg0Fft0Blj3HAXNcj3BRRv8lAZFPVVJch9Y+xwF+3QGgwof/hQH7woech33QAr6FAd2Ch79VBz7gBX3GR33Xa0d912tHftd9zwKHw4g+Cj3D/cRCvlp+mUVo1uqRbAusS+qO6JGbokYaor7AI77TI0I/Kr9IxXAw4+VxR+7kwV+90z3CIS8G42Vi5STGpaLnoqnHlqScJCDjFiSaZV5mgiAk4Wanxqak6aatR6/9yWu5pyx+FaJGOf7eLr7BgWPgI2AgRqBh4KDgx6FhnSCZIL7F28YiHKKcXAaxY33XJYFjKe4jMkbw8qJhdEfhtHLiMUbjJeLk5Eal4meh6UeZplplGuPa450k32Xg5B/nnysbcd2vX2ycNR1wnuvcchq2WbrZ+tf7V/y+2H4dBiAoAVWBnNyi3Eb+6z9aPuB/Px4Z3t1foEZfoJmgE+AZYRwhXyGiTwYDvv/+xTpQeb5Ne34uuE28RL3c/fSE2wTrPi/mhWEnIaalxqI96KM90EF9yQHkp6sjrwb9wLdgXXCH8J2umGyTAinXphPQBpCf09xWx5yWmJmU3AIcFNEfTIbYFyWoFkfE2x9+X4Viq2LpZwajO2M9wyI54fOGYmsi6WdGpTBto+sG/cG4HJZwx/EWadNQBohbUBQYB5fTzN2+wgbYWeNkGwf/LH+DRX3KZDljqyO9weS7pHfifdZhxjjiM2Rt5Phm8+fvKO8o7qvt7usr6OymbUInsOVwb4a4mzaTtEeE7RO0jK7+wmm2a++pKCbCBOstquqrqCxCKCxlra6GraEtH2xHn2xda5uqm6paaVkn2Ofa5dzkgidRkyUUBtBBml3jIOCgYIMIl6K/BB++5iFjzjIg7GHmooZrYmihpeDkIeQiI2GkX2PZ4xQkftujfsajFeN/IUYNohKhV8eiHuEeoB5a35igVmDcIh1hniHiS0YDv1/hnYBi/qUA/sSBJqMrI69kNiSxZCyivdaiRjhgryFlYkIiZiVipAbj5mLjaMfjJCTi5Ubj56OmI2UjpqOn4yiZpF1joSMZ49jkmCViZeKlI2Rl7gYtvd/sfcyyPfLmtKh8aj3GRmNoI+nkqyTspOok5+mlq2Vs5WzlLCWq5aRoI+cjpiNlo2XjZp9imiJVIcIhShEiF8bgXOLjWQf+9GZeCSUiZiKm4oZz4e7gqd8CHmMf4qDHoNZdfsbe0xu+zGKhnA9bfsxGX9LU/ugcPsfg2B9aXhzGXF+ZX5XfmiCcYV7hno2GA6g+w/3j/qU94/7L/cW+xD3DRL4kfeQ+FPS95X3FBMqpQoTGqvrk9inngiZn+jXHY9yiPscjPsJkPxAGI37Wof7JIcwsQqOrx+UZR334AeK9ywFEy6KnpHjjqgIj6WijJ0b9wv3D2wd+7kG+2uMBRMa7R0cBkkc+xwVO/qU2wa3maeucB8TyvsS9zZwrl+LcGgZ+xL7NgVocJlvtxvb/pQ7Bl99b2imH/cS+zamaLeLpq4Z9xL3NgUTGq6mfadfGw6L9xT69PcW+xD3DRKQ94/4FPeO+Br3j0jSE9qlChO6q+uT2KeeCJmf93HXHQiPcon7HPsJGpBfBftaifskhzAesQqPrx+TZR1XB4r3LAUT2oqekeOOqAiPpd6MnRv3C/dTbB370gb8UowFE7ztHRwFWhz7DRX7NvcSBWimb31fGjv+lNsHt2+ZaHAe+zb7Emhwi1+ucBn3NvsSBa5wp5m3Gtv6lDsHX6d9rqYe9zb3Eq6mi7dophkOQx38FNMKHPsAJgp3Cicd95TTChz6ACYKVgonHfwU0woc+4AmCn4dQR1DHfwU0wr+FCYK+hQnHfeU+JQVUgr8FNMK/RQmCvkUQR1DHfiUBDMdHPsAJgp3Cicd+JQEMx0c+gAmClYKJx34lAQzHRz7gCYKfh1BHUMd+JQEMB34lAQwHfiUBDAdDlEK95QD95T3dBXACvjUBMAK+NQEaR0c+gAcBUAVaR341AS6HfjUBLodDlEKjwoD+BT6dBWcfJp6g4KIhYUe+7T7tAWFhYiCgxqDjoKRhR73tPu0BYWRlIiTGywKch37VD8dUQqPCgP39PlUFZOIowr7tPe0BZGFgo6DG18K/NRTHfcmHR73tPe0BZGRjpSTGhwFoPx0Px2goHauCo8KHASgFaV7onSVHo6Dgo2DG3p7hX5/H/wn/CYF9zkHLR39VAb7M/sV+xX7Mx/9VCYd+VQG9zP3FfcV9zMf9zoH+Cf8JwV/Cg73KfcOCvdU+lRVHZAK9xQD+RT6VKsK+pT8FBX8NPg0/JT8lPs09zT71PvUBftUch0H634dFZyafHofHPtAB8Yd9zRrFYUKixz5wAeUHR8c+0BzChwGQJwd+xRVHQP3/xYg9xT7FPYG5ub3f/t/BfhE+dkVhYmFhoYe/LL8sgWGhoWJhRt+gpSYkY2RkJAf+LL4sgWQkJGNkRuYlIJ+H1X3VBX91P3UBfw0+DQH+dT51AX3n/fU9wsK+3/3fgWjc9Udc3Qf+zr7Ofg0/DT3Ovc6sh39f34djAr3JwoD+ZT6FGod95QW96/7efd5+6+2Ck6STKVUHvgB/ZoFX5+5cLsbu7mmt6Af+AD5mgWlwpLKyBoOYQoD+ZTrFUsdH/7UB/mU+LQVIAr9f4v3lPt/dhKL9xIK+pQTUBOQ+JT4FBWXHVLE0h4ToKSTo5efHpifwM+gzgiWjpWQkxuTlYaAjh+gSMBHmHcIl3eTc3IaE1CfChXwbelY2x5Y2/tq96M696IItn9ioGsba2N2YH4fOvui+2r7o1g7CBNgWTtsLSYaE1D0HQ6gi/cU9xTr+jRVHfiU6/i09xQD+gz39BVT6yvDBvcI9wj3LPssBffY+PAVlIKKfIKC+/L78hiCgnyKgpSClIyalJT38vfyGJSUmoyUggjb/OYVmIOWf5Aef5B+iYGBS0sYhYWIg4Ma+xJuCvnUBpqaiYeaH5aHl46UlLy8GJOTjpWJlomVhJSCjwicZmOTYxv91D8KK/o0Ff00/TQF+7T3tAf5NPk0Bfcw9zAVsLCLyWaw+yz3LBhmsE2LZmYvLxj3tPu05+cFDiD3KQr3FPdn+cH3FANyHfi3FZiCln+QHn+QfYeCgnt8eX53ggiAhYSAfxr7am4K9wQGkZCNjZAfsaK4n72cCJqOlpibGp18mXr3Qx37kz8K94H5hxX3Dx38FPgUGJd/e5J6G4OCiYiDH3SBe3RxGvtU+zQH/SA3+8j7oPtc9zP7dZKBH4ORlYaVG4+PjIyPH5iRlJmJmWz3eqP3KtzoCOTZ9yC193Ab9zSYCnGbdKKBHoiTlImTG5ybkZiXH/gU+BQFDiD3IApKdxL3IAoT2BO4ch348hWYg5Z/kB6Nh4eMhxuDg4iEhB9LSwWFhYiDgxr7kgczQ0P3JAoT2KgK+dQGmpqJh5ofio6Oio4bk5S4Cry8k5OOlYmWGYmVhJSCjwicZmOTYxv91D8K93v5uxWrq4u9a6v7AvcCGGurWYtra/0b/RsY+5v3m2urWYtraxn7AvsCa2uLWatrGfhC/EKra72Lq6sZ+cL5wgUOoPcnCgH5lPeUuwr8FPgU9xQH90Ydph38FPwU9xQGjR34FPwU+xQHJB2eHR/3EgpiCpybkpeXH/eU95R1HTMd+xT4FPgU+xQGgh33lPeUdR0O/X/yCov3lAP6ZxwFcxVtHRwFwOgKDqDyCov3lAMcBtP3BQr5WugKbR35WsAdIPIK9w4cBgYDHAZT9wUK+VroCv1a/VpycotjpHIZ+Vr9WgWkcp+Urhr5WsAd+//7HBwGEAGLHAV/AxwFaPj1Faqci6dsnBz60Pl2GGyccnxoGhz6QAdopHyqnB4OSgpWChwFQEkd/JQqHRz6gCgK+JQnHf4UHAWASR38lCodHPqAKAr4lEEdSgpWChwFQKYKIPIKixwGBvcBCv1a5wr5Wvla9w8dGf1a+VoFcqR3gmga/Vq/CqDyClYK95T3AQr9WucKbQr9Wr8K/X/yCvmU95QDuPsHFW0KHPpA5woO+333OwocBgIDmfjBFXJylHeuG/c5Cq6Un6RyH/1a+Vr3DQoZ+YEc+w0VKgr3lAczHRz6gCod+5QoCg78/0AcBhYBwPpqA/l6ZhW8Wd2Lvb3W1hi8vIvdWr38evh5GPh6+Hq8vIvdWr0ZQNZZvDmLWloZ/SD9H1pZizm8WhkO/P9AHAYWAfcJ+moD+t/5VBWtfax0oh79IPkfBaN01R1zdB8/QAV09yMdonMe+Hr8efx6/HoFdPcjHaJzHtdABXSi9z0d+SD5HwWio5msrRoO+xT31PoU99QBi/fU+hT31AOZHdMd+5T7lAY+CvcSCgepHfeU95QGRQr7lPeUB6AdH/sUB/fUyxUgCkod99T6FPfUA5kd0x39lAZobqiuH/cU9xYd+xQH99TLFSAKSgocBH34MhV6hHp/fx4xMQV/f3qEeht6e5KXfx/7SfdJ+0n7SQV/f3uEeht6epKXfx8x5QV/l4ScnBqckpuXlx73SfdJ+0n3SQV/l4SbnBqckpyXlx7l5QWXl5yS9zwdhH+XH/dJ+0n3SfdJBZeXm5KcG5ychH+XH+UxBZd/knp6GnqEe39/HvtJ+0n3SftJBZd/knt6GvgX93YVIAr7FFYKEoubChOgHAUE+bb3Nwr8s/yzBX9/eoR6G3t6kpd/H/v+9/4Ff5eFm5wanJGcl5ce5uXRCvd2+3b4LPgr0QrmMQWXf5F6ehr3kPs2fgoT0Modngr3lMv5VPeU3gr6FPc0Fagd91QH9x0d+1QH95T5NBX7LCNRP2AeXHBuWnQaiweoHa8H7Oze0qseyKempb8at1C0S2dqf396Hnh9d3lcTwiDhYGHghuEhI2Phh/7GO9+lYedlJkZ9yPh9w7R9zcb90D3VPsd+0sf+BT7VBUgCp4K93T31Pd09xT3dPc03gr6lPc09y4K/FSvHfc0Wgrr99Qrrx33NFoK99RaHfyU6wdfHfs0B/sU+hQVqB33NAf3HR37NAf5FPw0FSAK9ycKAfkU95QDHASt+JQVYPsk+wb7BvskYAj3AZoK+wEH+yS2+wb3BmD3JAj3AScdtwoe+wEGtvck9wb3Bvcktgj7AZsd9wEH9yRg9wb7Brb7JAj7ASYK9wEG9+f3HQr7IwZa92v7Pfc9+2u8CPcjmgr7Iwf7a1r7Pfs9WvtrCPsjJgr3Iwa8+2v3Pfs992taCPsjmx33Iwf3a7z3Pfc9vPdrCPcjQR1hCvrU93QD+t34XRXcCvsd9x0Y9x33HdwKGfsm9ybyHRn7Hfsd+x33HfIdGfsm+ybOHRn3Hfsd+x37Hc4dGfcm+ybxChn3Hfcd9x37HfEKGfcm9yYF92v3SxUjHWEK+tT3dAMcBJP5ZxX3Dx0l8Rj3DQr7p/unGPsn9yf3DQoZJSVycotjpHIZ97r7uqRys4ukpBn4Ovg6BfchOBUjHfsU93T62fd0AYutCgMcBSD5FxX7wvuI+4n7wPsBJazDNR75hvmFBcI2qyb7ARr+e/u/FVPhavH3Axr3wfeI94n3wPcD8mpR4R74aPxbFfg9++z37fw8/Dz77Pvt/D38Pvfs++34PPg89+z37fg+Hg4cBUt3AcscBcAD9y0dz17HQx79VAb3ufe5BaOjmaytGq19rHOjHkDVBaNza90Kc3Mf/R/9HgV0c84KaqJ0Hvkf/SD3Gh3W1wWjopmsrRqtfaxzoh77ufe6BflUBtO4x88fDhwFS3cBixwFwAMcBcD41BWtfqxzoh79H/kfBaNzaplpG2lrfXNzH0BABXP3Ix2jdB73ufu6Bf1UBkNeT0cf+xQHR7hP0x75VAb7ufu5BawKcx7WQAV0o6t9rRutrJmiox/5H/kfBaOjmKytGg4gHAVAd9sK+Mn3Cwr9H/kfBaNzapj3Sx1+c3Qf/R/9HwVzc84Ka6NzHtZABXOidQqjoh/3uve5Bf1UB0PHXs8e9xQGz8e40x/5VAf3uvu5BXOidQqjox/W1gWio5mrrRoOIEAcBcvbCvlU9wsKQNYFonPVHXR0H/u6+7oF+VT3FAr9VAf7uve6vAr9IAV0onUKoqMf+R/5ILIdoPsUHAZAAYv3agOPCvoUFZ0K/JT4lH0d+5T7dAf73PwsUfvt+x8fYSGA+wf7BBr7INH7S8T7FB6WdJZrmnYIgZKShJkbn5ebnpuHnYqbH4i0ibS0Gvhx96/e+EMe93T7lAaCHfiU+JR1HQ5KCvmH+HRbHfmh+fRdHQ77BxwF5gGYHAXmA/mU+NRdHfmH+vRbHQ6eCveU6/k095TeCmAK9xQc+yEVeX18eh6YCnl8mp0f91IHnZqanR73VAacmXx5H4n3LhV9inyAeRv7TQZ4fJaZH3r5AQWSjpKSjx6QkZSOlBv3cAaUlIiGkR+Sh46EhBoOi/cU9zsd91T3FAH3jPcU6/cc99T3HOv3FAP6NPdIFWhuemgemApobpyuH8MH+GgH91T31KAK/GgHUwf8XPngFVZgtsBGHa2jeX6WH/cS+zUF+IHrFVZgYFYe+1YG9xH3NQWYlqOdrRvAtmBWH/gM+5RCHfxMBvcQ7+/3EPcQJ+/7EEhNb1pkH/sU+zn7FPc5BbxkTadIG/sQJyf7EPsQ7yf3EB/8TEcK+9QtCuv8NAZMCh761DYK+DTrawofDqCgdvoU99+uCncK+dQVJB37ivsvSvs3+0keW15fW1pfCH9+fYR5G2huqK6dkpmXmB/3k/d793j3KPf2G6AdH/iU91oV4Gb3ufsFN3BcWFQe+x/7GPxI2vthRwj7sC37kft3+9IaaI5okWkej3elVoJR+1o6Ixp2koWUeh5dpp5syuLH92C9G7PrTHu7H2zm7nvrG/cs9yuzz/cbH/eq9x73XPdey/fLCJjLkszLGg77//dJCvcpdt4dch37NBUuChz6wAZfCktEHRwFQE4K+5T69BX35vuA90P7qPcTHoyKiIwFqk6uLkX7k/xUafwTGvvm94D7Q/eo+xMeioyPigVryGjo0feT+FSt+BMaDqCL9xT6BPckAfhU9yQDkAr41BX7nPs/+6j7TPvVG/vV+6j3TPec+z8f6vcn9xb3Evcw2whjR3Y9PBr7i/dd+12tHfdd94vadtljzx73MDv3FvsS6vsnCP1k+BQVcXV1cfsGLS37Btkd+eT8FBWkg6J/oB73wvtM++X3Yfv3G/v3++X7YfvC+0wff3aDdHIacpN0l3Ye+8L3TPfl+2H39xv39/fl92D3w/dMH5egk6KkGg6goHb6hPckAfhU9yQD+L/3XRX7RNr7J/cbI/c16vcn9xb3Evcw2whjR3Y9PBr7I9D7G/cINx73y/j+FXF1dXH7Bi0u+wfZHff/91MVloWVgZEel3YtxXkbf4GFgYUfVSoFllBOkU8b/AX7yftf+8T7Wh9+d4RycxpyknOYdx73B/tI9zf7KvdWMwiBemlVexp/kYGVhR5/oOpRnRuWlpGVkR+85Pdn+A33ZfgP92f4DRmMjYuQjRqw/FMVp4inhqce+6z8igX3Qc33B/c6904a+FT7FBWlhKB+oR499xX7EfcR+xDeTPsEGPcFPeom1fsH+zD7hvuL+0X7t3JB+xgY98H3ovcd93X3WB+yuLK8qr4ImKGSoKUaDqCeCveU9xSuCvqU9zUVeX181AqanR/3UgedmZqdHvcACnx5H/tSB4n4ChV+inyBeRv7TQZ4fJWYH3r4XQWRjpWSkB6QkZSRlBv3cAaUlIWGkR+Sho6DhRpr+G8VtHVgpVwbXGBxYnUf/ZQc+oB1ZIxbomQZZKK1c7gbVgoGuLWjsqIforKMu3WyCA77//c7ChwFegMcBWAcBWAVS8v7NEsrK/s0+zQY/S33M4GOf4eDhBn7FPsUhISIgIyCGY2BkYKUhviQ+6sY+5f7l/tWwAWMiYiLiBuDgoiFhR8rKoWEh4KMghmMgo+Ck4b3kPtRGPdR+5CRg5OHlYoZjIuLjBv3Jh0f6+uTlI6WiJYZVvdW95f3l/er/JCPgpOGlIkZio6Ni40bkpKNj5Af9xTrlZOQmIiXGfs0+Uz3Nfc16+vL9zRLyxkOIPdJCve0y/fUy/e09xcKq8ur9xT3NMv3NPcUq8ur9xT3FPcUA/cU+xQV9wsdyxb3Cgr9NPf0FffU97T71AfLFvfU99T71Af9NPgUFfcLHfhU/XQV9woK/VT5dBX3Cgr4VP10FfcLHf009/QV99T31PvUB/00+fSLHUtxHfe0hR3L9xAK+7QH+XT99BX31Pe0+9QH/TT4FBX3CgrLFvcLHfuU+HSLHUtxHfe0hR3LBpyafHphHaD3FPeU+RT3lK4K+S76sxX3Iib7F977Rhv7dEEK93QG9yvL+w37DcUfs+m06MPhCPr6/bMVih37lAf7K0v3DfcNUR9jLWIuVDUI+5j3TfdLrve9G/tUB3qafKsd+hQEih37lAf72fsW+6D7lvsDH3NSclFuUwj7AFNMMPsZG/t0QQr3dAb32fcW96D3lvcDH6PEpMWowwj3AMPK5vcZG/eUmAp5mn2rHQ6goHauCo8K+RQV9/b8Jfey/IP8g/wl+7P79fdGCh7jCpBzoHuhjaoKSgpWCvlUFcMd+0v7aYJgYPtplPdLHvcUB8Md/Cz31/u8+FH4UffX97z4LB7+lPmUSR38FCod/BQoCvgUJx36lPgUSR38FCod/BQoCvgUQR0g9wn6atsK99QVrX2sc6Me/R75HwWic9UddHQf/R/9HwWsCnQe1kAFc6J1CqOiH/h6+Hn4evx5BXOidQqjox/W1rIdIMD6atsK+dT3CwpA1gWic9UddHQf/Hr8evx6+Hq8Cv0fBXOidQqjox/5H/kfsh33KfcrHfoU95QDdwqrFZKIk4eRHvs091QFkoWBj4Ib/NT4FPdUBj0KmoaagZYf+9T4FAWZf3mTeBt4eYN9fx/71PwUBYGAhnx89y8d91T8NAb7NAdyhmSwHvpUTgr5FPg0SR37VPg0Bvc0B6SQsmYe/lQG90odhI6Dj4Yf9zT7VAWDkZWHlBv41PwU+1QuHXyQfJWAH/fU/BQFfZedgp4bnp2UmZcf99T4FAWVlpCamhoOIJ4Ki/cU9zEKEouQChz7APeU+RT3lBNw+RQW0lLERJcdxFLSdx0e+hQW0lLERERSUkT3JB0TrHcdH/cU+tRJHRz7Twa7gYrbRxv7lPUK92AG90X9ywV9blw+bPcvHfqU9z8K/iwGlZ+ZoKIaooKkh6Ee+qj3DgUTaKyPo6erGg4goHb3EQqQCvo08B39NG8d+w/wJvcPHpkd90gd9yn3OwocB1cDHAdX+NwVuFiWZx7+1AYz+wpVR1Ef++T8IAV7eXxzcxpevoCvHvrUBuP3CsHPxR/35PggBZudmqOjGvvr9+zwHfy0bx2DjIKDGpCR9+X4IAXr3Pcv0vcRG/nUBg7+f/uUjwr3JQoD+VSZHRWdCqYd/pT7FC4dnh0f9xIKYgqcm5KXlx/3lPeUdR0zHfsU+pT3FEEdoPcnCgGLHAcAuwr+lPcUB40d+pT7FAeCHfeU95R1HQ73KXQddwr3FAGL9xTuCvcUA/iU+JQV+5T8FPeUBvgU+hQV+5T+FPeUBvgU+RQV+5T9FPeUBvgU+pQV+5T+lPeUBvcUKxXGHZyafHofHPtAB/cUmR33Bwoc+0BzChwGQJwd+xT31AGL97QDdwr6MhVvYGdmYm4IjIKLgoIa+6r7aPvU/Bb7C/sCrsYuHombnIqcG+7lrcPTHy+NPshw3giJmJiJmBuemY6QnR8rnj7g8RqMi4yLHqt8rIGuighSsWnL1BqxlrCdqh7z+xT3Lzj3Q4IIh5qKnJsa9wjp6fcIx8JyYrEeu5S4nbSje1pqYV9xtpGzlrGcCPeU91YgHfsU9wP56vdZ92/3LwEcBTH3YwMcBRv4/hX7Q/0P+5r5D/sX92/3F/cXBvdH1fX3Zh73Q/tv+wIGOoVsUh/7AfdaB/di968gHaD3DgrJ+Lbp9xTN9xTL9xTLAYv3FPiU6/o09xQD+jT5VBU2HVZgYFY2HXl9mZ2UCp2ZfXke93T7Fkwd/pT80hX3FFYK+xQH/BT40hWwHf6U+RYV9xT4FPsUB/yU+1QV9xT5GAfL9xQF+dD7Hgb7Cgf3FPeUFdJSxEQeHPoABm4dHxz7APcRHVYKBncdHw6g+BT3VPkU91QBi/dU+RT3VAP51PqUFbgdbm+Sl3Eel3GSb24auB0hNeH19eHh9ainhH+lHn+lhKeoGvXh4fX14TUhHvnn/VQVqPur95tmsB6RhYKPgxt0Ly90cek6oHYfKyv79/f3Bdn0wPcU9xga9277K/cq+2373Pvc+9z73Ptt9yr7K/du9xj3FMDZ9B75M/0zBXmdpIGkG8PLy8OkgaR5nR/7cPdw6+sFdqDcLaUboufnoh8O9yl0HYd2uXb3lOAd95T3FBJ+HfeUEz76FPkUah35lPyUFUVSUURFUcTSpArRxVFFHvqUBEVSUURFUcTSpAoeE5LRxVFFH/wU/DkVmYGYfY4e+yyigqd/pn6mGaeyqa+osgiPkY6Rkhqn+wr3AHGjHpCFhI6DG4SEiYaFH/sKMnOXcpZxkxl09y0FmYl9ln0b+04GfX+BfYcfflqGVIZZcIJygXJ++wflGI+FhI6DG277BPsNcHcfhoWJhIQahI6Ej4Ueq2WpZqdjfnKAcoNx+y9zGH6JgXx+GvtNB32VfpmJHvcsc5Rvl3CZcBluZG1mbmUIh4WIhYQabvcKIKVzHoaRkoiTG5KTjZCQH/cK5KN/pIClgxmi+y0FfY2ZgJkb904GmZeVmY8fmLyQwpC+ppOklaSY9wcxGIeRkoiTG6j3BPcOpp8fkJCNkpIak4iRh5Eea7FtsG+zmKSWpJOl9y+jGJiNlZqYGvkU+/AV9xUdPh33LAoTPp1h74KfHvcTChwEjAT3FR0TQj4dE4L3LAqdYe+Cnx4TTvcTCg6goHauCnId+ZQV96/7z/d5/Bn3BB0eeB0f+BT7lBVOHfc26fP3JPc3Gg50HYv3DAqL9xT4FPYd98f3Efdk9xT3SfcULvcUM/cUE1eQE1eg95T3VBVVChOXwGhuqK6uqKiuoB0ffh341BVmbzFcih6gc5lcaxoTb5DvHY55jXh4GvsOPF77BR77DQb7CvsGrrH7Ah+eVS+vUxtr+RSrBhNXkNr3C/c/xbgfpKqjqqeo7PFq9y3LzAj3HaJA+wkf+worNvsJGvf09z8dE2+Q9x77CvcJ+x4e+0QGqcmdx9EazofFbMge7FonsCMbaWt9dHMfJymr+zJPS2ViaGBpXwgTl8BtZEcxZHEI+6YGbh0f/RT3ER33tAYTV6Cn3G2BqB9d9xj3GGH3IhsTV5DoBq8G1h2kt5i9vRqiiKOFoR6ru5zExRoO90kKnx2L9wwKi/Yd98b3Efdl9xT3DfcUR/cULvcUM/cUE0/AE9eI95T61BVVChM3wGhuqK6uqKiuoB0ffh381BVHTk9IHvv0BvsJ6zb7Chr7CXRA+x0eS8ys9y0q8W+oc6pyqgjFXvsL9z88G2sGE0/A+RSrB8Pnr57BH7H3AvcGrvcKG/cUBhNPoPcD1Vn7CR8TT5B4iXiIeR61dKJSXRoT14hzhXN/dh6ta55jXBprfVx2cx4TT5C6iqcxZhr3FIoVE0+gxXrEa7sekaGOo6IaE0/AvX69crcejZmMmpkay3bLZL0ekAcTt8D3T4z7F/cA+0ob+wQG+y77EWVZ+yQfgW46bW8b+7QGE0/Abh0f/RT3ER33pgaycc8xqWStX65gsWPGSmz7Mu8pCHSjq32tG/PvsOy8H6rHj8fNGtF5x23JHvdEBhPXiPce9wr3CfceHw79/zgcBjMBi/nUA/nUHAXgFYsHSAoFiwcOoHcK2x2QCvpAFftL+037PoiIHvzY/MP82fjEBYmN+033PvdLGvet91LG9zT3Kfc8+zVNvx6jbr2Lo6gIyb/3PPc19ykb9zT3UlD7rR/3FBZ5HeMdDiCL90MKA/kU6xWwZIZyHvu0BjND0+Mf+VT3Dh25Crh+z6ecfJp6H/vUBvsz+xX7FfszH/1UJh25Crh+z6cf+jT4tGgdDvsU9475Sun3hPeWAYv3gfd79xP3e/eG93v3gQP3gfcOFflK93v9Sgea+iAVSVlVOh6Ligc9WcHNz7+/2tq8V0eMH/jd/iAV+AcH6WrKOEtlYGJ6HoV8inZ3GvwY+3uLB475CYjMixr3eyaJBrupwtD3EBv3LPcGKPtpH/wiB/eB+nogHfz/fh33lAH3lPc0A/h0+TQVNh15fZmdHvhUawqdmX15HvxUB/k0+/QV9zj7EPcw+xge+JQHpAr3BR0f/RQGRVFRRUXFUdEf/JQH+xj7EPsw+zgvCh/4KAbX/HkFe46YgJsbi4yLi5uYmJuNHr74dwX4QUEdoO4dch349PcaCvvUbgr5VKcd/VQ/CvgUHASgSR38lC4dnh0f90T7RP0g/SAvHfcG+wY3Hfkg+SD3RPtE9xgdi/cU+pT3FAFyHfcUAxwEoPkUaB339Pf09gr71AZemEdvZrKQpB/3tAbj00MzH/1UB5QdHvvUBl6YR29qCh/31MQKIJ4K+hRVHfjU95T41PcUFDj4XvkhFftZtPsZ9xztGuv3lAf7Mav7DrUvHvrK96cVKfsZ+xz7WWIeteer9w73MRr3lCsG9xT3FOAK+7TrBoUK/NR7HSv7tPctCvsUB/tS93r7ZvfMfB6zWLBtnX0IwFuZWUsaS2tLKysrSysejQr51DEdywfrK8srK2vLy8uZvcC7Hp2ZsKmzvgj3zJr3evdm91IaDvsU92jGoXyid6GOqumZEov3X/cUpPdMsfk896oTj8D4HvdMFY+PiZSFkYSSgoyHhoaHjYKShZKElIqPkAgTQIBhyBWHkoOOhoeGiIuDkISQhJOIj44IiweQj4uThpIITscVjY+IkIWOhY2GiomIiYeOhpGIkIiRjY2OCKppFY+OipKGkYaQhI2Hh4eIjISQhZCGkomPjwj3FfsEFY2RhZKCjoONgoiJhYmFkYSUiQgTJYCTiJSOjZEIyoYVkoOQgooegoSGhYSShpWMHxMQgJSSkJEfxZUVipGDj4KKgomFhYyEjIWTh5SNlI2RkYqRCPpY+lD2CiId93QGq62Lux+diuRECqdzo11DJIv7A3IaW6yLqx73dMQKIPcOCveUAXcK9xT3FPcUA3cKy4cd/D8GQXBEVTgb+5QGOETB1XAf/D+BChwFwDYK+9n6XBWVooaneJ38VPhUGJh/epF7G3t6hX5/H/xU/FTQCveU/FQGKwr3lCcd+FT3lAelopujlR8O+xT3FfsV9x77AfcXHASw9xT7FPceMfcUEov3FPsR9xQh9xQcBLn3FDj3FBOSIBMyIBwFf/laFfuo+1r7xPubLh5uOPsEhDL7BvsDqvsGWVx1WhsTUSBte6KnH7ehtbkaE5Cg3HLa3Br3hdH3rPde9y0exrfWq8+mCK3h5a7oGxOGIPcL9wVb9wuyspSyG4+Qi4qPHxOSQJR7jHd4XoFeXRpVlnCeWx6bY5T7D1wa9xSNFcuA9xl0xR4TkiB/q4KZr7iVubga82Lc+wYeZGWBZfsJ+wW7+wsbE4pA+wMkZmIlHxOSIDxsNmZHVwj7gPtHNPvO+7AaE4YgOaQ8Ol11YVwaE1EgLNYy7h69u6i79wX3BG73Bhvz9w+Uru4f99D3BPd79/P34RoO90Idch33vBWSi5KIkh6EoFqhd5VSq1GqU6wIm3FrqWxOMvtJVRtwaKSZcx/7SvD7EvcSJvdKCH2jcq6mwfdJ5Mgaqm2re6UeasNsxWvEgZ91vHaSCI6EhIuEG2dFe3xqH1p2a1NyXghrUHhPSBousTeqNh6hTqZQrVT0+z73Yfth9z4iwmnGcMh1CGzg32XoG87HnqvGH7ikw6ugvAiarJvRrxoO+//uHfr09zEd49NDMx/91G4K+dQG97T7NPYKi/c4CvsV+xX7Mx/91CYd+dTECvx/dwpVHfqU9xQDfh33MR0c+yYH/Dv4KjLgMjb8O/wqBRwE2vqUB5f3FFQdXgp3CvfrFXF/WIFzHklt+xJbRhtITqaiTR/7b9v7gveCO/dvCHTJcMjOGtC79xLNqR6Vo76XpRuQkYuJkB+dhdX7JptvCJZ4oXR0X/sXSmQad51ylXke1fsY5jD3GEEIgZ2keZ+yzPcXtxuionWAnh+ne/cmQZF5CI2Gi4WGGveU+Z0gHSCgdgG3HAYoAxwGVPr8FVFyTHlKhM6zvsqj1k1mRXBCfQjKUDeyLhv7R/sk+yX7RnKOcpBzH/ugmfuD9xT7M/dYCG9be1RPGvsExCjiUR5WjVmaYKMIiouJihr7MfcD+xb3KG0ehHBuh24bdneNjncftPsU9wsu9yKICDT7A/sfWPsrG3ByjI5xHy/3I/c+VvdLG/jm99n4gPg/mYuZipkfyrnCxLfLCA7+f/lM97D3lPewAfc+9+kD+JP6aBX3IgfVkrP1Hvci97D7dwb7pSv7Hvt7H/s/+z77sPc+/cz36fnM93cHqfewBQ4xHAXaHPon90ESi/eq+mj3qhOwE3DWCvvn93D7tPfFJR6yhJmjn52KyEQKE7Cnc6NdQySLOHIad5hzspIe98Xx93D3tPfnGg4goHaZHfdUAfmU91T4lPdUA5AK+lQV9wIKHvtU/TSSHfjUB0AKK/dUBsEKHvuUKArLQR33KfcOCvdDCvcU95R3CvcUAxwG4PdLChz5wHsdHPtAcwocBkB6HZkdB4UKHPnA+xQVHAZA9xAK+3Qc+YD3dPcJChz7ABUc+cBxHfj0kAr89Ad8HRz6IPcUFfeU9xT7lAb4FPsUFZ8d/BQGDvdCHfgU91SrCviU+w8VevdpLvdd+yz3K/sr9yz7Xej7aZwIiYqLiRt7e4WAgB99f4R6eRr7GwdqpHCsiB73xW73hvuGqPvFCGqOpnKsG/cbBp2ckpmXH5eYkZyKnQj4lIkVeffy+yf33fuN94z7jPeN+933J/vynQiKiouKG3t7hX9/H35/hHt5GvsjB2qlb62JHvjZafhj/GOs/NkIaY2nca0b9yMGnZuSmJcfmJiRnIqcCA6L9xT3BPc09wT3FPiUVR35hPc06/c09wT3FAP6pPfUFbQK95QWtAr3BPs0ix0c+0BxHffUhR2ZHfcQCvvUBxz7Mvh0Ffcx+HYFnJCemJ0b+aIGnZ5+epAf9zH8dgX3Rvs0FaaDooOkHvtZ+PIF0XRIvEEb/aIGQUhaRXQf+1n88gWDcoN0cBr71HMKmR2cHaD6G/cNAVYK9xQDkAr6FBX4FAfpHfs0+1T71Pt0/BQb/HR7HftUcwr3DgZF+3Xh+0bF+0bnNveWjcn3DiHeMdzR9wc927T3H/cLs/fvbvez+1/3RvsoCKQKH/gUB3cd0lLERB/7FPzwFfuZ91z7kfcF+5KnCPeiB/eSp/eR9wf3mfdcCA4g+5Tb90T3FPsE9wR+HfeUEp8dy9vb91T3dPcUE82+Cv0t97QV93T3i/T30vffGvdZ9yXG90P3Q/clUPtZ+9/0+9L3dPuLHvdLFvuZ93H7D/fn9+Qa93X7IvcU+26lHpCWjpiYGkAKE61WYGBWfo5+kIAf90UdE8375PsP++f7mftxHqod+FQGE99IHfhU9wQKSgocBWD5FBX3Hvcbnp2SpoWkGYSkd59ykftQuxjA906SpISmeJ0ZeZ5wknKE+05WGFv3UIWkd59ykRlxknGEeXj7G/sfGPsb9x95nnCScoQZcoV3d4VyW/tQGPtOwHKScIR5eBl4eYRwknLA+04Y+1BbcoV3d4RyGYVyknCeefce+xsY+x77G3h5hHCRchmScp93pIX3UFsYVvtOhHKScJ55GZ14poSkkvdOwBi7+1CRcp53pYQZpIWmkp2e9xv3Hhj3G/seBX2YnoOeG5GSjIyRH6SSn5+RpLv3UBj3TlakhKaSnZ4Znp2SpoSkVvdOGPdQu6SRn5+SpBmRpISmeJ0IDsUK9xT3Lwqg9xQu9xP3vfcUE2+w95T3VBUTr9A4HRN3sHId+NQVRlBQRh773wagc5lcaxrvHRNvsI55jXh4GvsMPlz7BB77Vvs/9xT7Qxtr+RSrBvXS5dTLH7S5sbmswJigl6GXoQiilr73CKcbE3ew4NZrKx/7FCtKTBr41Pc/Hfce+wr3CfseHvwKBpq0kra3Gvc9+xXi+zMeE6/Q+xpg+z8uUR9tXGliZ2IIam5HNVsb+7QGbh0fE2+w/RT3ER33tAbK7mZ1yB9l8/Vs9wQb1h2gsJizjrUI9z0G9yD3CPcJ9yAfDsUK9733Ey73FEf3FWP3Lwr3FPcUE244HAVg9xQVE65Y+0P7PvsU+1sb+wNCvPcKHxNuuJ6Mno6dHmGidMS5GqORo5egHhNvOGmreLO6GquZuqCjHvvfBkZQxtDPyMfOH/jUBhN2OMorzPcUGuvWq+CmvfsFdJcel3SXdJl1rFaxXbRdCELL0jH1G6v9FAb3lMuZCvjUFdJSxEQeE284+7QGW0fhrG4fZ7RptG26COhRYPc/+xob+zP7FTT7PV+SYJpiH/wKBvse+wr7Cfse+yD3CPsJ9yAf9z0GjmGYY6BmCBNuuIl9inx9GkugS7NZHhOuWIqGBftTivcaI/dMG/cC9Kuw8R8TbjihyO6wyhv3tAZ3HR8O90kK9xT3Lwqg9xQu9xP3vcwdE+dgdwpLmQr5kBUT51D7VvsU+z/7Qxpr/RSrB/Ux0kLLHl20XbFWrHaYdZd1lwh0lvsIvqca4KvW6x4T5uD3FMwryhv41AfOx8jPHhPvYNDGUEYf+98HE/dgoKO6masburN4aasfl6CjkaMbE+dQucR0YaIfjp2ejZ4b9w25P/sFH/cUkBX3TfsD9xX7UYkesllLoEsbfXyKiX0fE/dQZqBjmGGOCPc9B/cg+wn3CPsg+x77CfsK+x4e/AoHmmJgkl8b+z00+xX7M/sa9z9g6FEfum20abRnCBPvYKxu4UdbGvu0BxPm4PckHfkUBncdH/e0B8qw7qHIHrHzqvX3BBoO90kK9733Ey73FEf3FWP3Lwr3FMwdE4+wch341BX7A1pC+woeE5eoeHiMjnkfYXRSdF0bc3ORl3YfaWtjeFwbal+an3Ef+98HE6+wRlBQRkdPyM4e+NQHTEor+xQbK2vW4Kb3Bb2ilx+il6KXoZnArLmxubQI1Mvl0vUaqwcTz7D5FGsGE49w+0P3FPs++1sa+xT5lBUkHWhuqK49Ch4Tl6igHR8Tj7D3lP2QFfcCa/Rm8R51yGbuyhr3tAfSUsREHhOXqP0UBm4dH/u0B1s1R2puHmJnYmlcbQguUfs/YPsaGvsz4/sV9zy1upGbsh78Cgf7HvcJ+wr3Hvcg9wn3CPcgHhOPcPc9B7KPuZmtnggTz7CJmZqKmRvLy6CzvR+QigUTr7D3U4rz9xr3TBoO+xSbChKL94/6mfeUE0h3CtMd/IoG91H7UQUTuJd/kXt6GhNI9xAdMDD3HB37/vf+MOanCubm9/73/scdBZd/knt6GnqEe39/HvtR+1EF+IoGE7j1HcsVIAr7FJsKEov3lPqZ948TWBwFBfkU9zcKMDD7/vv+BRO4f397hXobE1h6e5GXfx8w5gV/l4SbnBqckpuXlx73UfdRBfyK9xMd+IoG+1H3UacK5ubQHff++/7mMAWXf5F7ehr3jxYTuCAKngr6mfePEoubChOQHAUE+RX3NwowMAV/f3uEeht6e5KXfx/7UfdRBfyKBz4K+IoH+1H7UfcGCqcK9/73/ubmxx33/vv+BZd/kXt6GveQin4KE+jKHfsU94/6mfeUEoubChNQHAUE+RP3Nwr7/vv+MDD3Bgr7/vf+pwrm5tEK91H7UQX4igdFCvyKB/dR91HHHQWXf5F7ehr3kIx+ChPoyh37FPce94jC9yX3E4mU9x2a9xKanZ6cmrn3Ufs09wEumYul9pyMoa33JhKL97v3Raza3YKhuqellLufk792n/cIlBPdJ62AYAoT3yetgPem/J0VlpKdlJmHloiUh36CCBPtJ62AhYeCj4SJlImYh4eCpXxpeXqNCJOKcnyMGoKGf4uEgoOAlnh8j4V+dJKBfZZ/dXqAmoGHkICBhY+FjIWEh42Ml4GOigiGiYeHhhuQfoB9goOBg3SDiIl5en9yq4QIjItqiowfjX+QaHaYgZCFp4iWiJeKi4OXfnyJloCSCBPdJ62AgJF7iYWRfICAjoich4OTf4qIhoGCjYORfpVvenySCIyPh4mOH4h/hJKFhwgT7SetgISGhYGFhphyfXOMcAh3mGiegB6UhqmJlI+ZkYmWkJeQmJGRmoy2jWpohnmIfop8iX8IiZCQjJAbj46QjhqRgZ+IkZeSf5mCjX0IfY2YfHgbfZtvho0flnedg5+VCIOIdYCJHoGJeKCPloqHiIiIiYGXepGCl4mOcLSRjX2Fb5V+knaWiKhxh3mIhoR2kwh9kH+VfZJ7lG+UhZ+Fm42egpoIlYV5n34bl3SpjogfgJhjrpOfjY51k4eMj4GMgJCCkIGRgpGBlnmadYl1foePnoeThJh4i4aZCI2MjIuNjIyccpmPl32Wi6CBmYKYfJF+lIaOZ7mYjneGgbqOlwiLiYuMGo+XhMmbjICKiKaOkI2PmnyMiZGOkZOJkoiTgJKEkYiNY6WKio+SipKFkAh4fJWogY6HjIeOh4/F59zY68AIjJGTi5MbnYmVfJiCjZCHk4iQjpOXjZKNlIyYjZOHhZSEk4STioqIiYqJgJR2f4GHCIOHhIaDiIaJiIuHjAgT3SfdgKmbqpmslpGHkYSUhIWQi3SNhwiWfKOVmoq4hYIMJJKBi3yUgpSUfpWRlI2PnZCRjpKQf5KIjYGRZI6eopKTpIeThggT3Su+gJaFl4B8gZKKrIKGfgiRjpCUkxuUio12j4aZcqO9j4l5kq2UlIiSiJZzfowIE92HroCWgYx1d4x9jHuefnwIE91HrYCCgYd8goJ9fXiMeo2SinV0iYeFhIeDiYOJgY2AhoGckJRshIqgjpyLn4QIE92HroCZhqCFkXyPkZ6IkYmXhYx+joCPfJhynJOOjaGVg5EIE90XroCDkoKdk5WTlp6OkJkIk6JriJwalZiOipcelXyfl5IelZG7gZSFlIWng42CCImKi4kbE98nrYCThJJ8fYeUjaWBeYWRjpCJkY+Sj4+SlIaNipahkYqUio1+j4WPgpaIj4IIknqIe6KFkomelop8CI+PjY6MGox9kXucjQiLi3iJiB6FgnyNgoaIinN2joh+mnaLeod5iHqJeoSDh4OHhYSIh4Z5hoqVjZCWk5EIE90nrYD7N/4BFYqQipWMGoqbnJaKmoCOiJaNl42cmpeXlpeWjqKImYaji6SHo4yFnI2Og4+SjZSQkgiPkZKNkZCVkaCil32Vf3J+mICPk4eXk5ObnZZ3m4achpGFmICHj5+SjYwIno+TgJiBmYGhhIl3lYmRiJOIk4eWjZGFLyr7Dkf7HXMIDiD7fxwGawGgHAZpA/gUy0Ad+Rj4OBX7F78i9Ff3F/09/T0YrAp0HvX7APcaHfk++T4F+Q74RxWff5p3d/t8+yZ4ah77VfYF93QH97n3PQWUkZKWlhqXhZSBkh60TiyhQhuDHfuL9137XfeL91H3P/cP90bKH5arl7SsGg6gjgoBkAr3FAP6lPcUFfcU+RT7FAf+lPiUFfcU+pT7FAf8FPiUFfcU+BT7FAf3FP3UFXEK+ZQEcQr5lARxCg77//sUch3eHRwFexwE2RWigXSbcRsc+wAG9ysK+IH8gRj8egeeHR73EgoFfwr5egf4gfiBnp2Qp4GjGQ6goHafCvc7HQGfCvcU95T3FPcUFBz5FPcxHfcU+JT7FAf5FP0UFf00+zQGVQr71JwK9zT9NPx09wcd/ZT4dBX7lJ4KBvmU+PQVhQr79Pc0BkAK/NSECvs0+/QHlB0f/BSPCgcOSgocBQP6dxX3JPskYgqTlI2Okx+ilZuipRr4VAczHfxUBnF0e3OBH4F0kG+eefck+yQY+/f79/v39/f3JPcknp2Qp4GiGaOBdJtxG/xUKh38VAdxm3SjgR6IkpSJkxucm5KXlx/3JPck9/f79/v3+/f7JPckygr3Kh37JPckGPf39/f39/v3+yT7JNAK+FQnHfhUB7UK+yT7JBj79/f3BQ6gDqAOoA73KfuUjwoBixwHgAP45fkUFVfWbuXmGqGNoY6hHnxgX4Nd+xsj4HYb+xOO+6Q6+wPpW+8f9xoGztvpuPOOCPrD/REV93ZW9+/7uR5p+xD7H/tc+1z7EPcfafc+CvYq9zQf+f4G9zT27Pc2H/6UHAT9TB35VPwUaQr41Pt1FdyO96T7Ex52Izb7GxtdX5OaYB+OdY11dRowbjFXQB7ziOlezjsI9xoG7+m79wMf+xT49UwdDiD7BPdV+1UcBmD+NPdV+zX3VPiU91QSm/dU+1QcBmD+NPdT+zL3UxNCABOCABwFsPfUFfdHCgV6eXKCchtycpSdeR/7YvdjBXmdgaSkGqmXoqCfHmqsp2S+GzsdExEAvmSnaqweoJ+ilqgbpKSBeZ0f92T7ZAWdeZVzcRr9U/lVFW1/dHZ3Hqxqb7JYG1ZgYFZYsm+sah92d3SBbhtycpSdeR8TQgD7ZPdk4h2klaQbpKSBeZ0f92L7YwWdeZVychr6E/1VFdhu01TCHvtk92QFwVVBqT8bPEFrU1QfM+MFw8Kr1toa127UVcEe+2L3YwUTLIDCVUKpPhsTHIA/Qm5VVR/7J/smBVVWbEE/Gj6oQ8JUHvdk+2QFVcHVbdcb2tWrw8If4zMFU1RrQDwaE6EAP6hCwVUe92L7YwVUwdRt2BsTLIDX1KjBwR/3J/cmBcHAqtXXGg73Kfc7ChwHgAMcB4D4FBX3SvsT9yz7PrMepbOaur73CR1LUXRkXx73Tz77S/cX+2obtgp9jHyMfR/7LEQh+y/7Rxr7i/dd+133ix761AZ2HR8OIHcK9xQB9yYK9xT3FAMcBffjFfyL+a0F+CPLB9wd/JT1Csv8Iwb8i/2tBfsLQMAq9yEbfh0G9yHA7PcLQB/9n/lpFZ+qBbAH+CP3FPwjB2YHn2z3pPxBBf1cBg6g+xT3NIB29/T3NIv3FIv3NPfU9zQSjPcz+FT3M4zLy/cUE29A+lT5FBUkHS8K3B33wEsV+I/4Ip2YlKGJoBmIoX6eeJX7FMsYkIKBjYEbgICIhoIf/Ub8F/sCzYeNh42HjBmUqo+siKyC8kbu+wLQCME2KaktGzE/cFdTH1JXbj+SPZQl0Cj3AUUIVeDubekbw76Wn7cfkYKShJSF9w5CGBODAPsOQoKFhISFghmfX1iWUxstKG1VNh/7AUVGKIIlhD2oP8RWCFjD13DlGxNPAOntqcHgH/cC0dDtlPKOrIesgqqPjI+Nj433As0Y+Ub8FwWGlJaIlhuVlY2QlB/3FMuelZiejqEZjaCCoXmYCBz7XPkmFXNxYn9dGxOjAE5Fn7JOH/sAz2XwyMMIo6W0l7kbx9J3ZMgf9wBHsSZOUwg2/X0VZE5Ed08bExDAXWKXo3EfTsOx8PcAzwiyyNGfyBu5tH9zpR/IU2Um+wBHCPdG+PkVlJSNjY2Mjo4Zk5KRk5OTpaUY2lx9gwV3f352dBqAB/cU+zoV+zQrcaWDk4WTg5MZiI2JjImOgpMY9zTrBfcFB/mU+EP3FEv9dPzUBfj0/BQV/Nr325CNkIyOjxn3Rfce+Jz8LAUOoPuUYh33FIv3FPeU9xQSi/cUnx2L9xT3lPcUi/cUnx0T7rAcBqB+HRX8NAZkWXp0ZB/33AcT91BACvw0BlZBbGZmH/ws/CwFZmZsQVYa/TQyChPusPi0+7TJHZkdB0AK/LT7aRUT7tD7v/u/B/vp+T8V+7/7vwf4g/vwFWZmbEFWGvuU/JT5FPg0Bzsd+DT4FPw0BxPusPkU/vQV/hT5FPg0BhP3MDsd+DT4FAcO+//7EPcT+hb3FfeO9xABj/cU94r3FPmX9xMDHAV89ysV42bgTMke/Nn42QWzZFWiUxv7AjU1+wJUolSzZB/4LvwuBYWRk4eTG6DExKCTh5OFkR/8LvguBXybgaChGrKop7GhoYJ8mx742fzZBbFlpFdUGjZMTDZVVqSxZR79nPmdBVu7b8zPGvch9wL3B/ciz8xtXLse+PL88wWFkZOHlBugw8Ogk4eThZEf/PH48gXTQim0JRv7aPs7+z37aCa1KdJDH/md/ZwFTcngZeMb9zD3C/cL9zAfDnQdnx33lMwK9xTgHfcU9xT3FPcUA/gUFvgU+ZT8FAf3FBb4NAdACv3UhAr8NPsUdwr3FPw0Mgr41DYK+DQHn7J7fZkf9637rQWYfpxieBr+FAf8lPo0ix37VHEd99SFHfdU9xAK+9QH+RRrFcBt1GWxHvus96wFsWVCqVYb/jT3Bh0cBUA2Cg5KClYK+vQgHYuTHfcBHRTgVgr3VBVSCvkUBFIK+RQEUgoOoIuTHct3rgqfHasK+JQEXh1yHfw0FS4KHPtAKB2ZHQY3Ch8c+oD69KsKch38NBUuChz7QCgdmR0GNwof+VRwHRz7QCgdmR0GNwofDqD7lPcB9yf3lCnt9xTuqPeUnvcB9xTuEqv1nvcLaPcW+wn3EyT0E0qA+BE3FdBfv0ibHur3BwXj++H7LPUHE8EgwAcToSCrrI2rG4oHYGRqWGddpVMYtI7LiFMaY2Z6aGVin6RwHlIzBRPBIF64y3bKG/PhyfcCH435BxUiBhMCIE/7EweO2fdtrPcoGu47wi4/R2RGah7gUAWnnKiprhusoHlpHzf7dm/7TRp5jnmOeR73/gYcBYH7NLMdHPqA+tcVEwKA+wAGExAQ+CghB/sc+xPSP56cn5qWoRmNfwY6ijo6GiAGExRAKPfjB3Id+7SzHflUcB0TEBAc+0D3DwqgCnqZfJ0emR0GEwiALAoOoPsU9fiq9xT5JPcErgocBuD5FBUc+UAGUR0cBsCnHRz7A8sV+XsGcJ1rnGecR6lSoVuZ+yK0LrZfuAhfuHW5vBrFoby4sh6yuMif1xvb0m1Oxh+tZ65HrSaZiRjfhZeOBY6bjZqZGraGyILaHoS/hLOEpUGjUJtfkwiXQVSSZRv7QfsXYTYyHzI2XiX7DhpPm0yrSh6abpxwnnMI+I/7lBXQb7lzoXgIwVqmV1MaXXtgbGMebWNiblh6CHlZXIJhG1xekppjH2KZaJ5uo26jcKpzsoCder5m4CWJGF8Hd4dojVkejyuJV4MafgeAj4SPhx6Vg6KCsoD3IGMYdtXNicIb3s6SmcAfwJi9or2pvKqvpqOirKyirZqwCKfQmNLTGqyJqoanHg6L94j7CPcI+r3pMeg14xL3aPe4+Xb3BDn2E40TVbscBSEV3Ym8fZt0CJZ7kUT7Ehr74QckkDyWVB6aO6dKs1mzWcdi2mwIbNrqfPcCG+zglqHUH9Shx6m8sLuxsbSlt5ypmbSVvpW+lfGG9ysIE459+A6DnYsaiqSJn5ganpGYlJQekJCmkLqSqIynkKaSCI2XjZWUGpSJnIekHnmNTIRKhUeOGfthlQU3Bok1mYjvjaiMpX+hdBmZfJJtjmCPUBgTpZr7dpiG+0caI4Q/fVoegWh6ZHFjf3d1dmx0bHNqe2iACHhQS4JHG1FQmqtPH2Kha6p0smzBe86H3H33rBiK93kFmoqeoxrZj7eUlR6cmKWTsxu2tI6Rsx+UB4nLjJkFinxuimEbYIpaiVWJCBOViVRTilIbe1ONkC0fjmRljGgbfX6Lin4fjjMFE1WXiJqLnYoIHAXQHPp/9y4KHPpABhONcx3LWgocBcBaHQ4gi2Id95QBi/cU+BT3FNQdA/iU9zRNCvgUBGQK/JT5lBV5fX15HvvUBnl9mZ0f91QHnZmZnR731AadmX15H/tUB/iU/BRjCvyU+ZRjCvgUBCUd9xT31BWFChz6wHsd/tRzChwFQJwdICYcBmUBphwGZQMcBKb6TxUg9ve597n2IAX3LhachZt/lx77WvdaBZd/e5F6G3p7hX9/Hxz6+hz6+gV/f4V7ehp6kXuXfx73WvtaBX+Xm4X3PB2Rl5cfHAUGHAUGBZeXkZucGhz6ufdSwh33kPsYFU/3WE/7WPtYT/dYT8f7WMf3WPdYxwX5cvw2wh39dvkywh0OoPcOCvcMChLmHZ8d95T3FBP39yYK7B38FPiUFakHj5Gajo4e91f3VwWOjpqRjxv3MgYT7/uUB/oU/JTsHfeU+tRJHf6UKh37VPs0B2dbd3JyHxP3+1r7WgVUVJU8RBr3NgpB2ZW9H8sGSB34FAZIHb3ZgdUfDvsU98v5Mfc79xf3lgGL9433Kfcp95D3vfdQ95AD1gr7z/dR+6L3o/sLHonBjMyZxQiLmsnf9/gecryL1Isa9wbN4N3RrVZMRV4idCoeOXjHSdsb9ybt90/3cfc9+wb3Evti+337JftC+1ZIn1yqZh+Zeo2FhneHfYNph36Gd3uEepIIILdZ9wr3GBr3bvdM95r4APe691X7aft3+8L7PPt1+4s4Pbi+cR5e+0WCaYsae1BqUG5dCHbR04DXG8od+xT32Pkp9zn3FowK9yj3KPeM97r3TveUAxwE4PdLCiId90sGhcKC9qHnCIuayd739B5zvIvTixr3BMzf3NCsV01GXyN0Kx46eMdJ2hv3JOz3Tfdv9zv7BPcQ+2D7evsk+z/7VEifXalmH5l7jYSGeId9g2mIfoZ4e4R6kgght1n3CPcWGvds90r3l/f997b3U/tm+3X7vvs6+3P7iDk+t75wHl/7Q4Jpixp2OVU6alwI+WkG9zP3FfcV9zMf+lQHLR0O+pT3VMv3OR331vg59y34FPeUA/k6UhX3IPsX2SXSHo16e4t7G/sY+0ts+xNHH/sNr/cFOPcSG/gQBpKijqOjGvu59/MVarZtvcMaqpallageiHRziXQb+wQ0rOBBH/xFB/cMyfcXnvcajwj3QfiTFfcsOveP+037GEv7CPsK+yzv+4L3Rvcduu73Dh76ZuYV+5T7lPsU95T3SQr3lPeU9xT7lPeU6wYtHf5UBvs++wr7G/s5H/cb9wD3LLD3Oxv4SQb7G0sF+xsGmG2Yj6B4CNBLrPsBMPuc+3N1+xj7Ffe/WPusGlR+VnFaHvhoxAog+5Tn+KLH93rH98z3FPdF2hKL900/9033dfdasvdNSvch95v3FBP9YPoA0hX7Q/s6T/sp+zT7bNX3VPdk94i/9zicm4uJnB7xRPcXPfsgGvsM+fIV+w5cKPsd+0Yn94L3LPcKy/cI9xf3Td37j/ssHvsX+G8VTEyEfk4f+0pj+yf7NvtSGvtd9zz7I/dWoqKNjqMeE/tggWx/dWoaU6pZrGAe+0eG+6pdMvtICHZhe11cGvt896I790/3KPcxq+73Bx4T/WDg1cLo9wf3rPvAvvcV9xj3dJ/3nRr3BFn3DSjJHhP9oPcbBvcb2gX47vuUFfuU95T7FAYT/WD7lPuU+xT3EgoHE/ug9xT3lPeUBg73KYv3FOv3NPi09xTr90UK0sT3FPeUnwoD+ZT4FBXr9xT3tIkHe3J8gHN2PtsY9yj3HQX3BvxU9xQrBvcU95QV90r7Avd++2b7ZvsC+377SvtK9wL7fvdm92b3Avd+90oe+JT7lBWDCh8c+4AGdgoe+JQHQwoffh0G7woe/JQH9xT51EkdHPkAKh0c+4AoCo8KQR39f/fU+NToHfnUUAoO/X/3lPjU6B331BVNHf7/9xT6lAHL+NQD+RT61BWSCvxU/FQFf3+Ee3oanh0e+FT8VPcYHf7/9xT6lAGL+NQD+NT5FBW0HSQdH/4UB4Id+FT4VHUdDiB0HX4d95QBi/cU+RT3DAoUOPc0FoYK+vT5FBz7gAf5lKuLHfz0fh35FP70BvcUmR0VhQoc+sB7HRz7QHMKHAVAnB39fxwFQHfoHfhUUAr4FARNHf1/S/jU6B34VFAKDv1/HAVAd+gd+dQVTR2g+xRyHa4Kjwr5zhVtamluZ3L7O/sF+zz7Bvs3+woITTcjP/sBG4oGigb7ASPXyTcf+zf3C/s89wX7OvcFZqRpqG2sCP2u9wcd+tQE40LTNB4c+kAGIFY3KTDw+wXSWx/3L/sA9zH7APcv+wEIXsz3Ai/cG4wGjAbc9wLnuMwf9y/3Afcx9wD3MPcACOPI3vD3BBoO+Tb3mPs79yQSnvfe+e733RNw9/H6IxX73v5z994GoBwFERUTsOyKRdX7BRv7BEFBKizSP/cDH42LBvcH09fqih8cBI79bRX3xPs29yL7bR4TcPtGPShHYB8TsI33JPvdBouPLof+Fh6L9934vQepjqiToR7Go8HI5hv3C7sw+xkf/Kb33QcO5Qp3CveUE7AT0PctHfg7++337fw7+1n7Uzz7GfshHvsW9xXKChOw9yod+x33Hhji6PcQvfcXG/eu93r7evuu+677evt6+677M/sn0/cTKR+GkoKPgowIgoKIhYQfE9D7HfsegICKeJV+GROw+0T3JvdsJvd5G/g79+337fg7Hw6g+38cBsMBsxwGwwMcBusWzR37//f/BaJzaplpG2Vse3BwH/uU95T3EvcSBZSUkJeYGpiGl4KUHm2poW+5G6WilZ2eH6+tu6/BGqSBpHmdHvws+CwFnXlylXIbVWdbZ2kfeXiBdHEaXad1qW0elIJ/kH4bfn+GgoIf+/D78AWCgoZ/fhp+kH+Ugh6pbXWnXRtxdIF5eB9naVtnVRpylXKdeR74LPwsBXmdpIGkG8Gvu6+tH52elaKlGrlvoW2pHoKUl4aYG5iXkJSUH/cS9xL3EgoFcHB7bGUaaZlqo3Qe9//8AAV0onUKoqMf9vcAsh2gdB0cBIDbHfgU+BQ1CvdU+FQ1CvhA/HUVzF6tOXY6cCUiTSSmJaZN9KbyodzQwtqR8PgSGJStrqCtggiLB62Cn2iDaQj4w/vxNQr9FPkUNQr4VPtUNQr31PxUFfiC/Cb4JvyC/IL8Jvwm/IL7QLz7O+f7JB55l5+AoRscBXoGoZ+WnZcf5/clvPc690AaDqCL9xT6lNsd+hR+HRX4NPf0+377qvuq+/T7fvw0YF+OkGAfUpFgZTlDL1ImYRmluaTCntKm6xg0vQX7Qe0n9yL3KRr3qvf09374NB76FPyUFff2/CX3svyDHosH/IP8Jfuy+/b3Rgof4wp1kJ17n4yNi40bqgqgoHb3lPcU+ZT3FAH3IAoD+VR+HRX3zPec+0T7ZPtk+5z7RPvMV1iQlFkfVpVfbHd9dn52fxmu3yrDBfsU1UH19wIa92T3nPdE98we9xQE9wQdH3gd96/7z/d5/Bkf+coc+28V9zbp8/ck9zcaTh0O/f/7lJAKAYv6EwP6CfpeFZSCf5F+G4eHioqHH/wgKfc/+GMFjpGNkZEaoneech6L+9wHdnl+eIYf+139zYh9j3yXgRmEk5eHlhuPj4uMjx/4KvD7Wf28hnaYdqGEGYqQkIqPG52blZqTH/iwHASFkpqInICXGQ6g+NT3FAH3VPcU+JTgHRRwjwr3tOAKK/dUBukd/JT3VOs2CvfUB0AK+9SBCuv7VPyUBkVRUUUf+1Qr9y0K+9QyCvfUNgr31AdACiv3VPiU+1QrgQr31DYK99QHQAor91T4lPtUK4EK99Q2Cg4gdB0cBSD3NAGfHfeU9xQD+hT5WBWSdnaPdRt1doeEdh/82AdITk5ISE7IzjsKJB37H/cJ+wn3H/cf9wn3CfcfHvmU+L0VjouNio0e+A4x/AX3avwIG/wK/AH7avwOLx+KiYuJiBpqCpSSj5GSHsHFwbHeG+rd9wgdmBuZ9xUK3MbqG+rc9wgdmRuY9xUK3cbqG97BZVXFH4WSkoeUGywK/ZT5axU7ClUKKQegjKGMoKChiqAMJA6g90kK9yl2nwr4FPeU9xT3OR33lPgU9xTUHQP5lPsUFX4d+BT8NDIK+DT9FAb9FBwFoIsd/VRxHcuFHflU9xAKSwf3lP00Ffe/B/e/+78F92n7FBXAbdRlsR78LPgsgJZ/lH6TGffcB0AK/tT3Bh34tPs0yR0O/X/6tMv3NPcUEov3FPcj9xP3ePcTOsv3NPcUE+YT+vl0+lQV9wP7F7wu90odagrA9nBGagqGHfc0FktxSGFaHnh1dXZ3dEQ2TyeB+wUI+3gGgfcFT+9E4HeidaB4oQhhvHHOyxr3XPdf9wz3SR4T5vdJ91/7DPtcH/cUFvek+5f3RPuR+5H7l/tE+6QkrTLQPx4T+tA/5iCTIAhuenlrahpzlHSbeh57eoJ0cxpqnG2neR6DfYZ6exoT5kq+bMUeUaXFZcobysWxxaUfxb6qzJuGnIOZH6ednKmsGqOConucHpuclKKjGqx5q26cHpP25vbQ1wjQ163k8hoOoPcU9w0drgqPCvf0FZ18mXoeHPqg9zoKfJl6g4KIhYUe+9T71AWFhYiDghqDjoORhR730/vUBYWSk4eUG52Zmpwf91QcBWAHLAr5dASKHRz6oAdfCvtURB0cBWCYCnqafKsdDvcpi/d0AYscB4ADdwr49BWCh4OFhB778/vzBYWFgoiDG4KDjpGFH/v09/QFhZGIlJManJmanR73dPf0BoYd91T3EAr79Pd0B18d+RT7dFMK9ymL95QBixwHgAN3Cvk0FXp9fHke+3T79AZ8HftUcR339Pt0B3l9mZ2Uj5ORkh/38/fzBZGRlI6TG5STiIWRH/f0+/QFkYWOgoMa+RT7tFMK+//3Dgr2HfcU95T3FPeU+3T3VPc09xQT8/gU91QVOwokHS8KPQoeE/X6lE4V91tj9877gr8eqEeEPUIa2l68NjAayx33BR1FUVFFHssd9wodywesiKx1ph4T+0k3I2UgGyAjsc03H3VwiGpqGvtfB9dwv0I6GhPzuB0hNeH13L7U2KYe918HtJG0m7Ee+4JXY/vO+1sa+zf2K/c0Hvn+Bvc09uv3Nx/71PoRaQoO+/90HfcxCvfUdxKL9xT3lKwdi/cUi/cUE70AE/6Adwr51JkKFvU14SG4HTfARdZwHvwf7Qr3GAf3bab3O/c091Ua+JQHOwqFhoqKhh6ydWGmWxuXHcRS0qKhkpaeH/wm7Qr4JgeAnqGEoht3HdJSxERbYXBkdR8TvQCMhoaMhRskHR/8lAf7Vfc7+zT3bXAe+xgH+2j3XftArR33KB0e+B8HE/6A1qbA0d8aDqB3Cvc5Hfe093TgHfd097QD+RR+HRX3FPiU+xQH/fQWS+sdywb69PcxHfsU9zQGQAr81IQK+zT7FBz7APqUB/gU+rTwHUsc+wDL90gdIL4K+cT3tBX7mfdx+w/35/fkGvd1+yL3FPtupR6Qlo6YmBrAYLZWVmBgVn6OfpCAHvdFHfvk+w/75/uZ+3Eeqh34VAZIHfhU9wQK9ymeCvgU91T4FPdUAZAK91QDkAr6FBW4HR5L+BTLBvXhNSEfHPmA/ZQV7woedwr3QArL+ZQV92j7QPdA+2geHPuAKh39dPceCvlU9yIKq8sHdh0fDvv/+5SPCgGL9ykd+RQcBcAVOwpVCvcfCm6orh74NPdAHfcfCm6orh74NPdAHf0UBzq/QtdwHv2fB6od9xSLCvmfB9emv9TcGvmU+RRJHfuUBvchCh/9tEQd93T8lAaqHfcU9wQK/H/7FPcU95T3FPcU9xT3FPcU+BT3RQqfHQP6lPf0Qh39VAZRHflUMR331AQsHf1UBlEd+VQxHf4U/LQVUB37//uU9xT3lJEKAY4KA/gU93QhCvfUBCEd95TLNAr5lPxUFZx8mnoeSwZ6fHx6H0sHepp8nB7LBpyampwf+5T31DEK+ZT8VBWcfJp6HksGenx8eh9LB3qafJweywacmpqcH/uU99QVnHyaeh5LBnp8fHofSwd6mnycHssGnJqanB/7lPfUJQo3Ch/7lBz64NkKVgp+HRz6AAf3FBwGQEkdHPsAKh0c+YAoCncKQR37//uUrB33FPcU5h0Si/cU9xT3FOwK9xT3FBP3VfgU93QhCvfUBCEd95TLJQoTCEQsCvuU/bTZCn4d95RrMgr4VDYKE4QFq/eUHPuAB/wUHASgix1LcR3r+xQrB3wdS3Ed99SFHcv3EAor9xTrhR0TClTL9xAK+9QHE4dF+JSrSR371Pe0BhNwqkAK/FSECvu09zYKHxz7ACgKdwpBHfcp9w4K9wwK95T3FBLmHZ4K95T3FPeU9xSL95QT+aD3Jgo1CvwU+JQVqQeMkZCWjpD3V/dXGBP2wJCPlo+RjAj3MvuUBvoU/JQ1CvcU+TSIHc8KoAr3lPi0FRP5oDMdHPuAKh371Ps0B2had3JyHxP2wPta+1oFcnJ3Wmga9x8KqG6uH/cUBvsh9wb7B/ci9yL3BpUdHvgUBu8K9yL3BpUdHvdUQR2gngr5lPeU9xT3FBKL95Tr9zTnHYv3NOv3lBP5gHcK+DSIHRP2gM8KE/mAoAoT9oD9FPl0FfcU+JT7FAcT+YD+FBZr6x2rBhwEoPcxHfs09zQGQAr81IQK+zT7NBz7APrUB/f0+rTwHWsc+wCr90gd9ymLq/dU95Rr95Rr95T3VKsSixwHgBOsHAeA+NQVi4ur+7TLHvv0q/t0ywVLBvu59/QF0PdBHSsG+zQGS2vL/DQGE9z7NAb7VPd0BSsGa2sF+1Sra/cUgwf7VHMF+xQH91RzBYP7FGtroAqrawUTrOsG91T3dAX3NPw0S2vLBvc0Buv3QR1GBve59/QFywb3dMv39KsF97TLi6uLGg4goHb4FPcNHQH3FPeUA/kU+RQVfGeLPhtEUsTSH4uL9xT3FBr3lPwUBvqU/FQV+xT3VAX5tAfLq2v3VAX+VAZr+xQF/HQGa/sUy0sF+9QH+2j3QPtA92gelvWLlhv7FPtUBftUfh0HDl4Kdwr3VBU+CvfU/JT71Ac+CvoUB0UK+9T4lPfUB0UK/hQH95T6NCAdXgp3CtMd+9T71AY+CvfU+9QHqR331LkKRQr71PfUB/Ud+LQgHf1/2Pp6Abj6WgP5B/c0FXoK/B34Hfgd+B1ZHZOHlEIK+BQWegr8Hfgd+B34HVkdk4eUQgoO/X/Y+noBmPpaA/jn+NQVVh34FBZWHQ78//ch+lr3DB33dBUzCvgUBDMKDvz/90H6WvcMHfk0FTQd+BQENB0O/v/Y+noBuPjaA/kH+nQVlIeTQgp6Cvwd+B34HfgdWR0O/v/Y+noBmPjaA/jn+NQVjx1ZWQWFhYeCgxqDj4KRhR74Hfwd90gKBYWFh4KDGoKPg5GFHr1ZZQoO/P/3ofja9wwd9/QVMwoO/P/3wfja9wwd+bQVNB0O9ylyHVUdkAr3FAOPCvi0ix0c+cBxHfnU90IKnJp8eh/91Af3FPnU9wcK/tRzCvi0BjRLR2b3Lx34lCcdrkvT4Br4tJwd9ymL6yv3VEvLy/cU9zsdEveU9xTqHRNe+DT3lBX61Hod+VQHhQr+1Hsd/VRzCmv59BWGHfrU9xAK/VQHfB3+1HEdHAVg+3QVHPnABvs0KwZW02DjHhwGQAbj07bAH+sHE77+BCsV5AqChISCHw78/4vL9xTL9yAd9zEKA/cmCkAd+BT3NIsd/dRxHfpUhR351PcQCv5UB/cU+lQV40PTMx791Hsd/tRzCvnUnB3+f4u79zS7+ZTrq/c5Hev41OsD+GT3FBVfZ2dfX2evt7evr7e3r2dfHvdk9zSLHfyUcR35VIUd+JT3EAr9VAf7VPnkFYKEhIIe5Aof97SbFekd/JQGRVFRRR/+lAeqHfiU9wQKYQr61Pd0A/mUHASgOAogoHZ+HYwK+RT3lAP5lPjUZx36FPgUZx0OIIv3lAH3Jwr5FPeUA/mUmR1mCvoU+VRmCg77X54KW/d094T3VPek9zQS+TT3lPdk93T7VPc0m/dUE3r4hPdUFdtKyzw7S0s7O8tL2x4TiNrMy9sf+ET7VBXSUsRERFJSRPckHRNEdx0f/PT5FBXjQ9MzlB0z00Pj9yUd+qT8VBXJWb1NTVlZTfcICv3U+hQV7DzaKio8PCoq2jzsHhMh7Nra7B/4ZPdUqwr4tP0UFcBgtlZWYGBWTAoeExI7Hftk+FQVtAoOSgocBgD5FBUgCqD7FBwGQAEcBir3agOPCvg0FfcEgPcHYfUe9+37H/wsxfvcG/t095QGkgr8lPyUBX9/hHt6Gp4dHviU/JR8CveU93QH+EP3rzj8cWKJYohiH4p7h3l7GniXe5+ZkpKVkh6aoJarlqIIxPcU0fdL9yAaDiD7FOoBi/d09zT3DR33NPd0A/kU99QV2gr5FBbaCvc0FvvG+6xc+4ge+zwG+4j7rLr3xvct6Pcb9zfNy3+CzB+Dv7+IwBvAv46Tvx+UzcqXzRv3N+j7G/stH/d090QV9yZj9x8r9wUencGUxMQa1nrWac8e+zAmSC77Cx+hMCyVLRsjI4BzJh/p+wwm0PsyG2lHekBAGlKUUZ1UHiv7BGP7HvsmGvsDlvsLviYe+6L3HfgVdPecG/eY9/+l95/3GB+98Zb3CvcDGg4gi/cU9zEK9xT3RQr3Ox0DVgr3dBVWYGBWHvdKClZgtsAf+lQHRh0e99TzHUsHVrZg90EK/VQH9xT5VPAd/TRvHfsP8Cb3Dx6ZHfdIHfcpi/cU+JT3FPeU9xT3FPdFCvkU9xT3ifcUAxwG9fjxFXyCfoKAHvu6+/8FYWlFalYb/tQGdWySp5qUmJSXH/e69/8FtK3RrMAb+tQGoaqEbx8c+4v3NxUwIFhEUR/7lPvPBfnpB0YdHvfU8x1LMgr41PMd+zQH+In7NxWjhqKBoB7LbUeqRxv7VPc0BtUK/LRvHfsP8Cb3Dx761Abl9wG/0cQf97v3/wWmrZ61txoO/P+L9xT4FMwK1B0U/PoU+PRCHft093QGLB1LRwr7dPt0B1Ed93T7dAZ5mX2dHssxHfd093RrCh/3FPvUvR39VAf3FPlUFfcQJ+/7EB69Cg78/4v3FPgUzAr3MQoU4Po0fh0VvQr5VAf3ECfv+xAe6/40vR37NPu0FfzUBlEd+NSnHQ50HfdU9xT4VI4dHARu+GEVlq14rmqWaZZneIBpCCBqKEP7BBv7BCjT9mofgK1nnmqAaYB4aJZpCPs1vfcn+wD3PRv3Pfcn9wD3Nb0f/IL4RycKdB34VPcU91SOHRwEbvfHFfc1Wfsn9wD7PRv7Pfsn+wD7NVkfgGmeaK2ArICvnpatCPas7tP3BBv3BO5DIKwflmmveK2WrJaeroCtCPyC+OEnCnQdnx33lI4dfh34VEkd/RT1CvkUJx38lPhUJwr3KYv3VEv3tPg091QSi/dUHAXA95QTuPnU+FT3Lgr7VJgKE3hjHfsUrx33VKAKcx0TuPcUWgr3VLcdHvcUWh37VPdUB18d+xQH+NRLNQr3lPeUFRN4lx1SxNJ3HR4TuNLEUkQf95T7FBUTePev+3n3efuvHhO4/hQGtgr7r/d5+3n3r/cW9wq82uUf93AGPOX3Clr3Fhv3r/d593n3rx8O9ymL9xT3FPcU9xT3FPcU9xT3FPYdngqL9xTsCvcU9xT3FPcUE/6rgPgU+ASMHTId9xT39Iwd+3QGgoSEgh8rB4KShJQe93QGlJKSlB/7FPf0jB0yHfqU/DSMHRMhAAD99AaChISCHysHgpKElB759AaUkpKUH/0U9/SMHTId+xT39Iwdux0TckAAMh37FPf0jB27HRMwkAC7HTId/JT49IwdMh33lOuMHRNwJQAyHfeU64wdEzALACsGgoSEgh/7hPsEB4KEhIIfKweCkoSUHvd0BpSSkpQf9xT8JBUc+YD6FPcyHfcUFtJSxEQeHPmABm4dH/4U9xEd9zIddx0fDqD3o/cUl/cU+HH3FJP3FPcZChNekAr4fxVqTfsMUPsDG2Rpk5lvH2+ZBcAgJ777LhsT3vsZ+zxXTvsYH/jrB8v3CPcyyvcVG/cf9whYVvYfdba8gcD3Mwr8/Acc+sD5qRUTXtJSxERuHR4TflylYrF1Hhz7Di0KyzEdE94cBPIHvh33FB0TXuoKE954f392dRr9egcTftIdl46RlR/3Ax0TXssKE96glpmhoxoOoPej9xSX9xHCmPgw9xSS9xX3GQoTr/nU+KwV+xCB+yRd+whVCPdNB/cHxPcnvPcOlgigCvg2BPsQhvsiV/sKTgj3UQf3Asj3KMb3EpEI+1kH+dT8YxVqTfsMUPsDG2ltkZZwH/dQB36PfpB+kQjE+wf7EMH7K4WFi4Qb93IHjZybjJsb9yvpVVH3Bx+YhZiGmIcI+3QH9xpi9zPO5rgI+0wH+D8EMFj7Mz77GrEI91gHhaSliab3MwoTEvtRBxz6wPf+FdJSxERuHVylYrF1Hhz7Di0KyzEdHATyBxNKvh0TgfcUHeoKeH9/dnUa/XoH0h2XjpGVHxNK9wMdE7XLCqCWmaGjGg4gi/cUAZgcBnMD+N34vXQK+sv8XUId/lQGUR36VLIK9yn7AhwFXAG4HAcmA/j99x0V3Ar8HfgdGPgd+B3cChlZvfIdGfxm/GbOHRn4Zvxm8QoZvb0F+OP6vxWQnIGdepBNnBh7kHmBhnr8CRz69RiGepV5nIbJehibhp2VkJz4CRwFCxj5Jf0fdAoOoPsUHAZAAYv3dBwFSvdqA/kU+FoV/CH4Ia4dGfgh+CIF0IgKfh2rFfckefdm+yv3Lx77EvcV+1nU+6ieCPeaiAr3jwf3a3r3HljgLPD7BK37SG77pYp8lH2ahgiKjo6LjhuXlpGWkB+SmPcx98b3ZBoO5gocBKL41xVaXJdJx/v3+9L3PFCqBfpXB/cz+9apT82B9/hXBfdXlxW3tn21T5T8itQY+3X4WwWmfXqZeRuLB3l5fXB+H/t1/Fv8ikJPgn1htmAZ+AD79jX8iAVfhJtxqhuWmY+Tmh/4VfeA+FX7gAWDmpmHlhuqm6W3hB81+Ij3//f2BQ77//sUch3eHRwFeRwEoxWYpIapd54ImH97kXobgYGJhoIfHPsA/RRxfn1tkm4ZbpKkd6kb+NT81AZtn3KohB6KkJCKkBujoZihlh/5FHcKBQ4g9ysd+RT3lAP4wfeUFfjn+OcF/OcH/RS4Ffjn+OcH+MH9NEId+3T55wb3i/eKl5iLn3+YGX6Xd4t+f/uK+4sY/ef3dAY5Cvt0+3QHRR33dP30BnmZfZ0e+fT7dAZ5mX2dHrcdH/d093RrCh8O/X/7FOuZHeur6xKL64v3VIvr95Tr91TrE+v3tMsVVmBgVrUdHn4dBFZgYFa1HR75FPsUFVZgYFYeE/e1HR/rFvU14SEeE+u4HUSyTcRqH4n7ZSFf+05QWnxVelhyCBP3+IUHxKyyydIaE+v1NeEhuB1Esk3Eah79yAcT91JqZE1EGiHhNfX14eH10mTJUqwepQfsv6P3M70e9z7B95Tbjvf9CMSsssnSGg4g+wT3VFB2+DTL+FTL9+T3VBKb91T35Mv4VMv35PdUE3uA+Ev3nZEd9z1i1wr7dPi0Qh371AY2HXmZfZ0f99QxHROAgBwE8PsUFdht01XCHvvk9+R6nHiYd5cZefuD96b7pwWdeZVzcRr3RwpnZ0uMZ68Z+6X3pvuDeZd3mHicehkTe4D34vvjBVTB1G3YG9jTqMHBH/cn9yYFwsGp09ga/P35aBUTDAB/n36eepz74vfjGMJVQqk+Gz5DblVVH/sn+yYFVFVtQz4aPqlDwVQe9+T75Jx6nn6ffxkTe4Cd94T7pvem4h2jlaUbpaOBeZ0f96X7pveDnQX5DTdCHfvUBjYdeZl9nR/31DEd/LT4tNcK+Cv3PZEdDv7/i/cNHfdU99QBi/kUA/kU9x0KS/jUBsMdLwoey/wUSyYK+JQnHfsUHAUASR37lCod+1QoCveUQR3+/6B2Ae34UAP4lPe0SR37lCod+3QoCveUJx2p9zEdroxvqGgb+9QGaG9uaIwfp/2UBWiMqW6uG/eUBq6pqK6MH6f5lAUOi/c7+G33Emf3PPfr9yYSHAVT9zP7BvcSE8QTpJgdE8TlHQYT2Ps89x0Hewr5EfniFfsSO/t8Bpn3I/fgn/eEGvcZJuD7JTZOa2riCq2dsRvAumhXHxPE90QdeI19Ho5wBfiWBg77lPcS9xb3O/dG9yb3g/c8EhwFVfcz+wb3EhPUE/iYHRPU5R37PPcdBnsK+RNZFfsSO/t8Bpn3JPfgn/eDGvcZJuD7JTZObGniCqydshvAumhXH/dEHXmMfB6PcAX4lgYO9ymL9zkdHAeAA/cxChX9lAb35PgUBfmUBvk5+UkVuXZdqFkb/ZQGZmh7b3Mf/hT+lGplg1afXRldoLluvRv5lAawrpunox/6FPqUrLGTwHe5GQ4gnHaldvf790sS+HX3SxNwkAr4ShX0Uez7Bx77E1QqRhtobKGjdB9uqoW3tRrdlt2Y3B6NlZLGjo8IjQcTsIX7BvsGcfsHG0RBp90f9wL3A6v3Dhr3ATXGJSEqUfsHHvsT7FRGGmh1bHN0Hm5sX4VhGzk5lpg6H4GNUJKHjggTcP6UB4qOi42KHpiJnYieiZ2IGX7c3YDdG7W3kaiqH6Oioaqu0CrC9xMa9wfsxfTy4VD7AR77DvsDa/sCGjnVb9Lz85+V8h6MlpaLlhuQB4zYa9bZGtWpvdse9wKr+wP3Dhv3Acbh8h8O/P/7FFUd1B0UcH4d+dQVOwpZCgeDHfcZHfdd94se9xT3QB37FAf7vPd0+4j3tGselQr7lPiUFfdE+yT3JPtE9yEKHvyUB/tE9yT7JPdE9yMKHg77/3Qd9xj3EAH3FPcU1B0UOPej+OMVgq+FsbIa9xT3QB37FAc/mkOmSR7w8AX67vjuFdwKOd0Y8h0c+y4c+y4Yzh3dORjxCveS95IY0WDbbuCCCJUK9xT3QB37FAeDHUFFnqtOHuvrBX+tsISxG/cjCh/3FAf3/ff9BfwQ9xgV9w5e+wrk+x4b9yEKH/yUB/kB+QEFDvx/mR33VAH61PdUA/rU+NQV+yX7FPsXIDceO0w5XFhwCBwEcfhU/RQH91T5lEkdHPuAKh39lAf8Ofjh+56kgB6Th5SJlJSUjZMMJKSW+OH3nvg5Gg4g90kK+pT3Fwr3FPcU+BT3FPcU9xT3FPcUA/cU+xQV+pRyHf6UB/6UmR33LgpLrx33tFoKy1od+7QH+ZQWYx1Lrx33tFoKywadmX15YR37/+od9xTrEve06+v3NPsU6xOw+JQcBUBAHfoUqxWVh5SDkR6QhYSNhBuJiYuKiB/8VCsFfYiAfnwa+8IGlJ+QoKIa40PTM5Qda5VumnIeE+j7XUon+1aGgXtrmGWqewiGlJWJlRuiopihlh+NjPcG92/3aBur+wMG+xZjLfsO+yMa/bQoCviUJx35tAf3L/sC9xX7Jqke8feUB3yWfpmIHvhUKwWKjo2LjRuSko2QkR8TsJORj5SVGg4g+3QcBmABqxwGYAMcBaD61BVWYGBWtR0e93T3tBWde5l5+/D7Uzv7jfuOHlJRUElPRPwPdxiBioGFhYL7dPwUGIR/jXuVgMtLGIWRlIiTG46Oi4yOH/eo4Pet+602+6iIgI5/k4IZy0sFhZKTiJMbkZCMjpAf+BT3dJSRkZWMlRmf+A/Sx83GxcQZ94H3guf3cffgGg6goHb6VPfUAYscBrYDHAas+gUVovcCeuhR2QjZUTmzIhsc+40G+6Qc+wAF98QG92H6VAX3xAb7YP5UBffDBvdh+lQF91kGmpiIhZcfloWVg5KBk4GQgI59jX2LfYh8+0n95Rj3xAb3UPoFBQ77FPeO+qD3jt4K+iH3IRXfHfxa+FoYrh34WvhaGN0d8SUYzQr7x/vHGPfH+8fNChn4ofghFSAK+xT3jvqg947eCvlh9yEV3x0l8RiuHffH98cY+8f3x64dGfHx3R0Z+Fr8Ws0KGfgBuBUgCkod9476oPeOAxwEjfghFd8d+8f3xxj7x/vH3x0ZJfGuHRn4Wvha3R0Z+Fr8Ws0KGfeh9yEVIApKHfeO+qD3jgP5wfeBFd8d/Fr4WhiuHfHxGN0d98f7xxj3x/fH3R0Z8SXNChn3oVgVIAr7//iA4/dG90n3Q/e63h36/vo/Ff02Bpr7SQX5GAZZ/LT7+ygFiocH+/7vdfeqBfdDBpj7IPdYVvdZwKH3eAX8+AZc+KoF+ggGHPuG97oV9xQc+mL40vs2+Nb3NvcUHAWeBQ6g+QP3vfdT970BlxwG6AP3p/dLClD7vQUcBLgGZftTBRz7RwZR+70FHAS4Bkf75/x6+zX8Ovc1qPcnBfu9BkT7+PlO+5/5uPef954cBTUFDqD5FPeU+FT3VBKL9yj4gPdUS/eUS/dU+ID3KBPI+lQcBQBAHfnU/jRCHfv0Bn5/g3+GH4Z/jn6Uge8nGDH7DftBM/tacAj5G/dUByoKtwoe+1T3NwbXt7/d6vcJHYMKLL85118e+zcHE9b7VCod+xQHE8grCvdU/RsG+1qm+0HjMfcN7+8YlJWOmIaXCJeGf5N+G/v0BhPUMAr79Ad+k3+Xhh6Kj4+Kjxv3Jh0f6OgF+1H3Mfeu+w33yRv3yfeu9w33UfcxH+guBYWSk4iTG4+PjIyPHxPql5CTl5gaDvz/oHYcBUD3VAH3FPdU+JT3VAP6tPmUFf10uQrBCisKywY9CvcCCh/71GuSHfjUB0AKDvsU9xYKAYv3FgoD+pT5FEwd9xQWsB33FBb3r/t593n7r7YK9B33FBb79fuz+7P79fv1+7P3s/f19/X3s/ez9/X39fez+7P79R73FBYgCvv/+JT4FN4d+BT5tBU8CviU91QVPAr4lPdUFTwKDhz6lfc7CvgUA/gU97QVPAr5VAQ8CvlUBDwKDp4K+nP3tQGL95T6c/e1A/cnCjUK9/MtFYyCh4KF9xsdmJyKH3z3Yfs59zn7YZoIeox+9xsKkZSPlIr3ynr3ivuKnPvKCPgUihWMgoiDhPcbHZmcih98+DP75vfm/DOaCHqMffcbCpKSjpWK+Jx6+Dn8OZz8nAj3tfpTIB1KCmAK+BT9yxX8tPvUBYWBgIiAG4CAjpCBH3eXf6CiGvkUB6KXoJ+XHp+WpIuef/i0+9QYn4CXdnQadH92d4AeDqD7XxwGlfu197USwfe0+7QcBpX7tfe1E5D6lPrQFfzQ/ND30PvQ+ND40AX8o/0rFbYd+/73/q4dGfj++P6jo7WLo3MZ9/77/s0KGfejnhW8vIvdWr37EvcRGEBA+w6LQNZA1ov3DtbWCBOg+xH3EVm9OYtaWRkTaP4f/h5ZWYs5vVoZ9xH7EtbW9w6L1kAZ1kCL+w5AQPcS+xIYvFrdi728+h/6IBgOSh33Lh0DdwrTHf4U9xMd+hQG9R34tCAd+//nHfiU9xQB9yAKFOB+Hfl0Qh391AZRHfnUMR33FPwUFXIK+dQG49NDMx/91Af3FPnU9gr91D8KDv1/i/eUAfcnCgP6jvo5FZahh6Z7nvvU+BQYc6hZi3Nu+9T8FBh7eIhwlXUIdJahfaQb91T9FPvUBoKBh4SFH/s0+1SDgYp+kH8ZgJCXhJcb+VQxHfn091QHpKGZopYfDv1/+pT3lAH3JwoDq/cxHX9/g4CGH4aAjH2Tgvc0+1QYhJKUh5Qb99T9FJgKcnV8dYAfgXSOcJt499T8FBijbr2Lo6j31PgUGJuej6aAogihgHWachv7VPnzBp19mnkeDkod92764PduA/lB94EV3x37+vf6GK4d8fEY3R33Z/tnGPhn+GfdHRnxJc0KGfeB96EgHZ4K91TD+ZT3nAGL95T3VMP5lPecA/go+EAVV1cFU+srwwe/vwX3mviyFYSTfYmCgvu3+7cYgoKJfZOEkoOZjZSU97f3txiUlI2Zg5II+6b9RhX7tPe0Bvi0+LT3tPu0BcvLFfu097Tn57CwyYuwZhn3LPsssGaLTWZmGfe497ggHfsU9676eveUAYv3rvp695QDdwr49BVxe3R0gR6Ig4KJgxt6e5GYfx/7JPck/Kr8qt8dGSXxrh0Z+Kr4qvsk9yR4nYanlaMZopWim6Ub+HRkHfx0B/eU+JQgHfsU9zSZHfc0AYv3lPr09zQD+oH4RxV/f3uEehuDgo2OhB9zlXuipRr3NAf7TyFtRk4fQjl4+yqp+4WNfYN9foYIiYeGiocbgoKPk4QfhZP7NfdX910a94vN99340h73NAelm6KjlR6ilaeGnXj39Pv0GM0KCPdH9+EgHWEK97T3FPeU9xT3tPd0A/kU+FQV95QH95T7FAX3FPhjFfyU+5QF/LIH9ycKBfe09yMVIx1eChwEefnxFaGAdZhzG/0UBnN1fnWAH4B2jXGZePfU/FQYepeegaAboJ6VnJcf99T4VJmejaWAoBn3G/1Rix3+VHEd+lSFHfpU9xAK/lQH95T6VCAdXgocBHn4NxWWoImlfZ771PhUGJx/eJV2G3Z4gXp/H/vU/FR9eIlxlnYZdZahfqMb+RQGo6GYoZYf9xv7l4sd/lRxHfpUhR36VPcQCv5UB/eU+lQgHV4K+tT5FBWggZ56lx78VPfUeJlxjXaAGXWAfnVzGv0UB3OYdaGAHqCApY2emfhU99QYnJeVnqAa91T8dPcuCv5Urx36VFoK+lRaHf5UB/eU+lQgHf1/i/d495L3RfT3RveE93YB7vePA/pk93kViZOGk4OQg4+BjIOICIpEczQb+z77JO33MEsf+BcGmpiWmo4fo/cEjZSJlYWTGZKFgpCBG/xfBomyiq2Oqwj4fAabmJaajh+j9waNlIiVhZIZk4WCj4Eb/GgG9ynO9yHm9zzSz3qMG5yGnJWPnLb3MxiNk4qUh5KGkoSRg40IjIc1oSMb+7/7lPtO+6wyHylHCvsGLQrOBoloi2WMawhJ9w8K+wUHepl8nR7qBvu63/eP+1D3zBv3DOirjI8fmpCUm4ebCA79f4v3avtq9274D/dX+BX3exL3FfeP+DL3dhN8+pD4I0Id+zYGE7wwCvtJ/DIHE3z4D/fFawof9xedHfvF92sG8dfP9wXw4UeKjB6RhpSIk4yUjJKPkZLy9xMYlZiKnn+WCJCF+xX3DPtcG/uS+0z7Oft4H/tzLAcwCvsXLQrq/BMq9w8K+yotCvpQsgr9f/uUjwoBz/eS7vdb9PeRA/pm9/MV94X7ZNz7TNIe+yLC+w669Rrm48r3E/cq9w0giowek4WUiJWNlYyTkZCU3PcmGJKXiZqBloeP+wD3Avtfogj3RJ0d+xsGenx9eR/7SAf7ZWP7JPss+0wa+4/3dDH3SEQe9xtV9wpcKxr7BSFXKftF+yD3GoyJHoWSgo6CioKKgoeGhCT7GxiCf4x6lX+QhfcU+yD3fmoI+0MHeZp9nB73GzEd90MH92iu9yb3NfdgGg79/aB2+jj3Ovck9zoBi/oWA/oW+r5CHfs/BoDCdrtrtAj3fTEd8Z0d/dRHCvsZB3qZfJ0e9yUG9yDlZUCxH/wxRwolLQr4Pwb7AW77AlD7RBv7BPcPCvsTB4OOg5GFHvdR+133KPtF9zX7VQiDkZSHlRv3VwaYlpKWkB+RlomZg5T7K/dN+zP3VPsp9zP3d6b3J/cRqvdUCPc8sgr9fKB29/73O+D3PAH4I/eAA/jvFpyamZ0f9973tmsKH/KdHfu24Pe2MR3zB5x9mnke+2sG983415CVi5eFlBmVhYGRgBv7UwZ/f4R/hh/7U/w4eF91YXpgGXuxe7Nzuvtr+D0YloWAkn8b+1YGgICFgYUfhoGLf5CB99X81hj7avcPCiMtCve0Nvu0RwokLQr3tPveBnmZfZ0e90AGDiCHdqT3dPjU93T3NPd0Evg095T3dPeU95T3lBN+kAr39IEdSwc+CviU93QHE746Ch/3NJ0dHPtARwr7NC0KE373lAaD/FT7P0r7K1F+hn6Hf4Z7hIN5knrS+0YYfpCXhJgbj4+MjI8flY+Wj5aQ90vQ98L3B5b5Bgj3dPx0BvtE9yT7JPdEHvcUBvcjCh/8FPq0Qh3+VEcK+zQtCvpUsgqgoHb3Jgr3FPcUrgr4lvfpFYmKiIkaio2LjYqNQPfAGPczBq73FBX7dQZr9xQF97gG9zH7FBWt9xQF0Qau+xQF98r8QBWJiomJGoqNi42Kjjr3vxj3Ngas9xQV+3oGafcUBfe9BvgN+zRCHftHBq33FAX3Jacd+wMG5vfsjpSJloWTGZKFgZCBG/sdBnx+gX2IHy77/AX8AQYp9/wFmYd/lXwb+xIGfX6BfYcfKvv8Bfv7BjH3/AWZiH6VfBv7HQaBgYaEhR+Fg4mBjoHk++wY+wEGUR33Igas+xQF+0MGUR33ZAb3NPz8BX2OmIGZG/czBpqXlZmPH/c7+PwF92UG9zr8/AV9j5iBmRv3MwaZmJWZjx/3OPj8Bfdpsgr8f4b3T/tK90v35fcu98f3Svs/9zcS95T3nvsx9y73DvcuE0scBI/6FBV690r7Mcj7WpwI95D7LgcTU/uJB2NiiopiH/eL+y4HE0v7kAeKamqLbBuLB/tojAUTTfs4B/cFjYmJixrKn2drkR/7swePkYuKkR+GhYuGG/wmB3eIf2xgG4uNifsFjR5s+0sFE0v3XAawr4qvG/uTBxOL9y73kAaKtbSLshv7jwcTS/cu95MG95aZ90jMoveHnfdXL+L7Jq4IE7XjuMPbfvcZCPtr/LUV+1P72qEjHvfmB/P32qj7Wh9E+HAV+0H7pJ80HvfHB+L3pKb7SR8O/H9KHXcKA3cK+ZRrHfx/ngr3FPcU9xSMCvmU95QU4PqU9zQVswoEswr39GsdIPuU9wb4sPcG95T19yT3Avex9w/FHfr8vx3+nCIKE/6A3wr52PsL9zQKiYIffYkFjQeWltgK93wHugrk+v7rCgYT/UDaHQ4g+5T19yT3Avex9w/3lPcG+LD3BsUd878dgyIKE/6A3wr6MfuK6wraHTIcBOn3NAqKgh99iAWOB5aV2AoHE/1A93wGugoOxgr5dOsiCt8K+rT7FEId/dRBCvnU9wMK/RRBCvkU9wMK/FRBCvhU9wMK+5RBCveUsgrGCpkda0Id+5RBCveUMR38dPfUIgrfCvk0+BRCHfxUQQr4VDEd91T5VEId/RRBCvkUMR33VPlUQh391EEK+dSyCvuU90cd95T3Bvhpd+Qd93PhCvsTIgrfCvmC0GAdbflhkB0O+5T3Bvoi90cd5B0cBN/hChz7gSIK3wr5ZPuCkB2pHAWlYB0OIIv3Hx33NAP3lPdUFWdub2hnb6evrqeor6AdHvc00wr7tCod/RQoCve0Jx0cBKD5FBXzM+MjHvupBpOrlZWWoQimv6jF3RrYi/dH+3SWCh5gYX9NgFB/UYBPZGRsbGlgZ11fUSv7C2aICGqIb29qGv0VB2ipb62KHq6Kx3bKdQhm9wD3G1z3IxucBtcGnZmLjxvjjM2ltr6xuJzIhdako56slbCWs4uzgLCps5q6ib0ImYepgKserbKgxMAaDiD3MQoB9xT3FAP3lPpUFa9up2hnb29naKdurz0KHvc0/JQVVQr7tJwK+RQHPQoe97RkHf0UB/r99ykVlquPqZkajb18um2zlrCLs4CzgbB4rHKjkdZ6yGW4YL5JpTOMCId9i3kbPwZ6Bvsj+xtcZvsAH0x1T3Zoighpim1vaBr9FQdqp2+siB6wiOv7C7dRr12tYKpssmSWT5dRllCXTbZhCHAK93SL90fY3W3Fcb8fgKGBlYOrCPepBvPi4/OMH8B2xWmxHg77FPcD9yDI9wjC4Me+0fcUzviF6hKL9273NNXlzV7ml85/y5DOhsKXzYDGj83Nzt33bhOv1LD6K/d9FWqBe3iAgJCWgB73dAeWlpaQlhuelXpqH/sxBxOHIpD3TPcOFa0HrZacoaGWemkeaQf9EfeeFft8Rdn8O9X4O9sG911TFUj7rAZ2fH6BfRuChpCVih+KjYuUmhr3okn7tgdxjXqPgB54kZqCoBukpJqppR9jzgf3kPeUFa6Jo4aaHqeDeZlwG3N0fXF2H/c1SPyBzq8HcKGifaIbpp2Zp5MfkJqNpKwa94+cFUcGcYp8hxp6h4GCext0gJytH8z3GdcHsoSnfZ4epHlwmGobaXB+cngffXiFb2Qa+xUHZJJumXkecp6mfq4braeYpp0fk5eQmI2aCIySjJmhGvxX+dUVrYCddnWBeWke+zAHaZV6oaCWnK0e+Kn8wRUTeNVgNoswdzceflFbYFKECHz7Hfsei/sdG/sd+x6LmvsdH1KSW7Z+xQh334vm4BqLB+GM5p7eHpjGu7bFkQia9xz3Hov3HRv3Hvcei3z3HB/EhbtgmVAInjiLMDUaiwf9h/kfFftdQfddB4SvfL9z0Xy5erl8uQjZBsD7V773VwXWBvdb/A0VZIRtfXkecnhxfmobaXGYpHkffZ6EqLIa9xYHspKomZ4epJ2lmK0brKV+cp4fmXiSbmQa+xYH90n7DBWzB21wcnxyG3Z8lJ2EH4eXiZylGve5zvukBxMCCAB7i4OMiR6AjJGGlBuYmZWgmh/3r878Bgf4SPfEIB37lPdY9z/G1vcG1tbp90He3ffx3IV3Eqb3bO/3DETvx9p65ZvZg+aR33vmmdGG5o7j5vcDE/3UqPpf97gVt36icXx8hHx8HvvBB3yamoSaG6WYobgf9+b3ZhW4fKJtbXx0Xh5d5Qf+WvecFfzNJwcT+NVY+M0i6ffMLQf3SfzNFcEHYmdpd2sbbnaXpIMfhpqIoq4a+Bvk/AAHdouAjIgefY2ShJcbnZ6Zp58f+A7k/IIH9+j3KBVdiWqEdh5ngHJ4aBtrbJ2wbR9bMvkr5AcTBioA+20Hr6iqnawbrqR4ZpYfkneNal0a+1kH9+aVFW6Ld4mCHol3g3mAewhoc2Z5XBtcaJytcR94o4GywBr3QQfAlLGepB6tpa6cuRu4rnpppR+dcpRlVhok+0c0B12adKqhmJejkB6MkIyfrxrmfgb89PolFV1+c21ufaO5HvdmB7mZoqipmHRdHvtmB/lj/YMV9wiL9w5x9wQeedpKxT6UCJ/7TPtOi/tNG/tN+06Ld/tLHz2CS1F4PAhy+wSK+w77CBqLB/sHi/sPpfsEHp08zFHYgwh290z3Tov3TRv3TfdOi6D3TB/Yk8vFntoIpPcEjPcP9wca/nocBPwVR/ubRPebBSEGoE2hTKFNqy6fRZRaCPuj7/ejB/cN+CMF96D74RXAgrJ4pB6tcmicXRteaHppch94coJkVhr7QwdWlGSecR5ppK56uBu5rpytpB+epJSzwBr34/flFTD8EQZud3h9eRt/hJOZiR+KjYuXoBr4AzD8HgdnjnOQfB5ylKB/qBusrZ+1rx9UBxMFAKDmBg77//sUHAZ23h346fn5FYuKjPs397EeoH95o2cb+4MGfX+GgYUfhIGMfZJ+9zX7qxiKjIuLihv7kfxUhH6MfpGBGYGRloSZG/eDBq6co6GYH/eL+EuVnIsa+br5FhWVhYCQfRv7hQZnfHV0fh/8lv4kem2LGouLivfn/QEedpaec68b94MGmZaQlZIfkZWLmYSY++T4+xiKi4yMG/ik+jqSmIuZhJUZDnQddwr3OR33c/rW93MD+UH5lxWLhH77VPvnHnqCfXhwG/tNBoCDkJOGH4aTipWRlfdY9+4YjIuLix77EfdshpWKlpCTGZKQlI+XG/dMBqeZeXuVH/cS+3GLiosa+QT4hRWQg4uBhoH8Lf1nGIuLiose95j8cJGBi4GGgxmDhoKHgBv7TAZufZ6bgh/7mvh0i4yLGouYovgi+VYenZWXnKYb908GlpOHg5Af93f7KCAdoKB2+pT3lK4Kdwr5FBV1gHZ4gB78lPvUBYSBf4h/G4CBjpCBH3eWfqGiGvkUB6KYoZ+WHp+WpIuffviU+9QYnoCWdnUa+JQW9yOL9yxs9x8ede090y2WCKT7cvt1i/t0G/t0+3WLcvtyHy2APkN1KQhr+x+L+yz7Ixr7I4v7LKr7Hx6hKdlD6YAIcvdy93WL93Qb93T3dYuk93If6ZbZ06DtCKv3H4v3LPcjGg6g+xQcBgoBy5AKA/gm+dEV++b7o/h++9P36vexBfiA+44V+ycr++v3sAWNB4qKiowFiQf76vuw+yfrBfsAB/h9+7kFigeMjIyKBYwH+H73uQX91hwE5BX8fvvT9+b7oviC98QF+IL7xBX8gvvF9+v7sfh999MF/H358BX76/ux+IL7xPfm96IFDvv/+5T3C/cM9ysBi/cN+jT3DAP6NPcbFf1XigX7Kwf5V4wF94X4hRX7DPz+/jT4/vsN/XSMBouLiq4eHARsjAaLjIuuGv40+PkVffsq+VVKmPcqBf0Q+BEVZPsm+T/7S7L3JgX8nPioFT77Fvj1+/zY9xYF+435RxX7ETX4I/zc9xDgBcL5cBX7KXH3Df1N9ymlBQ77FPdF9wf3SPgy90T3w/c/AYv3P/cN9z34/fc99wf3QgMcBVL3AhVpcHBpHv7BBmlwpq0f+Rz3IQd+YoReXhr7lPdq+2P3m/ec92r3Y/eUuIS4frQe9xuLBv0cB/uw+KkV+zn7Hvsa+z/7Pvse9xr3Ofc59x73Gvc+9z/3Hvsa+zke97D3/BVlbGxlHvtCBmVsqrEf9zkHsaqqsR6L90IHsapsZR/7OQf3QvdkFfcAMuT7AB4c+4qLBvsAMjL7AB8c+4oH+wDkMvcAHhwEdgb3AOTk9wAfDkod96b4PPcg+Dz3phRwHATg90sKIh36VAb3M/cV9xX3Mx/6VActHfy6/ZQVyAr4yBbICg5KCvmU+iYV+137xgX4Jgb3OPt0FSP3NAX8ngYj+zQFLQb4X/lH+F/9RwX3yfeUFSAK+//7Q/fl9xH3M/cD93X3A/eR91j3BAH45fdy+CCjA/nD+TkV2SrBSGIePWeL+xPbaNJg8c2A3wj3A6AVmvsOLPsL+w6A+w6A+wjvhvcOh+jD496w9xfG9zUtnfsiCPeD+LIVTU0vgziB+yh4+yyM+yieOZUwlEvHssPRlsmV90+s91SK909tzYDWgbdRCMT+nxWMra7EXJn7v/tZ/DWL+773WXmCGIV7mymbKaQrGcQp9w5q83j3WWj3bZb3R+7zxHv3GKftCPdJ+lUVkK6TsnOqVs43qz2i+2/L+3uT+3Z1IYEgeidmQG8mZH8xpPtjs/thrvthlVCLRcBiCPcFNPciZvcffPdhdfdum/dP6b+mya+Wy7H3brL3bq33bwgO+xT3SfeG5vcG2/c32/dK9yHc90kBi/eY9+/b9zXb9/D3mAP55PkuFZNPQlxXqlGji+fEpgi7qNFkUhrbmxV+8fsIzy1hT3BiS45JjzLeQ+OT45PQ4YDjCPdA+BsVbLRVk1uS+xuh+x6M+xtzXoRZg29juWDMhMaD9wB+9wGK9pnGks6Rt7gItf1+FXZElyxAYfsVRPsxg/sipUCYM6Ni0nnQgNJ/0ZCXGJeR92z7IvfAi/dr9yIZrYFyYnMa9xb5SRVy+zNw+zFv+zGDXV9xZXf7G0f7MYD7KJsnliSmOsllqYu9g7Vy9ylu9yd59yqUy9SnwaAI06XYmNiS9zab9zuF9zJdxHrHdLFbnHWGbodzCPec7yAd/X/5n/eFAfga928D+Br3SwqBPHlKcVdxWGlfYGZgZ1dvT3cI+233PvyvB0WSVZpmHplmpmixarFruXHBegh5wcmC0RvJxZGYwB/Al8ahzaoI94YHWD4+cj0bX2SVoGkfcpp5n4KkCIGlh8TkGvge+AD3hfwA+BgHDvsU91R+HfdU3gr69/cTFVp0XnpjggiCY2CGXRtWXJKYYx9jmGiebqRvo3emgKYIgKeFs8Aa+Cj7E/c3B7iasqCrpqynpayesZ+ymLySxgj3OPu396b7Sfum+7sGSI9gkngekniYfJ6ACHulqISsG8XFnrDFH/tJB/gx+nUgHf5/+1T3NB33gRWXhoCSfhv7dBwE4AY5Chz7IPt0B36Ag4CGH4Z/jX6Tgff3/BQYhZGUh5Qb9ygKlJOPkZEe9/L4FJOVjZiGlxkO/n/7lPc0HfqnFZCXiZiDlfv3+BQYkYWCj4Ib9ygKgoOHhYUe+/L8FIOBiX6Qfxl/kJaEmBv3dBz7IAZ5mX2dHrcdHxwE4Pd0B5iWk5aQHw6g9ycKAcscBsADjwr5dEIdHPsg93QGmIOWgJAef5B+iYGC/BT79hiFhYeCghrpCoKPg5GFHvgU+/KVg5iJl5AZl5CSlpga93QcBOBrCh8OoPcnCgGLHAbAAxwGwPkXFekKlIeThZEe/BT38oGTfo1/hhl/hoSAfhr7dBz7IAdFHRwE4Pt0Bn6TgJaGHpeGmI2VlPgU9/YYkZGPlJQaDvv/+xSQCgGLHAVxAxwFcffVFVCdVrVdzQhdzXTW3RrXodC2yR6jrrGyv7dptWitaKMItk1EoTsbWlF/dUkfdElbgG4bdF2Vn0Yfn0VRlVob+wctWytAH0AqZfsQ+y0a+zi9+zvs+0Ae+0Du7jTyG6y3lqLCH6HBu5azG7S+gXXGH3bHuYCtG+DhzPcX4R/F4rPfpNoI/AwcBJUVkoqRkhqKkYmSiZT7CHA3WllDWUNxNYkouo+tkaKSr5evo6+vtbWquZ+9CJ68lbm0Gg4ghXb3EQr5PvimFYv9PvzBB/k+LQUcBXIE/T4tBfzJ+T4H+mo3Ff4f/SkG+h/7EQWQCgT+H/sRBf0x+h8HDvv/+gr3OwGL92H3dfdh9x73Yvd092ED+IH6sRV2ep2goJydoKGceXZ2enl1H/g6FnV6naCgnJ2hoJx5dnZ6eXYf/cD7TBVSXV1TH/xCB1K5XcTEuLnEHvhCB8NduVMe+rh4Ff4q/S4GTrxayB7VBoz7dwVSuV3DxLm5xB73d/ce+3cHUrldxMS5ucQe93fWB8e8vMgf+3z6wxXS9xePkomUhI8ZhI6CiYeEQ/sYGKZOR5pDG0NHfHBOH0P3GIeSgo2EiBmEh4mCj4TS+xcY+yFDLPse+zMa+jEG9zMs9x77INMe+HH8fBXEXbhSU11eUh78QgdSuV3DxLm5xB4O+5S8X7S6oHfr9+Gc+L3Ot5/3B5+Nn32ahKm7oHydEpKpd56Lq/ck6ezklLtrqpW0abHM4aa/rZuuxa+h90n3N4Ka9xGgE55Kyez5K/r5FWuNiXSVjAiWhJ2Nnx+LB+J9FZWPgZ9ufgiLB52QjHiVjgj78/w/FZOIhoKGeoV9fX+GjAiLB32NnZWSmJSZiZ2UiAj56/v7FWKs+w+RiDsIdXuJe34fEygAADBZULn7CoZLCBMWAMgAh1N7VINTbYyOoJSqCBMCABAAlKaYrIyrjKmInYOPhJCAgntxaVRBc0aDR4JLkmmxgJh3eomIiIaZgpZ3CBMAMAYAm2+aX2V3jPBrkWrJCIsHEwkIItDLkpTPbKhzpPse8Wizep10lIKgdbt80Ka8kJSPh4d5CBMoAAAwdSLPNZq3lqmBwZG3CBMAQEIAldfQ9yeqk1zj8c+K2Iq9uPsDuHO9ccLX2bGhlqeXiZUIEwAwBECCuC4mN4hlin2UfJlftrxnzZeokJWQqpirl66erpUIE4gIAaykkYmegZCGjoOLhIB8cUR8dYRugmyDYY1LjZqpXaV+ko+fnJ2VlKSRmKAIjY6bnJiUj46L2WSMCBMCACAQaYyBcYxxCHGNmXWUG52MeneBiHyGd8qOqY2rm8Oziq+KpV6KPQh+xZ6fdh6ZfU33LPcelq+Ern+ZN4aDmVF1hHCCepWbpZWlgc1Uh1OIkyiaiZqJsXCmhgjiektZlk4IExAAkACYR7idtPtKk4Ctgaz7IKj7EWIv0ZObjKOQla+l52P3A2PWdLd1qH+VuXDGNJlLCJ02l2dwMQibhLJ6eRr9CPnPFYiJi4oeE0AEiACCipOXjR+UjYaRhxuLB4WJiZ2XiJGJl3mHcgj4N/tZFY59gnt/jXePXLugoggTCAEAAIsHEwgCAACSko93nn+bgZmSj3gI+0b3aRWIgYeNGomag5mDjQiLB4WNh5GYjJCMoH+KcwjB930VhoB0joaJeISFeYKSgZOalI+WCIsHjpWBoJ+NCJOThIOTH5SEmIWKhgj4yRz6wxVvnUeehfcWcXSO+w3Tc9twvV77KVgIExABAAApaXqBPUo8SfsKpaD3HpbUkcZ5yoKph7ORppbBqJuoWJ1qkWXLiAgTUAQAAO+Hn/CrkKCOoch77Xn0Tfc5PN8IE4AAAARJ0WLIceJ11X/Sj9CR41r3Dz3FWq8+n0aKCGRmhXxvH/sITHsxjSSNK477ApYjfltHMGBTUVJu+wNlKndYanOISYp4jFucmc+/4PsY9xX7XgiLB6Nk4vs3+yx2WIQ5rzyfRJxClmOWcpKBlImVhaavsYyrjat+nIClgKWIn5SWCJGUmY6iiaiIrpGel6qemrJ9uwhce3pldR5nd1SccXRtcbRGiFiIZWNfnWQIE4gIAaydZOCG43n3EnHUXcWJ4IiY4PcYjrKMsY2xjAi2touKtx/jiG1dxG68cuKVoJ+nptfLxKgIEwCAAEDUsPc9yvsP1wgO+xT3BPjj8Xv3Bvid9wQSi/cEHAUg9wQT3PqUrxVqPDV4MBv7M/slxOj7Bh+LlIWRhh73Evem+Bn3HIsajI2MjBvn+4Sx+1yVUQj7TfjzFYOIgomCiAiL+/b7BvtH+9Me6Qoj9whL9y73PBoTKJKLkoySHpb32IPw9+YfnmadZptmCCD3aBUT3Dj7z/umjnobtvdf9xz3PfdL4ZR/9w37OPcG+14I+UD70xVt+0sj+zL7JyiEsmj3VTX3gfdorPdLUZmHCP25+XkVioqKix+MjIuLjBv44vslFYmILvsi+4sv+wT3YvsQ9zeBmAiXvb+SwBsTJPc69yxNJfcHH/dz/HkVg4z7c7z7dm4IE1iGloeXhpZ9q3yrfKr3l/X09yyNjef7BML7I437Lwj3BIQVIApL94T6Pfd7EvcwHRz6QPfM+bH3vxPgHASV+G0V+1/7WC37UPt1+1Dv9w/Cqr3RHvaV+y73TRvjxLK+y1SVMqEf+yavBfsmrvsEx/c8Gvdf913W90H3UfdTQPsHUWRYSh4qiPcH+zEbM1NzVlHEftd5H/NzBfcia/c9T/tCGvf/+20V423cWcwelbuRvr4a+Bn7z/fP/BlYWIWBWx69SjqpMxv7aPtA+0D7aDOpOr1KH4FbhVhYGvwZ98/7z/gZvr6RlbseWczcbeMbE9h2HR8OIPsU94P7g1YKEov3ahNgHAXL+JQV0tKL9wZE0omOGPz//P8FcHFnfWYbbwaFj3KRdJh4nRn8KvgsBXCmfK6xGrCar6alHvcM9w0FpaWvmrEbsK97caUf91D7UPgi+CP7nfedBROgRNL7BotERPzf/N8YRESL+wbSRPjf/N8Y0kT3B4vR0vjf+N8YPvkGFZWBfpB+G31/hoGBH/zS/NP7kPeQBZWCfpB9G35+hoGCH/sN+wx4eItrnncZ+Cv8LJODloaWihmKjY2LjRvpChNgiweZmJGUlR/5bvlunp+Lq3ifGQ77FPe0+tT3NAGL9zT4tPcU+LT3NBQ4+VT3VPcuCvx0rx36lFoK+HRaHf6UB/k0+BT3Lgr8dK8d+RRaCvh0Wh39FAf3NPmUpgr8f/mU95QBi3cKA3cK+HQVnoWegZoe+5T4FAXGY027QRv8FAZBTVtQYx/7lPwUBYF8hXh4GkwKq6mbpp0e93f36QW4+xgG+4v8LwWFgYiAf/cvHfdU+6QGTb5ZyB73NAbJvb3JH/ek91QHPQqXiJaFlR/7i/gvBfcYuAf3d/vpBXCdqXurGzsd/DT5tMQd/X/5lPeUAYv3VMv3dMv3dMv3VAP6lPnU9zgdHv0UBrgdH/w0B0wKRh0e9/TL/iQH9wgK+GTL/GQH9wgK+iTL+/QHTApGHR77tPn0xB1KCvmZ934V+/H4bXCwa/cL8M4Z4sPdYLZZCHmbpnW/G7+noZ2bH7a93bbhU/FIa/sLcGYI+DFIFSAKoPuUHAb/+9P30xL3eOd+HecTsBwFwPkUFfvS+5b7lvvS+9L7lveW99L30veW95b30vfS95b7lvvSHveo+6kVjpWKloWT+0j3jBj3SPeMkZSMlYiVGYiVg5KCjvu46xj3xgeVhpWDkR6CkYGNgYf7uC0Y+0j3jH+bb4t/exn7SPuM+7jpgY+BiYKFGYOFhoGBGvvGB/u4K4KIg4SIgRmIgYyBkYL3SPuMGPtI+4yFg4qAjoEZjoGThJSI97grGPvGB4GQgZOFHpSFlYmVj/e46Rj3SPuMBYORlYaVG5WVkJORH/dI94z3uC2Vh5WNlJEZk5GQlZUa98YH97jrBRNwlI6Tko6VCA50Hfd0VR339PcUAxwE7vd9Ffsl+wz7STP7VRv79fuz97P39fe291L3iPee2h9IIWb7EPsTGvwH98H7wfgHsLCOka8e91/gFZajhqh4nnieb5BygAhpQj96PBulHfeI98D3Lsr3IvcG8x+enZKogKSBo3Sbb4oI/DJ8+9n75fwzGvciHfe+96b3Q/ej9xEeDqD5lPdUAcuQCgP61PlUFVUK+5QGaG6orioK95RkHfjU9x0KHPqAKh3+VCgKch0nHcscBYBJHRz6ACod+5QoClYKQR0goHafCveU9xT3FPfUAascBkADHAZg+NRJHft0BvcUi+/NGvdB90H3Dx0Z9w0K+0H7QRj94Ab7QfdB9w0KGXJyi2OkcvdB+0EYSYsn+xQa+3T1Cvd0BvsIojKuRh77Xvt3dHCNY6VzGYCYmoaaG52ckpmYH/dL92MFi/cY+xj3SR73MQr+FAf3PvcX9wyLH/da+1kF9ywd9w8d+2T3ZRiz0qbp9xEa93QnHfx0+NQV90X7I/cj+0X7Rfsj+yP7RR75FAYO9ymhdvqLqIOSEhwHb5oT0BwHffqMFYt9szSAHvu0iQV1jnuCixqLeoKDdR5c+w1PI4sa+xT7bld/dpkIWqqY6s8a92ir4yyiHmySdJA6jCSMNIpac2p7cmeaiZ6ItoKibAiLpGKPMR6W+41YbIsaZHZHrif3YgiLUfFe9wQeg6B7losai3mZcY8eE7D7pokFYXx4i4t8e5lqH/dq/Iv3iPuQixqL93P7ffeRmx6L9wcHro6dnosai5udiqweifcu06KLGtGh5fs/60kIi9RZwpYe95SPBfcbjEv3BIsahpRr0Psu9yMIE9D7NPcpoHP3VveW9wr3MbrrfLQIDqA18dT3AvdH92P3Jfcx+wD3Qfeo9x0S+CDs91iW1fdS+Gb3CvX3HhP34Pk395AVbl1Nd12gXqB9wKi4p7fHn7h4uneaVm9dCOn3DRWBeXSDeZJ5k4aelZ2VnKGTnYWdhJF3gXkI90IgFcf3GkH3Hvsnsfshr/szRU37EE37E8f7IfcjXQgTCID3KFv3QtXH9xwI98z3NBWe+1f7dPtJ+71tCBOQQPu9bvuU9xp491d491f3dPdJ972p972o95T7Gp77Vwj3yIcV9xz7Btgkqx5yk3qQmKyn047JbLdR3vszh/tKPgiMUnGZuR6n5YfXX7Yo7vubJft2+3YIE/fg+z37PSn7R/svGvu9+BD7SPgI+Hv32Pev93UeQfkEFVLLNqM9eggTCEBrhHdskmuRa6t3q5IIE/fgiwexk7R/p2ynbJNhf2UIiweBbJxqqoGqgayclaqk13viUsoI90n3NxX7CvcX+0G8+zVpCIsHZoNzZ5Nmk2awc7CT9waj9w9o3y7fL6H7E2f7AwiLB4Bnn2Wvf69/sZ+XrwjpCr33MGz3RvsK9xYIDvcp6/rMAfkO91j3mfdXA/m59zehHfuVYPtY+3T7oRr7Grz7D9stHvdS5/ca92T3hxr4jfczFTrr+wbO+xWhCPvpB4sH+4j3Gftm91MvHjvpW/cP9xoa9xq79w7b6h75PP3QoR37FXX7CUg5KwjcLL/7DvsaGvsaV/sPOi33Qx33U+f3Hfdk94ca+Q77VBX3oftY93T7lbYe++kHiwf7iPca+2b3Ui8e3Om79w/3GhoOoA6gDqAOcKYcBUCmBvcUCvcUC/cU9xQMDPcU9xQMDRwGABQcBusVrhMBIwIAAQANABEAQABHAFIAcAB3AL0AwQDKAM4A0gDWAN0A4wDnAOsBDQESATIBOQFHAUsBUAF6AYMBiAGNAZgBnQGiAb0BwwHHAd8B5gJYAmACfwKDAroC4QLoAy0DMgM2AzoDPgNaA2EDbQOxA7gDvAPAA8YDywPQA9QD3QPhA+4D+AP9BB4EJwQrBC8EOARBBGsEcwR5BJYEmwSfBKgEtwS7BMMEygTbBOQE6wUQBRgFIAUkBSkFOAU9BXMFeAWCBYYFmQWfBaYFsQW5Bb0FwwXJBc0F4wX2BfwGAQYIBgwGEAYUBhgGHQYjBigGLQZMBlIGWQZdBmIGagZ1BnkGgAaFBooGjga0BrwGwQbGBuoG9gcEBw8HHQc+B0IHSQdQB1YHWwdrB40HkAeiB7QHwQfKB9AH1QfZB/kICggcCDsIWghiCG0Idwh8CIMIjgidCK4IugjUCNsI8AkJCRAJFwkdCSgJNglDCVEJVglcCWQJcgmCCZgJqAm+CcgJzwnVCdoJ4QnlCfoKDwojCjcKPgpHCk8KVwpcCm8KggqVCqYKrAqzCroKwQrICtEK1wrdCuEK5gruCvgLAQsECwsLEQsaCyQLKgsyCzYLPAtDC0gLTwtWC1wLYQtwC3wLiwuZC6MLqAu1C7sLyQvPC9QL3QvkC+oL8wv8DAUMCwwRDBYMGwwgDCgMLQw6DEcMSwxPDFYMWwxgDGoMdgyCDIoMkAyVDJsMoAylDKoMrwy1DMAMxAzJDNAM1QzbDOAM5gzxDPwNAQ0GDQsND4kK+Dz37Pfs+DweDhUhHQuiHRwFYFwKHPqgoAp+f4N/hh+Gf45+lIH31PvUGIWSk4iTG5OTjpGSH/fT99MFC4QK+1QyCgtACvvUIwr31DYKCzQK+ZT8VDEK+JT7VDQK95TLFS4KSwZfCktEHcsGCyod+xQoCgsV0lLERJcdxFLSdx0e+JQW0lLERJcdxFLSdx0e9xIKFfv1+7P7s/v1+/X7s/ez9/X39fez97P39ff197P7s/v1HvcUFiAKBysKC/g8++z37Pw8Cz0KHwsvCh4LNwofCwd5mX2dHgucfJp6HgtPCq4LNh0fCxWcfJp6HksGenx8eh9LB3qafJweywacmpqcH/uU99Q0CgsHTAoeC48d/Gb8ZsMK+B34Hfgd/B0FhZGUh5MblJO4Cr29WR0LPB331CEKCxWXHVLE0ncd0sRSRB4LBjsdC5yampwLFffA94i5HaUduR1LHR/5lPy0FSkKHosH/Dz77Pvs/Dz8PPfs++z4PModnX2Z1Ap9eR8LnZmZnQuubqhoC0AK+1QjCvdUNgoLrqiorgtZCpwKCwb7M/sV+xX7Mx/91CYd+dQG9zP3FfcV9zMfC8BgtlYeCwZFHQuFkR5ZvTkd/Gb8Zi8d+Gb8Zjcdvb1ZHQv3IfcHlR0LyxqL+2pdXvcdHoto5FmiHotFu9aKHovXhbVCHs77CvcErbefkr2frKGfCPs/nvtHzfe6Gt+p0LzAHoOfcdm09QjMn/cnKIsanMjNlMwbzM2Cesgfi/cn7st3HrUhcT2Ddwi8VqlGNxr7u/tISvs/eB4LPQoe9xRkHQv5lBwEoBWSCvvh++EF+5oqHfwUKAr3mgb34fvhfAoLBjAKC3R6dXiCH/t1/Fv8ikIFcodsf20aeZh6l34e+AD79jX8iAWKhIqFhBpxmHOomZiQkpge+FX3gAsVaG5uaB77FAZobqiuH/cUB66oqK4e9xQGrqhuaB/7FAf4FARnCgtKHRwGAAMLmR33VAGL91QD+FT61DUK+r/81PcLCv1f+V4Fvlgqs0Qb/DQGRVFRRR/8NAdEsyq+WR75X/1gBXSidQqiox/4f/iAogoLVrZgwAsVJR0LBiwKC2iobgtJHf4ULh2eHR/4VPxUYgqcm5KXlx/4VPhUdR0LoItHHQGLCzMdHPqAJgpyHScdCxX3RvsP9y/7QrQeprSZu7z3CR1OUHVjXR73VDz7T/cS+2Qbtgp9jH2MfB/7MUIm+zL7Qhr7i/dd+133ix761AZ2HR8OTgr41HAdCyQdHgscBgALXB12igoL9yFDCgtVCvsUC2sKHgv4aov4afhoGgsHOQoLLB1LRwr81C0KyzEdC/ceHQGL9y4dAwv3Sh0fC/mU90sK/Dz77Pvs/Dz8PPfs++z4PPg89+z37Pg8KQofC/sUrQoBi/d0CwVwCgsVZAoLJR34lPwUTQoLNx34ZvhmWR0L9zgdHvwUBrgdH/wUByHhNfUe93TzHWsHgwoeSyYKywb3rvd693r3rh8LKR34FAQpHQv3FAc9CgsV92j7QPdA+2j7aPtA+0D7aPto90D7QPdodh0eC3qafJwLBzoKCzod+RT71DodC8gd/TqbHXIdmgr9OoAdCwdyCgsFl397knobC3+Xm4ScGwszHRz5gCod+5QoChwGgCcdCzNDQ/ckCqgKCwcz00PjHgsV3Ar8ZvhmGPIdWVkYzh34HfwdGPdICs4dGb1Z8QoZ+Gb4ZgULrH2tG62smQv3IfcwCvshCxwFAAtaHaAKCy4K/lQGXwpLRB36VE4KC5OHowoL9037pPtZ+7cF+xT7O/eWBvcv946Vm5SbkZcZjpKPko2SCI4GjYSOhJGEo2EY9zP7kAX3jAYLYgoqCgsFf3+Ee3r3Lx0LhwoeC36Xm4WcG5OUjY6TH6KVm6KlGgstCrcdHwuECvvUMgoL95T3FPeU9xT3lAv7IfsH9xgKCwY9HQvjQ9MzHgt6fJqcHwsViQoLB7UK/JT8lBhycotjpHL4lPyUGH8KCykK/Dz77Pvs/Dz8PPfs++z4PAt2i3ZPHQsGpAofC/eUAYv3lAtLLQoLi5EKCxwHAAscBoAL9xSaHQs7CpYKHgv3FAeuC+PT0+ML+xj7lAckHS8KH/kU9z8K+5T3GAb3tKv3dPeI97waC3p7hH9/C3oKWb05HQv7VAYLQB33FAsHMx37FCodC/eQ+5BWCvuQ95ALBmYdC5yEm3+XHgv7FPeUC/iU9xQL+1QHCxWgywWdkZ6ZnBv49AadlX15hR92SwV5hXh9ehv89AZ5gZmdkR8LBaKimaytGguUhZEeC9HFxdEL3BwFfxU6igWLbYt/i1+L+yuLYyEMJZOAnnyoeQiTopynlB8LSR0c+oAqHRz6gPQKBX+XhZucGpyRm5eXHgszQ9PjH/nU9w4dCwWdeXKVchtycoF5eR8LspCykq+V90G39zDd9xf3CAiGuryIvBv4g/gl97L39h8OFV4dC3Nzzgpqowv3dPrU93QLAYuPCgMLqK6uqAsVVQr9lJwK+JT3Fh38lAcLiXSHeIV9cnxHekl5ZIBxe311CIIHjHEFhYyCjIAelqKMCzEdDmMd/VSvHctaCvlUWh1LB/eUC7dnr19fZ2dfX69nt7evr7ceC6V7onSVHnOVb4Z5eAv7r/t5+3n7rwv3FAc7CguPkZEfC/fUBguXlYyNkx+Rj4yPG4gHgIKGhoOBg38Z/AX8pQUx+NwHCwOPCvkUFZ0K+5T3lH0d+xQLBaJ01R10cx9BQAWsCnQe+R8L/VQG+xAnJ/sQH/1UB/sP7yb3EB75VAb3EO/w9w8fC/nk+zQVgoSEgio82uyUkpKUlJKEgjzMStqUkoSCHguAHRz6QOcKDi4K+1QoHfdUTgoLQwr3IfcH9xgKC4AK+BQLLx29WTcdCwb3M/cV9xX3Mx8OoHQdi/cUnx3mHRKL9xQLoPuU95T3Kgr3JQr4FPfUAwv9Wv1ahYWHhYiEGQv7CSws+wn7CSzq9wn3Cerq9wn3Ceos+wkeCzIK+lQ2Cgt5nm+QdIEZc4F7dHEa/FQoCvhUBgunfQV0ucB/xhv3Lvcr3a3LH5KPkY6PjQgL9xT4FFUdC6Ryi2Nycgt99zodmQv3HR37dPd0B18dC3h5hm+VdBlzlaJ7pRsLBZeXm5L3PB2Ef5cfCwV5naSBpBukpJWdnR8L+JRJHQv3Eh15fQv3Dybw+w8eC/ctHSkK/Dz77Pvs/DwLFZ19mXmWHQd5mX2dOgoeC5KTk5SRlBn4BfimBeT8y/t59wz3BwsV93QHLgr71AZfCvt0/BQL1GX3CzExZfsLQkKx+wvl5bH3C9QeCwHAHAYWAxwGSwuYmIuffpgLmfdLHX0L9wEdAwuRko+TlBoLFUAKCxVTVGRKLF3I09W3xNHbzjQ5Hvz2C2Eecnd3dnly9C8YlpiXmZiWCKCkC1z7O0NPTER8eXp8kHIIi4uLihoL+zQGgoSSlJSSkpQf9zQGlJKEggv3Hh1LdxILIDgcBjP3EQoLB2ifgqSkHgsHrneUcnIeC/coCh4Lw/sH+xzI+zsb+2b7dvsRZUsfCxVFBvt6+SoF+zYG+3r9KgVFIQuL9xSL9xSL9xSL9xSL9xSL9xQLB/sh+yT7B/tE+0T7JJUdHgv3Ah33FAv7IaQd9yEL9xT3FJ8dC5h+n4uYmAv7FRwGAgEL3h1yHfm04AoLKApyHUEdLh0vCh8LFS0dC/c6CpkLA7j7BxXIHQv3i/td9133PAoLMR37VPlUQh0LiwoOHAVzFccKC/ccHTDmCxWFChz5wHsdC029WcnJvb3JHguFHRwGQAv3tPfU+7QHCxXNHQv3FPcmCgtypGOLcnILdB33FAsGeX18eh8LBpyafHofCwGLkAoDC/eU+5QLl5uVnJOeCJ+N9xWZmhoLB+kd+xQGRVFRRR8Lk5GWkh+WnJSdl5wI1sEL9xT3FPcU9zsd9xT3FAv3NPf09x8d9xQL+wf7IQsS9xT3FMv3FJkd9xQLQh1LRwoLmZwa9xQHlI+TkZEekQtvCpYKHwv3VEkdCwf7D/Am9w8eC/w0ByQdaAuL9xTqHQv7RPsk+yT7RAsG9w/w8PcPHwv3RPck9yT3RAszHv3UBgsB95T3lAv5FPcUC/iU95QLi4uLiwv3IAoBi/cUC/eUkx0LcXR7dIEfgXOQb555C5D2y5KXH46NjI2OGgsHPR0LFWMdC/cU+TT3FAv7B/cHC/oU9xQLHo6Dgo2CGyQdCxuLB/cG9wS7ttsfCxX7DfsL+4wGf4KLCwWdjJuZnBsL+9QHJB0LFfcQHQv91Af7MwscBcAGC/dUBp0LoHYBiwv7i4MdCx6ZHU4KCxv7uVb77/t2+zYLBtwdCwZDCh8LwB75VPMdC/cJCgYL9xT3IB0L9xTwCgv3FAHnHQv7X/cY+0n3YvsJC3KBc3l5Hvsn+yYL/B38HQv7lPcUCxz7QAYLch0VCwAA') format('truetype');font-weight:normal;font-style:normal}[class^="icon-"],[class*=" icon-"]{font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em}[class^="icon-"]:before,[class*=" icon-"]:before{text-decoration:inherit;display:inline-block;speak:none}.icon-large:before{vertical-align:-10%;font-size:1.3333333333333333em}a [class^="icon-"],a [class*=" icon-"]{display:inline}[class^="icon-"].icon-fixed-width,[class*=" icon-"].icon-fixed-width{display:inline-block;width:1.1428571428571428em;text-align:right;padding-right:.2857142857142857em}[class^="icon-"].icon-fixed-width.icon-large,[class*=" icon-"].icon-fixed-width.icon-large{width:1.4285714285714286em}.icons-ul{margin-left:2.142857142857143em;list-style-type:none}.icons-ul>li{position:relative}.icons-ul .icon-li{position:absolute;left:-2.142857142857143em;width:2.142857142857143em;text-align:center;line-height:inherit}[class^="icon-"].hide,[class*=" icon-"].hide{display:none}.icon-muted{color:#eee}.icon-light{color:#fff}.icon-dark{color:#333}.icon-border{border:solid 1px #eee;padding:.2em .25em .15em;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.icon-2x{font-size:2em}.icon-2x.icon-border{border-width:2px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.icon-3x{font-size:3em}.icon-3x.icon-border{border-width:3px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.icon-4x{font-size:4em}.icon-4x.icon-border{border-width:4px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.icon-5x{font-size:5em}.icon-5x.icon-border{border-width:5px;-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px}.pull-right{float:right}.pull-left{float:left}[class^="icon-"].pull-left,[class*=" icon-"].pull-left{margin-right:.3em}[class^="icon-"].pull-right,[class*=" icon-"].pull-right{margin-left:.3em}[class^="icon-"],[class*=" icon-"]{display:inline;width:auto;height:auto;line-height:normal;vertical-align:baseline;background-image:none;background-position:0 0;background-repeat:repeat;margin-top:0}.icon-white,.nav-pills>.active>a>[class^="icon-"],.nav-pills>.active>a>[class*=" icon-"],.nav-list>.active>a>[class^="icon-"],.nav-list>.active>a>[class*=" icon-"],.navbar-inverse .nav>.active>a>[class^="icon-"],.navbar-inverse .nav>.active>a>[class*=" icon-"],.dropdown-menu>li>a:hover>[class^="icon-"],.dropdown-menu>li>a:hover>[class*=" icon-"],.dropdown-menu>.active>a>[class^="icon-"],.dropdown-menu>.active>a>[class*=" icon-"],.dropdown-submenu:hover>a>[class^="icon-"],.dropdown-submenu:hover>a>[class*=" icon-"]{background-image:none}.btn [class^="icon-"].icon-large,.nav [class^="icon-"].icon-large,.btn [class*=" icon-"].icon-large,.nav [class*=" icon-"].icon-large{line-height:.9em}.btn [class^="icon-"].icon-spin,.nav [class^="icon-"].icon-spin,.btn [class*=" icon-"].icon-spin,.nav [class*=" icon-"].icon-spin{display:inline-block}.nav-tabs [class^="icon-"],.nav-pills [class^="icon-"],.nav-tabs [class*=" icon-"],.nav-pills [class*=" icon-"],.nav-tabs [class^="icon-"].icon-large,.nav-pills [class^="icon-"].icon-large,.nav-tabs [class*=" icon-"].icon-large,.nav-pills [class*=" icon-"].icon-large{line-height:.9em}.btn [class^="icon-"].pull-left.icon-2x,.btn [class*=" icon-"].pull-left.icon-2x,.btn [class^="icon-"].pull-right.icon-2x,.btn [class*=" icon-"].pull-right.icon-2x{margin-top:.18em}.btn [class^="icon-"].icon-spin.icon-large,.btn [class*=" icon-"].icon-spin.icon-large{line-height:.8em}.btn.btn-small [class^="icon-"].pull-left.icon-2x,.btn.btn-small [class*=" icon-"].pull-left.icon-2x,.btn.btn-small [class^="icon-"].pull-right.icon-2x,.btn.btn-small [class*=" icon-"].pull-right.icon-2x{margin-top:.25em}.btn.btn-large [class^="icon-"],.btn.btn-large [class*=" icon-"]{margin-top:0}.btn.btn-large [class^="icon-"].pull-left.icon-2x,.btn.btn-large [class*=" icon-"].pull-left.icon-2x,.btn.btn-large [class^="icon-"].pull-right.icon-2x,.btn.btn-large [class*=" icon-"].pull-right.icon-2x{margin-top:.05em}.btn.btn-large [class^="icon-"].pull-left.icon-2x,.btn.btn-large [class*=" icon-"].pull-left.icon-2x{margin-right:.2em}.btn.btn-large [class^="icon-"].pull-right.icon-2x,.btn.btn-large [class*=" icon-"].pull-right.icon-2x{margin-left:.2em}.nav-list [class^="icon-"],.nav-list [class*=" icon-"]{line-height:inherit}.icon-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:-35%}.icon-stack [class^="icon-"],.icon-stack [class*=" icon-"]{display:block;text-align:center;position:absolute;width:100%;height:100%;font-size:1em;line-height:inherit;*line-height:2em}.icon-stack .icon-stack-base{font-size:2em;*line-height:1em}.icon-spin{display:inline-block;-moz-animation:spin 2s infinite linear;-o-animation:spin 2s infinite linear;-webkit-animation:spin 2s infinite linear;animation:spin 2s infinite linear}a .icon-stack,a .icon-spin{display:inline-block;text-decoration:none}@-moz-keyframes spin{0%{-moz-transform:rotate(0deg)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0deg)}100%{-o-transform:rotate(359deg)}}@-ms-keyframes spin{0%{-ms-transform:rotate(0deg)}100%{-ms-transform:rotate(359deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}.icon-rotate-90:before{-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1)}.icon-rotate-180:before{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2)}.icon-rotate-270:before{-webkit-transform:rotate(270deg);-moz-transform:rotate(270deg);-ms-transform:rotate(270deg);-o-transform:rotate(270deg);transform:rotate(270deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3)}.icon-flip-horizontal:before{-webkit-transform:scale(-1,1);-moz-transform:scale(-1,1);-ms-transform:scale(-1,1);-o-transform:scale(-1,1);transform:scale(-1,1)}.icon-flip-vertical:before{-webkit-transform:scale(1,-1);-moz-transform:scale(1,-1);-ms-transform:scale(1,-1);-o-transform:scale(1,-1);transform:scale(1,-1)}a .icon-rotate-90:before,a .icon-rotate-180:before,a .icon-rotate-270:before,a .icon-flip-horizontal:before,a .icon-flip-vertical:before{display:inline-block}.icon-glass:before{content:"\f000"}.icon-music:before{content:"\f001"}.icon-search:before{content:"\f002"}.icon-envelope-alt:before{content:"\f003"}.icon-heart:before{content:"\f004"}.icon-star:before{content:"\f005"}.icon-star-empty:before{content:"\f006"}.icon-user:before{content:"\f007"}.icon-film:before{content:"\f008"}.icon-th-large:before{content:"\f009"}.icon-th:before{content:"\f00a"}.icon-th-list:before{content:"\f00b"}.icon-ok:before{content:"\f00c"}.icon-remove:before{content:"\f00d"}.icon-zoom-in:before{content:"\f00e"}.icon-zoom-out:before{content:"\f010"}.icon-power-off:before,.icon-off:before{content:"\f011"}.icon-signal:before{content:"\f012"}.icon-gear:before,.icon-cog:before{content:"\f013"}.icon-trash:before{content:"\f014"}.icon-home:before{content:"\f015"}.icon-file-alt:before{content:"\f016"}.icon-time:before{content:"\f017"}.icon-road:before{content:"\f018"}.icon-download-alt:before{content:"\f019"}.icon-download:before{content:"\f01a"}.icon-upload:before{content:"\f01b"}.icon-inbox:before{content:"\f01c"}.icon-play-circle:before{content:"\f01d"}.icon-rotate-right:before,.icon-repeat:before{content:"\f01e"}.icon-refresh:before{content:"\f021"}.icon-list-alt:before{content:"\f022"}.icon-lock:before{content:"\f023"}.icon-flag:before{content:"\f024"}.icon-headphones:before{content:"\f025"}.icon-volume-off:before{content:"\f026"}.icon-volume-down:before{content:"\f027"}.icon-volume-up:before{content:"\f028"}.icon-qrcode:before{content:"\f029"}.icon-barcode:before{content:"\f02a"}.icon-tag:before{content:"\f02b"}.icon-tags:before{content:"\f02c"}.icon-book:before{content:"\f02d"}.icon-bookmark:before{content:"\f02e"}.icon-print:before{content:"\f02f"}.icon-camera:before{content:"\f030"}.icon-font:before{content:"\f031"}.icon-bold:before{content:"\f032"}.icon-italic:before{content:"\f033"}.icon-text-height:before{content:"\f034"}.icon-text-width:before{content:"\f035"}.icon-align-left:before{content:"\f036"}.icon-align-center:before{content:"\f037"}.icon-align-right:before{content:"\f038"}.icon-align-justify:before{content:"\f039"}.icon-list:before{content:"\f03a"}.icon-indent-left:before{content:"\f03b"}.icon-indent-right:before{content:"\f03c"}.icon-facetime-video:before{content:"\f03d"}.icon-picture:before{content:"\f03e"}.icon-pencil:before{content:"\f040"}.icon-map-marker:before{content:"\f041"}.icon-adjust:before{content:"\f042"}.icon-tint:before{content:"\f043"}.icon-edit:before{content:"\f044"}.icon-share:before{content:"\f045"}.icon-check:before{content:"\f046"}.icon-move:before{content:"\f047"}.icon-step-backward:before{content:"\f048"}.icon-fast-backward:before{content:"\f049"}.icon-backward:before{content:"\f04a"}.icon-play:before{content:"\f04b"}.icon-pause:before{content:"\f04c"}.icon-stop:before{content:"\f04d"}.icon-forward:before{content:"\f04e"}.icon-fast-forward:before{content:"\f050"}.icon-step-forward:before{content:"\f051"}.icon-eject:before{content:"\f052"}.icon-chevron-left:before{content:"\f053"}.icon-chevron-right:before{content:"\f054"}.icon-plus-sign:before{content:"\f055"}.icon-minus-sign:before{content:"\f056"}.icon-remove-sign:before{content:"\f057"}.icon-ok-sign:before{content:"\f058"}.icon-question-sign:before{content:"\f059"}.icon-info-sign:before{content:"\f05a"}.icon-screenshot:before{content:"\f05b"}.icon-remove-circle:before{content:"\f05c"}.icon-ok-circle:before{content:"\f05d"}.icon-ban-circle:before{content:"\f05e"}.icon-arrow-left:before{content:"\f060"}.icon-arrow-right:before{content:"\f061"}.icon-arrow-up:before{content:"\f062"}.icon-arrow-down:before{content:"\f063"}.icon-mail-forward:before,.icon-share-alt:before{content:"\f064"}.icon-resize-full:before{content:"\f065"}.icon-resize-small:before{content:"\f066"}.icon-plus:before{content:"\f067"}.icon-minus:before{content:"\f068"}.icon-asterisk:before{content:"\f069"}.icon-exclamation-sign:before{content:"\f06a"}.icon-gift:before{content:"\f06b"}.icon-leaf:before{content:"\f06c"}.icon-fire:before{content:"\f06d"}.icon-eye-open:before{content:"\f06e"}.icon-eye-close:before{content:"\f070"}.icon-warning-sign:before{content:"\f071"}.icon-plane:before{content:"\f072"}.icon-calendar:before{content:"\f073"}.icon-random:before{content:"\f074"}.icon-comment:before{content:"\f075"}.icon-magnet:before{content:"\f076"}.icon-chevron-up:before{content:"\f077"}.icon-chevron-down:before{content:"\f078"}.icon-retweet:before{content:"\f079"}.icon-shopping-cart:before{content:"\f07a"}.icon-folder-close:before{content:"\f07b"}.icon-folder-open:before{content:"\f07c"}.icon-resize-vertical:before{content:"\f07d"}.icon-resize-horizontal:before{content:"\f07e"}.icon-bar-chart:before{content:"\f080"}.icon-twitter-sign:before{content:"\f081"}.icon-facebook-sign:before{content:"\f082"}.icon-camera-retro:before{content:"\f083"}.icon-key:before{content:"\f084"}.icon-gears:before,.icon-cogs:before{content:"\f085"}.icon-comments:before{content:"\f086"}.icon-thumbs-up-alt:before{content:"\f087"}.icon-thumbs-down-alt:before{content:"\f088"}.icon-star-half:before{content:"\f089"}.icon-heart-empty:before{content:"\f08a"}.icon-signout:before{content:"\f08b"}.icon-linkedin-sign:before{content:"\f08c"}.icon-pushpin:before{content:"\f08d"}.icon-external-link:before{content:"\f08e"}.icon-signin:before{content:"\f090"}.icon-trophy:before{content:"\f091"}.icon-github-sign:before{content:"\f092"}.icon-upload-alt:before{content:"\f093"}.icon-lemon:before{content:"\f094"}.icon-phone:before{content:"\f095"}.icon-unchecked:before,.icon-check-empty:before{content:"\f096"}.icon-bookmark-empty:before{content:"\f097"}.icon-phone-sign:before{content:"\f098"}.icon-twitter:before{content:"\f099"}.icon-facebook:before{content:"\f09a"}.icon-github:before{content:"\f09b"}.icon-unlock:before{content:"\f09c"}.icon-credit-card:before{content:"\f09d"}.icon-rss:before{content:"\f09e"}.icon-hdd:before{content:"\f0a0"}.icon-bullhorn:before{content:"\f0a1"}.icon-bell:before{content:"\f0a2"}.icon-certificate:before{content:"\f0a3"}.icon-hand-right:before{content:"\f0a4"}.icon-hand-left:before{content:"\f0a5"}.icon-hand-up:before{content:"\f0a6"}.icon-hand-down:before{content:"\f0a7"}.icon-circle-arrow-left:before{content:"\f0a8"}.icon-circle-arrow-right:before{content:"\f0a9"}.icon-circle-arrow-up:before{content:"\f0aa"}.icon-circle-arrow-down:before{content:"\f0ab"}.icon-globe:before{content:"\f0ac"}.icon-wrench:before{content:"\f0ad"}.icon-tasks:before{content:"\f0ae"}.icon-filter:before{content:"\f0b0"}.icon-briefcase:before{content:"\f0b1"}.icon-fullscreen:before{content:"\f0b2"}.icon-group:before{content:"\f0c0"}.icon-link:before{content:"\f0c1"}.icon-cloud:before{content:"\f0c2"}.icon-beaker:before{content:"\f0c3"}.icon-cut:before{content:"\f0c4"}.icon-copy:before{content:"\f0c5"}.icon-paperclip:before,.icon-paper-clip:before{content:"\f0c6"}.icon-save:before{content:"\f0c7"}.icon-sign-blank:before{content:"\f0c8"}.icon-reorder:before{content:"\f0c9"}.icon-list-ul:before{content:"\f0ca"}.icon-list-ol:before{content:"\f0cb"}.icon-strikethrough:before{content:"\f0cc"}.icon-underline:before{content:"\f0cd"}.icon-table:before{content:"\f0ce"}.icon-magic:before{content:"\f0d0"}.icon-truck:before{content:"\f0d1"}.icon-pinterest:before{content:"\f0d2"}.icon-pinterest-sign:before{content:"\f0d3"}.icon-google-plus-sign:before{content:"\f0d4"}.icon-google-plus:before{content:"\f0d5"}.icon-money:before{content:"\f0d6"}.icon-caret-down:before{content:"\f0d7"}.icon-caret-up:before{content:"\f0d8"}.icon-caret-left:before{content:"\f0d9"}.icon-caret-right:before{content:"\f0da"}.icon-columns:before{content:"\f0db"}.icon-sort:before{content:"\f0dc"}.icon-sort-down:before{content:"\f0dd"}.icon-sort-up:before{content:"\f0de"}.icon-envelope:before{content:"\f0e0"}.icon-linkedin:before{content:"\f0e1"}.icon-rotate-left:before,.icon-undo:before{content:"\f0e2"}.icon-legal:before{content:"\f0e3"}.icon-dashboard:before{content:"\f0e4"}.icon-comment-alt:before{content:"\f0e5"}.icon-comments-alt:before{content:"\f0e6"}.icon-bolt:before{content:"\f0e7"}.icon-sitemap:before{content:"\f0e8"}.icon-umbrella:before{content:"\f0e9"}.icon-paste:before{content:"\f0ea"}.icon-lightbulb:before{content:"\f0eb"}.icon-exchange:before{content:"\f0ec"}.icon-cloud-download:before{content:"\f0ed"}.icon-cloud-upload:before{content:"\f0ee"}.icon-user-md:before{content:"\f0f0"}.icon-stethoscope:before{content:"\f0f1"}.icon-suitcase:before{content:"\f0f2"}.icon-bell-alt:before{content:"\f0f3"}.icon-coffee:before{content:"\f0f4"}.icon-food:before{content:"\f0f5"}.icon-file-text-alt:before{content:"\f0f6"}.icon-building:before{content:"\f0f7"}.icon-hospital:before{content:"\f0f8"}.icon-ambulance:before{content:"\f0f9"}.icon-medkit:before{content:"\f0fa"}.icon-fighter-jet:before{content:"\f0fb"}.icon-beer:before{content:"\f0fc"}.icon-h-sign:before{content:"\f0fd"}.icon-plus-sign-alt:before{content:"\f0fe"}.icon-double-angle-left:before{content:"\f100"}.icon-double-angle-right:before{content:"\f101"}.icon-double-angle-up:before{content:"\f102"}.icon-double-angle-down:before{content:"\f103"}.icon-angle-left:before{content:"\f104"}.icon-angle-right:before{content:"\f105"}.icon-angle-up:before{content:"\f106"}.icon-angle-down:before{content:"\f107"}.icon-desktop:before{content:"\f108"}.icon-laptop:before{content:"\f109"}.icon-tablet:before{content:"\f10a"}.icon-mobile-phone:before{content:"\f10b"}.icon-circle-blank:before{content:"\f10c"}.icon-quote-left:before{content:"\f10d"}.icon-quote-right:before{content:"\f10e"}.icon-spinner:before{content:"\f110"}.icon-circle:before{content:"\f111"}.icon-mail-reply:before,.icon-reply:before{content:"\f112"}.icon-github-alt:before{content:"\f113"}.icon-folder-close-alt:before{content:"\f114"}.icon-folder-open-alt:before{content:"\f115"}.icon-expand-alt:before{content:"\f116"}.icon-collapse-alt:before{content:"\f117"}.icon-smile:before{content:"\f118"}.icon-frown:before{content:"\f119"}.icon-meh:before{content:"\f11a"}.icon-gamepad:before{content:"\f11b"}.icon-keyboard:before{content:"\f11c"}.icon-flag-alt:before{content:"\f11d"}.icon-flag-checkered:before{content:"\f11e"}.icon-terminal:before{content:"\f120"}.icon-code:before{content:"\f121"}.icon-reply-all:before{content:"\f122"}.icon-mail-reply-all:before{content:"\f122"}.icon-star-half-full:before,.icon-star-half-empty:before{content:"\f123"}.icon-location-arrow:before{content:"\f124"}.icon-crop:before{content:"\f125"}.icon-code-fork:before{content:"\f126"}.icon-unlink:before{content:"\f127"}.icon-question:before{content:"\f128"}.icon-info:before{content:"\f129"}.icon-exclamation:before{content:"\f12a"}.icon-superscript:before{content:"\f12b"}.icon-subscript:before{content:"\f12c"}.icon-eraser:before{content:"\f12d"}.icon-puzzle-piece:before{content:"\f12e"}.icon-microphone:before{content:"\f130"}.icon-microphone-off:before{content:"\f131"}.icon-shield:before{content:"\f132"}.icon-calendar-empty:before{content:"\f133"}.icon-fire-extinguisher:before{content:"\f134"}.icon-rocket:before{content:"\f135"}.icon-maxcdn:before{content:"\f136"}.icon-chevron-sign-left:before{content:"\f137"}.icon-chevron-sign-right:before{content:"\f138"}.icon-chevron-sign-up:before{content:"\f139"}.icon-chevron-sign-down:before{content:"\f13a"}.icon-html5:before{content:"\f13b"}.icon-css3:before{content:"\f13c"}.icon-anchor:before{content:"\f13d"}.icon-unlock-alt:before{content:"\f13e"}.icon-bullseye:before{content:"\f140"}.icon-ellipsis-horizontal:before{content:"\f141"}.icon-ellipsis-vertical:before{content:"\f142"}.icon-rss-sign:before{content:"\f143"}.icon-play-sign:before{content:"\f144"}.icon-ticket:before{content:"\f145"}.icon-minus-sign-alt:before{content:"\f146"}.icon-check-minus:before{content:"\f147"}.icon-level-up:before{content:"\f148"}.icon-level-down:before{content:"\f149"}.icon-check-sign:before{content:"\f14a"}.icon-edit-sign:before{content:"\f14b"}.icon-external-link-sign:before{content:"\f14c"}.icon-share-sign:before{content:"\f14d"}.icon-compass:before{content:"\f14e"}.icon-collapse:before{content:"\f150"}.icon-collapse-top:before{content:"\f151"}.icon-expand:before{content:"\f152"}.icon-euro:before,.icon-eur:before{content:"\f153"}.icon-gbp:before{content:"\f154"}.icon-dollar:before,.icon-usd:before{content:"\f155"}.icon-rupee:before,.icon-inr:before{content:"\f156"}.icon-yen:before,.icon-jpy:before{content:"\f157"}.icon-renminbi:before,.icon-cny:before{content:"\f158"}.icon-won:before,.icon-krw:before{content:"\f159"}.icon-bitcoin:before,.icon-btc:before{content:"\f15a"}.icon-file:before{content:"\f15b"}.icon-file-text:before{content:"\f15c"}.icon-sort-by-alphabet:before{content:"\f15d"}.icon-sort-by-alphabet-alt:before{content:"\f15e"}.icon-sort-by-attributes:before{content:"\f160"}.icon-sort-by-attributes-alt:before{content:"\f161"}.icon-sort-by-order:before{content:"\f162"}.icon-sort-by-order-alt:before{content:"\f163"}.icon-thumbs-up:before{content:"\f164"}.icon-thumbs-down:before{content:"\f165"}.icon-youtube-sign:before{content:"\f166"}.icon-youtube:before{content:"\f167"}.icon-xing:before{content:"\f168"}.icon-xing-sign:before{content:"\f169"}.icon-youtube-play:before{content:"\f16a"}.icon-dropbox:before{content:"\f16b"}.icon-stackexchange:before{content:"\f16c"}.icon-instagram:before{content:"\f16d"}.icon-flickr:before{content:"\f16e"}.icon-adn:before{content:"\f170"}.icon-bitbucket:before{content:"\f171"}.icon-bitbucket-sign:before{content:"\f172"}.icon-tumblr:before{content:"\f173"}.icon-tumblr-sign:before{content:"\f174"}.icon-long-arrow-down:before{content:"\f175"}.icon-long-arrow-up:before{content:"\f176"}.icon-long-arrow-left:before{content:"\f177"}.icon-long-arrow-right:before{content:"\f178"}.icon-apple:before{content:"\f179"}.icon-windows:before{content:"\f17a"}.icon-android:before{content:"\f17b"}.icon-linux:before{content:"\f17c"}.icon-dribbble:before{content:"\f17d"}.icon-skype:before{content:"\f17e"}.icon-foursquare:before{content:"\f180"}.icon-trello:before{content:"\f181"}.icon-female:before{content:"\f182"}.icon-male:before{content:"\f183"}.icon-gittip:before{content:"\f184"}.icon-sun:before{content:"\f185"}.icon-moon:before{content:"\f186"}.icon-archive:before{content:"\f187"}.icon-bug:before{content:"\f188"}.icon-vk:before{content:"\f189"}.icon-weibo:before{content:"\f18a"}.icon-renren:before{content:"\f18b"}
|
||
</style> <script type="text/javascript">
|
||
|
||
/*
|
||
* Bootstrap v3.3.7 (http://getbootstrap.com)
|
||
* Copyright 2011-2016 Twitter, Inc.
|
||
* Licensed under the MIT license
|
||
*/
|
||
if(typeof jQuery==="undefined"){throw new Error("Bootstrap's JavaScript requires jQuery")}+function(b){var a=b.fn.jquery.split(" ")[0].split(".");if((a[0]<2&&a[1]<9)||(a[0]==1&&a[1]==9&&a[2]<1)||(a[0]>3)){throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}}(jQuery);+function(b){function a(){var e=document.createElement("bootstrap");var d={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in d){if(e.style[c]!==undefined){return{end:d[c]}}}return false}b.fn.emulateTransitionEnd=function(e){var d=false;var c=this;b(this).one("bsTransitionEnd",function(){d=true});var f=function(){if(!d){b(c).trigger(b.support.transition.end)}};setTimeout(f,e);return this};b(function(){b.support.transition=a();if(!b.support.transition){return}b.event.special.bsTransitionEnd={bindType:b.support.transition.end,delegateType:b.support.transition.end,handle:function(c){if(b(c.target).is(this)){return c.handleObj.handler.apply(this,arguments)}}}})}(jQuery);+function(e){var d='[data-dismiss="alert"]';var b=function(f){e(f).on("click",d,this.close)};b.VERSION="3.3.7";b.TRANSITION_DURATION=150;b.prototype.close=function(j){var i=e(this);var g=i.attr("data-target");if(!g){g=i.attr("href");g=g&&g.replace(/.*(?=#[^\s]*$)/,"")}var h=e(g==="#"?[]:g);if(j){j.preventDefault()}if(!h.length){h=i.closest(".alert")}h.trigger(j=e.Event("close.bs.alert"));if(j.isDefaultPrevented()){return}h.removeClass("in");function f(){h.detach().trigger("closed.bs.alert").remove()}e.support.transition&&h.hasClass("fade")?h.one("bsTransitionEnd",f).emulateTransitionEnd(b.TRANSITION_DURATION):f()};function c(f){return this.each(function(){var h=e(this);var g=h.data("bs.alert");if(!g){h.data("bs.alert",(g=new b(this)))}if(typeof f=="string"){g[f].call(h)}})}var a=e.fn.alert;e.fn.alert=c;e.fn.alert.Constructor=b;e.fn.alert.noConflict=function(){e.fn.alert=a;return this};e(document).on("click.bs.alert.data-api",d,b.prototype.close)}(jQuery);+function(d){var b=function(f,e){this.$element=d(f);this.options=d.extend({},b.DEFAULTS,e);this.isLoading=false};b.VERSION="3.3.7";b.DEFAULTS={loadingText:"loading..."};b.prototype.setState=function(g){var i="disabled";var e=this.$element;var h=e.is("input")?"val":"html";var f=e.data();g+="Text";if(f.resetText==null){e.data("resetText",e[h]())}setTimeout(d.proxy(function(){e[h](f[g]==null?this.options[g]:f[g]);if(g=="loadingText"){this.isLoading=true;e.addClass(i).attr(i,i).prop(i,true)}else{if(this.isLoading){this.isLoading=false;e.removeClass(i).removeAttr(i).prop(i,false)}}},this),0)};b.prototype.toggle=function(){var f=true;var e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var g=this.$element.find("input");if(g.prop("type")=="radio"){if(g.prop("checked")){f=false}e.find(".active").removeClass("active");this.$element.addClass("active")}else{if(g.prop("type")=="checkbox"){if((g.prop("checked"))!==this.$element.hasClass("active")){f=false}this.$element.toggleClass("active")}}g.prop("checked",this.$element.hasClass("active"));if(f){g.trigger("change")}}else{this.$element.attr("aria-pressed",!this.$element.hasClass("active"));this.$element.toggleClass("active")}};function c(e){return this.each(function(){var h=d(this);var g=h.data("bs.button");var f=typeof e=="object"&&e;if(!g){h.data("bs.button",(g=new b(this,f)))}if(e=="toggle"){g.toggle()}else{if(e){g.setState(e)}}})}var a=d.fn.button;d.fn.button=c;d.fn.button.Constructor=b;d.fn.button.noConflict=function(){d.fn.button=a;return this};d(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(g){var f=d(g.target).closest(".btn");c.call(f,"toggle");if(!(d(g.target).is('input[type="radio"], input[type="checkbox"]'))){g.preventDefault();if(f.is("input,button")){f.trigger("focus")}else{f.find("input:visible,button:visible").first().trigger("focus")}}}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(f){d(f.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(f.type))})}(jQuery);+function(c){var d=function(g,f){this.$element=c(g);this.$indicators=this.$element.find(".carousel-indicators");this.options=f;this.paused=null;this.sliding=null;this.interval=null;this.$active=null;this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",c.proxy(this.keydown,this));this.options.pause=="hover"&&!("ontouchstart" in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",c.proxy(this.pause,this)).on("mouseleave.bs.carousel",c.proxy(this.cycle,this))};d.VERSION="3.3.7";d.TRANSITION_DURATION=600;d.DEFAULTS={interval:5000,pause:"hover",wrap:true,keyboard:true};d.prototype.keydown=function(f){if(/input|textarea/i.test(f.target.tagName)){return}switch(f.which){case 37:this.prev();break;case 39:this.next();break;default:return}f.preventDefault()};d.prototype.cycle=function(f){f||(this.paused=false);this.interval&&clearInterval(this.interval);this.options.interval&&!this.paused&&(this.interval=setInterval(c.proxy(this.next,this),this.options.interval));return this};d.prototype.getItemIndex=function(f){this.$items=f.parent().children(".item");return this.$items.index(f||this.$active)};d.prototype.getItemForDirection=function(j,i){var f=this.getItemIndex(i);var g=(j=="prev"&&f===0)||(j=="next"&&f==(this.$items.length-1));if(g&&!this.options.wrap){return i}var k=j=="prev"?-1:1;var h=(f+k)%this.$items.length;return this.$items.eq(h)};d.prototype.to=function(h){var g=this;var f=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(h>(this.$items.length-1)||h<0){return}if(this.sliding){return this.$element.one("slid.bs.carousel",function(){g.to(h)})}if(f==h){return this.pause().cycle()}return this.slide(h>f?"next":"prev",this.$items.eq(h))};d.prototype.pause=function(f){f||(this.paused=true);if(this.$element.find(".next, .prev").length&&c.support.transition){this.$element.trigger(c.support.transition.end);this.cycle(true)}this.interval=clearInterval(this.interval);return this};d.prototype.next=function(){if(this.sliding){return}return this.slide("next")};d.prototype.prev=function(){if(this.sliding){return}return this.slide("prev")};d.prototype.slide=function(m,i){var p=this.$element.find(".item.active");var g=i||this.getItemForDirection(m,p);var k=this.interval;var n=m=="next"?"left":"right";var j=this;if(g.hasClass("active")){return(this.sliding=false)}var l=g[0];var f=c.Event("slide.bs.carousel",{relatedTarget:l,direction:n});this.$element.trigger(f);if(f.isDefaultPrevented()){return}this.sliding=true;k&&this.pause();if(this.$indicators.length){this.$indicators.find(".active").removeClass("active");var h=c(this.$indicators.children()[this.getItemIndex(g)]);h&&h.addClass("active")}var o=c.Event("slid.bs.carousel",{relatedTarget:l,direction:n});if(c.support.transition&&this.$element.hasClass("slide")){g.addClass(m);g[0].offsetWidth;p.addClass(n);g.addClass(n);p.one("bsTransitionEnd",function(){g.removeClass([m,n].join(" ")).addClass("active");p.removeClass(["active",n].join(" "));j.sliding=false;setTimeout(function(){j.$element.trigger(o)},0)}).emulateTransitionEnd(d.TRANSITION_DURATION)}else{p.removeClass("active");g.addClass("active");this.sliding=false;this.$element.trigger(o)}k&&this.cycle();return this};function b(f){return this.each(function(){var j=c(this);var i=j.data("bs.carousel");var g=c.extend({},d.DEFAULTS,j.data(),typeof f=="object"&&f);var h=typeof f=="string"?f:g.slide;if(!i){j.data("bs.carousel",(i=new d(this,g)))}if(typeof f=="number"){i.to(f)}else{if(h){i[h]()}else{if(g.interval){i.pause().cycle()}}}})}var a=c.fn.carousel;c.fn.carousel=b;c.fn.carousel.Constructor=d;c.fn.carousel.noConflict=function(){c.fn.carousel=a;return this};var e=function(k){var g;var j=c(this);var f=c(j.attr("data-target")||(g=j.attr("href"))&&g.replace(/.*(?=#[^\s]+$)/,""));if(!f.hasClass("carousel")){return}var h=c.extend({},f.data(),j.data());var i=j.attr("data-slide-to");if(i){h.interval=false}b.call(f,h);if(i){f.data("bs.carousel").to(i)}k.preventDefault()};c(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e);c(window).on("load",function(){c('[data-ride="carousel"]').each(function(){var f=c(this);b.call(f,f.data())})})}(jQuery);+function(d){var e=function(g,f){this.$element=d(g);this.options=d.extend({},e.DEFAULTS,f);this.$trigger=d('[data-toggle="collapse"][href="#'+g.id+'"],[data-toggle="collapse"][data-target="#'+g.id+'"]');this.transitioning=null;if(this.options.parent){this.$parent=this.getParent()}else{this.addAriaAndCollapsedClass(this.$element,this.$trigger)}if(this.options.toggle){this.toggle()}};e.VERSION="3.3.7";e.TRANSITION_DURATION=350;e.DEFAULTS={toggle:true};e.prototype.dimension=function(){var f=this.$element.hasClass("width");return f?"width":"height"};e.prototype.show=function(){if(this.transitioning||this.$element.hasClass("in")){return}var h;var j=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(j&&j.length){h=j.data("bs.collapse");if(h&&h.transitioning){return}}var g=d.Event("show.bs.collapse");this.$element.trigger(g);if(g.isDefaultPrevented()){return}if(j&&j.length){b.call(j,"hide");h||j.data("bs.collapse",null)}var k=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[k](0).attr("aria-expanded",true);this.$trigger.removeClass("collapsed").attr("aria-expanded",true);this.transitioning=1;var f=function(){this.$element.removeClass("collapsing").addClass("collapse in")[k]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")};if(!d.support.transition){return f.call(this)}var i=d.camelCase(["scroll",k].join("-"));this.$element.one("bsTransitionEnd",d.proxy(f,this)).emulateTransitionEnd(e.TRANSITION_DURATION)[k](this.$element[0][i])};e.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass("in")){return}var g=d.Event("hide.bs.collapse");this.$element.trigger(g);if(g.isDefaultPrevented()){return}var h=this.dimension();this.$element[h](this.$element[h]())[0].offsetHeight;this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",false);this.$trigger.addClass("collapsed").attr("aria-expanded",false);this.transitioning=1;var f=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!d.support.transition){return f.call(this)}this.$element[h](0).one("bsTransitionEnd",d.proxy(f,this)).emulateTransitionEnd(e.TRANSITION_DURATION)};e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};e.prototype.getParent=function(){return d(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(d.proxy(function(h,g){var f=d(g);this.addAriaAndCollapsedClass(c(f),f)},this)).end()};e.prototype.addAriaAndCollapsedClass=function(g,f){var h=g.hasClass("in");g.attr("aria-expanded",h);f.toggleClass("collapsed",!h).attr("aria-expanded",h)};function c(f){var g;var h=f.attr("data-target")||(g=f.attr("href"))&&g.replace(/.*(?=#[^\s]+$)/,"");return d(h)}function b(f){return this.each(function(){var i=d(this);var h=i.data("bs.collapse");var g=d.extend({},e.DEFAULTS,i.data(),typeof f=="object"&&f);if(!h&&g.toggle&&/show|hide/.test(f)){g.toggle=false}if(!h){i.data("bs.collapse",(h=new e(this,g)))}if(typeof f=="string"){h[f]()}})}var a=d.fn.collapse;d.fn.collapse=b;d.fn.collapse.Constructor=e;d.fn.collapse.noConflict=function(){d.fn.collapse=a;return this};d(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(j){var i=d(this);if(!i.attr("data-target")){j.preventDefault()}var f=c(i);var h=f.data("bs.collapse");var g=h?"toggle":i.data();b.call(f,g)})}(jQuery);+function(h){var e=".dropdown-backdrop";var b='[data-toggle="dropdown"]';var a=function(i){h(i).on("click.bs.dropdown",this.toggle)};a.VERSION="3.3.7";function f(k){var i=k.attr("data-target");if(!i){i=k.attr("href");i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")}var j=i&&h(i);return j&&j.length?j:k.parent()}function d(i){if(i&&i.which===3){return}h(e).remove();h(b).each(function(){var l=h(this);var k=f(l);var j={relatedTarget:this};if(!k.hasClass("open")){return}if(i&&i.type=="click"&&/input|textarea/i.test(i.target.tagName)&&h.contains(k[0],i.target)){return}k.trigger(i=h.Event("hide.bs.dropdown",j));if(i.isDefaultPrevented()){return}l.attr("aria-expanded","false");k.removeClass("open").trigger(h.Event("hidden.bs.dropdown",j))})}a.prototype.toggle=function(m){var l=h(this);if(l.is(".disabled, :disabled")){return}var k=f(l);var j=k.hasClass("open");d();if(!j){if("ontouchstart" in document.documentElement&&!k.closest(".navbar-nav").length){h(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(h(this)).on("click",d)}var i={relatedTarget:this};k.trigger(m=h.Event("show.bs.dropdown",i));if(m.isDefaultPrevented()){return}l.trigger("focus").attr("aria-expanded","true");k.toggleClass("open").trigger(h.Event("shown.bs.dropdown",i))}return false};a.prototype.keydown=function(m){if(!/(38|40|27|32)/.test(m.which)||/input|textarea/i.test(m.target.tagName)){return}var l=h(this);m.preventDefault();m.stopPropagation();if(l.is(".disabled, :disabled")){return}var k=f(l);var j=k.hasClass("open");if(!j&&m.which!=27||j&&m.which==27){if(m.which==27){k.find(b).trigger("focus")}return l.trigger("click")}var n=" li:not(.disabled):visible a";var o=k.find(".dropdown-menu"+n);if(!o.length){return}var i=o.index(m.target);if(m.which==38&&i>0){i--}if(m.which==40&&i<o.length-1){i++}if(!~i){i=0}o.eq(i).trigger("focus")};function g(i){return this.each(function(){var k=h(this);var j=k.data("bs.dropdown");if(!j){k.data("bs.dropdown",(j=new a(this)))}if(typeof i=="string"){j[i].call(k)}})}var c=h.fn.dropdown;h.fn.dropdown=g;h.fn.dropdown.Constructor=a;h.fn.dropdown.noConflict=function(){h.fn.dropdown=c;return this};h(document).on("click.bs.dropdown.data-api",d).on("click.bs.dropdown.data-api",".dropdown form",function(i){i.stopPropagation()}).on("click.bs.dropdown.data-api",b,a.prototype.toggle).on("keydown.bs.dropdown.data-api",b,a.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",a.prototype.keydown)}(jQuery);+function(d){var b=function(f,e){this.options=e;this.$body=d(document.body);this.$element=d(f);this.$dialog=this.$element.find(".modal-dialog");this.$backdrop=null;this.isShown=null;this.originalBodyPad=null;this.scrollbarWidth=0;this.ignoreBackdropClick=false;if(this.options.remote){this.$element.find(".modal-content").load(this.options.remote,d.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}};b.VERSION="3.3.7";b.TRANSITION_DURATION=300;b.BACKDROP_TRANSITION_DURATION=150;b.DEFAULTS={backdrop:true,keyboard:true,show:true};b.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)};b.prototype.show=function(h){var f=this;var g=d.Event("show.bs.modal",{relatedTarget:h});this.$element.trigger(g);if(this.isShown||g.isDefaultPrevented()){return}this.isShown=true;this.checkScrollbar();this.setScrollbar();this.$body.addClass("modal-open");this.escape();this.resize();this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',d.proxy(this.hide,this));this.$dialog.on("mousedown.dismiss.bs.modal",function(){f.$element.one("mouseup.dismiss.bs.modal",function(i){if(d(i.target).is(f.$element)){f.ignoreBackdropClick=true}})});this.backdrop(function(){var j=d.support.transition&&f.$element.hasClass("fade");if(!f.$element.parent().length){f.$element.appendTo(f.$body)}f.$element.show().scrollTop(0);f.adjustDialog();if(j){f.$element[0].offsetWidth}f.$element.addClass("in");f.enforceFocus();var i=d.Event("shown.bs.modal",{relatedTarget:h});j?f.$dialog.one("bsTransitionEnd",function(){f.$element.trigger("focus").trigger(i)}).emulateTransitionEnd(b.TRANSITION_DURATION):f.$element.trigger("focus").trigger(i)})};b.prototype.hide=function(f){if(f){f.preventDefault()}f=d.Event("hide.bs.modal");this.$element.trigger(f);if(!this.isShown||f.isDefaultPrevented()){return}this.isShown=false;this.escape();this.resize();d(document).off("focusin.bs.modal");this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal");this.$dialog.off("mousedown.dismiss.bs.modal");d.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",d.proxy(this.hideModal,this)).emulateTransitionEnd(b.TRANSITION_DURATION):this.hideModal()};b.prototype.enforceFocus=function(){d(document).off("focusin.bs.modal").on("focusin.bs.modal",d.proxy(function(f){if(document!==f.target&&this.$element[0]!==f.target&&!this.$element.has(f.target).length){this.$element.trigger("focus")}},this))};b.prototype.escape=function(){if(this.isShown&&this.options.keyboard){this.$element.on("keydown.dismiss.bs.modal",d.proxy(function(f){f.which==27&&this.hide()},this))}else{if(!this.isShown){this.$element.off("keydown.dismiss.bs.modal")}}};b.prototype.resize=function(){if(this.isShown){d(window).on("resize.bs.modal",d.proxy(this.handleUpdate,this))}else{d(window).off("resize.bs.modal")}};b.prototype.hideModal=function(){var e=this;this.$element.hide();this.backdrop(function(){e.$body.removeClass("modal-open");e.resetAdjustments();e.resetScrollbar();e.$element.trigger("hidden.bs.modal")})};b.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};b.prototype.backdrop=function(i){var h=this;var f=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var e=d.support.transition&&f;this.$backdrop=d(document.createElement("div")).addClass("modal-backdrop "+f).appendTo(this.$body);this.$element.on("click.dismiss.bs.modal",d.proxy(function(j){if(this.ignoreBackdropClick){this.ignoreBackdropClick=false;return}if(j.target!==j.currentTarget){return}this.options.backdrop=="static"?this.$element[0].focus():this.hide()},this));if(e){this.$backdrop[0].offsetWidth}this.$backdrop.addClass("in");if(!i){return}e?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(b.BACKDROP_TRANSITION_DURATION):i()}else{if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var g=function(){h.removeBackdrop();i&&i()};d.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",g).emulateTransitionEnd(b.BACKDROP_TRANSITION_DURATION):g()}else{if(i){i()}}}};b.prototype.handleUpdate=function(){this.adjustDialog()};b.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})};b.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};b.prototype.checkScrollbar=function(){var f=window.innerWidth;if(!f){var e=document.documentElement.getBoundingClientRect();f=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<f;this.scrollbarWidth=this.measureScrollbar()};b.prototype.setScrollbar=function(){var e=parseInt((this.$body.css("padding-right")||0),10);this.originalBodyPad=document.body.style.paddingRight||"";if(this.bodyIsOverflowing){this.$body.css("padding-right",e+this.scrollbarWidth)}};b.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)};b.prototype.measureScrollbar=function(){var f=document.createElement("div");f.className="modal-scrollbar-measure";this.$body.append(f);var e=f.offsetWidth-f.clientWidth;this.$body[0].removeChild(f);return e};function c(e,f){return this.each(function(){var i=d(this);var h=i.data("bs.modal");var g=d.extend({},b.DEFAULTS,i.data(),typeof e=="object"&&e);if(!h){i.data("bs.modal",(h=new b(this,g)))}if(typeof e=="string"){h[e](f)}else{if(g.show){h.show(f)}}})}var a=d.fn.modal;d.fn.modal=c;d.fn.modal.Constructor=b;d.fn.modal.noConflict=function(){d.fn.modal=a;return this};d(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(j){var i=d(this);var g=i.attr("href");var f=d(i.attr("data-target")||(g&&g.replace(/.*(?=#[^\s]+$)/,"")));var h=f.data("bs.modal")?"toggle":d.extend({remote:!/#/.test(g)&&g},f.data(),i.data());if(i.is("a")){j.preventDefault()}f.one("show.bs.modal",function(e){if(e.isDefaultPrevented()){return}f.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})});c.call(f,h,this)})}(jQuery);+function(d){var c=function(f,e){this.type=null;this.options=null;this.enabled=null;this.timeout=null;this.hoverState=null;this.$element=null;this.inState=null;this.init("tooltip",f,e)};c.VERSION="3.3.7";c.TRANSITION_DURATION=150;c.DEFAULTS={animation:true,placement:"top",selector:false,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:false,container:false,viewport:{selector:"body",padding:0}};c.prototype.init=function(l,j,g){this.enabled=true;this.type=l;this.$element=d(j);this.options=this.getOptions(g);this.$viewport=this.options.viewport&&d(d.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):(this.options.viewport.selector||this.options.viewport));this.inState={click:false,hover:false,focus:false};if(this.$element[0] instanceof document.constructor&&!this.options.selector){throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!")}var k=this.options.trigger.split(" ");for(var h=k.length;h--;){var f=k[h];if(f=="click"){this.$element.on("click."+this.type,this.options.selector,d.proxy(this.toggle,this))}else{if(f!="manual"){var m=f=="hover"?"mouseenter":"focusin";var e=f=="hover"?"mouseleave":"focusout";this.$element.on(m+"."+this.type,this.options.selector,d.proxy(this.enter,this));this.$element.on(e+"."+this.type,this.options.selector,d.proxy(this.leave,this))}}}this.options.selector?(this._options=d.extend({},this.options,{trigger:"manual",selector:""})):this.fixTitle()};c.prototype.getDefaults=function(){return c.DEFAULTS};c.prototype.getOptions=function(e){e=d.extend({},this.getDefaults(),this.$element.data(),e);if(e.delay&&typeof e.delay=="number"){e.delay={show:e.delay,hide:e.delay}}return e};c.prototype.getDelegateOptions=function(){var e={};var f=this.getDefaults();this._options&&d.each(this._options,function(g,h){if(f[g]!=h){e[g]=h}});return e};c.prototype.enter=function(f){var e=f instanceof this.constructor?f:d(f.currentTarget).data("bs."+this.type);if(!e){e=new this.constructor(f.currentTarget,this.getDelegateOptions());d(f.currentTarget).data("bs."+this.type,e)}if(f instanceof d.Event){e.inState[f.type=="focusin"?"focus":"hover"]=true}if(e.tip().hasClass("in")||e.hoverState=="in"){e.hoverState="in";return}clearTimeout(e.timeout);e.hoverState="in";if(!e.options.delay||!e.options.delay.show){return e.show()}e.timeout=setTimeout(function(){if(e.hoverState=="in"){e.show()}},e.options.delay.show)};c.prototype.isInStateTrue=function(){for(var e in this.inState){if(this.inState[e]){return true}}return false};c.prototype.leave=function(f){var e=f instanceof this.constructor?f:d(f.currentTarget).data("bs."+this.type);if(!e){e=new this.constructor(f.currentTarget,this.getDelegateOptions());d(f.currentTarget).data("bs."+this.type,e)}if(f instanceof d.Event){e.inState[f.type=="focusout"?"focus":"hover"]=false}if(e.isInStateTrue()){return}clearTimeout(e.timeout);e.hoverState="out";if(!e.options.delay||!e.options.delay.hide){return e.hide()}e.timeout=setTimeout(function(){if(e.hoverState=="out"){e.hide()}},e.options.delay.hide)};c.prototype.show=function(){var o=d.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(o);var p=d.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(o.isDefaultPrevented()||!p){return}var n=this;var l=this.tip();var h=this.getUID(this.type);this.setContent();l.attr("id",h);this.$element.attr("aria-describedby",h);if(this.options.animation){l.addClass("fade")}var k=typeof this.options.placement=="function"?this.options.placement.call(this,l[0],this.$element[0]):this.options.placement;var s=/\s?auto?\s?/i;var t=s.test(k);if(t){k=k.replace(s,"")||"top"}l.detach().css({top:0,left:0,display:"block"}).addClass(k).data("bs."+this.type,this);this.options.container?l.appendTo(this.options.container):l.insertAfter(this.$element);this.$element.trigger("inserted.bs."+this.type);var q=this.getPosition();var f=l[0].offsetWidth;var m=l[0].offsetHeight;if(t){var j=k;var r=this.getPosition(this.$viewport);k=k=="bottom"&&q.bottom+m>r.bottom?"top":k=="top"&&q.top-m<r.top?"bottom":k=="right"&&q.right+f>r.width?"left":k=="left"&&q.left-f<r.left?"right":k;l.removeClass(j).addClass(k)}var i=this.getCalculatedOffset(k,q,f,m);this.applyPlacement(i,k);var g=function(){var e=n.hoverState;n.$element.trigger("shown.bs."+n.type);n.hoverState=null;if(e=="out"){n.leave(n)}};d.support.transition&&this.$tip.hasClass("fade")?l.one("bsTransitionEnd",g).emulateTransitionEnd(c.TRANSITION_DURATION):g()}};c.prototype.applyPlacement=function(j,k){var l=this.tip();var g=l[0].offsetWidth;var q=l[0].offsetHeight;var f=parseInt(l.css("margin-top"),10);var i=parseInt(l.css("margin-left"),10);if(isNaN(f)){f=0}if(isNaN(i)){i=0}j.top+=f;j.left+=i;d.offset.setOffset(l[0],d.extend({using:function(r){l.css({top:Math.round(r.top),left:Math.round(r.left)})}},j),0);l.addClass("in");var e=l[0].offsetWidth;var m=l[0].offsetHeight;if(k=="top"&&m!=q){j.top=j.top+q-m}var p=this.getViewportAdjustedDelta(k,j,e,m);if(p.left){j.left+=p.left}else{j.top+=p.top}var n=/top|bottom/.test(k);var h=n?p.left*2-g+e:p.top*2-q+m;var o=n?"offsetWidth":"offsetHeight";l.offset(j);this.replaceArrow(h,l[0][o],n)};c.prototype.replaceArrow=function(g,e,f){this.arrow().css(f?"left":"top",50*(1-g/e)+"%").css(f?"top":"left","")};c.prototype.setContent=function(){var f=this.tip();var e=this.getTitle();f.find(".tooltip-inner")[this.options.html?"html":"text"](e);f.removeClass("fade in top bottom left right")};c.prototype.hide=function(j){var g=this;var i=d(this.$tip);var h=d.Event("hide.bs."+this.type);function f(){if(g.hoverState!="in"){i.detach()}if(g.$element){g.$element.removeAttr("aria-describedby").trigger("hidden.bs."+g.type)}j&&j()}this.$element.trigger(h);if(h.isDefaultPrevented()){return}i.removeClass("in");d.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f();this.hoverState=null;return this};c.prototype.fixTitle=function(){var e=this.$element;if(e.attr("title")||typeof e.attr("data-original-title")!="string"){e.attr("data-original-title",e.attr("title")||"").attr("title","")}};c.prototype.hasContent=function(){return this.getTitle()};c.prototype.getPosition=function(g){g=g||this.$element;var i=g[0];var f=i.tagName=="BODY";var h=i.getBoundingClientRect();if(h.width==null){h=d.extend({},h,{width:h.right-h.left,height:h.bottom-h.top})}var k=window.SVGElement&&i instanceof window.SVGElement;var l=f?{top:0,left:0}:(k?null:g.offset());var e={scroll:f?document.documentElement.scrollTop||document.body.scrollTop:g.scrollTop()};var j=f?{width:d(window).width(),height:d(window).height()}:null;return d.extend({},h,e,j,l)};c.prototype.getCalculatedOffset=function(e,h,f,g){return e=="bottom"?{top:h.top+h.height,left:h.left+h.width/2-f/2}:e=="top"?{top:h.top-g,left:h.left+h.width/2-f/2}:e=="left"?{top:h.top+h.height/2-g/2,left:h.left-f}:{top:h.top+h.height/2-g/2,left:h.left+h.width}};c.prototype.getViewportAdjustedDelta=function(h,k,e,j){var m={top:0,left:0};if(!this.$viewport){return m}var g=this.options.viewport&&this.options.viewport.padding||0;var l=this.getPosition(this.$viewport);if(/right|left/.test(h)){var n=k.top-g-l.scroll;var i=k.top+g-l.scroll+j;if(n<l.top){m.top=l.top-n}else{if(i>l.top+l.height){m.top=l.top+l.height-i}}}else{var o=k.left-g;var f=k.left+g+e;if(o<l.left){m.left=l.left-o}else{if(f>l.right){m.left=l.left+l.width-f}}}return m};c.prototype.getTitle=function(){var g;var e=this.$element;var f=this.options;g=e.attr("data-original-title")||(typeof f.title=="function"?f.title.call(e[0]):f.title);return g};c.prototype.getUID=function(e){do{e+=~~(Math.random()*1000000)}while(document.getElementById(e));return e};c.prototype.tip=function(){if(!this.$tip){this.$tip=d(this.options.template);if(this.$tip.length!=1){throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!")}}return this.$tip};c.prototype.arrow=function(){return(this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow"))};c.prototype.enable=function(){this.enabled=true};c.prototype.disable=function(){this.enabled=false};c.prototype.toggleEnabled=function(){this.enabled=!this.enabled};c.prototype.toggle=function(g){var f=this;if(g){f=d(g.currentTarget).data("bs."+this.type);if(!f){f=new this.constructor(g.currentTarget,this.getDelegateOptions());d(g.currentTarget).data("bs."+this.type,f)}}if(g){f.inState.click=!f.inState.click;if(f.isInStateTrue()){f.enter(f)}else{f.leave(f)}}else{f.tip().hasClass("in")?f.leave(f):f.enter(f)}};c.prototype.destroy=function(){var e=this;clearTimeout(this.timeout);this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type);if(e.$tip){e.$tip.detach()}e.$tip=null;e.$arrow=null;e.$viewport=null;e.$element=null})};function b(e){return this.each(function(){var h=d(this);var g=h.data("bs.tooltip");var f=typeof e=="object"&&e;if(!g&&/destroy|hide/.test(e)){return}if(!g){h.data("bs.tooltip",(g=new c(this,f)))}if(typeof e=="string"){g[e]()}})}var a=d.fn.tooltip;d.fn.tooltip=b;d.fn.tooltip.Constructor=c;d.fn.tooltip.noConflict=function(){d.fn.tooltip=a;return this}}(jQuery);+function(d){var c=function(f,e){this.init("popover",f,e)};if(!d.fn.tooltip){throw new Error("Popover requires tooltip.js")}c.VERSION="3.3.7";c.DEFAULTS=d.extend({},d.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'});c.prototype=d.extend({},d.fn.tooltip.Constructor.prototype);c.prototype.constructor=c;c.prototype.getDefaults=function(){return c.DEFAULTS};c.prototype.setContent=function(){var g=this.tip();var f=this.getTitle();var e=this.getContent();g.find(".popover-title")[this.options.html?"html":"text"](f);g.find(".popover-content").children().detach().end()[this.options.html?(typeof e=="string"?"html":"append"):"text"](e);g.removeClass("fade top bottom left right in");if(!g.find(".popover-title").html()){g.find(".popover-title").hide()}};c.prototype.hasContent=function(){return this.getTitle()||this.getContent()};c.prototype.getContent=function(){var e=this.$element;var f=this.options;return e.attr("data-content")||(typeof f.content=="function"?f.content.call(e[0]):f.content)};c.prototype.arrow=function(){return(this.$arrow=this.$arrow||this.tip().find(".arrow"))};function b(e){return this.each(function(){var h=d(this);var g=h.data("bs.popover");var f=typeof e=="object"&&e;if(!g&&/destroy|hide/.test(e)){return}if(!g){h.data("bs.popover",(g=new c(this,f)))}if(typeof e=="string"){g[e]()}})}var a=d.fn.popover;d.fn.popover=b;d.fn.popover.Constructor=c;d.fn.popover.noConflict=function(){d.fn.popover=a;return this}}(jQuery);+function(d){function c(f,e){this.$body=d(document.body);this.$scrollElement=d(f).is(document.body)?d(window):d(f);this.options=d.extend({},c.DEFAULTS,e);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",d.proxy(this.process,this));this.refresh();this.process()}c.VERSION="3.3.7";c.DEFAULTS={offset:10};c.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};c.prototype.refresh=function(){var g=this;var e="offset";var f=0;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();if(!d.isWindow(this.$scrollElement[0])){e="position";f=this.$scrollElement.scrollTop()}this.$body.find(this.selector).map(function(){var i=d(this);var h=i.data("target")||i.attr("href");var j=/^#./.test(h)&&d(h);return(j&&j.length&&j.is(":visible")&&[[j[e]().top+f,h]])||null}).sort(function(i,h){return i[0]-h[0]}).each(function(){g.offsets.push(this[0]);g.targets.push(this[1])})};c.prototype.process=function(){var k=this.$scrollElement.scrollTop()+this.options.offset;var g=this.getScrollHeight();var j=this.options.offset+g-this.$scrollElement.height();var h=this.offsets;var e=this.targets;var l=this.activeTarget;var f;if(this.scrollHeight!=g){this.refresh()}if(k>=j){return l!=(f=e[e.length-1])&&this.activate(f)}if(l&&k<h[0]){this.activeTarget=null;return this.clear()}for(f=h.length;f--;){l!=e[f]&&k>=h[f]&&(h[f+1]===undefined||k<h[f+1])&&this.activate(e[f])}};c.prototype.activate=function(g){this.activeTarget=g;this.clear();var e=this.selector+'[data-target="'+g+'"],'+this.selector+'[href="'+g+'"]';var f=d(e).parents("li").addClass("active");if(f.parent(".dropdown-menu").length){f=f.closest("li.dropdown").addClass("active")}f.trigger("activate.bs.scrollspy")};c.prototype.clear=function(){d(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};function b(e){return this.each(function(){var h=d(this);var g=h.data("bs.scrollspy");var f=typeof e=="object"&&e;if(!g){h.data("bs.scrollspy",(g=new c(this,f)))}if(typeof e=="string"){g[e]()}})}var a=d.fn.scrollspy;d.fn.scrollspy=b;d.fn.scrollspy.Constructor=c;d.fn.scrollspy.noConflict=function(){d.fn.scrollspy=a;return this};d(window).on("load.bs.scrollspy.data-api",function(){d('[data-spy="scroll"]').each(function(){var e=d(this);b.call(e,e.data())})})}(jQuery);+function(d){var b=function(f){this.element=d(f)};b.VERSION="3.3.7";b.TRANSITION_DURATION=150;b.prototype.show=function(){var l=this.element;var h=l.closest("ul:not(.dropdown-menu)");var g=l.data("target");if(!g){g=l.attr("href");g=g&&g.replace(/.*(?=#[^\s]*$)/,"")}if(l.parent("li").hasClass("active")){return}var j=h.find(".active:last a");var k=d.Event("hide.bs.tab",{relatedTarget:l[0]});var i=d.Event("show.bs.tab",{relatedTarget:j[0]});j.trigger(k);l.trigger(i);if(i.isDefaultPrevented()||k.isDefaultPrevented()){return}var f=d(g);this.activate(l.closest("li"),h);this.activate(f,f.parent(),function(){j.trigger({type:"hidden.bs.tab",relatedTarget:l[0]});l.trigger({type:"shown.bs.tab",relatedTarget:j[0]})})};b.prototype.activate=function(h,g,k){var f=g.find("> .active");var j=k&&d.support.transition&&(f.length&&f.hasClass("fade")||!!g.find("> .fade").length);function i(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",false);h.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",true);if(j){h[0].offsetWidth;h.addClass("in")}else{h.removeClass("fade")}if(h.parent(".dropdown-menu").length){h.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",true)}k&&k()}f.length&&j?f.one("bsTransitionEnd",i).emulateTransitionEnd(b.TRANSITION_DURATION):i();f.removeClass("in")};function c(f){return this.each(function(){var h=d(this);var g=h.data("bs.tab");if(!g){h.data("bs.tab",(g=new b(this)))}if(typeof f=="string"){g[f]()}})}var a=d.fn.tab;d.fn.tab=c;d.fn.tab.Constructor=b;d.fn.tab.noConflict=function(){d.fn.tab=a;return this};var e=function(f){f.preventDefault();c.call(d(this),"show")};d(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery);+function(d){var c=function(f,e){this.options=d.extend({},c.DEFAULTS,e);this.$target=d(this.options.target).on("scroll.bs.affix.data-api",d.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",d.proxy(this.checkPositionWithEventLoop,this));this.$element=d(f);this.affixed=null;this.unpin=null;this.pinnedOffset=null;this.checkPosition()};c.VERSION="3.3.7";c.RESET="affix affix-top affix-bottom";c.DEFAULTS={offset:0,target:window};c.prototype.getState=function(n,m,f,g){var e=this.$target.scrollTop();var i=this.$element.offset();var j=this.$target.height();if(f!=null&&this.affixed=="top"){return e<f?"top":false}if(this.affixed=="bottom"){if(f!=null){return(e+this.unpin<=i.top)?false:"bottom"}return(e+j<=n-g)?false:"bottom"}var h=this.affixed==null;var l=h?e:i.top;var k=h?j:m;if(f!=null&&e<=f){return"top"}if(g!=null&&(l+k>=n-g)){return"bottom"}return false};c.prototype.getPinnedOffset=function(){if(this.pinnedOffset){return this.pinnedOffset}this.$element.removeClass(c.RESET).addClass("affix");var f=this.$target.scrollTop();var e=this.$element.offset();return(this.pinnedOffset=e.top-f)};c.prototype.checkPositionWithEventLoop=function(){setTimeout(d.proxy(this.checkPosition,this),1)};c.prototype.checkPosition=function(){if(!this.$element.is(":visible")){return}var f=this.$element.height();var l=this.options.offset;var j=l.top;var h=l.bottom;var i=Math.max(d(document).height(),d(document.body).height());if(typeof l!="object"){h=j=l}if(typeof j=="function"){j=l.top(this.$element)}if(typeof h=="function"){h=l.bottom(this.$element)}var g=this.getState(i,f,j,h);if(this.affixed!=g){if(this.unpin!=null){this.$element.css("top","")}var m="affix"+(g?"-"+g:"");var k=d.Event(m+".bs.affix");this.$element.trigger(k);if(k.isDefaultPrevented()){return}this.affixed=g;this.unpin=g=="bottom"?this.getPinnedOffset():null;this.$element.removeClass(c.RESET).addClass(m).trigger(m.replace("affix","affixed")+".bs.affix")}if(g=="bottom"){this.$element.offset({top:i-f-h})}};function b(e){return this.each(function(){var h=d(this);var g=h.data("bs.affix");var f=typeof e=="object"&&e;if(!g){h.data("bs.affix",(g=new c(this,f)))}if(typeof e=="string"){g[e]()}})}var a=d.fn.affix;d.fn.affix=b;d.fn.affix.Constructor=c;d.fn.affix.noConflict=function(){d.fn.affix=a;return this};d(window).on("load",function(){d('[data-spy="affix"]').each(function(){var f=d(this);var e=f.data();e.offset=e.offset||{};if(e.offsetBottom!=null){e.offset.bottom=e.offsetBottom}if(e.offsetTop!=null){e.offset.top=e.offsetTop}b.call(f,e)})})}(jQuery);
|
||
</script> <script type="text/javascript">
|
||
|
||
jQuery(function(){jQuery("#pgbadger-brand").tooltip();jQuery("#pop-infos").popover("hide");jQuery(".slide").hide();jQuery(".active-slide").show();var a=location.hash;if(a){a=a.substring(1);var d=document.getElementById(a);var c=jQuery(d).parent().attr("id");if(c!=undefined){var b="#"+c;jQuery("#main-container li.slide").removeClass("active-slide").hide();jQuery(b).addClass("active-slide").fadeIn();window.location.hash="#"+a}}jQuery(".navbar li.dropdown").click(function(){var g=jQuery(this).attr("id");g=g.substring(5);var e="#"+g+"-slide";var f=jQuery("#main-container .active-slide").attr("id");f="#"+f;if(e!=f){jQuery("#main-container li.slide").removeClass("active-slide").hide();jQuery(e).addClass("active-slide").fadeIn()}});jQuery(".navbar li ul li").click(function(){var f=jQuery(this).parent().parent().attr("id");var g=f.substring(5);var e="#"+g+"-slide";jQuery("#main-container li.slide").removeClass("active-slide").hide();jQuery(e).addClass("active-slide").fadeIn()})});jQuery(document).ready(function(){jQuery(".sql").dblclick(function(){if(this.style==undefined||this.style.whiteSpace=="pre"){this.style.whiteSpace="normal"}else{this.style.whiteSpace="pre"}});jQuery(".icon-copy").click(function(){var d=$(this).parent()[0];if(window.getSelection){var c=window.getSelection();c.removeAllRanges();var a=document.createRange();a.selectNodeContents(d);c.addRange(a)}else{if(document.selection){var b=document.body.createTextRange();b.moveToElementText(d);b.select()}}})});
|
||
</script> <style type="text/css">
|
||
|
||
body{background-color:#cdd5da;background:-webkit-linear-gradient(bottom,#cdd5da,#e8e7e7);background:-moz-linear-gradient(bottom,#cdd5da,#e8e7e7);background:-ms-linear-gradient(bottom,#cdd5da,#e8e7e7);background:-o-linear-gradient(bottom,#cdd5da,#e8e7e7);background:linear-gradient(to bottom,#cdd5da,#e8e7e7)}ul.nav li.dropdown:hover ul.dropdown-menu{display:block}ul.nav li.dropdown ul.dropdown-menu{margin:0}#pgbadger-brand{font-size:1.1em;font-weight:bold}ul#slides li{list-style-type:none}h1{font-size:2em}h2{font-size:1.6em}h3,h3 small{font-size:1.1em;text-transform:uppercase;letter-spacing:.1em}h3 small{font-size:1em}.analysis-item{background:#fff;margin:2em 0;padding:2em 0}.analysis-item h2{margin:1em 0 .5em 1em}h3{margin:0;padding:0;color:#5f5555}h1.page-header{margin:1em 0 1em 0;padding:0;color:#5f5555;border-bottom:0}h2{color:#5f5555}.nav-pills,.nav-tabs{margin:0 1em}footer{margin-top:60px}.col-md-8 .tabbable{margin-top:1em}#global-stats .tab-content{margin:2em 0 3em 0}#global-stats .tab-content li{display:block;width:14%;float:left;margin-left:3%}#global-stats .tab-content li.first{margin-left:0}.well{background:#f9f9f9;border-radius:0}.key-figures ul{margin:0;padding:0}.key-figures li{list-style-type:none;margin-bottom:2em}.figure{font-weight:bold;font-size:1.4em;color:#2e8aa5}.figure-label{display:block;color:#666}.mfigure{font-weight:bold;font-size:1.4em;color:#d26115;margin-left:5px}.smfigure{font-weight:bold;font-size:1.1em;color:#d26115}.mfigure small{font-weight:bold;font-size:.6em;color:#fff}.smfigure small{font-weight:bold;font-size:.6em;color:#fff}.hfigure{font-weight:bold;font-size:1.0em;color:#8dbd0f}.hfigure small{font-weight:bold;font-size:.6em;color:#fff}.navbar-inverse{background:#5f5555;border:0}.navbar-inverse .brand,.navbar-inverse .nav>li>a{color:#eee}.linegraph{width:100%;height:400px}.piegraph{width:100%;height:400px}.histo-graph{width:100%;height:140px}.duration-histo-graph{width:100%;height:400px}@media(min-width:969px){#show-hide-menu{position:absolute;left:-9999px}.navbar ul.collapse{overflow:visible}}@media(max-width:968px){#show-hide-menu{position:inherit}#global-stats .tab-content li{display:block;width:auto;float:none;margin-left:0;margin-bottom:1em}ul#slides{margin:0;padding:0}ul#slides li div div{padding:0 1.5em}.linegraph{width:94.5%}.piegraph{width:94.5%}.histo-graph{width:84.5%}.duration-histo-graph{width:94.5%}.key-figures ul{margin-top:1.5em}.navbar .nav{margin:0 3em 2em 3em}.navbar .nav>li{float:none}.navbar ul.collapse:hover{overflow:visible}}div#littleToc{display:none}html>body div#littleToc{display:block;background-color:white;color:black;position:fixed;bottom:10px;right:10px;width:50px;font-size:11px;text-align:left;border:0}div#littleToc div#littleTocTitle{font-weight:bold;text-align:center;padding:2px}div#littleToc ul{padding:0;text-indent:0;margin:0}div#littleToc li{font-size:11px;list-style-type:none;padding:0;text-indent:0;margin:0}div#littleToc a{color:#000;padding:2px;margin:2px;display:block;text-decoration:none;border:1px solid #ccc}div#littleToc a:hover{text-decoration:none;background-color:#ddd}.jqplot-graph{color:#ac1316;z-index:99}.sql{font-family:monospace}.sql .imp{font-weight:bold;color:red}.sql .kw1{color:#933;font-weight:bold;text-transform:uppercase}.sql .kw2{color:#933;font-style:italic}.sql .kw3{color:#933;text-transform:uppercase}.sql .co1{color:#808080;font-style:italic}.sql .co2{color:#808080;font-style:italic}.sql .coMULTI{color:#808080;font-style:italic}.sql .es0{color:#009;font-weight:bold}.sql .br0{color:#6c6}.sql .sy0{color:#000}.sql .st0{color:#f00}.sql .nu0{color:#c6c}.sql span.xtra{display:block}.sql-smallsize{width:450px}.sql-mediumsize{width:600px}.sql-largesize{width:100%}.jqplot-target{position:relative;color:#333;font-size:1.2em}.jqplot-highlighter-tooltip{border:0;font-size:1.0em;white-space:nowrap;font-weight:bold;margin:5px;padding:5px;color:#fff;background:#5f5555;border:1px solid #5f5555;border:1px solid rgba(0,0,0,0.2);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,0.2);box-shadow:0 5px 10px rgba(0,0,0,0.2)}.jqplot-title{font-size:1.1em;text-transform:uppercase;letter-spacing:.1em;margin:0;padding:0;color:#5f5555}#pgbadgerModal .modal-dialog{width:850px;overflow-y:hidden}#pgbadgerModal .modal-body{height:100%;width:830px;background-color:white}.error-pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}
|
||
</style> <script type="text/javascript">
|
||
|
||
function create_download_button(a,b){if(b==undefined){b="btn btn-info"}document.writeln('<button type="button" id="download'+a+'" class="'+b+'">Download</button>')}function add_download_button_event(a,b){jQuery("#download"+a).click(function(){$("#pgbadgerModal img").attr("src",$("#"+b).jqplotToImageStr({}));$("#pgbadgerModal").modal("toggle")})}function create_linegraph(e,c,d,a,b){return $.jqplot(e,b,{seriesColors:["#6e9dc9","#f4ab3a","#ac7fa8","#8dbd0f","#958c12","#953579","#4b5de4","#d8b83f","#ff5800","#0085cc"],seriesDefaults:{markerOptions:{show:false},lineWidth:1},grid:{borderWidth:1,background:"#ffffff"},title:c,series:a,axes:{xaxis:{renderer:$.jqplot.DateAxisRenderer,tickOptions:{angle:-30,textColor:"#333"},},yaxis:{renderer:$.jqplot.LogAxisRenderer,labelRenderer:$.jqplot.CanvasAxisLabelRenderer,tickRenderer:$.jqplot.CanvasAxisTickRenderer,tickOptions:{textColor:"#333",formatter:function(g,f){return pretty_print_number(f,0,d)}},}},legend:{show:true,location:"nw",},cursor:{show:true,zoom:true,showTooltip:false,looseZoom:true,followMouse:true,},highlighter:{show:true,tooltipContentEditor:function(m,f,j,k){var h=new Date(k.data[f][j][0]);var l="<div>On "+h.toString();for(var g=0;g<k.data.length;g++){l+='<br><span class="mfigure">'+pretty_print_number(k.data[g][j][1],2,k.series[g].label)+" <small>"+k.series[g].label+"</small></span>"}l+="</div>";return l}}})}function create_piechart(c,b,a){return $.jqplot(c,[a],{seriesColors:["#6e9dc9","#f4ab3a","#ac7fa8","#8dbd0f","#958c12","#953579","#4b5de4","#d8b83f","#ff5800","#0085cc","#4bb2c5","#c5b47f","#EAA228","#579575","#839557","#498991","#C08840","#9F9274","#546D61","#646C4A","#6F6621","#6E3F5F","#4F64B0","#A89050","#C45923","#187399","#945381","#959E5C","#C7AF7B","#478396","#907294"],grid:{borderWidth:1,background:"#ffffff"},title:b,seriesDefaults:{renderer:$.jqplot.PieRenderer,rendererOptions:{showDataLabels:true}},legend:{show:true,location:"e"},highlighter:{show:true,tooltipLocation:"sw",useAxesFormatters:false,tooltipContentEditor:function(h,d,e,f){var g="<div>";g+='<span class="mfigure">'+format_number(f.data[0][e][1])+" <small>"+f.data[0][e][0]+"</small></span>";g+="</div>";return g}}})}function create_bargraph(e,d,a,c,b){return $.jqplot(e,c,{grid:{borderWidth:1,background:"#ffffff"},title:d,seriesDefaults:{rendererOptions:{barPadding:4,barMargin:5,}},seriesColors:["#6e9dc9","#8dbd0f","#f4ab3a","#ac7fa8","#958c12","#953579","#4b5de4","#d8b83f","#ff5800","#0085cc"],series:[{renderer:$.jqplot.BarRenderer,label:a},{yaxis:"y2axis",label:b,markerOptions:{show:false},lineWidth:1}],axes:{xaxis:{renderer:$.jqplot.CategoryAxisRenderer,drawMajorGridlines:false,drawMajorTickMarks:false,tickRenderer:$.jqplot.CanvasAxisTickRenderer,tickOptions:{angle:-30,textColor:"#333",formatString:"%H:%M",fontFamily:"Helvetica",fontSize:"8pt"}},yaxis:{autoscale:true,labelRenderer:$.jqplot.CanvasAxisLabelRenderer,tickOptions:{textColor:"#333"},tickRenderer:$.jqplot.CanvasAxisTickRenderer,tickOptions:{textColor:"#333",formatter:function(g,f){return pretty_print_number(f,1,a)},fontFamily:"Helvetica",fontSize:"8pt"},label:a},y2axis:{autoscale:true,labelRenderer:$.jqplot.CanvasAxisLabelRenderer,tickRenderer:$.jqplot.CanvasAxisTickRenderer,tickOptions:{textColor:"#8dbd0f",formatter:function(g,f){return pretty_print_number(f,1,b)},fontFamily:"Helvetica",fontSize:"8pt"},rendererOptions:{alignTicks:true,},label:b,}},highlighter:{show:true,tooltipLocation:"ne",useAxesFormatters:false,tooltipContentEditor:function(l,f,h,j){var k='<div style="z-index: 99;">At '+j.data[0][h][0];for(var g=0;g<j.data.length;g++){k+='<br><span class="mfigure">'+pretty_print_number(j.data[g][h][1],2,j.series[g].label)+" <small>"+j.series[g].label+"</small></span>"}k+="</div>";return k}}})}function pretty_print_number(c,b,a){if((b==undefined)||((b==0)&&(c!=0))){b=1}if(a!=undefined){a=a.toLowerCase();if(a.search("size")>=0){if(Math.abs(c)>=1125899906842624){c=(c/1125899906842624);return c.toFixed(b)+" PiB"}else{if(Math.abs(c)>=1099511627776){c=(c/1099511627776);return c.toFixed(b)+" TiB"}else{if(Math.abs(c)>=1073741824){c=(c/1073741824);return c.toFixed(b)+" GiB"}else{if(Math.abs(c)>=1048576){c=(c/1048576);return c.toFixed(b)+" MiB"}else{if(Math.abs(c)>=1024){c=(c/1024);return c.toFixed(b)+" KiB"}else{return c+" B"}}}}}}else{if(a.search("duration")>=0){if(Math.abs(c)>=1000){c=(c/1000);return c.toFixed(b)+" sec"}else{return c.toFixed(b)+" ms"}}else{if(Math.abs(c)>=1000000000000000){c=(c/1000000000000000);return c.toFixed(b)+" P"}else{if(Math.abs(c)>=1000000000000){c=(c/1000000000000);return c.toFixed(b)+" T"}else{if(Math.abs(c)>=1000000000){c=(c/1000000000);return c.toFixed(b)+" G"}else{if(Math.abs(c)>=1000000){c=(c/1000000);return c.toFixed(b)+" M"}else{if(Math.abs(c)>=1000){c=(c/1000);return c.toFixed(b)+" K"}}}}}}}}return c.toFixed(b)}function format_number(a){var f=2;var h=",";var k=Math.round(Math.pow(10,f)*(Math.abs(a)-Math.floor(Math.abs(a))));a=Math.floor(Math.abs(a));if((f==0)||(k==Math.pow(10,f))){k=0}var c=a+"";var g=c.length;for(var e=1;e<4;e++){if(a>=Math.pow(10,(3*e))){c=c.substring(0,g-(3*e))+h+c.substring(g-(3*e))}}if(f>0){var b="";for(var d=0;d<(f-k.toString().length);d++){b+="0"}k=b+k.toString();if(k>0){c=c+"."+k}}if(parseFloat(a)<0){c="-"+c}return c};
|
||
</script>
|
||
</head>
|
||
<body>
|
||
<div class="navbar navbar-inverse navbar-fixed-top">
|
||
<div class="container-fluid">
|
||
<div class="navbar-header">
|
||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||
<span class="icon-bar"></span>
|
||
<span class="icon-bar"></span>
|
||
<span class="icon-bar"></span>
|
||
</button>
|
||
<a data-placement="bottom" rel="tooltip" data-original-title="PostgreSQL Log Analyzer" href="" id="pgbadger-brand" class="navbar-brand"><img src="data:image/png;base64,
|
||
iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAYAAAAe2bNZAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A
|
||
/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB94ICA0KBOR+CxEAAAaZSURBVFjD
|
||
vVhdTFNbFv76B0WwNkIlMq0ElMSmhTCNKCigQIaQSEXFS1DxP0E04UUFiRoYnAxqfPDBPzBEQgAJ
|
||
kmu8IwESjZkhAZQgiPFFRo2ZBIXgAA20YCvnm4e556S9tPx49a7kpHvvtffa31nnW2uvXeAHyYUL
|
||
F5a8Rr7UBbdu3ZLaJSUlfw4ODj4WEBBQoNPpjm/btu0voq6npwc/VA4dOgQAIKmMj48vCwoKGlUo
|
||
FARAmUxGf39/W1JSUndXV9dy/BFSXFycqtFoJgEQANVqNSsqKmg2mymOKZVKV0pKytnvuvG+ffuk
|
||
9o4dO+KMRuPPMpmMAKjX61leXk53efDgAWNjYwlAAMC1a9f+Jy4uLqm1tdX/dwE5ceIEAKCmpibC
|
||
YDDc0ev1AgAGBgby+vXrfP/+vUAvYrfbhXv37jE6OloAQJ1OR51O98v58+czRNuCICwOxMaNG6V2
|
||
fn7+nWXLlv1X9IZCoRA2bNjAvXv3ChcvXuTw8PAcMFVVVczLy2NqaioDAgKkTxcQEDCTnJz8r6VG
|
||
i9xkMpljYmIcoiHR7e6PWq1mZWWlB5APHz5Qr9fzt3PdbWg0Gubk5Oy7evWqCgCGh4fngqioqAAA
|
||
REdH/02r1foEAYBRUVFsb28nSQqC4PE7Pj7OlJQUn2DEF9Hr9Y0kFT69Ul1dnSaGqi8gANjf3+8B
|
||
QBSxPzo6yk2bNvnykGTbYrH8AwCOHz8+F4zFYpnPAAFw586dtNvtXEhu3769oK3/pyyqvWbgvr6+
|
||
BTnV3d0Nh8PhU08SLpcLr1+/XhRH6+rqIr/5OBgZGcHg4KBPvUwmw8jICG7evLkoezKZTPbNYADg
|
||
xo0b8+p7e3u/S9LlYh9vIhJ4MdwTn7q6OtPv8gwAFBUVSRxx/0SDg4OL4t6SS4j4+Hj09/ejtbUV
|
||
W7Zs8dA9fPhwDnEBoLS01GN83bp1qK+vx4sXL6Qj5pvAyOVyxMbGIiQkBJ2dncjOzobRaISYObu6
|
||
uiDyT/zt6OgAACiVSpSUlODt27d48+YNLBaLNEehUEAuly8MJigoCJGRkZDJZOjr60NbWxsmJiZg
|
||
MBgQHh6OrKwsAMDU1BRqamo81jY0NGBsbAwAsH//fmzevBkGgwEOhwM2mw3379+XvKXT6RYG43K5
|
||
cOrUKWi1WszMzCAvLw/Nzc3IyMhAcHAwmpubPcJ8enpa6j99+hRfvnwBALS3t6OrqwuZmZlwuVww
|
||
m834/PkzVCoVEhMToVarF44mlUrFx48fMyEhwYP1fn5+lMvlHmOxsbEcGhoiSc7MzHDXrl1zosXf
|
||
39+jv2rVKr569YqrV69eXDRNTU2htrYWfn5+0pjT6ZxThwwNDWFiYkLSe8vMoqdEXhUXF0OlUnlE
|
||
4bxgvn79iqioKAwMDMBsNvt0o0qlglKplMjubQNRwsLCUF1djdOnT8PhcMAt8frOwO5vv379enR2
|
||
diIjI8PrBmlpaQgPDwcABAYGYuvWrV7nhYaG4tGjRzh69KjEy9nZWdFzX7wu2r59uwCAZWVlnJ2d
|
||
9ciukZGRHt++o6PDaxa22WwMDg72mDs+Pu4xp76+Xiol3E9tD7l8+bJGo9EQAFNTU4WXL196gDIa
|
||
jQTAZ8+eSWPT09O02+2cnp6W5k5NTVGpVFKhUEgEJ8l3797xzJkzwq8lLI8cOdL4ax3lCSQ/Px8A
|
||
kJycnC9eReRyuXD48GF+/PiRJDkwMMCIiAiOjY2xra2NOTk5zMrKYmZmJrOyspiTk8NLly6RJI8d
|
||
O8aqqiqSpNPp5Llz5ygW9StWrGBMTMx1AMjNzcW89YjVav2T1Wr9p+jmoKAg4eTJkyTJwsJC2mw2
|
||
pqWlzXuI3r17lyRZW1vLsLAwwa26s5tMJnNlZaVsSXfk0tLSpJCQkA9yufwrAIaEhAg9PT389OmT
|
||
8Pz5c1+nMJ1Op9Da2sr09HRBvG0uX758fPfu3edF2wkJCYs/QcvLy6W20Wj868qVK1+KG3Z3dwsk
|
||
2dvby7NnzzIxMZFFRUVsamoiSWF0dFQqI8LDw4U1a9bcaWhoiACAPXv2fFuZUFBQILWzs7PD0tPT
|
||
/65Wq6nVaklSIMnGxkYePHiQ165d4+TkJEnSarUSAE0m08+5ublxv72rfzchuTo0NPT9gQMHvIZ2
|
||
S0sLAUxeuXIl9Yde+t2LpvT09J9yc3P/3dLS4uzp6eGTJ0+EwsLCz9HR0WUklQBQWFj4Y/+FIImo
|
||
qCixqwXwk8FgKACwPy8vzyIqmpqa8IeJG6DvJv8DFUCCOQ08CmkAAAAASUVORK5CYII=
|
||
" class="pull-left" style="width:50px;height:auto"> pgBadger</a>
|
||
</div>
|
||
<div class="collapse navbar-collapse">
|
||
<ul class="nav navbar-nav" id="navigation">
|
||
|
||
<li id="menu-overview" class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Overview <span class="caret"></span></a>
|
||
<ul class="dropdown-menu">
|
||
<li><a href="#global-stats">Global Stats</a></li>
|
||
|
||
<li><a href="#sql-traffic">SQL Traffic</a></li>
|
||
<li><a href="#select-traffic">Select Traffic</a></li>
|
||
<li><a href="#write-traffic">Write Traffic</a></li>
|
||
<li><a href="#duration-traffic">Queries duration</a></li>
|
||
<li><a href="#prepared-queries-ratio">Prepared queries ratio</a></li>
|
||
<li><a href="#general-activity">General Activity</a></li>
|
||
|
||
</ul>
|
||
</li>
|
||
|
||
<li id="menu-connections" class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Connections <span class="caret"></span></a>
|
||
<ul class="dropdown-menu">
|
||
|
||
<li><a href="#established-connections">Established connections</a></li>
|
||
|
||
<li><a href="#connections-per-database">Connections per database</a></li>
|
||
<li><a href="#connections-per-user">Connections per user</a></li>
|
||
<li><a href="#connections-per-host">Connections per host</a></li>
|
||
</ul>
|
||
</li>
|
||
|
||
<li id="menu-sessions" class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Sessions <span class="caret"></span></a>
|
||
<ul class="dropdown-menu">
|
||
|
||
<li><a href="#simultaneous-sessions">Simultaneous sessions</a></li>
|
||
|
||
<li><a href="#histogram-session-times">Histogram of sessions times</a></li>
|
||
<li><a href="#sessions-per-database">Sessions per database</a></li>
|
||
<li><a href="#sessions-per-user">Sessions per user</a></li>
|
||
<li><a href="#sessions-per-host">Sessions per host</a></li>
|
||
<li><a href="#sessions-per-app">Sessions per application</a></li>
|
||
</ul>
|
||
</li>
|
||
|
||
<li id="menu-checkpoints" class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Checkpoints <span class="caret"></span></a>
|
||
<ul class="dropdown-menu">
|
||
<li><a href="#checkpoints-buffers">Checkpoints buffers</a></li>
|
||
<li><a href="#checkpoints-files">Checkpoints files</a></li>
|
||
<li><a href="#checkpoints-distance">Checkpoints distance</a></li>
|
||
<li><a href="#checkpoint-activity">Checkpoint activity</a></li>
|
||
</ul>
|
||
</li>
|
||
|
||
<li id="menu-tempfiles" class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Temp Files <span class="caret"></span></a>
|
||
<ul class="dropdown-menu">
|
||
<li><a href="#tempfiles-size">Size of temporary files</a></li>
|
||
<li><a href="#tempfiles-number">Number of temporary files</a></li>
|
||
<li><a href="#tempfiles-activity">Temporary files activity</a></li>
|
||
<li class="divider"></li>
|
||
<li><a href="#queries-generating-most-temporary-files">Queries generating the most files (N)</a></li>
|
||
<li><a href="#queries-generating-largest-temporary-files">Queries generating the largest files</a></li>
|
||
</ul>
|
||
</li>
|
||
|
||
<li id="menu-vacuums" class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Vacuums <span class="caret"></span></a>
|
||
<ul class="dropdown-menu">
|
||
<li><a href="#vacuums-count">Vacuums distribution</a></li>
|
||
<li><a href="#vacuums-activity">Vacuums activity</a></li>
|
||
<li><a href="#analyzes-per-table">Analyzes per Tables</a></li>
|
||
<li><a href="#vacuums-per-table">Vacuums per Tables</a></li>
|
||
<li><a href="#tuples-removed-per-table">Tuples removed</a></li>
|
||
<li><a href="#pages-removed-per-table">Page removed</a></li>
|
||
</ul>
|
||
</li>
|
||
|
||
<li id="menu-locks" class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Locks <span class="caret"></span></a>
|
||
<ul class="dropdown-menu">
|
||
<li><a href="#locks-type">Locks by type</a></li>
|
||
<li class="divider"></li>
|
||
<li><a href="#queries-most-frequent-waiting">Most frequent waiting queries (N)</a></li>
|
||
<li><a href="#queries-that-waited-most">Queries that waited the most</a></li>
|
||
</ul>
|
||
</li>
|
||
|
||
<li id="menu-queries" class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Queries <span class="caret"></span></a>
|
||
<ul class="dropdown-menu">
|
||
<li><a href="#queries-by-type">Queries by type</a></li>
|
||
<li><a href="#queries-by-database">Queries by database</a></li>
|
||
<li><a href="#queries-by-user">Queries by user</a></li>
|
||
<li><a href="#duration-by-user">Duration by user</a></li>
|
||
<li><a href="#queries-by-host">Queries by host</a></li>
|
||
<li><a href="#queries-by-application">Queries by application</a></li>
|
||
<li class="divider"></li>
|
||
<li><a href="#queries-cancelled-number">Number of cancelled queries</a></li>
|
||
|
||
</ul>
|
||
</li>
|
||
|
||
<li id="menu-topqueries" class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Top <span class="caret"></span></a>
|
||
<ul class="dropdown-menu">
|
||
<li><a href="#histogram-query-times">Histogram of query times</a></li>
|
||
<li><a href="#slowest-individual-queries">Slowest individual queries</a></li>
|
||
<li><a href="#time-consuming-queries">Time Consuming queries (N)</a></li>
|
||
<li><a href="#most-frequent-queries">Most frequent queries (N)</a></li>
|
||
<li><a href="#normalized-slowest-queries">Normalized slowest queries</a></li>
|
||
</ul>
|
||
</li>
|
||
|
||
<li id="menu-events" class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Events <span class="caret"></span></a>
|
||
<ul class="dropdown-menu">
|
||
<li><a href="#log-levels">Log levels</a></li>
|
||
<li><a href="#minutes-errors-levels">Events distribution</a></li>
|
||
|
||
<li class="divider"></li>
|
||
<li><a href="#most-frequent-errors-events">Most frequent errors/events</a></li>
|
||
</ul>
|
||
</li>
|
||
|
||
<li id="menu-info" class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#global-stats"><i class="glyphicon icon-info-sign icon-large"></i></a>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="top"><br /><br /></div>
|
||
<div class="container" id="main-container">
|
||
|
||
<ul id="slides">
|
||
|
||
<li class="slide" id="info-slide">
|
||
|
||
<div class="row analysis-item" id="global-info">
|
||
<h2 class=""><i class="glyphicon icon-info-sign"></i> Global information</h2>
|
||
<div class="tab-content">
|
||
<div class="tab-pane active" id="tab-info">
|
||
|
||
<ul>
|
||
<li>Generated on Mon Mar 18 15:00:27 2019</li>
|
||
<li>Log file: //var/log/postgresql/postgresql-2019-03-14_012706.log.1, ..., //var/log/postgresql/postgresql-2019-03-18_085726.log</li>
|
||
<li>Parsed 169,231 log entries in 26s</li>
|
||
<li>Log start from 2019-03-14 01:27:06 to 2019-03-18 16:00:04</li>
|
||
</ul>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</li>
|
||
|
||
|
||
<li class="slide active-slide" id="overview-slide">
|
||
|
||
<h1 class="page-header"><i class="glyphicon icon-eye-open"></i> Overview</h1>
|
||
|
||
<div class="row analysis-item" id="global-stats">
|
||
<h2 class=""><i class="glyphicon icon-dashboard"></i> Global Stats</h2>
|
||
<div class="tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#tab-queries" data-toggle="tab"><i class="glyphicon icon-question-sign"></i> Queries</a></li>
|
||
<li><a href="#tab-events" data-toggle="tab"><i class="glyphicon icon-bullhorn"></i> Events</a></li>
|
||
<li><a href="#tab-vacuums" data-toggle="tab"><i class="glyphicon icon-cogs"></i> Vacuums</a></li>
|
||
<li><a href="#tab-tempfiles" data-toggle="tab"><i class="glyphicon icon-file"></i> Temporary files</a></li>
|
||
<li><a href="#tab-sessions" data-toggle="tab"><i class="glyphicon icon-off"></i> Sessions</a></li>
|
||
<li><a href="#tab-connections" data-toggle="tab"><i class="glyphicon icon-external-link-sign"></i> Connections</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="tab-pane active" id="tab-queries">
|
||
<ul>
|
||
<li class="first"><span class="figure">5,822</span> <span class="figure-label">Number of unique normalized queries</span></li>
|
||
<li><span class="figure">68,477</span> <span class="figure-label">Number of queries</span></li>
|
||
<li><span class="figure">47m16s</span> <span class="figure-label">Total query duration</span></li>
|
||
<li><span class="figure">2019-03-14 01:27:07</span> <span class="figure-label">First query</span></li>
|
||
<li><span class="figure">2019-03-18 16:00:04</span> <span class="figure-label">Last query</span></li>
|
||
<li><span class="figure">5,392 queries/s at 2019-03-15 16:35:01</span> <span class="figure-label">Query peak</span></li>
|
||
</ul>
|
||
</div>
|
||
<div class="tab-pane" id="tab-events">
|
||
<ul>
|
||
<li class="first"><span class="figure">21</span> <span class="figure-label">Number of events</span></li>
|
||
<li><span class="figure">11</span> <span class="figure-label">Number of unique normalized events</span></li>
|
||
<li><span class="figure">4</span> <span class="figure-label">Max number of times the same event was reported</span></li>
|
||
<li><span class="figure">0</span> <span class="figure-label">Number of cancellation</span></li>
|
||
</ul>
|
||
</div>
|
||
<div class="tab-pane" id="tab-vacuums">
|
||
<ul>
|
||
<li class="first"><span class="figure">5</span> <span class="figure-label">Total number of automatic vacuums</span></li>
|
||
<li><span class="figure">9</span> <span class="figure-label">Total number of automatic analyzes</span></li>
|
||
</ul>
|
||
</div>
|
||
<div class="tab-pane" id="tab-tempfiles">
|
||
<ul>
|
||
<li class="first"><span class="figure">21</span> <span class="figure-label">Number temporary file</span></li>
|
||
<li><span class="figure">778.25 MiB</span> <span class="figure-label">Max size of temporary file</span></li>
|
||
<li><span class="figure">448.43 MiB</span> <span class="figure-label">Average size of temporary file</span></li>
|
||
</ul>
|
||
</div>
|
||
<div class="tab-pane" id="tab-sessions">
|
||
<ul>
|
||
<li class="first"><span class="figure">125</span> <span class="figure-label">Total number of sessions</span></li>
|
||
<li><span class="figure">9 sessions at 2019-03-15 16:48:38</span> <span class="figure-label">Session peak</span></li>
|
||
<li><span class="figure">2d7h17m58s</span> <span class="figure-label">Total duration of sessions</span></li>
|
||
<li><span class="figure">26m32s</span> <span class="figure-label">Average duration of sessions</span></li>
|
||
<li><span class="figure">547</span> <span class="figure-label">Average queries per session</span></li>
|
||
<li><span class="figure">22s691ms</span> <span class="figure-label">Average queries duration per session</span></li>
|
||
|
||
</ul>
|
||
</div>
|
||
<div class="tab-pane" id="tab-connections">
|
||
<ul>
|
||
<li class="first"><span class="figure">130</span> <span class="figure-label">Total number of connections</span></li>
|
||
|
||
<li><span class="figure">5 connections/s at 2019-03-18 09:00:08</span> <span class="figure-label">Connection peak</span></li>
|
||
|
||
<li><span class="figure">3</span> <span class="figure-label">Total number of databases</span></li>
|
||
</ul>
|
||
</div>
|
||
</div> <!-- end div tab-content -->
|
||
</div> <!-- end div tabbable -->
|
||
</div> <!-- end div global-stats -->
|
||
|
||
<div id="sql-traffic" class="analysis-item row">
|
||
<h2 class=""><i class="glyphicon icon-road"></i> SQL Traffic</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">5,392 queries/s</span> <span class="figure-label">Query Peak</span></li>
|
||
<li><span class="figure">2019-03-15 16:35:01</span> <span class="figure-label">Date</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div id="queriespersecond_graph" class="jqplot-graph linegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var queriespersecond_graph_1_d1 = [[1552544700000, 6],[1552545000000, 0],[1552545300000, 10],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 2],[1552576800000, 30],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 18],[1552578600000, 2],[1552578900000, 2],[1552579200000, 2],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 4],[1552581000000, 0],[1552581300000, 2],[1552581600000, 2],[1552581900000, 0],[1552582200000, 2],[1552582500000, 4],[1552582800000, 2],[1552583100000, 2],[1552583400000, 0],[1552583700000, 2],[1552584000000, 2],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 2],[1552599000000, 0],[1552599300000, 3888],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 29],[1552601400000, 12],[1552601700000, 2],[1552602000000, 19],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 2],[1552626600000, 32],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 13],[1552629000000, 30],[1552629300000, 2],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 4],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 30],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 8],[1552661700000, 0],[1552662000000, 4],[1552662300000, 2],[1552662600000, 2],[1552662900000, 0],[1552663200000, 2],[1552663500000, 1],[1552663800000, 1],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 2],[1552665300000, 2],[1552665600000, 2],[1552665900000, 0],[1552666200000, 2],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 2],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 2],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 2],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 8],[1552676700000, 12],[1552677000000, 0],[1552677300000, 2],[1552677600000, 1],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 8],[1552680300000, 1],[1552680600000, 2],[1552680900000, 2],[1552681200000, 2],[1552681500000, 0],[1552681800000, 0],[1552682100000, 2],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 8],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 2],[1552685700000, 5392],[1552686000000, 2],[1552686300000, 15],[1552686600000, 0],[1552686900000, 0],[1552687200000, 8],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 25],[1552689300000, 6],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 2],[1552717500000, 2],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 4],[1552917600000, 62],[1552917900000, 2],[1552918200000, 2],[1552918500000, 2],[1552918800000, 0],[1552919100000, 10],[1552919400000, 16],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 6],[1552920900000, 8],[1552921200000, 6],[1552921500000, 19],[1552921800000, 2],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 8],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 8],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 2],[1552931700000, 0],[1552932000000, 8],[1552932300000, 4],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 8],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 2],[1552937100000, 0],[1552937400000, 0],[1552937700000, 2],[1552938000000, 2],[1552938300000, 2],[1552938600000, 2],[1552938900000, 0],[1552939200000, 8],[1552939500000, 2],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 2],[1552941600000, 2],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 6],[1552943100000, 0]];
|
||
var queriespersecond_graph_1_d2 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 0],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 0],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 0],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 0],[1552582800000, 0],[1552583100000, 0],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 107],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 0],[1552601700000, 0],[1552602000000, 0],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 0],[1552629000000, 0],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 0],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 0],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 0],[1552677000000, 0],[1552677300000, 0],[1552677600000, 0],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 107],[1552686000000, 0],[1552686300000, 0],[1552686600000, 0],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 1],[1552917900000, 1],[1552918200000, 2],[1552918500000, 1],[1552918800000, 0],[1552919100000, 0],[1552919400000, 0],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 0],[1552920900000, 0],[1552921200000, 0],[1552921500000, 0],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 0],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
var queriespersecond_graph_1_d3 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 0],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 0],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 0],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 0],[1552582800000, 0],[1552583100000, 0],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 0],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 0],[1552601700000, 0],[1552602000000, 0],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 0],[1552629000000, 0],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 0],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 0],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 0],[1552677000000, 0],[1552677300000, 0],[1552677600000, 0],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 0],[1552686000000, 0],[1552686300000, 0],[1552686600000, 0],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 0],[1552919400000, 0],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 0],[1552920900000, 0],[1552921200000, 0],[1552921500000, 0],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 0],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
|
||
var series_arr = [ { label: "Maximum", color: "#6e9dc9" },{ label: "Average", color: "#f4ab3a" },{ label: "Minimum", color: "#ac7fa8" } ];
|
||
|
||
create_download_button(1, 'btn btn-default');
|
||
var queriespersecond_graph = create_linegraph('queriespersecond_graph', 'Queries per second (5 minutes average)', 'Queries per second', series_arr, [queriespersecond_graph_1_d1,queriespersecond_graph_1_d2,queriespersecond_graph_1_d3]);
|
||
add_download_button_event(1, 'queriespersecond_graph');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
</div><!-- end of sql-traffic -->
|
||
|
||
<div id="select-traffic" class="analysis-item row">
|
||
<h2 class=""><i class="glyphicon icon-road"></i> SELECT Traffic</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">2,501 queries/s</span> <span class="figure-label">Query Peak</span></li>
|
||
<li><span class="figure">2019-03-15 16:35:05</span> <span class="figure-label">Date</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div id="selectqueries_graph" class="jqplot-graph linegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var selectqueries_graph_4_d1 = [[1552544700000, 3],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 1],[1552576800000, 5],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 9],[1552578600000, 1],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 2],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 1],[1552582800000, 0],[1552583100000, 0],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 1944],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 6],[1552601400000, 2],[1552601700000, 0],[1552602000000, 3],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 1],[1552626600000, 16],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 3],[1552629000000, 6],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 2],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 5],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 3],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 1],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 3],[1552676700000, 3],[1552677000000, 0],[1552677300000, 1],[1552677600000, 0],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 3],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 3],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 2501],[1552686000000, 0],[1552686300000, 3],[1552686600000, 0],[1552686900000, 0],[1552687200000, 3],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 6],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 1],[1552717500000, 1],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 2],[1552917600000, 26],[1552917900000, 1],[1552918200000, 1],[1552918500000, 1],[1552918800000, 0],[1552919100000, 3],[1552919400000, 3],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 3],[1552920900000, 0],[1552921200000, 3],[1552921500000, 3],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 3],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 3],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 1],[1552931700000, 0],[1552932000000, 3],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 3],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 3],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 3],[1552943100000, 0]];
|
||
var selectqueries_graph_4_d2 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 0],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 0],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 0],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 0],[1552582800000, 0],[1552583100000, 0],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 36],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 0],[1552601700000, 0],[1552602000000, 0],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 0],[1552629000000, 0],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 0],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 0],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 0],[1552677000000, 0],[1552677300000, 0],[1552677600000, 0],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 36],[1552686000000, 0],[1552686300000, 0],[1552686600000, 0],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 1],[1552918500000, 0],[1552918800000, 0],[1552919100000, 0],[1552919400000, 0],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 0],[1552920900000, 0],[1552921200000, 0],[1552921500000, 0],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 0],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
var selectqueries_graph_4_d3 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 0],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 0],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 0],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 0],[1552582800000, 0],[1552583100000, 0],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 0],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 0],[1552601700000, 0],[1552602000000, 0],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 0],[1552629000000, 0],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 0],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 0],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 0],[1552677000000, 0],[1552677300000, 0],[1552677600000, 0],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 0],[1552686000000, 0],[1552686300000, 0],[1552686600000, 0],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 0],[1552919400000, 0],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 0],[1552920900000, 0],[1552921200000, 0],[1552921500000, 0],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 0],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
|
||
var series_arr = [ { label: "Maximum", color: "#6e9dc9" },{ label: "Average", color: "#f4ab3a" },{ label: "Minimum", color: "#ac7fa8" } ];
|
||
|
||
create_download_button(4, 'btn btn-default');
|
||
var selectqueries_graph = create_linegraph('selectqueries_graph', 'SELECT queries (5 minutes period)', 'Queries per second', series_arr, [selectqueries_graph_4_d1,selectqueries_graph_4_d2,selectqueries_graph_4_d3]);
|
||
add_download_button_event(4, 'selectqueries_graph');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
</div><!-- end of select-traffic -->
|
||
|
||
<div id="write-traffic" class="analysis-item row">
|
||
<h2 class=""><i class="glyphicon icon-road"></i> INSERT/UPDATE/DELETE Traffic</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">948 queries/s</span> <span class="figure-label">Query Peak</span></li>
|
||
<li><span class="figure">2019-03-15 16:35:15</span> <span class="figure-label">Date</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div id="writequeries_graph" class="jqplot-graph linegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var writequeries_graph_5_d1 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 0],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 0],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 0],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 0],[1552582800000, 0],[1552583100000, 0],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 0],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 0],[1552601700000, 0],[1552602000000, 0],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 0],[1552629000000, 0],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 0],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 0],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 0],[1552677000000, 0],[1552677300000, 0],[1552677600000, 0],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 0],[1552686000000, 0],[1552686300000, 0],[1552686600000, 0],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 0],[1552919400000, 0],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 0],[1552920900000, 0],[1552921200000, 0],[1552921500000, 0],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 0],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
var writequeries_graph_5_d2 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 0],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 0],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 0],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 0],[1552582800000, 0],[1552583100000, 0],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 0],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 0],[1552601700000, 0],[1552602000000, 0],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 0],[1552629000000, 0],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 0],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 0],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 0],[1552677000000, 0],[1552677300000, 0],[1552677600000, 0],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 0],[1552686000000, 0],[1552686300000, 0],[1552686600000, 0],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 0],[1552919400000, 0],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 0],[1552920900000, 0],[1552921200000, 0],[1552921500000, 0],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 0],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
var writequeries_graph_5_d3 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 0],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 0],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 0],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 0],[1552582800000, 0],[1552583100000, 0],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 0],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 0],[1552601700000, 0],[1552602000000, 0],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 0],[1552629000000, 0],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 0],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 0],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 0],[1552677000000, 0],[1552677300000, 0],[1552677600000, 0],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 0],[1552686000000, 0],[1552686300000, 0],[1552686600000, 0],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 0],[1552919400000, 0],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 0],[1552920900000, 0],[1552921200000, 0],[1552921500000, 0],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 0],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
|
||
var series_arr = [ { label: "DELETE queries", color: "#6e9dc9" },{ label: "INSERT queries", color: "#f4ab3a" },{ label: "UPDATE queries", color: "#ac7fa8" } ];
|
||
|
||
create_download_button(5, 'btn btn-default');
|
||
var writequeries_graph = create_linegraph('writequeries_graph', 'Write queries (5 minutes period)', 'Queries', series_arr, [writequeries_graph_5_d1,writequeries_graph_5_d2,writequeries_graph_5_d3]);
|
||
add_download_button_event(5, 'writequeries_graph');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
</div><!-- end of write-traffic -->
|
||
|
||
<div id="duration-traffic" class="analysis-item row">
|
||
<h2 class=""><i class="glyphicon icon-time"></i> Queries duration</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">47m16s</span> <span class="figure-label">Total query duration</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div id="durationqueries_graph" class="jqplot-graph linegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var durationqueries_graph_6_d1 = [[1552544700000, 9.632],[1552545000000, 0.000],[1552545300000, 0.412],[1552545600000, 0.000],[1552545900000, 0.000],[1552546200000, 0.000],[1552546500000, 0.000],[1552575600000, 0.000],[1552575900000, 0.000],[1552576200000, 0.000],[1552576500000, 5.442],[1552576800000, 0.322],[1552577100000, 0.000],[1552577400000, 0.000],[1552577700000, 0.000],[1552578000000, 0.000],[1552578300000, 54.376],[1552578600000, 139.289],[1552578900000, 128.551],[1552579200000, 133.266],[1552579500000, 0.000],[1552579800000, 0.000],[1552580100000, 0.000],[1552580400000, 0.000],[1552580700000, 115.394],[1552581000000, 0.000],[1552581300000, 138.179],[1552581600000, 169.281],[1552581900000, 0.000],[1552582200000, 141.950],[1552582500000, 115.346],[1552582800000, 127.443],[1552583100000, 111.348],[1552583400000, 0.000],[1552583700000, 113.880],[1552584000000, 135.105],[1552584300000, 0.000],[1552584600000, 0.000],[1552584900000, 0.000],[1552585200000, 0.000],[1552585500000, 0.000],[1552585800000, 0.000],[1552586100000, 0.000],[1552597200000, 0.000],[1552597500000, 0.000],[1552597800000, 0.000],[1552598100000, 0.000],[1552598400000, 0.000],[1552598700000, 142.081],[1552599000000, 0.000],[1552599300000, 5.451],[1552599600000, 0.000],[1552599900000, 0.000],[1552600200000, 0.000],[1552600500000, 0.000],[1552600800000, 0.000],[1552601100000, 2039.372],[1552601400000, 74.830],[1552601700000, 27560.233],[1552602000000, 1589.785],[1552602300000, 0.000],[1552602600000, 0.000],[1552602900000, 0.000],[1552603200000, 0.000],[1552603500000, 0.000],[1552603800000, 0.000],[1552604100000, 0.000],[1552618800000, 0.000],[1552619100000, 0.000],[1552619400000, 0.000],[1552619700000, 0.000],[1552620000000, 0.000],[1552620300000, 0.000],[1552620600000, 0.000],[1552620900000, 0.000],[1552621200000, 0.000],[1552621500000, 0.000],[1552621800000, 0.000],[1552622100000, 0.000],[1552622400000, 0.000],[1552622700000, 0.000],[1552623000000, 0.000],[1552623300000, 0.000],[1552623600000, 0.000],[1552623900000, 0.000],[1552624200000, 0.000],[1552624500000, 0.000],[1552624800000, 0.000],[1552625100000, 0.000],[1552625400000, 0.000],[1552625700000, 0.000],[1552626000000, 0.000],[1552626300000, 3.074],[1552626600000, 1.523],[1552626900000, 0.000],[1552627200000, 0.000],[1552627500000, 0.000],[1552627800000, 0.000],[1552628100000, 0.000],[1552628400000, 0.000],[1552628700000, 143.826],[1552629000000, 7334.939],[1552629300000, 0.706],[1552629600000, 0.000],[1552629900000, 0.000],[1552630200000, 0.000],[1552630500000, 4.537],[1552630800000, 0.000],[1552631100000, 0.000],[1552631400000, 0.000],[1552631700000, 0.000],[1552632000000, 0.000],[1552632300000, 0.000],[1552632600000, 0.000],[1552632900000, 0.000],[1552658400000, 0.000],[1552658700000, 0.000],[1552659000000, 0.000],[1552659300000, 97.243],[1552659600000, 0.000],[1552659900000, 0.000],[1552660200000, 0.000],[1552660500000, 0.000],[1552660800000, 0.000],[1552661100000, 0.000],[1552661400000, 1.867],[1552661700000, 0.000],[1552662000000, 626.553],[1552662300000, 140.587],[1552662600000, 148.225],[1552662900000, 0.000],[1552663200000, 131.078],[1552663500000, 153.515],[1552663800000, 134.989],[1552664100000, 0.000],[1552664400000, 0.000],[1552664700000, 0.000],[1552665000000, 142.496],[1552665300000, 125.322],[1552665600000, 143.279],[1552665900000, 0.000],[1552666200000, 166.714],[1552666500000, 0.000],[1552666800000, 0.000],[1552667100000, 0.000],[1552667400000, 0.000],[1552667700000, 0.000],[1552668000000, 0.000],[1552668300000, 0.000],[1552668600000, 0.000],[1552668900000, 196.692],[1552669200000, 0.000],[1552669500000, 0.000],[1552669800000, 0.000],[1552670100000, 0.000],[1552670400000, 0.000],[1552670700000, 0.000],[1552671000000, 0.000],[1552671300000, 0.000],[1552671600000, 0.000],[1552671900000, 138.855],[1552672200000, 0.000],[1552672500000, 0.000],[1552672800000, 0.000],[1552673100000, 0.000],[1552673400000, 0.000],[1552673700000, 0.000],[1552674000000, 0.203],[1552674300000, 0.000],[1552674600000, 0.000],[1552674900000, 0.000],[1552675200000, 0.000],[1552675500000, 0.000],[1552675800000, 0.000],[1552676100000, 0.000],[1552676400000, 2.182],[1552676700000, 1728.211],[1552677000000, 0.000],[1552677300000, 5.644],[1552677600000, 472.149],[1552677900000, 0.000],[1552678200000, 0.000],[1552678500000, 0.000],[1552678800000, 0.000],[1552679100000, 0.000],[1552679400000, 0.000],[1552679700000, 0.000],[1552680000000, 677.486],[1552680300000, 125.189],[1552680600000, 127.183],[1552680900000, 123.852],[1552681200000, 124.510],[1552681500000, 0.000],[1552681800000, 0.000],[1552682100000, 135.084],[1552682400000, 0.000],[1552682700000, 0.000],[1552683000000, 0.000],[1552683300000, 0.000],[1552683600000, 1.620],[1552683900000, 0.000],[1552684200000, 0.000],[1552684500000, 0.000],[1552684800000, 0.000],[1552685100000, 0.000],[1552685400000, 122.556],[1552685700000, 5.525],[1552686000000, 149.135],[1552686300000, 2107.592],[1552686600000, 0.000],[1552686900000, 0.000],[1552687200000, 1.654],[1552687500000, 0.000],[1552687800000, 0.000],[1552688100000, 0.000],[1552688400000, 0.000],[1552688700000, 0.000],[1552689000000, 2332.249],[1552689300000, 1.364],[1552689600000, 0.000],[1552689900000, 0.000],[1552690200000, 0.000],[1552690500000, 0.000],[1552694400000, 0.000],[1552694700000, 0.000],[1552695000000, 0.000],[1552695300000, 0.000],[1552695600000, 0.000],[1552695900000, 0.000],[1552696200000, 0.000],[1552696500000, 0.000],[1552696800000, 0.000],[1552697100000, 0.000],[1552697400000, 0.000],[1552697700000, 0.000],[1552701600000, 0.000],[1552701900000, 0.000],[1552702200000, 0.000],[1552702500000, 0.000],[1552702800000, 0.000],[1552703100000, 0.000],[1552703400000, 0.000],[1552703700000, 0.000],[1552704000000, 0.000],[1552704300000, 0.000],[1552704600000, 0.000],[1552704900000, 0.000],[1552716000000, 0.000],[1552716300000, 0.000],[1552716600000, 0.000],[1552716900000, 0.000],[1552717200000, 12.658],[1552717500000, 1.246],[1552717800000, 0.000],[1552718100000, 0.000],[1552718400000, 0.000],[1552718700000, 0.000],[1552719000000, 0.000],[1552719300000, 0.000],[1552719600000, 0.000],[1552719900000, 0.000],[1552720200000, 0.000],[1552720500000, 0.000],[1552720800000, 0.000],[1552721100000, 0.000],[1552721400000, 0.000],[1552721700000, 0.000],[1552722000000, 0.000],[1552722300000, 0.000],[1552722600000, 0.000],[1552722900000, 0.000],[1552730400000, 0.000],[1552730700000, 0.000],[1552731000000, 0.000],[1552731300000, 0.000],[1552731600000, 0.000],[1552731900000, 0.000],[1552732200000, 0.000],[1552732500000, 0.000],[1552732800000, 0.000],[1552733100000, 0.000],[1552733400000, 0.000],[1552733700000, 0.000],[1552780800000, 0.000],[1552781100000, 0.000],[1552781400000, 0.000],[1552781700000, 0.000],[1552782000000, 0.000],[1552782300000, 0.000],[1552782600000, 0.000],[1552782900000, 0.000],[1552783200000, 0.000],[1552783500000, 0.000],[1552783800000, 0.000],[1552784100000, 0.000],[1552914000000, 0.000],[1552914300000, 0.000],[1552914600000, 0.000],[1552914900000, 0.000],[1552915200000, 0.000],[1552915500000, 0.000],[1552915800000, 0.000],[1552916100000, 0.000],[1552916400000, 0.000],[1552916700000, 0.000],[1552917000000, 0.000],[1552917300000, 2.582],[1552917600000, 5.730],[1552917900000, 7.563],[1552918200000, 7.491],[1552918500000, 7.625],[1552918800000, 0.000],[1552919100000, 1141.308],[1552919400000, 1.745],[1552919700000, 0.000],[1552920000000, 0.000],[1552920300000, 0.000],[1552920600000, 3.867],[1552920900000, 0.458],[1552921200000, 3.745],[1552921500000, 1037.973],[1552921800000, 0.126],[1552922100000, 0.000],[1552922400000, 0.000],[1552922700000, 0.000],[1552923000000, 0.000],[1552923300000, 0.000],[1552923600000, 0.000],[1552923900000, 0.000],[1552924200000, 0.000],[1552924500000, 0.000],[1552924800000, 9.459],[1552925100000, 0.000],[1552925400000, 0.000],[1552925700000, 0.000],[1552926000000, 0.000],[1552926300000, 0.000],[1552926600000, 0.000],[1552926900000, 0.000],[1552927200000, 0.000],[1552927500000, 0.000],[1552927800000, 0.000],[1552928100000, 0.000],[1552928400000, 3.132],[1552928700000, 0.000],[1552929000000, 0.000],[1552929300000, 0.000],[1552929600000, 0.000],[1552929900000, 0.000],[1552930200000, 0.000],[1552930500000, 0.000],[1552930800000, 0.000],[1552931100000, 0.000],[1552931400000, 0.231],[1552931700000, 0.000],[1552932000000, 3.212],[1552932300000, 686.105],[1552932600000, 0.000],[1552932900000, 0.000],[1552933200000, 0.000],[1552933500000, 0.000],[1552933800000, 0.000],[1552934100000, 0.000],[1552934400000, 0.000],[1552934700000, 0.000],[1552935000000, 0.000],[1552935300000, 0.000],[1552935600000, 3.667],[1552935900000, 0.000],[1552936200000, 0.000],[1552936500000, 0.000],[1552936800000, 123.840],[1552937100000, 0.000],[1552937400000, 0.000],[1552937700000, 138.803],[1552938000000, 112.862],[1552938300000, 117.081],[1552938600000, 124.184],[1552938900000, 0.000],[1552939200000, 18.260],[1552939500000, 120.714],[1552939800000, 0.000],[1552940100000, 0.000],[1552940400000, 0.000],[1552940700000, 0.000],[1552941000000, 0.000],[1552941300000, 125.480],[1552941600000, 118.348],[1552941900000, 0.000],[1552942200000, 0.000],[1552942500000, 0.000],[1552942800000, 8.477],[1552943100000, 0.000]];
|
||
var durationqueries_graph_6_d2 = [[1552544700000, 0.000],[1552545000000, 0.000],[1552545300000, 0.000],[1552545600000, 0.000],[1552545900000, 0.000],[1552546200000, 0.000],[1552546500000, 0.000],[1552575600000, 0.000],[1552575900000, 0.000],[1552576200000, 0.000],[1552576500000, 0.000],[1552576800000, 0.000],[1552577100000, 0.000],[1552577400000, 0.000],[1552577700000, 0.000],[1552578000000, 0.000],[1552578300000, 0.000],[1552578600000, 0.000],[1552578900000, 0.000],[1552579200000, 0.000],[1552579500000, 0.000],[1552579800000, 0.000],[1552580100000, 0.000],[1552580400000, 0.000],[1552580700000, 0.000],[1552581000000, 0.000],[1552581300000, 0.000],[1552581600000, 0.000],[1552581900000, 0.000],[1552582200000, 0.000],[1552582500000, 0.000],[1552582800000, 0.000],[1552583100000, 0.000],[1552583400000, 0.000],[1552583700000, 0.000],[1552584000000, 0.000],[1552584300000, 0.000],[1552584600000, 0.000],[1552584900000, 0.000],[1552585200000, 0.000],[1552585500000, 0.000],[1552585800000, 0.000],[1552586100000, 0.000],[1552597200000, 0.000],[1552597500000, 0.000],[1552597800000, 0.000],[1552598100000, 0.000],[1552598400000, 0.000],[1552598700000, 0.000],[1552599000000, 0.000],[1552599300000, 0.000],[1552599600000, 0.000],[1552599900000, 0.000],[1552600200000, 0.000],[1552600500000, 0.000],[1552600800000, 0.000],[1552601100000, 0.000],[1552601400000, 0.000],[1552601700000, 0.000],[1552602000000, 0.000],[1552602300000, 0.000],[1552602600000, 0.000],[1552602900000, 0.000],[1552603200000, 0.000],[1552603500000, 0.000],[1552603800000, 0.000],[1552604100000, 0.000],[1552618800000, 0.000],[1552619100000, 0.000],[1552619400000, 0.000],[1552619700000, 0.000],[1552620000000, 0.000],[1552620300000, 0.000],[1552620600000, 0.000],[1552620900000, 0.000],[1552621200000, 0.000],[1552621500000, 0.000],[1552621800000, 0.000],[1552622100000, 0.000],[1552622400000, 0.000],[1552622700000, 0.000],[1552623000000, 0.000],[1552623300000, 0.000],[1552623600000, 0.000],[1552623900000, 0.000],[1552624200000, 0.000],[1552624500000, 0.000],[1552624800000, 0.000],[1552625100000, 0.000],[1552625400000, 0.000],[1552625700000, 0.000],[1552626000000, 0.000],[1552626300000, 0.000],[1552626600000, 0.000],[1552626900000, 0.000],[1552627200000, 0.000],[1552627500000, 0.000],[1552627800000, 0.000],[1552628100000, 0.000],[1552628400000, 0.000],[1552628700000, 0.000],[1552629000000, 0.000],[1552629300000, 0.000],[1552629600000, 0.000],[1552629900000, 0.000],[1552630200000, 0.000],[1552630500000, 0.000],[1552630800000, 0.000],[1552631100000, 0.000],[1552631400000, 0.000],[1552631700000, 0.000],[1552632000000, 0.000],[1552632300000, 0.000],[1552632600000, 0.000],[1552632900000, 0.000],[1552658400000, 0.000],[1552658700000, 0.000],[1552659000000, 0.000],[1552659300000, 206.130],[1552659600000, 0.000],[1552659900000, 0.000],[1552660200000, 0.000],[1552660500000, 0.000],[1552660800000, 0.000],[1552661100000, 0.000],[1552661400000, 0.000],[1552661700000, 0.000],[1552662000000, 0.000],[1552662300000, 0.000],[1552662600000, 0.000],[1552662900000, 0.000],[1552663200000, 0.000],[1552663500000, 0.000],[1552663800000, 0.000],[1552664100000, 0.000],[1552664400000, 0.000],[1552664700000, 0.000],[1552665000000, 0.000],[1552665300000, 0.000],[1552665600000, 0.000],[1552665900000, 0.000],[1552666200000, 0.000],[1552666500000, 0.000],[1552666800000, 0.000],[1552667100000, 0.000],[1552667400000, 0.000],[1552667700000, 0.000],[1552668000000, 0.000],[1552668300000, 0.000],[1552668600000, 0.000],[1552668900000, 0.000],[1552669200000, 0.000],[1552669500000, 0.000],[1552669800000, 0.000],[1552670100000, 0.000],[1552670400000, 0.000],[1552670700000, 0.000],[1552671000000, 0.000],[1552671300000, 0.000],[1552671600000, 0.000],[1552671900000, 0.000],[1552672200000, 0.000],[1552672500000, 0.000],[1552672800000, 0.000],[1552673100000, 0.000],[1552673400000, 0.000],[1552673700000, 0.000],[1552674000000, 0.000],[1552674300000, 0.000],[1552674600000, 0.000],[1552674900000, 0.000],[1552675200000, 0.000],[1552675500000, 0.000],[1552675800000, 0.000],[1552676100000, 0.000],[1552676400000, 0.000],[1552676700000, 0.000],[1552677000000, 0.000],[1552677300000, 0.000],[1552677600000, 0.000],[1552677900000, 0.000],[1552678200000, 0.000],[1552678500000, 0.000],[1552678800000, 0.000],[1552679100000, 0.000],[1552679400000, 0.000],[1552679700000, 0.000],[1552680000000, 0.000],[1552680300000, 0.000],[1552680600000, 0.000],[1552680900000, 0.000],[1552681200000, 0.000],[1552681500000, 0.000],[1552681800000, 0.000],[1552682100000, 0.000],[1552682400000, 0.000],[1552682700000, 0.000],[1552683000000, 0.000],[1552683300000, 0.000],[1552683600000, 0.000],[1552683900000, 0.000],[1552684200000, 0.000],[1552684500000, 0.000],[1552684800000, 0.000],[1552685100000, 0.000],[1552685400000, 0.000],[1552685700000, 0.000],[1552686000000, 0.000],[1552686300000, 0.000],[1552686600000, 0.000],[1552686900000, 0.000],[1552687200000, 0.000],[1552687500000, 0.000],[1552687800000, 0.000],[1552688100000, 0.000],[1552688400000, 0.000],[1552688700000, 0.000],[1552689000000, 0.000],[1552689300000, 0.000],[1552689600000, 0.000],[1552689900000, 0.000],[1552690200000, 0.000],[1552690500000, 0.000],[1552694400000, 0.000],[1552694700000, 0.000],[1552695000000, 0.000],[1552695300000, 0.000],[1552695600000, 0.000],[1552695900000, 0.000],[1552696200000, 0.000],[1552696500000, 0.000],[1552696800000, 0.000],[1552697100000, 0.000],[1552697400000, 0.000],[1552697700000, 0.000],[1552701600000, 0.000],[1552701900000, 0.000],[1552702200000, 0.000],[1552702500000, 0.000],[1552702800000, 0.000],[1552703100000, 0.000],[1552703400000, 0.000],[1552703700000, 0.000],[1552704000000, 0.000],[1552704300000, 0.000],[1552704600000, 0.000],[1552704900000, 0.000],[1552716000000, 0.000],[1552716300000, 0.000],[1552716600000, 0.000],[1552716900000, 0.000],[1552717200000, 0.000],[1552717500000, 0.000],[1552717800000, 0.000],[1552718100000, 0.000],[1552718400000, 0.000],[1552718700000, 0.000],[1552719000000, 0.000],[1552719300000, 0.000],[1552719600000, 0.000],[1552719900000, 0.000],[1552720200000, 0.000],[1552720500000, 0.000],[1552720800000, 0.000],[1552721100000, 0.000],[1552721400000, 0.000],[1552721700000, 0.000],[1552722000000, 0.000],[1552722300000, 0.000],[1552722600000, 0.000],[1552722900000, 0.000],[1552730400000, 0.000],[1552730700000, 0.000],[1552731000000, 0.000],[1552731300000, 0.000],[1552731600000, 0.000],[1552731900000, 0.000],[1552732200000, 0.000],[1552732500000, 0.000],[1552732800000, 0.000],[1552733100000, 0.000],[1552733400000, 0.000],[1552733700000, 0.000],[1552780800000, 0.000],[1552781100000, 0.000],[1552781400000, 0.000],[1552781700000, 0.000],[1552782000000, 0.000],[1552782300000, 0.000],[1552782600000, 0.000],[1552782900000, 0.000],[1552783200000, 0.000],[1552783500000, 0.000],[1552783800000, 0.000],[1552784100000, 0.000],[1552914000000, 0.000],[1552914300000, 0.000],[1552914600000, 0.000],[1552914900000, 0.000],[1552915200000, 0.000],[1552915500000, 0.000],[1552915800000, 0.000],[1552916100000, 0.000],[1552916400000, 0.000],[1552916700000, 0.000],[1552917000000, 0.000],[1552917300000, 0.000],[1552917600000, 0.000],[1552917900000, 0.000],[1552918200000, 0.000],[1552918500000, 0.000],[1552918800000, 0.000],[1552919100000, 0.000],[1552919400000, 0.000],[1552919700000, 0.000],[1552920000000, 0.000],[1552920300000, 0.000],[1552920600000, 0.000],[1552920900000, 0.000],[1552921200000, 0.000],[1552921500000, 0.000],[1552921800000, 0.000],[1552922100000, 0.000],[1552922400000, 0.000],[1552922700000, 0.000],[1552923000000, 0.000],[1552923300000, 0.000],[1552923600000, 0.000],[1552923900000, 0.000],[1552924200000, 0.000],[1552924500000, 0.000],[1552924800000, 0.000],[1552925100000, 0.000],[1552925400000, 0.000],[1552925700000, 0.000],[1552926000000, 0.000],[1552926300000, 0.000],[1552926600000, 0.000],[1552926900000, 0.000],[1552927200000, 0.000],[1552927500000, 0.000],[1552927800000, 0.000],[1552928100000, 0.000],[1552928400000, 0.000],[1552928700000, 0.000],[1552929000000, 0.000],[1552929300000, 0.000],[1552929600000, 0.000],[1552929900000, 0.000],[1552930200000, 0.000],[1552930500000, 0.000],[1552930800000, 0.000],[1552931100000, 0.000],[1552931400000, 0.000],[1552931700000, 0.000],[1552932000000, 0.000],[1552932300000, 0.000],[1552932600000, 0.000],[1552932900000, 0.000],[1552933200000, 0.000],[1552933500000, 0.000],[1552933800000, 0.000],[1552934100000, 0.000],[1552934400000, 0.000],[1552934700000, 0.000],[1552935000000, 0.000],[1552935300000, 0.000],[1552935600000, 0.000],[1552935900000, 0.000],[1552936200000, 0.000],[1552936500000, 0.000],[1552936800000, 0.000],[1552937100000, 0.000],[1552937400000, 0.000],[1552937700000, 0.000],[1552938000000, 0.000],[1552938300000, 0.000],[1552938600000, 0.000],[1552938900000, 0.000],[1552939200000, 0.000],[1552939500000, 0.000],[1552939800000, 0.000],[1552940100000, 0.000],[1552940400000, 0.000],[1552940700000, 0.000],[1552941000000, 0.000],[1552941300000, 0.000],[1552941600000, 0.000],[1552941900000, 0.000],[1552942200000, 0.000],[1552942500000, 0.000],[1552942800000, 0.000],[1552943100000, 0.000]];
|
||
var durationqueries_graph_6_d3 = [[1552544700000, 0.000],[1552544700000, 0.000],[1552544700000, 0.000],[1552544700000, 0.000],[1552544700000, 0.000],[1552544700000, 0.000],[1552544700000, 0.000],[1552544700000, 0.000],[1552545000000, 0.000],[1552545000000, 0.000],[1552545000000, 0.000],[1552545000000, 0.000],[1552545000000, 0.000],[1552545000000, 0.000],[1552545000000, 0.000],[1552545000000, 0.000],[1552545300000, 0.000],[1552545300000, 0.000],[1552545300000, 0.000],[1552545300000, 0.000],[1552545300000, 0.000],[1552545300000, 0.000],[1552545300000, 0.000],[1552545300000, 0.000],[1552545600000, 0.000],[1552545600000, 0.000],[1552545600000, 0.000],[1552545600000, 0.000],[1552545600000, 0.000],[1552545600000, 0.000],[1552545600000, 0.000],[1552545600000, 0.000],[1552545900000, 0.000],[1552545900000, 0.000],[1552545900000, 0.000],[1552545900000, 0.000],[1552545900000, 0.000],[1552545900000, 0.000],[1552545900000, 0.000],[1552545900000, 0.000],[1552546200000, 0.000],[1552546200000, 0.000],[1552546200000, 0.000],[1552546200000, 0.000],[1552546200000, 0.000],[1552546200000, 0.000],[1552546200000, 0.000],[1552546200000, 0.000],[1552546500000, 0.000],[1552546500000, 0.000],[1552546500000, 0.000],[1552546500000, 0.000],[1552546500000, 0.000],[1552546500000, 0.000],[1552546500000, 0.000],[1552546500000, 0.000],[1552575600000, 0.000],[1552575600000, 0.000],[1552575600000, 0.000],[1552575600000, 0.000],[1552575600000, 0.000],[1552575600000, 0.000],[1552575600000, 0.000],[1552575600000, 0.000],[1552575900000, 0.000],[1552575900000, 0.000],[1552575900000, 0.000],[1552575900000, 0.000],[1552575900000, 0.000],[1552575900000, 0.000],[1552575900000, 0.000],[1552575900000, 0.000],[1552576200000, 0.000],[1552576200000, 0.000],[1552576200000, 0.000],[1552576200000, 0.000],[1552576200000, 0.000],[1552576200000, 0.000],[1552576200000, 0.000],[1552576200000, 0.000],[1552576500000, 0.000],[1552576500000, 0.000],[1552576500000, 0.000],[1552576500000, 0.000],[1552576500000, 0.000],[1552576500000, 0.000],[1552576500000, 0.000],[1552576500000, 0.000],[1552576800000, 0.000],[1552576800000, 0.000],[1552576800000, 0.000],[1552576800000, 0.000],[1552576800000, 0.000],[1552576800000, 0.000],[1552576800000, 0.000],[1552576800000, 0.000],[1552577100000, 0.000],[1552577100000, 0.000],[1552577100000, 0.000],[1552577100000, 0.000],[1552577100000, 0.000],[1552577100000, 0.000],[1552577100000, 0.000],[1552577100000, 0.000],[1552577400000, 0.000],[1552577400000, 0.000],[1552577400000, 0.000],[1552577400000, 0.000],[1552577400000, 0.000],[1552577400000, 0.000],[1552577400000, 0.000],[1552577400000, 0.000],[1552577700000, 0.000],[1552577700000, 0.000],[1552577700000, 0.000],[1552577700000, 0.000],[1552577700000, 0.000],[1552577700000, 0.000],[1552577700000, 0.000],[1552577700000, 0.000],[1552578000000, 0.000],[1552578000000, 0.000],[1552578000000, 0.000],[1552578000000, 0.000],[1552578000000, 0.000],[1552578000000, 0.000],[1552578000000, 0.000],[1552578000000, 0.000],[1552578300000, 0.000],[1552578300000, 0.000],[1552578300000, 0.000],[1552578300000, 0.000],[1552578300000, 0.000],[1552578300000, 0.000],[1552578300000, 0.000],[1552578300000, 0.000],[1552578600000, 0.000],[1552578600000, 0.000],[1552578600000, 0.000],[1552578600000, 0.000],[1552578600000, 0.000],[1552578600000, 0.000],[1552578600000, 0.000],[1552578600000, 0.000],[1552578900000, 0.000],[1552578900000, 0.000],[1552578900000, 0.000],[1552578900000, 0.000],[1552578900000, 0.000],[1552578900000, 0.000],[1552578900000, 0.000],[1552578900000, 0.000],[1552579200000, 0.000],[1552579200000, 0.000],[1552579200000, 0.000],[1552579200000, 0.000],[1552579200000, 0.000],[1552579200000, 0.000],[1552579200000, 0.000],[1552579200000, 0.000],[1552579500000, 0.000],[1552579500000, 0.000],[1552579500000, 0.000],[1552579500000, 0.000],[1552579500000, 0.000],[1552579500000, 0.000],[1552579500000, 0.000],[1552579500000, 0.000],[1552579800000, 0.000],[1552579800000, 0.000],[1552579800000, 0.000],[1552579800000, 0.000],[1552579800000, 0.000],[1552579800000, 0.000],[1552579800000, 0.000],[1552579800000, 0.000],[1552580100000, 0.000],[1552580100000, 0.000],[1552580100000, 0.000],[1552580100000, 0.000],[1552580100000, 0.000],[1552580100000, 0.000],[1552580100000, 0.000],[1552580100000, 0.000],[1552580400000, 0.000],[1552580400000, 0.000],[1552580400000, 0.000],[1552580400000, 0.000],[1552580400000, 0.000],[1552580400000, 0.000],[1552580400000, 0.000],[1552580400000, 0.000],[1552580700000, 0.000],[1552580700000, 0.000],[1552580700000, 0.000],[1552580700000, 0.000],[1552580700000, 0.000],[1552580700000, 0.000],[1552580700000, 0.000],[1552580700000, 0.000],[1552581000000, 0.000],[1552581000000, 0.000],[1552581000000, 0.000],[1552581000000, 0.000],[1552581000000, 0.000],[1552581000000, 0.000],[1552581000000, 0.000],[1552581000000, 0.000],[1552581300000, 0.000],[1552581300000, 0.000],[1552581300000, 0.000],[1552581300000, 0.000],[1552581300000, 0.000],[1552581300000, 0.000],[1552581300000, 0.000],[1552581300000, 0.000],[1552581600000, 0.000],[1552581600000, 0.000],[1552581600000, 0.000],[1552581600000, 0.000],[1552581600000, 0.000],[1552581600000, 0.000],[1552581600000, 0.000],[1552581600000, 0.000],[1552581900000, 0.000],[1552581900000, 0.000],[1552581900000, 0.000],[1552581900000, 0.000],[1552581900000, 0.000],[1552581900000, 0.000],[1552581900000, 0.000],[1552581900000, 0.000],[1552582200000, 0.000],[1552582200000, 0.000],[1552582200000, 0.000],[1552582200000, 0.000],[1552582200000, 0.000],[1552582200000, 0.000],[1552582200000, 0.000],[1552582200000, 0.000],[1552582500000, 0.000],[1552582500000, 0.000],[1552582500000, 0.000],[1552582500000, 0.000],[1552582500000, 0.000],[1552582500000, 0.000],[1552582500000, 0.000],[1552582500000, 0.000],[1552582800000, 0.000],[1552582800000, 0.000],[1552582800000, 0.000],[1552582800000, 0.000],[1552582800000, 0.000],[1552582800000, 0.000],[1552582800000, 0.000],[1552582800000, 0.000],[1552583100000, 0.000],[1552583100000, 0.000],[1552583100000, 0.000],[1552583100000, 0.000],[1552583100000, 0.000],[1552583100000, 0.000],[1552583100000, 0.000],[1552583100000, 0.000],[1552583400000, 0.000],[1552583400000, 0.000],[1552583400000, 0.000],[1552583400000, 0.000],[1552583400000, 0.000],[1552583400000, 0.000],[1552583400000, 0.000],[1552583400000, 0.000],[1552583700000, 0.000],[1552583700000, 0.000],[1552583700000, 0.000],[1552583700000, 0.000],[1552583700000, 0.000],[1552583700000, 0.000],[1552583700000, 0.000],[1552583700000, 0.000],[1552584000000, 0.000],[1552584000000, 0.000],[1552584000000, 0.000],[1552584000000, 0.000],[1552584000000, 0.000],[1552584000000, 0.000],[1552584000000, 0.000],[1552584000000, 0.000],[1552584300000, 0.000],[1552584300000, 0.000],[1552584300000, 0.000],[1552584300000, 0.000],[1552584300000, 0.000],[1552584300000, 0.000],[1552584300000, 0.000],[1552584300000, 0.000],[1552584600000, 0.000],[1552584600000, 0.000],[1552584600000, 0.000],[1552584600000, 0.000],[1552584600000, 0.000],[1552584600000, 0.000],[1552584600000, 0.000],[1552584600000, 0.000],[1552584900000, 0.000],[1552584900000, 0.000],[1552584900000, 0.000],[1552584900000, 0.000],[1552584900000, 0.000],[1552584900000, 0.000],[1552584900000, 0.000],[1552584900000, 0.000],[1552585200000, 0.000],[1552585200000, 0.000],[1552585200000, 0.000],[1552585200000, 0.000],[1552585200000, 0.000],[1552585200000, 0.000],[1552585200000, 0.000],[1552585200000, 0.000],[1552585500000, 0.000],[1552585500000, 0.000],[1552585500000, 0.000],[1552585500000, 0.000],[1552585500000, 0.000],[1552585500000, 0.000],[1552585500000, 0.000],[1552585500000, 0.000],[1552585800000, 0.000],[1552585800000, 0.000],[1552585800000, 0.000],[1552585800000, 0.000],[1552585800000, 0.000],[1552585800000, 0.000],[1552585800000, 0.000],[1552585800000, 0.000],[1552586100000, 0.000],[1552586100000, 0.000],[1552586100000, 0.000],[1552586100000, 0.000],[1552586100000, 0.000],[1552586100000, 0.000],[1552586100000, 0.000],[1552586100000, 0.000],[1552597200000, 0.000],[1552597200000, 0.000],[1552597200000, 0.000],[1552597200000, 0.000],[1552597200000, 0.000],[1552597200000, 0.000],[1552597200000, 0.000],[1552597200000, 0.000],[1552597500000, 0.000],[1552597500000, 0.000],[1552597500000, 0.000],[1552597500000, 0.000],[1552597500000, 0.000],[1552597500000, 0.000],[1552597500000, 0.000],[1552597500000, 0.000],[1552597800000, 0.000],[1552597800000, 0.000],[1552597800000, 0.000],[1552597800000, 0.000],[1552597800000, 0.000],[1552597800000, 0.000],[1552597800000, 0.000],[1552597800000, 0.000],[1552598100000, 0.000],[1552598100000, 0.000],[1552598100000, 0.000],[1552598100000, 0.000],[1552598100000, 0.000],[1552598100000, 0.000],[1552598100000, 0.000],[1552598100000, 0.000],[1552598400000, 0.000],[1552598400000, 0.000],[1552598400000, 0.000],[1552598400000, 0.000],[1552598400000, 0.000],[1552598400000, 0.000],[1552598400000, 0.000],[1552598400000, 0.000],[1552598700000, 0.000],[1552598700000, 0.000],[1552598700000, 0.000],[1552598700000, 0.000],[1552598700000, 0.000],[1552598700000, 0.000],[1552598700000, 0.000],[1552598700000, 0.000],[1552599000000, 0.000],[1552599000000, 0.000],[1552599000000, 0.000],[1552599000000, 0.000],[1552599000000, 0.000],[1552599000000, 0.000],[1552599000000, 0.000],[1552599000000, 0.000],[1552599300000, 0.000],[1552599300000, 0.000],[1552599300000, 0.000],[1552599300000, 0.000],[1552599300000, 0.000],[1552599300000, 0.000],[1552599300000, 0.000],[1552599300000, 0.000],[1552599600000, 0.000],[1552599600000, 0.000],[1552599600000, 0.000],[1552599600000, 0.000],[1552599600000, 0.000],[1552599600000, 0.000],[1552599600000, 0.000],[1552599600000, 0.000],[1552599900000, 0.000],[1552599900000, 0.000],[1552599900000, 0.000],[1552599900000, 0.000],[1552599900000, 0.000],[1552599900000, 0.000],[1552599900000, 0.000],[1552599900000, 0.000],[1552600200000, 0.000],[1552600200000, 0.000],[1552600200000, 0.000],[1552600200000, 0.000],[1552600200000, 0.000],[1552600200000, 0.000],[1552600200000, 0.000],[1552600200000, 0.000],[1552600500000, 0.000],[1552600500000, 0.000],[1552600500000, 0.000],[1552600500000, 0.000],[1552600500000, 0.000],[1552600500000, 0.000],[1552600500000, 0.000],[1552600500000, 0.000],[1552600800000, 0.000],[1552600800000, 0.000],[1552600800000, 0.000],[1552600800000, 0.000],[1552600800000, 0.000],[1552600800000, 0.000],[1552600800000, 0.000],[1552600800000, 0.000],[1552601100000, 0.000],[1552601100000, 0.000],[1552601100000, 0.000],[1552601100000, 0.000],[1552601100000, 0.000],[1552601100000, 0.000],[1552601100000, 0.000],[1552601100000, 0.000],[1552601400000, 65.544],[1552601400000, 65.544],[1552601400000, 65.544],[1552601400000, 65.544],[1552601400000, 65.544],[1552601400000, 65.544],[1552601400000, 65.544],[1552601400000, 65.544],[1552601700000, 0.000],[1552601700000, 0.000],[1552601700000, 0.000],[1552601700000, 0.000],[1552601700000, 0.000],[1552601700000, 0.000],[1552601700000, 0.000],[1552601700000, 0.000],[1552602000000, 0.000],[1552602000000, 0.000],[1552602000000, 0.000],[1552602000000, 0.000],[1552602000000, 0.000],[1552602000000, 0.000],[1552602000000, 0.000],[1552602000000, 0.000],[1552602300000, 0.000],[1552602300000, 0.000],[1552602300000, 0.000],[1552602300000, 0.000],[1552602300000, 0.000],[1552602300000, 0.000],[1552602300000, 0.000],[1552602300000, 0.000],[1552602600000, 0.000],[1552602600000, 0.000],[1552602600000, 0.000],[1552602600000, 0.000],[1552602600000, 0.000],[1552602600000, 0.000],[1552602600000, 0.000],[1552602600000, 0.000],[1552602900000, 0.000],[1552602900000, 0.000],[1552602900000, 0.000],[1552602900000, 0.000],[1552602900000, 0.000],[1552602900000, 0.000],[1552602900000, 0.000],[1552602900000, 0.000],[1552603200000, 0.000],[1552603200000, 0.000],[1552603200000, 0.000],[1552603200000, 0.000],[1552603200000, 0.000],[1552603200000, 0.000],[1552603200000, 0.000],[1552603200000, 0.000],[1552603500000, 0.000],[1552603500000, 0.000],[1552603500000, 0.000],[1552603500000, 0.000],[1552603500000, 0.000],[1552603500000, 0.000],[1552603500000, 0.000],[1552603500000, 0.000],[1552603800000, 0.000],[1552603800000, 0.000],[1552603800000, 0.000],[1552603800000, 0.000],[1552603800000, 0.000],[1552603800000, 0.000],[1552603800000, 0.000],[1552603800000, 0.000],[1552604100000, 0.000],[1552604100000, 0.000],[1552604100000, 0.000],[1552604100000, 0.000],[1552604100000, 0.000],[1552604100000, 0.000],[1552604100000, 0.000],[1552604100000, 0.000],[1552618800000, 0.000],[1552618800000, 0.000],[1552618800000, 0.000],[1552618800000, 0.000],[1552618800000, 0.000],[1552618800000, 0.000],[1552618800000, 0.000],[1552618800000, 0.000],[1552619100000, 0.000],[1552619100000, 0.000],[1552619100000, 0.000],[1552619100000, 0.000],[1552619100000, 0.000],[1552619100000, 0.000],[1552619100000, 0.000],[1552619100000, 0.000],[1552619400000, 0.000],[1552619400000, 0.000],[1552619400000, 0.000],[1552619400000, 0.000],[1552619400000, 0.000],[1552619400000, 0.000],[1552619400000, 0.000],[1552619400000, 0.000],[1552619700000, 0.000],[1552619700000, 0.000],[1552619700000, 0.000],[1552619700000, 0.000],[1552619700000, 0.000],[1552619700000, 0.000],[1552619700000, 0.000],[1552619700000, 0.000],[1552620000000, 0.000],[1552620000000, 0.000],[1552620000000, 0.000],[1552620000000, 0.000],[1552620000000, 0.000],[1552620000000, 0.000],[1552620000000, 0.000],[1552620000000, 0.000],[1552620300000, 0.000],[1552620300000, 0.000],[1552620300000, 0.000],[1552620300000, 0.000],[1552620300000, 0.000],[1552620300000, 0.000],[1552620300000, 0.000],[1552620300000, 0.000],[1552620600000, 0.000],[1552620600000, 0.000],[1552620600000, 0.000],[1552620600000, 0.000],[1552620600000, 0.000],[1552620600000, 0.000],[1552620600000, 0.000],[1552620600000, 0.000],[1552620900000, 0.000],[1552620900000, 0.000],[1552620900000, 0.000],[1552620900000, 0.000],[1552620900000, 0.000],[1552620900000, 0.000],[1552620900000, 0.000],[1552620900000, 0.000],[1552621200000, 0.000],[1552621200000, 0.000],[1552621200000, 0.000],[1552621200000, 0.000],[1552621200000, 0.000],[1552621200000, 0.000],[1552621200000, 0.000],[1552621200000, 0.000],[1552621500000, 0.000],[1552621500000, 0.000],[1552621500000, 0.000],[1552621500000, 0.000],[1552621500000, 0.000],[1552621500000, 0.000],[1552621500000, 0.000],[1552621500000, 0.000],[1552621800000, 0.000],[1552621800000, 0.000],[1552621800000, 0.000],[1552621800000, 0.000],[1552621800000, 0.000],[1552621800000, 0.000],[1552621800000, 0.000],[1552621800000, 0.000],[1552622100000, 0.000],[1552622100000, 0.000],[1552622100000, 0.000],[1552622100000, 0.000],[1552622100000, 0.000],[1552622100000, 0.000],[1552622100000, 0.000],[1552622100000, 0.000],[1552622400000, 0.000],[1552622400000, 0.000],[1552622400000, 0.000],[1552622400000, 0.000],[1552622400000, 0.000],[1552622400000, 0.000],[1552622400000, 0.000],[1552622400000, 0.000],[1552622700000, 0.000],[1552622700000, 0.000],[1552622700000, 0.000],[1552622700000, 0.000],[1552622700000, 0.000],[1552622700000, 0.000],[1552622700000, 0.000],[1552622700000, 0.000],[1552623000000, 0.000],[1552623000000, 0.000],[1552623000000, 0.000],[1552623000000, 0.000],[1552623000000, 0.000],[1552623000000, 0.000],[1552623000000, 0.000],[1552623000000, 0.000],[1552623300000, 0.000],[1552623300000, 0.000],[1552623300000, 0.000],[1552623300000, 0.000],[1552623300000, 0.000],[1552623300000, 0.000],[1552623300000, 0.000],[1552623300000, 0.000],[1552623600000, 0.000],[1552623600000, 0.000],[1552623600000, 0.000],[1552623600000, 0.000],[1552623600000, 0.000],[1552623600000, 0.000],[1552623600000, 0.000],[1552623600000, 0.000],[1552623900000, 0.000],[1552623900000, 0.000],[1552623900000, 0.000],[1552623900000, 0.000],[1552623900000, 0.000],[1552623900000, 0.000],[1552623900000, 0.000],[1552623900000, 0.000],[1552624200000, 0.000],[1552624200000, 0.000],[1552624200000, 0.000],[1552624200000, 0.000],[1552624200000, 0.000],[1552624200000, 0.000],[1552624200000, 0.000],[1552624200000, 0.000],[1552624500000, 0.000],[1552624500000, 0.000],[1552624500000, 0.000],[1552624500000, 0.000],[1552624500000, 0.000],[1552624500000, 0.000],[1552624500000, 0.000],[1552624500000, 0.000],[1552624800000, 0.000],[1552624800000, 0.000],[1552624800000, 0.000],[1552624800000, 0.000],[1552624800000, 0.000],[1552624800000, 0.000],[1552624800000, 0.000],[1552624800000, 0.000],[1552625100000, 0.000],[1552625100000, 0.000],[1552625100000, 0.000],[1552625100000, 0.000],[1552625100000, 0.000],[1552625100000, 0.000],[1552625100000, 0.000],[1552625100000, 0.000],[1552625400000, 0.000],[1552625400000, 0.000],[1552625400000, 0.000],[1552625400000, 0.000],[1552625400000, 0.000],[1552625400000, 0.000],[1552625400000, 0.000],[1552625400000, 0.000],[1552625700000, 0.000],[1552625700000, 0.000],[1552625700000, 0.000],[1552625700000, 0.000],[1552625700000, 0.000],[1552625700000, 0.000],[1552625700000, 0.000],[1552625700000, 0.000],[1552626000000, 0.000],[1552626000000, 0.000],[1552626000000, 0.000],[1552626000000, 0.000],[1552626000000, 0.000],[1552626000000, 0.000],[1552626000000, 0.000],[1552626000000, 0.000],[1552626300000, 0.000],[1552626300000, 0.000],[1552626300000, 0.000],[1552626300000, 0.000],[1552626300000, 0.000],[1552626300000, 0.000],[1552626300000, 0.000],[1552626300000, 0.000],[1552626600000, 0.000],[1552626600000, 0.000],[1552626600000, 0.000],[1552626600000, 0.000],[1552626600000, 0.000],[1552626600000, 0.000],[1552626600000, 0.000],[1552626600000, 0.000],[1552626900000, 0.000],[1552626900000, 0.000],[1552626900000, 0.000],[1552626900000, 0.000],[1552626900000, 0.000],[1552626900000, 0.000],[1552626900000, 0.000],[1552626900000, 0.000],[1552627200000, 0.000],[1552627200000, 0.000],[1552627200000, 0.000],[1552627200000, 0.000],[1552627200000, 0.000],[1552627200000, 0.000],[1552627200000, 0.000],[1552627200000, 0.000],[1552627500000, 0.000],[1552627500000, 0.000],[1552627500000, 0.000],[1552627500000, 0.000],[1552627500000, 0.000],[1552627500000, 0.000],[1552627500000, 0.000],[1552627500000, 0.000],[1552627800000, 0.000],[1552627800000, 0.000],[1552627800000, 0.000],[1552627800000, 0.000],[1552627800000, 0.000],[1552627800000, 0.000],[1552627800000, 0.000],[1552627800000, 0.000],[1552628100000, 0.000],[1552628100000, 0.000],[1552628100000, 0.000],[1552628100000, 0.000],[1552628100000, 0.000],[1552628100000, 0.000],[1552628100000, 0.000],[1552628100000, 0.000],[1552628400000, 0.000],[1552628400000, 0.000],[1552628400000, 0.000],[1552628400000, 0.000],[1552628400000, 0.000],[1552628400000, 0.000],[1552628400000, 0.000],[1552628400000, 0.000],[1552628700000, 142.974],[1552628700000, 142.974],[1552628700000, 142.974],[1552628700000, 142.974],[1552628700000, 142.974],[1552628700000, 142.974],[1552628700000, 142.974],[1552628700000, 142.974],[1552629000000, 13734.265],[1552629000000, 13734.265],[1552629000000, 13734.265],[1552629000000, 13734.265],[1552629000000, 13734.265],[1552629000000, 13734.265],[1552629000000, 13734.265],[1552629000000, 13734.265],[1552629300000, 0.000],[1552629300000, 0.000],[1552629300000, 0.000],[1552629300000, 0.000],[1552629300000, 0.000],[1552629300000, 0.000],[1552629300000, 0.000],[1552629300000, 0.000],[1552629600000, 0.000],[1552629600000, 0.000],[1552629600000, 0.000],[1552629600000, 0.000],[1552629600000, 0.000],[1552629600000, 0.000],[1552629600000, 0.000],[1552629600000, 0.000],[1552629900000, 0.000],[1552629900000, 0.000],[1552629900000, 0.000],[1552629900000, 0.000],[1552629900000, 0.000],[1552629900000, 0.000],[1552629900000, 0.000],[1552629900000, 0.000],[1552630200000, 0.000],[1552630200000, 0.000],[1552630200000, 0.000],[1552630200000, 0.000],[1552630200000, 0.000],[1552630200000, 0.000],[1552630200000, 0.000],[1552630200000, 0.000],[1552630500000, 0.000],[1552630500000, 0.000],[1552630500000, 0.000],[1552630500000, 0.000],[1552630500000, 0.000],[1552630500000, 0.000],[1552630500000, 0.000],[1552630500000, 0.000],[1552630800000, 0.000],[1552630800000, 0.000],[1552630800000, 0.000],[1552630800000, 0.000],[1552630800000, 0.000],[1552630800000, 0.000],[1552630800000, 0.000],[1552630800000, 0.000],[1552631100000, 0.000],[1552631100000, 0.000],[1552631100000, 0.000],[1552631100000, 0.000],[1552631100000, 0.000],[1552631100000, 0.000],[1552631100000, 0.000],[1552631100000, 0.000],[1552631400000, 0.000],[1552631400000, 0.000],[1552631400000, 0.000],[1552631400000, 0.000],[1552631400000, 0.000],[1552631400000, 0.000],[1552631400000, 0.000],[1552631400000, 0.000],[1552631700000, 0.000],[1552631700000, 0.000],[1552631700000, 0.000],[1552631700000, 0.000],[1552631700000, 0.000],[1552631700000, 0.000],[1552631700000, 0.000],[1552631700000, 0.000],[1552632000000, 0.000],[1552632000000, 0.000],[1552632000000, 0.000],[1552632000000, 0.000],[1552632000000, 0.000],[1552632000000, 0.000],[1552632000000, 0.000],[1552632000000, 0.000],[1552632300000, 0.000],[1552632300000, 0.000],[1552632300000, 0.000],[1552632300000, 0.000],[1552632300000, 0.000],[1552632300000, 0.000],[1552632300000, 0.000],[1552632300000, 0.000],[1552632600000, 0.000],[1552632600000, 0.000],[1552632600000, 0.000],[1552632600000, 0.000],[1552632600000, 0.000],[1552632600000, 0.000],[1552632600000, 0.000],[1552632600000, 0.000],[1552632900000, 0.000],[1552632900000, 0.000],[1552632900000, 0.000],[1552632900000, 0.000],[1552632900000, 0.000],[1552632900000, 0.000],[1552632900000, 0.000],[1552632900000, 0.000],[1552658400000, 0.000],[1552658400000, 0.000],[1552658400000, 0.000],[1552658400000, 0.000],[1552658400000, 0.000],[1552658400000, 0.000],[1552658400000, 0.000],[1552658400000, 0.000],[1552658700000, 0.000],[1552658700000, 0.000],[1552658700000, 0.000],[1552658700000, 0.000],[1552658700000, 0.000],[1552658700000, 0.000],[1552658700000, 0.000],[1552658700000, 0.000],[1552659000000, 0.000],[1552659000000, 0.000],[1552659000000, 0.000],[1552659000000, 0.000],[1552659000000, 0.000],[1552659000000, 0.000],[1552659000000, 0.000],[1552659000000, 0.000],[1552659300000, 0.000],[1552659300000, 0.000],[1552659300000, 0.000],[1552659300000, 0.000],[1552659300000, 0.000],[1552659300000, 0.000],[1552659300000, 0.000],[1552659300000, 0.000],[1552659600000, 0.000],[1552659600000, 0.000],[1552659600000, 0.000],[1552659600000, 0.000],[1552659600000, 0.000],[1552659600000, 0.000],[1552659600000, 0.000],[1552659600000, 0.000],[1552659900000, 0.000],[1552659900000, 0.000],[1552659900000, 0.000],[1552659900000, 0.000],[1552659900000, 0.000],[1552659900000, 0.000],[1552659900000, 0.000],[1552659900000, 0.000],[1552660200000, 0.000],[1552660200000, 0.000],[1552660200000, 0.000],[1552660200000, 0.000],[1552660200000, 0.000],[1552660200000, 0.000],[1552660200000, 0.000],[1552660200000, 0.000],[1552660500000, 0.000],[1552660500000, 0.000],[1552660500000, 0.000],[1552660500000, 0.000],[1552660500000, 0.000],[1552660500000, 0.000],[1552660500000, 0.000],[1552660500000, 0.000],[1552660800000, 0.000],[1552660800000, 0.000],[1552660800000, 0.000],[1552660800000, 0.000],[1552660800000, 0.000],[1552660800000, 0.000],[1552660800000, 0.000],[1552660800000, 0.000],[1552661100000, 0.000],[1552661100000, 0.000],[1552661100000, 0.000],[1552661100000, 0.000],[1552661100000, 0.000],[1552661100000, 0.000],[1552661100000, 0.000],[1552661100000, 0.000],[1552661400000, 0.000],[1552661400000, 0.000],[1552661400000, 0.000],[1552661400000, 0.000],[1552661400000, 0.000],[1552661400000, 0.000],[1552661400000, 0.000],[1552661400000, 0.000],[1552661700000, 0.000],[1552661700000, 0.000],[1552661700000, 0.000],[1552661700000, 0.000],[1552661700000, 0.000],[1552661700000, 0.000],[1552661700000, 0.000],[1552661700000, 0.000],[1552662000000, 0.000],[1552662000000, 0.000],[1552662000000, 0.000],[1552662000000, 0.000],[1552662000000, 0.000],[1552662000000, 0.000],[1552662000000, 0.000],[1552662000000, 0.000],[1552662300000, 0.000],[1552662300000, 0.000],[1552662300000, 0.000],[1552662300000, 0.000],[1552662300000, 0.000],[1552662300000, 0.000],[1552662300000, 0.000],[1552662300000, 0.000],[1552662600000, 0.000],[1552662600000, 0.000],[1552662600000, 0.000],[1552662600000, 0.000],[1552662600000, 0.000],[1552662600000, 0.000],[1552662600000, 0.000],[1552662600000, 0.000],[1552662900000, 0.000],[1552662900000, 0.000],[1552662900000, 0.000],[1552662900000, 0.000],[1552662900000, 0.000],[1552662900000, 0.000],[1552662900000, 0.000],[1552662900000, 0.000],[1552663200000, 0.000],[1552663200000, 0.000],[1552663200000, 0.000],[1552663200000, 0.000],[1552663200000, 0.000],[1552663200000, 0.000],[1552663200000, 0.000],[1552663200000, 0.000],[1552663500000, 0.000],[1552663500000, 0.000],[1552663500000, 0.000],[1552663500000, 0.000],[1552663500000, 0.000],[1552663500000, 0.000],[1552663500000, 0.000],[1552663500000, 0.000],[1552663800000, 0.000],[1552663800000, 0.000],[1552663800000, 0.000],[1552663800000, 0.000],[1552663800000, 0.000],[1552663800000, 0.000],[1552663800000, 0.000],[1552663800000, 0.000],[1552664100000, 0.000],[1552664100000, 0.000],[1552664100000, 0.000],[1552664100000, 0.000],[1552664100000, 0.000],[1552664100000, 0.000],[1552664100000, 0.000],[1552664100000, 0.000],[1552664400000, 0.000],[1552664400000, 0.000],[1552664400000, 0.000],[1552664400000, 0.000],[1552664400000, 0.000],[1552664400000, 0.000],[1552664400000, 0.000],[1552664400000, 0.000],[1552664700000, 0.000],[1552664700000, 0.000],[1552664700000, 0.000],[1552664700000, 0.000],[1552664700000, 0.000],[1552664700000, 0.000],[1552664700000, 0.000],[1552664700000, 0.000],[1552665000000, 0.000],[1552665000000, 0.000],[1552665000000, 0.000],[1552665000000, 0.000],[1552665000000, 0.000],[1552665000000, 0.000],[1552665000000, 0.000],[1552665000000, 0.000],[1552665300000, 0.000],[1552665300000, 0.000],[1552665300000, 0.000],[1552665300000, 0.000],[1552665300000, 0.000],[1552665300000, 0.000],[1552665300000, 0.000],[1552665300000, 0.000],[1552665600000, 0.000],[1552665600000, 0.000],[1552665600000, 0.000],[1552665600000, 0.000],[1552665600000, 0.000],[1552665600000, 0.000],[1552665600000, 0.000],[1552665600000, 0.000],[1552665900000, 0.000],[1552665900000, 0.000],[1552665900000, 0.000],[1552665900000, 0.000],[1552665900000, 0.000],[1552665900000, 0.000],[1552665900000, 0.000],[1552665900000, 0.000],[1552666200000, 0.000],[1552666200000, 0.000],[1552666200000, 0.000],[1552666200000, 0.000],[1552666200000, 0.000],[1552666200000, 0.000],[1552666200000, 0.000],[1552666200000, 0.000],[1552666500000, 0.000],[1552666500000, 0.000],[1552666500000, 0.000],[1552666500000, 0.000],[1552666500000, 0.000],[1552666500000, 0.000],[1552666500000, 0.000],[1552666500000, 0.000],[1552666800000, 0.000],[1552666800000, 0.000],[1552666800000, 0.000],[1552666800000, 0.000],[1552666800000, 0.000],[1552666800000, 0.000],[1552666800000, 0.000],[1552666800000, 0.000],[1552667100000, 0.000],[1552667100000, 0.000],[1552667100000, 0.000],[1552667100000, 0.000],[1552667100000, 0.000],[1552667100000, 0.000],[1552667100000, 0.000],[1552667100000, 0.000],[1552667400000, 0.000],[1552667400000, 0.000],[1552667400000, 0.000],[1552667400000, 0.000],[1552667400000, 0.000],[1552667400000, 0.000],[1552667400000, 0.000],[1552667400000, 0.000],[1552667700000, 0.000],[1552667700000, 0.000],[1552667700000, 0.000],[1552667700000, 0.000],[1552667700000, 0.000],[1552667700000, 0.000],[1552667700000, 0.000],[1552667700000, 0.000],[1552668000000, 0.000],[1552668000000, 0.000],[1552668000000, 0.000],[1552668000000, 0.000],[1552668000000, 0.000],[1552668000000, 0.000],[1552668000000, 0.000],[1552668000000, 0.000],[1552668300000, 0.000],[1552668300000, 0.000],[1552668300000, 0.000],[1552668300000, 0.000],[1552668300000, 0.000],[1552668300000, 0.000],[1552668300000, 0.000],[1552668300000, 0.000],[1552668600000, 0.000],[1552668600000, 0.000],[1552668600000, 0.000],[1552668600000, 0.000],[1552668600000, 0.000],[1552668600000, 0.000],[1552668600000, 0.000],[1552668600000, 0.000],[1552668900000, 0.000],[1552668900000, 0.000],[1552668900000, 0.000],[1552668900000, 0.000],[1552668900000, 0.000],[1552668900000, 0.000],[1552668900000, 0.000],[1552668900000, 0.000],[1552669200000, 0.000],[1552669200000, 0.000],[1552669200000, 0.000],[1552669200000, 0.000],[1552669200000, 0.000],[1552669200000, 0.000],[1552669200000, 0.000],[1552669200000, 0.000],[1552669500000, 0.000],[1552669500000, 0.000],[1552669500000, 0.000],[1552669500000, 0.000],[1552669500000, 0.000],[1552669500000, 0.000],[1552669500000, 0.000],[1552669500000, 0.000],[1552669800000, 0.000],[1552669800000, 0.000],[1552669800000, 0.000],[1552669800000, 0.000],[1552669800000, 0.000],[1552669800000, 0.000],[1552669800000, 0.000],[1552669800000, 0.000],[1552670100000, 0.000],[1552670100000, 0.000],[1552670100000, 0.000],[1552670100000, 0.000],[1552670100000, 0.000],[1552670100000, 0.000],[1552670100000, 0.000],[1552670100000, 0.000],[1552670400000, 0.000],[1552670400000, 0.000],[1552670400000, 0.000],[1552670400000, 0.000],[1552670400000, 0.000],[1552670400000, 0.000],[1552670400000, 0.000],[1552670400000, 0.000],[1552670700000, 0.000],[1552670700000, 0.000],[1552670700000, 0.000],[1552670700000, 0.000],[1552670700000, 0.000],[1552670700000, 0.000],[1552670700000, 0.000],[1552670700000, 0.000],[1552671000000, 0.000],[1552671000000, 0.000],[1552671000000, 0.000],[1552671000000, 0.000],[1552671000000, 0.000],[1552671000000, 0.000],[1552671000000, 0.000],[1552671000000, 0.000],[1552671300000, 0.000],[1552671300000, 0.000],[1552671300000, 0.000],[1552671300000, 0.000],[1552671300000, 0.000],[1552671300000, 0.000],[1552671300000, 0.000],[1552671300000, 0.000],[1552671600000, 0.000],[1552671600000, 0.000],[1552671600000, 0.000],[1552671600000, 0.000],[1552671600000, 0.000],[1552671600000, 0.000],[1552671600000, 0.000],[1552671600000, 0.000],[1552671900000, 0.000],[1552671900000, 0.000],[1552671900000, 0.000],[1552671900000, 0.000],[1552671900000, 0.000],[1552671900000, 0.000],[1552671900000, 0.000],[1552671900000, 0.000],[1552672200000, 0.000],[1552672200000, 0.000],[1552672200000, 0.000],[1552672200000, 0.000],[1552672200000, 0.000],[1552672200000, 0.000],[1552672200000, 0.000],[1552672200000, 0.000],[1552672500000, 0.000],[1552672500000, 0.000],[1552672500000, 0.000],[1552672500000, 0.000],[1552672500000, 0.000],[1552672500000, 0.000],[1552672500000, 0.000],[1552672500000, 0.000],[1552672800000, 0.000],[1552672800000, 0.000],[1552672800000, 0.000],[1552672800000, 0.000],[1552672800000, 0.000],[1552672800000, 0.000],[1552672800000, 0.000],[1552672800000, 0.000],[1552673100000, 0.000],[1552673100000, 0.000],[1552673100000, 0.000],[1552673100000, 0.000],[1552673100000, 0.000],[1552673100000, 0.000],[1552673100000, 0.000],[1552673100000, 0.000],[1552673400000, 0.000],[1552673400000, 0.000],[1552673400000, 0.000],[1552673400000, 0.000],[1552673400000, 0.000],[1552673400000, 0.000],[1552673400000, 0.000],[1552673400000, 0.000],[1552673700000, 0.000],[1552673700000, 0.000],[1552673700000, 0.000],[1552673700000, 0.000],[1552673700000, 0.000],[1552673700000, 0.000],[1552673700000, 0.000],[1552673700000, 0.000],[1552674000000, 0.000],[1552674000000, 0.000],[1552674000000, 0.000],[1552674000000, 0.000],[1552674000000, 0.000],[1552674000000, 0.000],[1552674000000, 0.000],[1552674000000, 0.000],[1552674300000, 0.000],[1552674300000, 0.000],[1552674300000, 0.000],[1552674300000, 0.000],[1552674300000, 0.000],[1552674300000, 0.000],[1552674300000, 0.000],[1552674300000, 0.000],[1552674600000, 0.000],[1552674600000, 0.000],[1552674600000, 0.000],[1552674600000, 0.000],[1552674600000, 0.000],[1552674600000, 0.000],[1552674600000, 0.000],[1552674600000, 0.000],[1552674900000, 0.000],[1552674900000, 0.000],[1552674900000, 0.000],[1552674900000, 0.000],[1552674900000, 0.000],[1552674900000, 0.000],[1552674900000, 0.000],[1552674900000, 0.000],[1552675200000, 0.000],[1552675200000, 0.000],[1552675200000, 0.000],[1552675200000, 0.000],[1552675200000, 0.000],[1552675200000, 0.000],[1552675200000, 0.000],[1552675200000, 0.000],[1552675500000, 0.000],[1552675500000, 0.000],[1552675500000, 0.000],[1552675500000, 0.000],[1552675500000, 0.000],[1552675500000, 0.000],[1552675500000, 0.000],[1552675500000, 0.000],[1552675800000, 0.000],[1552675800000, 0.000],[1552675800000, 0.000],[1552675800000, 0.000],[1552675800000, 0.000],[1552675800000, 0.000],[1552675800000, 0.000],[1552675800000, 0.000],[1552676100000, 0.000],[1552676100000, 0.000],[1552676100000, 0.000],[1552676100000, 0.000],[1552676100000, 0.000],[1552676100000, 0.000],[1552676100000, 0.000],[1552676100000, 0.000],[1552676400000, 0.000],[1552676400000, 0.000],[1552676400000, 0.000],[1552676400000, 0.000],[1552676400000, 0.000],[1552676400000, 0.000],[1552676400000, 0.000],[1552676400000, 0.000],[1552676700000, 1284.462],[1552676700000, 1284.462],[1552676700000, 1284.462],[1552676700000, 1284.462],[1552676700000, 1284.462],[1552676700000, 1284.462],[1552676700000, 1284.462],[1552676700000, 1284.462],[1552677000000, 0.000],[1552677000000, 0.000],[1552677000000, 0.000],[1552677000000, 0.000],[1552677000000, 0.000],[1552677000000, 0.000],[1552677000000, 0.000],[1552677000000, 0.000],[1552677300000, 0.000],[1552677300000, 0.000],[1552677300000, 0.000],[1552677300000, 0.000],[1552677300000, 0.000],[1552677300000, 0.000],[1552677300000, 0.000],[1552677300000, 0.000],[1552677600000, 0.000],[1552677600000, 0.000],[1552677600000, 0.000],[1552677600000, 0.000],[1552677600000, 0.000],[1552677600000, 0.000],[1552677600000, 0.000],[1552677600000, 0.000],[1552677900000, 0.000],[1552677900000, 0.000],[1552677900000, 0.000],[1552677900000, 0.000],[1552677900000, 0.000],[1552677900000, 0.000],[1552677900000, 0.000],[1552677900000, 0.000],[1552678200000, 0.000],[1552678200000, 0.000],[1552678200000, 0.000],[1552678200000, 0.000],[1552678200000, 0.000],[1552678200000, 0.000],[1552678200000, 0.000],[1552678200000, 0.000],[1552678500000, 0.000],[1552678500000, 0.000],[1552678500000, 0.000],[1552678500000, 0.000],[1552678500000, 0.000],[1552678500000, 0.000],[1552678500000, 0.000],[1552678500000, 0.000],[1552678800000, 0.000],[1552678800000, 0.000],[1552678800000, 0.000],[1552678800000, 0.000],[1552678800000, 0.000],[1552678800000, 0.000],[1552678800000, 0.000],[1552678800000, 0.000],[1552679100000, 0.000],[1552679100000, 0.000],[1552679100000, 0.000],[1552679100000, 0.000],[1552679100000, 0.000],[1552679100000, 0.000],[1552679100000, 0.000],[1552679100000, 0.000],[1552679400000, 0.000],[1552679400000, 0.000],[1552679400000, 0.000],[1552679400000, 0.000],[1552679400000, 0.000],[1552679400000, 0.000],[1552679400000, 0.000],[1552679400000, 0.000],[1552679700000, 0.000],[1552679700000, 0.000],[1552679700000, 0.000],[1552679700000, 0.000],[1552679700000, 0.000],[1552679700000, 0.000],[1552679700000, 0.000],[1552679700000, 0.000],[1552680000000, 0.000],[1552680000000, 0.000],[1552680000000, 0.000],[1552680000000, 0.000],[1552680000000, 0.000],[1552680000000, 0.000],[1552680000000, 0.000],[1552680000000, 0.000],[1552680300000, 0.000],[1552680300000, 0.000],[1552680300000, 0.000],[1552680300000, 0.000],[1552680300000, 0.000],[1552680300000, 0.000],[1552680300000, 0.000],[1552680300000, 0.000],[1552680600000, 0.000],[1552680600000, 0.000],[1552680600000, 0.000],[1552680600000, 0.000],[1552680600000, 0.000],[1552680600000, 0.000],[1552680600000, 0.000],[1552680600000, 0.000],[1552680900000, 0.000],[1552680900000, 0.000],[1552680900000, 0.000],[1552680900000, 0.000],[1552680900000, 0.000],[1552680900000, 0.000],[1552680900000, 0.000],[1552680900000, 0.000],[1552681200000, 0.000],[1552681200000, 0.000],[1552681200000, 0.000],[1552681200000, 0.000],[1552681200000, 0.000],[1552681200000, 0.000],[1552681200000, 0.000],[1552681200000, 0.000],[1552681500000, 0.000],[1552681500000, 0.000],[1552681500000, 0.000],[1552681500000, 0.000],[1552681500000, 0.000],[1552681500000, 0.000],[1552681500000, 0.000],[1552681500000, 0.000],[1552681800000, 0.000],[1552681800000, 0.000],[1552681800000, 0.000],[1552681800000, 0.000],[1552681800000, 0.000],[1552681800000, 0.000],[1552681800000, 0.000],[1552681800000, 0.000],[1552682100000, 0.000],[1552682100000, 0.000],[1552682100000, 0.000],[1552682100000, 0.000],[1552682100000, 0.000],[1552682100000, 0.000],[1552682100000, 0.000],[1552682100000, 0.000],[1552682400000, 0.000],[1552682400000, 0.000],[1552682400000, 0.000],[1552682400000, 0.000],[1552682400000, 0.000],[1552682400000, 0.000],[1552682400000, 0.000],[1552682400000, 0.000],[1552682700000, 0.000],[1552682700000, 0.000],[1552682700000, 0.000],[1552682700000, 0.000],[1552682700000, 0.000],[1552682700000, 0.000],[1552682700000, 0.000],[1552682700000, 0.000],[1552683000000, 0.000],[1552683000000, 0.000],[1552683000000, 0.000],[1552683000000, 0.000],[1552683000000, 0.000],[1552683000000, 0.000],[1552683000000, 0.000],[1552683000000, 0.000],[1552683300000, 0.000],[1552683300000, 0.000],[1552683300000, 0.000],[1552683300000, 0.000],[1552683300000, 0.000],[1552683300000, 0.000],[1552683300000, 0.000],[1552683300000, 0.000],[1552683600000, 0.000],[1552683600000, 0.000],[1552683600000, 0.000],[1552683600000, 0.000],[1552683600000, 0.000],[1552683600000, 0.000],[1552683600000, 0.000],[1552683600000, 0.000],[1552683900000, 0.000],[1552683900000, 0.000],[1552683900000, 0.000],[1552683900000, 0.000],[1552683900000, 0.000],[1552683900000, 0.000],[1552683900000, 0.000],[1552683900000, 0.000],[1552684200000, 0.000],[1552684200000, 0.000],[1552684200000, 0.000],[1552684200000, 0.000],[1552684200000, 0.000],[1552684200000, 0.000],[1552684200000, 0.000],[1552684200000, 0.000],[1552684500000, 0.000],[1552684500000, 0.000],[1552684500000, 0.000],[1552684500000, 0.000],[1552684500000, 0.000],[1552684500000, 0.000],[1552684500000, 0.000],[1552684500000, 0.000],[1552684800000, 0.000],[1552684800000, 0.000],[1552684800000, 0.000],[1552684800000, 0.000],[1552684800000, 0.000],[1552684800000, 0.000],[1552684800000, 0.000],[1552684800000, 0.000],[1552685100000, 0.000],[1552685100000, 0.000],[1552685100000, 0.000],[1552685100000, 0.000],[1552685100000, 0.000],[1552685100000, 0.000],[1552685100000, 0.000],[1552685100000, 0.000],[1552685400000, 0.000],[1552685400000, 0.000],[1552685400000, 0.000],[1552685400000, 0.000],[1552685400000, 0.000],[1552685400000, 0.000],[1552685400000, 0.000],[1552685400000, 0.000],[1552685700000, 0.000],[1552685700000, 0.000],[1552685700000, 0.000],[1552685700000, 0.000],[1552685700000, 0.000],[1552685700000, 0.000],[1552685700000, 0.000],[1552685700000, 0.000],[1552686000000, 0.000],[1552686000000, 0.000],[1552686000000, 0.000],[1552686000000, 0.000],[1552686000000, 0.000],[1552686000000, 0.000],[1552686000000, 0.000],[1552686000000, 0.000],[1552686300000, 1574.011],[1552686300000, 1574.011],[1552686300000, 1574.011],[1552686300000, 1574.011],[1552686300000, 1574.011],[1552686300000, 1574.011],[1552686300000, 1574.011],[1552686300000, 1574.011],[1552686600000, 0.000],[1552686600000, 0.000],[1552686600000, 0.000],[1552686600000, 0.000],[1552686600000, 0.000],[1552686600000, 0.000],[1552686600000, 0.000],[1552686600000, 0.000],[1552686900000, 0.000],[1552686900000, 0.000],[1552686900000, 0.000],[1552686900000, 0.000],[1552686900000, 0.000],[1552686900000, 0.000],[1552686900000, 0.000],[1552686900000, 0.000],[1552687200000, 0.000],[1552687200000, 0.000],[1552687200000, 0.000],[1552687200000, 0.000],[1552687200000, 0.000],[1552687200000, 0.000],[1552687200000, 0.000],[1552687200000, 0.000],[1552687500000, 0.000],[1552687500000, 0.000],[1552687500000, 0.000],[1552687500000, 0.000],[1552687500000, 0.000],[1552687500000, 0.000],[1552687500000, 0.000],[1552687500000, 0.000],[1552687800000, 0.000],[1552687800000, 0.000],[1552687800000, 0.000],[1552687800000, 0.000],[1552687800000, 0.000],[1552687800000, 0.000],[1552687800000, 0.000],[1552687800000, 0.000],[1552688100000, 0.000],[1552688100000, 0.000],[1552688100000, 0.000],[1552688100000, 0.000],[1552688100000, 0.000],[1552688100000, 0.000],[1552688100000, 0.000],[1552688100000, 0.000],[1552688400000, 0.000],[1552688400000, 0.000],[1552688400000, 0.000],[1552688400000, 0.000],[1552688400000, 0.000],[1552688400000, 0.000],[1552688400000, 0.000],[1552688400000, 0.000],[1552688700000, 0.000],[1552688700000, 0.000],[1552688700000, 0.000],[1552688700000, 0.000],[1552688700000, 0.000],[1552688700000, 0.000],[1552688700000, 0.000],[1552688700000, 0.000],[1552689000000, 0.000],[1552689000000, 0.000],[1552689000000, 0.000],[1552689000000, 0.000],[1552689000000, 0.000],[1552689000000, 0.000],[1552689000000, 0.000],[1552689000000, 0.000],[1552689300000, 0.000],[1552689300000, 0.000],[1552689300000, 0.000],[1552689300000, 0.000],[1552689300000, 0.000],[1552689300000, 0.000],[1552689300000, 0.000],[1552689300000, 0.000],[1552689600000, 0.000],[1552689600000, 0.000],[1552689600000, 0.000],[1552689600000, 0.000],[1552689600000, 0.000],[1552689600000, 0.000],[1552689600000, 0.000],[1552689600000, 0.000],[1552689900000, 0.000],[1552689900000, 0.000],[1552689900000, 0.000],[1552689900000, 0.000],[1552689900000, 0.000],[1552689900000, 0.000],[1552689900000, 0.000],[1552689900000, 0.000],[1552690200000, 0.000],[1552690200000, 0.000],[1552690200000, 0.000],[1552690200000, 0.000],[1552690200000, 0.000],[1552690200000, 0.000],[1552690200000, 0.000],[1552690200000, 0.000],[1552690500000, 0.000],[1552690500000, 0.000],[1552690500000, 0.000],[1552690500000, 0.000],[1552690500000, 0.000],[1552690500000, 0.000],[1552690500000, 0.000],[1552690500000, 0.000],[1552694400000, 0.000],[1552694400000, 0.000],[1552694400000, 0.000],[1552694400000, 0.000],[1552694400000, 0.000],[1552694400000, 0.000],[1552694400000, 0.000],[1552694400000, 0.000],[1552694700000, 0.000],[1552694700000, 0.000],[1552694700000, 0.000],[1552694700000, 0.000],[1552694700000, 0.000],[1552694700000, 0.000],[1552694700000, 0.000],[1552694700000, 0.000],[1552695000000, 0.000],[1552695000000, 0.000],[1552695000000, 0.000],[1552695000000, 0.000],[1552695000000, 0.000],[1552695000000, 0.000],[1552695000000, 0.000],[1552695000000, 0.000],[1552695300000, 0.000],[1552695300000, 0.000],[1552695300000, 0.000],[1552695300000, 0.000],[1552695300000, 0.000],[1552695300000, 0.000],[1552695300000, 0.000],[1552695300000, 0.000],[1552695600000, 0.000],[1552695600000, 0.000],[1552695600000, 0.000],[1552695600000, 0.000],[1552695600000, 0.000],[1552695600000, 0.000],[1552695600000, 0.000],[1552695600000, 0.000],[1552695900000, 0.000],[1552695900000, 0.000],[1552695900000, 0.000],[1552695900000, 0.000],[1552695900000, 0.000],[1552695900000, 0.000],[1552695900000, 0.000],[1552695900000, 0.000],[1552696200000, 0.000],[1552696200000, 0.000],[1552696200000, 0.000],[1552696200000, 0.000],[1552696200000, 0.000],[1552696200000, 0.000],[1552696200000, 0.000],[1552696200000, 0.000],[1552696500000, 0.000],[1552696500000, 0.000],[1552696500000, 0.000],[1552696500000, 0.000],[1552696500000, 0.000],[1552696500000, 0.000],[1552696500000, 0.000],[1552696500000, 0.000],[1552696800000, 0.000],[1552696800000, 0.000],[1552696800000, 0.000],[1552696800000, 0.000],[1552696800000, 0.000],[1552696800000, 0.000],[1552696800000, 0.000],[1552696800000, 0.000],[1552697100000, 0.000],[1552697100000, 0.000],[1552697100000, 0.000],[1552697100000, 0.000],[1552697100000, 0.000],[1552697100000, 0.000],[1552697100000, 0.000],[1552697100000, 0.000],[1552697400000, 0.000],[1552697400000, 0.000],[1552697400000, 0.000],[1552697400000, 0.000],[1552697400000, 0.000],[1552697400000, 0.000],[1552697400000, 0.000],[1552697400000, 0.000],[1552697700000, 0.000],[1552697700000, 0.000],[1552697700000, 0.000],[1552697700000, 0.000],[1552697700000, 0.000],[1552697700000, 0.000],[1552697700000, 0.000],[1552697700000, 0.000],[1552701600000, 0.000],[1552701600000, 0.000],[1552701600000, 0.000],[1552701600000, 0.000],[1552701600000, 0.000],[1552701600000, 0.000],[1552701600000, 0.000],[1552701600000, 0.000],[1552701900000, 0.000],[1552701900000, 0.000],[1552701900000, 0.000],[1552701900000, 0.000],[1552701900000, 0.000],[1552701900000, 0.000],[1552701900000, 0.000],[1552701900000, 0.000],[1552702200000, 0.000],[1552702200000, 0.000],[1552702200000, 0.000],[1552702200000, 0.000],[1552702200000, 0.000],[1552702200000, 0.000],[1552702200000, 0.000],[1552702200000, 0.000],[1552702500000, 0.000],[1552702500000, 0.000],[1552702500000, 0.000],[1552702500000, 0.000],[1552702500000, 0.000],[1552702500000, 0.000],[1552702500000, 0.000],[1552702500000, 0.000],[1552702800000, 0.000],[1552702800000, 0.000],[1552702800000, 0.000],[1552702800000, 0.000],[1552702800000, 0.000],[1552702800000, 0.000],[1552702800000, 0.000],[1552702800000, 0.000],[1552703100000, 0.000],[1552703100000, 0.000],[1552703100000, 0.000],[1552703100000, 0.000],[1552703100000, 0.000],[1552703100000, 0.000],[1552703100000, 0.000],[1552703100000, 0.000],[1552703400000, 0.000],[1552703400000, 0.000],[1552703400000, 0.000],[1552703400000, 0.000],[1552703400000, 0.000],[1552703400000, 0.000],[1552703400000, 0.000],[1552703400000, 0.000],[1552703700000, 0.000],[1552703700000, 0.000],[1552703700000, 0.000],[1552703700000, 0.000],[1552703700000, 0.000],[1552703700000, 0.000],[1552703700000, 0.000],[1552703700000, 0.000],[1552704000000, 0.000],[1552704000000, 0.000],[1552704000000, 0.000],[1552704000000, 0.000],[1552704000000, 0.000],[1552704000000, 0.000],[1552704000000, 0.000],[1552704000000, 0.000],[1552704300000, 0.000],[1552704300000, 0.000],[1552704300000, 0.000],[1552704300000, 0.000],[1552704300000, 0.000],[1552704300000, 0.000],[1552704300000, 0.000],[1552704300000, 0.000],[1552704600000, 0.000],[1552704600000, 0.000],[1552704600000, 0.000],[1552704600000, 0.000],[1552704600000, 0.000],[1552704600000, 0.000],[1552704600000, 0.000],[1552704600000, 0.000],[1552704900000, 0.000],[1552704900000, 0.000],[1552704900000, 0.000],[1552704900000, 0.000],[1552704900000, 0.000],[1552704900000, 0.000],[1552704900000, 0.000],[1552704900000, 0.000],[1552716000000, 0.000],[1552716000000, 0.000],[1552716000000, 0.000],[1552716000000, 0.000],[1552716000000, 0.000],[1552716000000, 0.000],[1552716000000, 0.000],[1552716000000, 0.000],[1552716300000, 0.000],[1552716300000, 0.000],[1552716300000, 0.000],[1552716300000, 0.000],[1552716300000, 0.000],[1552716300000, 0.000],[1552716300000, 0.000],[1552716300000, 0.000],[1552716600000, 0.000],[1552716600000, 0.000],[1552716600000, 0.000],[1552716600000, 0.000],[1552716600000, 0.000],[1552716600000, 0.000],[1552716600000, 0.000],[1552716600000, 0.000],[1552716900000, 0.000],[1552716900000, 0.000],[1552716900000, 0.000],[1552716900000, 0.000],[1552716900000, 0.000],[1552716900000, 0.000],[1552716900000, 0.000],[1552716900000, 0.000],[1552717200000, 0.000],[1552717200000, 0.000],[1552717200000, 0.000],[1552717200000, 0.000],[1552717200000, 0.000],[1552717200000, 0.000],[1552717200000, 0.000],[1552717200000, 0.000],[1552717500000, 0.000],[1552717500000, 0.000],[1552717500000, 0.000],[1552717500000, 0.000],[1552717500000, 0.000],[1552717500000, 0.000],[1552717500000, 0.000],[1552717500000, 0.000],[1552717800000, 0.000],[1552717800000, 0.000],[1552717800000, 0.000],[1552717800000, 0.000],[1552717800000, 0.000],[1552717800000, 0.000],[1552717800000, 0.000],[1552717800000, 0.000],[1552718100000, 0.000],[1552718100000, 0.000],[1552718100000, 0.000],[1552718100000, 0.000],[1552718100000, 0.000],[1552718100000, 0.000],[1552718100000, 0.000],[1552718100000, 0.000],[1552718400000, 0.000],[1552718400000, 0.000],[1552718400000, 0.000],[1552718400000, 0.000],[1552718400000, 0.000],[1552718400000, 0.000],[1552718400000, 0.000],[1552718400000, 0.000],[1552718700000, 0.000],[1552718700000, 0.000],[1552718700000, 0.000],[1552718700000, 0.000],[1552718700000, 0.000],[1552718700000, 0.000],[1552718700000, 0.000],[1552718700000, 0.000],[1552719000000, 0.000],[1552719000000, 0.000],[1552719000000, 0.000],[1552719000000, 0.000],[1552719000000, 0.000],[1552719000000, 0.000],[1552719000000, 0.000],[1552719000000, 0.000],[1552719300000, 0.000],[1552719300000, 0.000],[1552719300000, 0.000],[1552719300000, 0.000],[1552719300000, 0.000],[1552719300000, 0.000],[1552719300000, 0.000],[1552719300000, 0.000],[1552719600000, 0.000],[1552719600000, 0.000],[1552719600000, 0.000],[1552719600000, 0.000],[1552719600000, 0.000],[1552719600000, 0.000],[1552719600000, 0.000],[1552719600000, 0.000],[1552719900000, 0.000],[1552719900000, 0.000],[1552719900000, 0.000],[1552719900000, 0.000],[1552719900000, 0.000],[1552719900000, 0.000],[1552719900000, 0.000],[1552719900000, 0.000],[1552720200000, 0.000],[1552720200000, 0.000],[1552720200000, 0.000],[1552720200000, 0.000],[1552720200000, 0.000],[1552720200000, 0.000],[1552720200000, 0.000],[1552720200000, 0.000],[1552720500000, 0.000],[1552720500000, 0.000],[1552720500000, 0.000],[1552720500000, 0.000],[1552720500000, 0.000],[1552720500000, 0.000],[1552720500000, 0.000],[1552720500000, 0.000],[1552720800000, 0.000],[1552720800000, 0.000],[1552720800000, 0.000],[1552720800000, 0.000],[1552720800000, 0.000],[1552720800000, 0.000],[1552720800000, 0.000],[1552720800000, 0.000],[1552721100000, 0.000],[1552721100000, 0.000],[1552721100000, 0.000],[1552721100000, 0.000],[1552721100000, 0.000],[1552721100000, 0.000],[1552721100000, 0.000],[1552721100000, 0.000],[1552721400000, 0.000],[1552721400000, 0.000],[1552721400000, 0.000],[1552721400000, 0.000],[1552721400000, 0.000],[1552721400000, 0.000],[1552721400000, 0.000],[1552721400000, 0.000],[1552721700000, 0.000],[1552721700000, 0.000],[1552721700000, 0.000],[1552721700000, 0.000],[1552721700000, 0.000],[1552721700000, 0.000],[1552721700000, 0.000],[1552721700000, 0.000],[1552722000000, 0.000],[1552722000000, 0.000],[1552722000000, 0.000],[1552722000000, 0.000],[1552722000000, 0.000],[1552722000000, 0.000],[1552722000000, 0.000],[1552722000000, 0.000],[1552722300000, 0.000],[1552722300000, 0.000],[1552722300000, 0.000],[1552722300000, 0.000],[1552722300000, 0.000],[1552722300000, 0.000],[1552722300000, 0.000],[1552722300000, 0.000],[1552722600000, 0.000],[1552722600000, 0.000],[1552722600000, 0.000],[1552722600000, 0.000],[1552722600000, 0.000],[1552722600000, 0.000],[1552722600000, 0.000],[1552722600000, 0.000],[1552722900000, 0.000],[1552722900000, 0.000],[1552722900000, 0.000],[1552722900000, 0.000],[1552722900000, 0.000],[1552722900000, 0.000],[1552722900000, 0.000],[1552722900000, 0.000],[1552730400000, 0.000],[1552730400000, 0.000],[1552730400000, 0.000],[1552730400000, 0.000],[1552730400000, 0.000],[1552730400000, 0.000],[1552730400000, 0.000],[1552730400000, 0.000],[1552730700000, 0.000],[1552730700000, 0.000],[1552730700000, 0.000],[1552730700000, 0.000],[1552730700000, 0.000],[1552730700000, 0.000],[1552730700000, 0.000],[1552730700000, 0.000],[1552731000000, 0.000],[1552731000000, 0.000],[1552731000000, 0.000],[1552731000000, 0.000],[1552731000000, 0.000],[1552731000000, 0.000],[1552731000000, 0.000],[1552731000000, 0.000],[1552731300000, 0.000],[1552731300000, 0.000],[1552731300000, 0.000],[1552731300000, 0.000],[1552731300000, 0.000],[1552731300000, 0.000],[1552731300000, 0.000],[1552731300000, 0.000],[1552731600000, 0.000],[1552731600000, 0.000],[1552731600000, 0.000],[1552731600000, 0.000],[1552731600000, 0.000],[1552731600000, 0.000],[1552731600000, 0.000],[1552731600000, 0.000],[1552731900000, 0.000],[1552731900000, 0.000],[1552731900000, 0.000],[1552731900000, 0.000],[1552731900000, 0.000],[1552731900000, 0.000],[1552731900000, 0.000],[1552731900000, 0.000],[1552732200000, 0.000],[1552732200000, 0.000],[1552732200000, 0.000],[1552732200000, 0.000],[1552732200000, 0.000],[1552732200000, 0.000],[1552732200000, 0.000],[1552732200000, 0.000],[1552732500000, 0.000],[1552732500000, 0.000],[1552732500000, 0.000],[1552732500000, 0.000],[1552732500000, 0.000],[1552732500000, 0.000],[1552732500000, 0.000],[1552732500000, 0.000],[1552732800000, 0.000],[1552732800000, 0.000],[1552732800000, 0.000],[1552732800000, 0.000],[1552732800000, 0.000],[1552732800000, 0.000],[1552732800000, 0.000],[1552732800000, 0.000],[1552733100000, 0.000],[1552733100000, 0.000],[1552733100000, 0.000],[1552733100000, 0.000],[1552733100000, 0.000],[1552733100000, 0.000],[1552733100000, 0.000],[1552733100000, 0.000],[1552733400000, 0.000],[1552733400000, 0.000],[1552733400000, 0.000],[1552733400000, 0.000],[1552733400000, 0.000],[1552733400000, 0.000],[1552733400000, 0.000],[1552733400000, 0.000],[1552733700000, 0.000],[1552733700000, 0.000],[1552733700000, 0.000],[1552733700000, 0.000],[1552733700000, 0.000],[1552733700000, 0.000],[1552733700000, 0.000],[1552733700000, 0.000],[1552780800000, 0.000],[1552780800000, 0.000],[1552780800000, 0.000],[1552780800000, 0.000],[1552780800000, 0.000],[1552780800000, 0.000],[1552780800000, 0.000],[1552780800000, 0.000],[1552781100000, 0.000],[1552781100000, 0.000],[1552781100000, 0.000],[1552781100000, 0.000],[1552781100000, 0.000],[1552781100000, 0.000],[1552781100000, 0.000],[1552781100000, 0.000],[1552781400000, 0.000],[1552781400000, 0.000],[1552781400000, 0.000],[1552781400000, 0.000],[1552781400000, 0.000],[1552781400000, 0.000],[1552781400000, 0.000],[1552781400000, 0.000],[1552781700000, 0.000],[1552781700000, 0.000],[1552781700000, 0.000],[1552781700000, 0.000],[1552781700000, 0.000],[1552781700000, 0.000],[1552781700000, 0.000],[1552781700000, 0.000],[1552782000000, 0.000],[1552782000000, 0.000],[1552782000000, 0.000],[1552782000000, 0.000],[1552782000000, 0.000],[1552782000000, 0.000],[1552782000000, 0.000],[1552782000000, 0.000],[1552782300000, 0.000],[1552782300000, 0.000],[1552782300000, 0.000],[1552782300000, 0.000],[1552782300000, 0.000],[1552782300000, 0.000],[1552782300000, 0.000],[1552782300000, 0.000],[1552782600000, 0.000],[1552782600000, 0.000],[1552782600000, 0.000],[1552782600000, 0.000],[1552782600000, 0.000],[1552782600000, 0.000],[1552782600000, 0.000],[1552782600000, 0.000],[1552782900000, 0.000],[1552782900000, 0.000],[1552782900000, 0.000],[1552782900000, 0.000],[1552782900000, 0.000],[1552782900000, 0.000],[1552782900000, 0.000],[1552782900000, 0.000],[1552783200000, 0.000],[1552783200000, 0.000],[1552783200000, 0.000],[1552783200000, 0.000],[1552783200000, 0.000],[1552783200000, 0.000],[1552783200000, 0.000],[1552783200000, 0.000],[1552783500000, 0.000],[1552783500000, 0.000],[1552783500000, 0.000],[1552783500000, 0.000],[1552783500000, 0.000],[1552783500000, 0.000],[1552783500000, 0.000],[1552783500000, 0.000],[1552783800000, 0.000],[1552783800000, 0.000],[1552783800000, 0.000],[1552783800000, 0.000],[1552783800000, 0.000],[1552783800000, 0.000],[1552783800000, 0.000],[1552783800000, 0.000],[1552784100000, 0.000],[1552784100000, 0.000],[1552784100000, 0.000],[1552784100000, 0.000],[1552784100000, 0.000],[1552784100000, 0.000],[1552784100000, 0.000],[1552784100000, 0.000],[1552914000000, 0.000],[1552914000000, 0.000],[1552914000000, 0.000],[1552914000000, 0.000],[1552914000000, 0.000],[1552914000000, 0.000],[1552914000000, 0.000],[1552914000000, 0.000],[1552914300000, 0.000],[1552914300000, 0.000],[1552914300000, 0.000],[1552914300000, 0.000],[1552914300000, 0.000],[1552914300000, 0.000],[1552914300000, 0.000],[1552914300000, 0.000],[1552914600000, 0.000],[1552914600000, 0.000],[1552914600000, 0.000],[1552914600000, 0.000],[1552914600000, 0.000],[1552914600000, 0.000],[1552914600000, 0.000],[1552914600000, 0.000],[1552914900000, 0.000],[1552914900000, 0.000],[1552914900000, 0.000],[1552914900000, 0.000],[1552914900000, 0.000],[1552914900000, 0.000],[1552914900000, 0.000],[1552914900000, 0.000],[1552915200000, 0.000],[1552915200000, 0.000],[1552915200000, 0.000],[1552915200000, 0.000],[1552915200000, 0.000],[1552915200000, 0.000],[1552915200000, 0.000],[1552915200000, 0.000],[1552915500000, 0.000],[1552915500000, 0.000],[1552915500000, 0.000],[1552915500000, 0.000],[1552915500000, 0.000],[1552915500000, 0.000],[1552915500000, 0.000],[1552915500000, 0.000],[1552915800000, 0.000],[1552915800000, 0.000],[1552915800000, 0.000],[1552915800000, 0.000],[1552915800000, 0.000],[1552915800000, 0.000],[1552915800000, 0.000],[1552915800000, 0.000],[1552916100000, 0.000],[1552916100000, 0.000],[1552916100000, 0.000],[1552916100000, 0.000],[1552916100000, 0.000],[1552916100000, 0.000],[1552916100000, 0.000],[1552916100000, 0.000],[1552916400000, 0.000],[1552916400000, 0.000],[1552916400000, 0.000],[1552916400000, 0.000],[1552916400000, 0.000],[1552916400000, 0.000],[1552916400000, 0.000],[1552916400000, 0.000],[1552916700000, 0.000],[1552916700000, 0.000],[1552916700000, 0.000],[1552916700000, 0.000],[1552916700000, 0.000],[1552916700000, 0.000],[1552916700000, 0.000],[1552916700000, 0.000],[1552917000000, 0.000],[1552917000000, 0.000],[1552917000000, 0.000],[1552917000000, 0.000],[1552917000000, 0.000],[1552917000000, 0.000],[1552917000000, 0.000],[1552917000000, 0.000],[1552917300000, 0.000],[1552917300000, 0.000],[1552917300000, 0.000],[1552917300000, 0.000],[1552917300000, 0.000],[1552917300000, 0.000],[1552917300000, 0.000],[1552917300000, 0.000],[1552917600000, 0.000],[1552917600000, 0.000],[1552917600000, 0.000],[1552917600000, 0.000],[1552917600000, 0.000],[1552917600000, 0.000],[1552917600000, 0.000],[1552917600000, 0.000],[1552917900000, 0.000],[1552917900000, 0.000],[1552917900000, 0.000],[1552917900000, 0.000],[1552917900000, 0.000],[1552917900000, 0.000],[1552917900000, 0.000],[1552917900000, 0.000],[1552918200000, 0.000],[1552918200000, 0.000],[1552918200000, 0.000],[1552918200000, 0.000],[1552918200000, 0.000],[1552918200000, 0.000],[1552918200000, 0.000],[1552918200000, 0.000],[1552918500000, 0.000],[1552918500000, 0.000],[1552918500000, 0.000],[1552918500000, 0.000],[1552918500000, 0.000],[1552918500000, 0.000],[1552918500000, 0.000],[1552918500000, 0.000],[1552918800000, 0.000],[1552918800000, 0.000],[1552918800000, 0.000],[1552918800000, 0.000],[1552918800000, 0.000],[1552918800000, 0.000],[1552918800000, 0.000],[1552918800000, 0.000],[1552919100000, 0.000],[1552919100000, 0.000],[1552919100000, 0.000],[1552919100000, 0.000],[1552919100000, 0.000],[1552919100000, 0.000],[1552919100000, 0.000],[1552919100000, 0.000],[1552919400000, 0.000],[1552919400000, 0.000],[1552919400000, 0.000],[1552919400000, 0.000],[1552919400000, 0.000],[1552919400000, 0.000],[1552919400000, 0.000],[1552919400000, 0.000],[1552919700000, 0.000],[1552919700000, 0.000],[1552919700000, 0.000],[1552919700000, 0.000],[1552919700000, 0.000],[1552919700000, 0.000],[1552919700000, 0.000],[1552919700000, 0.000],[1552920000000, 0.000],[1552920000000, 0.000],[1552920000000, 0.000],[1552920000000, 0.000],[1552920000000, 0.000],[1552920000000, 0.000],[1552920000000, 0.000],[1552920000000, 0.000],[1552920300000, 0.000],[1552920300000, 0.000],[1552920300000, 0.000],[1552920300000, 0.000],[1552920300000, 0.000],[1552920300000, 0.000],[1552920300000, 0.000],[1552920300000, 0.000],[1552920600000, 0.000],[1552920600000, 0.000],[1552920600000, 0.000],[1552920600000, 0.000],[1552920600000, 0.000],[1552920600000, 0.000],[1552920600000, 0.000],[1552920600000, 0.000],[1552920900000, 0.000],[1552920900000, 0.000],[1552920900000, 0.000],[1552920900000, 0.000],[1552920900000, 0.000],[1552920900000, 0.000],[1552920900000, 0.000],[1552920900000, 0.000],[1552921200000, 0.000],[1552921200000, 0.000],[1552921200000, 0.000],[1552921200000, 0.000],[1552921200000, 0.000],[1552921200000, 0.000],[1552921200000, 0.000],[1552921200000, 0.000],[1552921500000, 0.000],[1552921500000, 0.000],[1552921500000, 0.000],[1552921500000, 0.000],[1552921500000, 0.000],[1552921500000, 0.000],[1552921500000, 0.000],[1552921500000, 0.000],[1552921800000, 0.000],[1552921800000, 0.000],[1552921800000, 0.000],[1552921800000, 0.000],[1552921800000, 0.000],[1552921800000, 0.000],[1552921800000, 0.000],[1552921800000, 0.000],[1552922100000, 0.000],[1552922100000, 0.000],[1552922100000, 0.000],[1552922100000, 0.000],[1552922100000, 0.000],[1552922100000, 0.000],[1552922100000, 0.000],[1552922100000, 0.000],[1552922400000, 0.000],[1552922400000, 0.000],[1552922400000, 0.000],[1552922400000, 0.000],[1552922400000, 0.000],[1552922400000, 0.000],[1552922400000, 0.000],[1552922400000, 0.000],[1552922700000, 0.000],[1552922700000, 0.000],[1552922700000, 0.000],[1552922700000, 0.000],[1552922700000, 0.000],[1552922700000, 0.000],[1552922700000, 0.000],[1552922700000, 0.000],[1552923000000, 0.000],[1552923000000, 0.000],[1552923000000, 0.000],[1552923000000, 0.000],[1552923000000, 0.000],[1552923000000, 0.000],[1552923000000, 0.000],[1552923000000, 0.000],[1552923300000, 0.000],[1552923300000, 0.000],[1552923300000, 0.000],[1552923300000, 0.000],[1552923300000, 0.000],[1552923300000, 0.000],[1552923300000, 0.000],[1552923300000, 0.000],[1552923600000, 0.000],[1552923600000, 0.000],[1552923600000, 0.000],[1552923600000, 0.000],[1552923600000, 0.000],[1552923600000, 0.000],[1552923600000, 0.000],[1552923600000, 0.000],[1552923900000, 0.000],[1552923900000, 0.000],[1552923900000, 0.000],[1552923900000, 0.000],[1552923900000, 0.000],[1552923900000, 0.000],[1552923900000, 0.000],[1552923900000, 0.000],[1552924200000, 0.000],[1552924200000, 0.000],[1552924200000, 0.000],[1552924200000, 0.000],[1552924200000, 0.000],[1552924200000, 0.000],[1552924200000, 0.000],[1552924200000, 0.000],[1552924500000, 0.000],[1552924500000, 0.000],[1552924500000, 0.000],[1552924500000, 0.000],[1552924500000, 0.000],[1552924500000, 0.000],[1552924500000, 0.000],[1552924500000, 0.000],[1552924800000, 0.000],[1552924800000, 0.000],[1552924800000, 0.000],[1552924800000, 0.000],[1552924800000, 0.000],[1552924800000, 0.000],[1552924800000, 0.000],[1552924800000, 0.000],[1552925100000, 0.000],[1552925100000, 0.000],[1552925100000, 0.000],[1552925100000, 0.000],[1552925100000, 0.000],[1552925100000, 0.000],[1552925100000, 0.000],[1552925100000, 0.000],[1552925400000, 0.000],[1552925400000, 0.000],[1552925400000, 0.000],[1552925400000, 0.000],[1552925400000, 0.000],[1552925400000, 0.000],[1552925400000, 0.000],[1552925400000, 0.000],[1552925700000, 0.000],[1552925700000, 0.000],[1552925700000, 0.000],[1552925700000, 0.000],[1552925700000, 0.000],[1552925700000, 0.000],[1552925700000, 0.000],[1552925700000, 0.000],[1552926000000, 0.000],[1552926000000, 0.000],[1552926000000, 0.000],[1552926000000, 0.000],[1552926000000, 0.000],[1552926000000, 0.000],[1552926000000, 0.000],[1552926000000, 0.000],[1552926300000, 0.000],[1552926300000, 0.000],[1552926300000, 0.000],[1552926300000, 0.000],[1552926300000, 0.000],[1552926300000, 0.000],[1552926300000, 0.000],[1552926300000, 0.000],[1552926600000, 0.000],[1552926600000, 0.000],[1552926600000, 0.000],[1552926600000, 0.000],[1552926600000, 0.000],[1552926600000, 0.000],[1552926600000, 0.000],[1552926600000, 0.000],[1552926900000, 0.000],[1552926900000, 0.000],[1552926900000, 0.000],[1552926900000, 0.000],[1552926900000, 0.000],[1552926900000, 0.000],[1552926900000, 0.000],[1552926900000, 0.000],[1552927200000, 0.000],[1552927200000, 0.000],[1552927200000, 0.000],[1552927200000, 0.000],[1552927200000, 0.000],[1552927200000, 0.000],[1552927200000, 0.000],[1552927200000, 0.000],[1552927500000, 0.000],[1552927500000, 0.000],[1552927500000, 0.000],[1552927500000, 0.000],[1552927500000, 0.000],[1552927500000, 0.000],[1552927500000, 0.000],[1552927500000, 0.000],[1552927800000, 0.000],[1552927800000, 0.000],[1552927800000, 0.000],[1552927800000, 0.000],[1552927800000, 0.000],[1552927800000, 0.000],[1552927800000, 0.000],[1552927800000, 0.000],[1552928100000, 0.000],[1552928100000, 0.000],[1552928100000, 0.000],[1552928100000, 0.000],[1552928100000, 0.000],[1552928100000, 0.000],[1552928100000, 0.000],[1552928100000, 0.000],[1552928400000, 0.000],[1552928400000, 0.000],[1552928400000, 0.000],[1552928400000, 0.000],[1552928400000, 0.000],[1552928400000, 0.000],[1552928400000, 0.000],[1552928400000, 0.000],[1552928700000, 0.000],[1552928700000, 0.000],[1552928700000, 0.000],[1552928700000, 0.000],[1552928700000, 0.000],[1552928700000, 0.000],[1552928700000, 0.000],[1552928700000, 0.000],[1552929000000, 0.000],[1552929000000, 0.000],[1552929000000, 0.000],[1552929000000, 0.000],[1552929000000, 0.000],[1552929000000, 0.000],[1552929000000, 0.000],[1552929000000, 0.000],[1552929300000, 0.000],[1552929300000, 0.000],[1552929300000, 0.000],[1552929300000, 0.000],[1552929300000, 0.000],[1552929300000, 0.000],[1552929300000, 0.000],[1552929300000, 0.000],[1552929600000, 0.000],[1552929600000, 0.000],[1552929600000, 0.000],[1552929600000, 0.000],[1552929600000, 0.000],[1552929600000, 0.000],[1552929600000, 0.000],[1552929600000, 0.000],[1552929900000, 0.000],[1552929900000, 0.000],[1552929900000, 0.000],[1552929900000, 0.000],[1552929900000, 0.000],[1552929900000, 0.000],[1552929900000, 0.000],[1552929900000, 0.000],[1552930200000, 0.000],[1552930200000, 0.000],[1552930200000, 0.000],[1552930200000, 0.000],[1552930200000, 0.000],[1552930200000, 0.000],[1552930200000, 0.000],[1552930200000, 0.000],[1552930500000, 0.000],[1552930500000, 0.000],[1552930500000, 0.000],[1552930500000, 0.000],[1552930500000, 0.000],[1552930500000, 0.000],[1552930500000, 0.000],[1552930500000, 0.000],[1552930800000, 0.000],[1552930800000, 0.000],[1552930800000, 0.000],[1552930800000, 0.000],[1552930800000, 0.000],[1552930800000, 0.000],[1552930800000, 0.000],[1552930800000, 0.000],[1552931100000, 0.000],[1552931100000, 0.000],[1552931100000, 0.000],[1552931100000, 0.000],[1552931100000, 0.000],[1552931100000, 0.000],[1552931100000, 0.000],[1552931100000, 0.000],[1552931400000, 0.000],[1552931400000, 0.000],[1552931400000, 0.000],[1552931400000, 0.000],[1552931400000, 0.000],[1552931400000, 0.000],[1552931400000, 0.000],[1552931400000, 0.000],[1552931700000, 0.000],[1552931700000, 0.000],[1552931700000, 0.000],[1552931700000, 0.000],[1552931700000, 0.000],[1552931700000, 0.000],[1552931700000, 0.000],[1552931700000, 0.000],[1552932000000, 0.000],[1552932000000, 0.000],[1552932000000, 0.000],[1552932000000, 0.000],[1552932000000, 0.000],[1552932000000, 0.000],[1552932000000, 0.000],[1552932000000, 0.000],[1552932300000, 0.000],[1552932300000, 0.000],[1552932300000, 0.000],[1552932300000, 0.000],[1552932300000, 0.000],[1552932300000, 0.000],[1552932300000, 0.000],[1552932300000, 0.000],[1552932600000, 0.000],[1552932600000, 0.000],[1552932600000, 0.000],[1552932600000, 0.000],[1552932600000, 0.000],[1552932600000, 0.000],[1552932600000, 0.000],[1552932600000, 0.000],[1552932900000, 0.000],[1552932900000, 0.000],[1552932900000, 0.000],[1552932900000, 0.000],[1552932900000, 0.000],[1552932900000, 0.000],[1552932900000, 0.000],[1552932900000, 0.000],[1552933200000, 0.000],[1552933200000, 0.000],[1552933200000, 0.000],[1552933200000, 0.000],[1552933200000, 0.000],[1552933200000, 0.000],[1552933200000, 0.000],[1552933200000, 0.000],[1552933500000, 0.000],[1552933500000, 0.000],[1552933500000, 0.000],[1552933500000, 0.000],[1552933500000, 0.000],[1552933500000, 0.000],[1552933500000, 0.000],[1552933500000, 0.000],[1552933800000, 0.000],[1552933800000, 0.000],[1552933800000, 0.000],[1552933800000, 0.000],[1552933800000, 0.000],[1552933800000, 0.000],[1552933800000, 0.000],[1552933800000, 0.000],[1552934100000, 0.000],[1552934100000, 0.000],[1552934100000, 0.000],[1552934100000, 0.000],[1552934100000, 0.000],[1552934100000, 0.000],[1552934100000, 0.000],[1552934100000, 0.000],[1552934400000, 0.000],[1552934400000, 0.000],[1552934400000, 0.000],[1552934400000, 0.000],[1552934400000, 0.000],[1552934400000, 0.000],[1552934400000, 0.000],[1552934400000, 0.000],[1552934700000, 0.000],[1552934700000, 0.000],[1552934700000, 0.000],[1552934700000, 0.000],[1552934700000, 0.000],[1552934700000, 0.000],[1552934700000, 0.000],[1552934700000, 0.000],[1552935000000, 0.000],[1552935000000, 0.000],[1552935000000, 0.000],[1552935000000, 0.000],[1552935000000, 0.000],[1552935000000, 0.000],[1552935000000, 0.000],[1552935000000, 0.000],[1552935300000, 0.000],[1552935300000, 0.000],[1552935300000, 0.000],[1552935300000, 0.000],[1552935300000, 0.000],[1552935300000, 0.000],[1552935300000, 0.000],[1552935300000, 0.000],[1552935600000, 0.000],[1552935600000, 0.000],[1552935600000, 0.000],[1552935600000, 0.000],[1552935600000, 0.000],[1552935600000, 0.000],[1552935600000, 0.000],[1552935600000, 0.000],[1552935900000, 0.000],[1552935900000, 0.000],[1552935900000, 0.000],[1552935900000, 0.000],[1552935900000, 0.000],[1552935900000, 0.000],[1552935900000, 0.000],[1552935900000, 0.000],[1552936200000, 0.000],[1552936200000, 0.000],[1552936200000, 0.000],[1552936200000, 0.000],[1552936200000, 0.000],[1552936200000, 0.000],[1552936200000, 0.000],[1552936200000, 0.000],[1552936500000, 0.000],[1552936500000, 0.000],[1552936500000, 0.000],[1552936500000, 0.000],[1552936500000, 0.000],[1552936500000, 0.000],[1552936500000, 0.000],[1552936500000, 0.000],[1552936800000, 0.000],[1552936800000, 0.000],[1552936800000, 0.000],[1552936800000, 0.000],[1552936800000, 0.000],[1552936800000, 0.000],[1552936800000, 0.000],[1552936800000, 0.000],[1552937100000, 0.000],[1552937100000, 0.000],[1552937100000, 0.000],[1552937100000, 0.000],[1552937100000, 0.000],[1552937100000, 0.000],[1552937100000, 0.000],[1552937100000, 0.000],[1552937400000, 0.000],[1552937400000, 0.000],[1552937400000, 0.000],[1552937400000, 0.000],[1552937400000, 0.000],[1552937400000, 0.000],[1552937400000, 0.000],[1552937400000, 0.000],[1552937700000, 0.000],[1552937700000, 0.000],[1552937700000, 0.000],[1552937700000, 0.000],[1552937700000, 0.000],[1552937700000, 0.000],[1552937700000, 0.000],[1552937700000, 0.000],[1552938000000, 0.000],[1552938000000, 0.000],[1552938000000, 0.000],[1552938000000, 0.000],[1552938000000, 0.000],[1552938000000, 0.000],[1552938000000, 0.000],[1552938000000, 0.000],[1552938300000, 0.000],[1552938300000, 0.000],[1552938300000, 0.000],[1552938300000, 0.000],[1552938300000, 0.000],[1552938300000, 0.000],[1552938300000, 0.000],[1552938300000, 0.000],[1552938600000, 0.000],[1552938600000, 0.000],[1552938600000, 0.000],[1552938600000, 0.000],[1552938600000, 0.000],[1552938600000, 0.000],[1552938600000, 0.000],[1552938600000, 0.000],[1552938900000, 0.000],[1552938900000, 0.000],[1552938900000, 0.000],[1552938900000, 0.000],[1552938900000, 0.000],[1552938900000, 0.000],[1552938900000, 0.000],[1552938900000, 0.000],[1552939200000, 0.000],[1552939200000, 0.000],[1552939200000, 0.000],[1552939200000, 0.000],[1552939200000, 0.000],[1552939200000, 0.000],[1552939200000, 0.000],[1552939200000, 0.000],[1552939500000, 0.000],[1552939500000, 0.000],[1552939500000, 0.000],[1552939500000, 0.000],[1552939500000, 0.000],[1552939500000, 0.000],[1552939500000, 0.000],[1552939500000, 0.000],[1552939800000, 0.000],[1552939800000, 0.000],[1552939800000, 0.000],[1552939800000, 0.000],[1552939800000, 0.000],[1552939800000, 0.000],[1552939800000, 0.000],[1552939800000, 0.000],[1552940100000, 0.000],[1552940100000, 0.000],[1552940100000, 0.000],[1552940100000, 0.000],[1552940100000, 0.000],[1552940100000, 0.000],[1552940100000, 0.000],[1552940100000, 0.000],[1552940400000, 0.000],[1552940400000, 0.000],[1552940400000, 0.000],[1552940400000, 0.000],[1552940400000, 0.000],[1552940400000, 0.000],[1552940400000, 0.000],[1552940400000, 0.000],[1552940700000, 0.000],[1552940700000, 0.000],[1552940700000, 0.000],[1552940700000, 0.000],[1552940700000, 0.000],[1552940700000, 0.000],[1552940700000, 0.000],[1552940700000, 0.000],[1552941000000, 0.000],[1552941000000, 0.000],[1552941000000, 0.000],[1552941000000, 0.000],[1552941000000, 0.000],[1552941000000, 0.000],[1552941000000, 0.000],[1552941000000, 0.000],[1552941300000, 0.000],[1552941300000, 0.000],[1552941300000, 0.000],[1552941300000, 0.000],[1552941300000, 0.000],[1552941300000, 0.000],[1552941300000, 0.000],[1552941300000, 0.000],[1552941600000, 0.000],[1552941600000, 0.000],[1552941600000, 0.000],[1552941600000, 0.000],[1552941600000, 0.000],[1552941600000, 0.000],[1552941600000, 0.000],[1552941600000, 0.000],[1552941900000, 0.000],[1552941900000, 0.000],[1552941900000, 0.000],[1552941900000, 0.000],[1552941900000, 0.000],[1552941900000, 0.000],[1552941900000, 0.000],[1552941900000, 0.000],[1552942200000, 0.000],[1552942200000, 0.000],[1552942200000, 0.000],[1552942200000, 0.000],[1552942200000, 0.000],[1552942200000, 0.000],[1552942200000, 0.000],[1552942200000, 0.000],[1552942500000, 0.000],[1552942500000, 0.000],[1552942500000, 0.000],[1552942500000, 0.000],[1552942500000, 0.000],[1552942500000, 0.000],[1552942500000, 0.000],[1552942500000, 0.000],[1552942800000, 0.000],[1552942800000, 0.000],[1552942800000, 0.000],[1552942800000, 0.000],[1552942800000, 0.000],[1552942800000, 0.000],[1552942800000, 0.000],[1552942800000, 0.000],[1552943100000, 0.000],[1552943100000, 0.000],[1552943100000, 0.000],[1552943100000, 0.000],[1552943100000, 0.000],[1552943100000, 0.000],[1552943100000, 0.000],[1552943100000, 0.000]];
|
||
|
||
var series_arr = [ { label: "All queries", color: "#6e9dc9" },{ label: "Select queries", color: "#f4ab3a" },{ label: "Write queries", color: "#ac7fa8" } ];
|
||
|
||
create_download_button(6, 'btn btn-default');
|
||
var durationqueries_graph = create_linegraph('durationqueries_graph', 'Average queries duration (5 minutes average)', 'Duration', series_arr, [durationqueries_graph_6_d1,durationqueries_graph_6_d2,durationqueries_graph_6_d3]);
|
||
add_download_button_event(6, 'durationqueries_graph');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
</div><!-- end of duration-traffic -->
|
||
|
||
<div id="prepared-queries-ratio" class="analysis-item row">
|
||
<h2 class=""><i class="glyphicon icon-cog"></i> Prepared queries ratio</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">0.98</span> <span class="figure-label">Ratio of bind vs prepare</span></li>
|
||
<li><span class="figure">2.52 %</span> <span class="figure-label">Ratio between prepared and "usual" statements</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div id="bindpreparequeries_graph" class="jqplot-graph linegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var bindpreparequeries_graph_7_d1 = [[1552544700000, 3],[1552545000000, 0],[1552545300000, 1],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 25],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 9],[1552578600000, 3],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 5],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 4],[1552582800000, 0],[1552583100000, 0],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 0],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 22],[1552601400000, 110],[1552601700000, 0],[1552602000000, 29],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 106],[1552629000000, 48],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 0],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 23],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 4],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 3],[1552676700000, 107],[1552677000000, 0],[1552677300000, 0],[1552677600000, 0],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 3],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 3],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 0],[1552686000000, 0],[1552686300000, 108],[1552686600000, 0],[1552686900000, 0],[1552687200000, 3],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 27],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 22],[1552919400000, 8],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 3],[1552920900000, 1],[1552921200000, 3],[1552921500000, 39],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 3],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 3],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 3],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 3],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 3],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 3],[1552943100000, 0]];
|
||
var bindpreparequeries_graph_7_d2 = [[1552544700000, 3],[1552545000000, 0],[1552545300000, 1],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 25],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 9],[1552578600000, 3],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 5],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 4],[1552582800000, 0],[1552583100000, 0],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 0],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 20],[1552601400000, 110],[1552601700000, 0],[1552602000000, 25],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 106],[1552629000000, 46],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 0],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 23],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 4],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 3],[1552676700000, 107],[1552677000000, 0],[1552677300000, 0],[1552677600000, 0],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 3],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 3],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 0],[1552686000000, 0],[1552686300000, 108],[1552686600000, 0],[1552686900000, 0],[1552687200000, 3],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 25],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 20],[1552919400000, 8],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 3],[1552920900000, 1],[1552921200000, 3],[1552921500000, 35],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 3],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 3],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 3],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 3],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 3],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 3],[1552943100000, 0]];
|
||
var bindpreparequeries_graph_7_d3 = [[1552544700000, 1.00],[1552545000000, 0.00],[1552545300000, 1.00],[1552545600000, 0.00],[1552545900000, 0.00],[1552546200000, 0.00],[1552546500000, 0.00],[1552575600000, 0.00],[1552575900000, 0.00],[1552576200000, 0.00],[1552576500000, 0.00],[1552576800000, 1.00],[1552577100000, 0.00],[1552577400000, 0.00],[1552577700000, 0.00],[1552578000000, 0.00],[1552578300000, 1.00],[1552578600000, 1.00],[1552578900000, 0.00],[1552579200000, 0.00],[1552579500000, 0.00],[1552579800000, 0.00],[1552580100000, 0.00],[1552580400000, 0.00],[1552580700000, 1.00],[1552581000000, 0.00],[1552581300000, 0.00],[1552581600000, 0.00],[1552581900000, 0.00],[1552582200000, 0.00],[1552582500000, 1.00],[1552582800000, 0.00],[1552583100000, 0.00],[1552583400000, 0.00],[1552583700000, 0.00],[1552584000000, 0.00],[1552584300000, 0.00],[1552584600000, 0.00],[1552584900000, 0.00],[1552585200000, 0.00],[1552585500000, 0.00],[1552585800000, 0.00],[1552586100000, 0.00],[1552597200000, 0.00],[1552597500000, 0.00],[1552597800000, 0.00],[1552598100000, 0.00],[1552598400000, 0.00],[1552598700000, 0.00],[1552599000000, 0.00],[1552599300000, 0.00],[1552599600000, 0.00],[1552599900000, 0.00],[1552600200000, 0.00],[1552600500000, 0.00],[1552600800000, 0.00],[1552601100000, 0.91],[1552601400000, 1.00],[1552601700000, 0.00],[1552602000000, 0.86],[1552602300000, 0.00],[1552602600000, 0.00],[1552602900000, 0.00],[1552603200000, 0.00],[1552603500000, 0.00],[1552603800000, 0.00],[1552604100000, 0.00],[1552618800000, 0.00],[1552619100000, 0.00],[1552619400000, 0.00],[1552619700000, 0.00],[1552620000000, 0.00],[1552620300000, 0.00],[1552620600000, 0.00],[1552620900000, 0.00],[1552621200000, 0.00],[1552621500000, 0.00],[1552621800000, 0.00],[1552622100000, 0.00],[1552622400000, 0.00],[1552622700000, 0.00],[1552623000000, 0.00],[1552623300000, 0.00],[1552623600000, 0.00],[1552623900000, 0.00],[1552624200000, 0.00],[1552624500000, 0.00],[1552624800000, 0.00],[1552625100000, 0.00],[1552625400000, 0.00],[1552625700000, 0.00],[1552626000000, 0.00],[1552626300000, 0.00],[1552626600000, 0.00],[1552626900000, 0.00],[1552627200000, 0.00],[1552627500000, 0.00],[1552627800000, 0.00],[1552628100000, 0.00],[1552628400000, 0.00],[1552628700000, 1.00],[1552629000000, 0.96],[1552629300000, 0.00],[1552629600000, 0.00],[1552629900000, 0.00],[1552630200000, 0.00],[1552630500000, 0.00],[1552630800000, 0.00],[1552631100000, 0.00],[1552631400000, 0.00],[1552631700000, 0.00],[1552632000000, 0.00],[1552632300000, 0.00],[1552632600000, 0.00],[1552632900000, 0.00],[1552658400000, 0.00],[1552658700000, 0.00],[1552659000000, 0.00],[1552659300000, 1.00],[1552659600000, 0.00],[1552659900000, 0.00],[1552660200000, 0.00],[1552660500000, 0.00],[1552660800000, 0.00],[1552661100000, 0.00],[1552661400000, 1.00],[1552661700000, 0.00],[1552662000000, 0.00],[1552662300000, 0.00],[1552662600000, 0.00],[1552662900000, 0.00],[1552663200000, 0.00],[1552663500000, 0.00],[1552663800000, 0.00],[1552664100000, 0.00],[1552664400000, 0.00],[1552664700000, 0.00],[1552665000000, 0.00],[1552665300000, 0.00],[1552665600000, 0.00],[1552665900000, 0.00],[1552666200000, 0.00],[1552666500000, 0.00],[1552666800000, 0.00],[1552667100000, 0.00],[1552667400000, 0.00],[1552667700000, 0.00],[1552668000000, 0.00],[1552668300000, 0.00],[1552668600000, 0.00],[1552668900000, 0.00],[1552669200000, 0.00],[1552669500000, 0.00],[1552669800000, 0.00],[1552670100000, 0.00],[1552670400000, 0.00],[1552670700000, 0.00],[1552671000000, 0.00],[1552671300000, 0.00],[1552671600000, 0.00],[1552671900000, 0.00],[1552672200000, 0.00],[1552672500000, 0.00],[1552672800000, 0.00],[1552673100000, 0.00],[1552673400000, 0.00],[1552673700000, 0.00],[1552674000000, 0.00],[1552674300000, 0.00],[1552674600000, 0.00],[1552674900000, 0.00],[1552675200000, 0.00],[1552675500000, 0.00],[1552675800000, 0.00],[1552676100000, 0.00],[1552676400000, 1.00],[1552676700000, 1.00],[1552677000000, 0.00],[1552677300000, 0.00],[1552677600000, 0.00],[1552677900000, 0.00],[1552678200000, 0.00],[1552678500000, 0.00],[1552678800000, 0.00],[1552679100000, 0.00],[1552679400000, 0.00],[1552679700000, 0.00],[1552680000000, 1.00],[1552680300000, 0.00],[1552680600000, 0.00],[1552680900000, 0.00],[1552681200000, 0.00],[1552681500000, 0.00],[1552681800000, 0.00],[1552682100000, 0.00],[1552682400000, 0.00],[1552682700000, 0.00],[1552683000000, 0.00],[1552683300000, 0.00],[1552683600000, 1.00],[1552683900000, 0.00],[1552684200000, 0.00],[1552684500000, 0.00],[1552684800000, 0.00],[1552685100000, 0.00],[1552685400000, 0.00],[1552685700000, 0.00],[1552686000000, 0.00],[1552686300000, 1.00],[1552686600000, 0.00],[1552686900000, 0.00],[1552687200000, 1.00],[1552687500000, 0.00],[1552687800000, 0.00],[1552688100000, 0.00],[1552688400000, 0.00],[1552688700000, 0.00],[1552689000000, 0.93],[1552689300000, 0.00],[1552689600000, 0.00],[1552689900000, 0.00],[1552690200000, 0.00],[1552690500000, 0.00],[1552694400000, 0.00],[1552694700000, 0.00],[1552695000000, 0.00],[1552695300000, 0.00],[1552695600000, 0.00],[1552695900000, 0.00],[1552696200000, 0.00],[1552696500000, 0.00],[1552696800000, 0.00],[1552697100000, 0.00],[1552697400000, 0.00],[1552697700000, 0.00],[1552701600000, 0.00],[1552701900000, 0.00],[1552702200000, 0.00],[1552702500000, 0.00],[1552702800000, 0.00],[1552703100000, 0.00],[1552703400000, 0.00],[1552703700000, 0.00],[1552704000000, 0.00],[1552704300000, 0.00],[1552704600000, 0.00],[1552704900000, 0.00],[1552716000000, 0.00],[1552716300000, 0.00],[1552716600000, 0.00],[1552716900000, 0.00],[1552717200000, 0.00],[1552717500000, 0.00],[1552717800000, 0.00],[1552718100000, 0.00],[1552718400000, 0.00],[1552718700000, 0.00],[1552719000000, 0.00],[1552719300000, 0.00],[1552719600000, 0.00],[1552719900000, 0.00],[1552720200000, 0.00],[1552720500000, 0.00],[1552720800000, 0.00],[1552721100000, 0.00],[1552721400000, 0.00],[1552721700000, 0.00],[1552722000000, 0.00],[1552722300000, 0.00],[1552722600000, 0.00],[1552722900000, 0.00],[1552730400000, 0.00],[1552730700000, 0.00],[1552731000000, 0.00],[1552731300000, 0.00],[1552731600000, 0.00],[1552731900000, 0.00],[1552732200000, 0.00],[1552732500000, 0.00],[1552732800000, 0.00],[1552733100000, 0.00],[1552733400000, 0.00],[1552733700000, 0.00],[1552780800000, 0.00],[1552781100000, 0.00],[1552781400000, 0.00],[1552781700000, 0.00],[1552782000000, 0.00],[1552782300000, 0.00],[1552782600000, 0.00],[1552782900000, 0.00],[1552783200000, 0.00],[1552783500000, 0.00],[1552783800000, 0.00],[1552784100000, 0.00],[1552914000000, 0.00],[1552914300000, 0.00],[1552914600000, 0.00],[1552914900000, 0.00],[1552915200000, 0.00],[1552915500000, 0.00],[1552915800000, 0.00],[1552916100000, 0.00],[1552916400000, 0.00],[1552916700000, 0.00],[1552917000000, 0.00],[1552917300000, 0.00],[1552917600000, 0.00],[1552917900000, 0.00],[1552918200000, 0.00],[1552918500000, 0.00],[1552918800000, 0.00],[1552919100000, 0.91],[1552919400000, 1.00],[1552919700000, 0.00],[1552920000000, 0.00],[1552920300000, 0.00],[1552920600000, 1.00],[1552920900000, 1.00],[1552921200000, 1.00],[1552921500000, 0.90],[1552921800000, 0.00],[1552922100000, 0.00],[1552922400000, 0.00],[1552922700000, 0.00],[1552923000000, 0.00],[1552923300000, 0.00],[1552923600000, 0.00],[1552923900000, 0.00],[1552924200000, 0.00],[1552924500000, 0.00],[1552924800000, 1.00],[1552925100000, 0.00],[1552925400000, 0.00],[1552925700000, 0.00],[1552926000000, 0.00],[1552926300000, 0.00],[1552926600000, 0.00],[1552926900000, 0.00],[1552927200000, 0.00],[1552927500000, 0.00],[1552927800000, 0.00],[1552928100000, 0.00],[1552928400000, 1.00],[1552928700000, 0.00],[1552929000000, 0.00],[1552929300000, 0.00],[1552929600000, 0.00],[1552929900000, 0.00],[1552930200000, 0.00],[1552930500000, 0.00],[1552930800000, 0.00],[1552931100000, 0.00],[1552931400000, 0.00],[1552931700000, 0.00],[1552932000000, 1.00],[1552932300000, 0.00],[1552932600000, 0.00],[1552932900000, 0.00],[1552933200000, 0.00],[1552933500000, 0.00],[1552933800000, 0.00],[1552934100000, 0.00],[1552934400000, 0.00],[1552934700000, 0.00],[1552935000000, 0.00],[1552935300000, 0.00],[1552935600000, 1.00],[1552935900000, 0.00],[1552936200000, 0.00],[1552936500000, 0.00],[1552936800000, 0.00],[1552937100000, 0.00],[1552937400000, 0.00],[1552937700000, 0.00],[1552938000000, 0.00],[1552938300000, 0.00],[1552938600000, 0.00],[1552938900000, 0.00],[1552939200000, 1.00],[1552939500000, 0.00],[1552939800000, 0.00],[1552940100000, 0.00],[1552940400000, 0.00],[1552940700000, 0.00],[1552941000000, 0.00],[1552941300000, 0.00],[1552941600000, 0.00],[1552941900000, 0.00],[1552942200000, 0.00],[1552942500000, 0.00],[1552942800000, 1.00],[1552943100000, 0.00]];
|
||
|
||
var series_arr = [ { label: "Prepare/Parse", color: "#6e9dc9" },{ label: "Execute/Bind", color: "#f4ab3a" },{ label: "Bind vs prepare", color: "#ac7fa8" } ];
|
||
|
||
create_download_button(7, 'btn btn-default');
|
||
var bindpreparequeries_graph = create_linegraph('bindpreparequeries_graph', 'Bind versus prepare statements (5 minutes average)', 'Number of statements', series_arr, [bindpreparequeries_graph_7_d1,bindpreparequeries_graph_7_d2,bindpreparequeries_graph_7_d3]);
|
||
add_download_button_event(7, 'bindpreparequeries_graph');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
</div><!-- end of prepared-queries-ratio -->
|
||
|
||
<div class="analysis-item row" id="general-activity">
|
||
<h2 class=""><i class="glyphicon icon-calendar"></i> General Activity</h2>
|
||
<div class="col-md-12 tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#general-activity-queries" data-toggle="tab">Queries</a></li>
|
||
<li><a href="#general-activity-select-queries" data-toggle="tab">Read Queries</a></li>
|
||
<li><a href="#general-activity-write-queries" data-toggle="tab">Write Queries</a></li>
|
||
<li><a href="#general-activity-prepared-queries" data-toggle="tab">Prepared Queries</a></li>
|
||
<li><a href="#general-activity-connections" data-toggle="tab">Connections</a></li>
|
||
<li><a href="#general-activity-sessions" data-toggle="tab">Sessions</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="active tab-pane" id="general-activity-queries">
|
||
<table class="table table-striped table-hover table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Min duration</th>
|
||
<th>Max duration</th>
|
||
<th>Avg duration</th>
|
||
<th>Latency Percentile(90)</th>
|
||
<th>Latency Percentile(95)</th>
|
||
<th>Latency Percentile(99)</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Mar 14</td>
|
||
<td>01</td>
|
||
<td>22</td>
|
||
<td>0ms</td>
|
||
<td>111ms</td>
|
||
<td>5ms</td>
|
||
<td>113ms</td>
|
||
<td>113ms</td>
|
||
<td>113ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>10</td>
|
||
<td>114</td>
|
||
<td>0ms</td>
|
||
<td>461ms</td>
|
||
<td>54ms</td>
|
||
<td>1s31ms</td>
|
||
<td>1s165ms</td>
|
||
<td>1s165ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>11</td>
|
||
<td>99</td>
|
||
<td>0ms</td>
|
||
<td>546ms</td>
|
||
<td>128ms</td>
|
||
<td>1s483ms</td>
|
||
<td>1s766ms</td>
|
||
<td>1s889ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>12</td>
|
||
<td>43</td>
|
||
<td>0ms</td>
|
||
<td>430ms</td>
|
||
<td>125ms</td>
|
||
<td>920ms</td>
|
||
<td>1s808ms</td>
|
||
<td>1s808ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>16</td>
|
||
<td>32,112</td>
|
||
<td>0ms</td>
|
||
<td>56s311ms</td>
|
||
<td>5ms</td>
|
||
<td>1m7s</td>
|
||
<td>1m7s</td>
|
||
<td>1m7s</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>17</td>
|
||
<td>379</td>
|
||
<td>0ms</td>
|
||
<td>27s560ms</td>
|
||
<td>785ms</td>
|
||
<td>1m46s</td>
|
||
<td>1m51s</td>
|
||
<td>1m51s</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>22</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>23</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td>Mar 15</td>
|
||
<td>00</td>
|
||
<td>427</td>
|
||
<td>0ms</td>
|
||
<td>4m7s</td>
|
||
<td>1s954ms</td>
|
||
<td>3m19s</td>
|
||
<td>8m14s</td>
|
||
<td>8m14s</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>01</td>
|
||
<td>6</td>
|
||
<td>0ms</td>
|
||
<td>25ms</td>
|
||
<td>4ms</td>
|
||
<td>27ms</td>
|
||
<td>27ms</td>
|
||
<td>27ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>09</td>
|
||
<td>72</td>
|
||
<td>0ms</td>
|
||
<td>2s267ms</td>
|
||
<td>64ms</td>
|
||
<td>4s570ms</td>
|
||
<td>4s570ms</td>
|
||
<td>4s570ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>10</td>
|
||
<td>31</td>
|
||
<td>244ms</td>
|
||
<td>1s361ms</td>
|
||
<td>280ms</td>
|
||
<td>569ms</td>
|
||
<td>5s394ms</td>
|
||
<td>5s394ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>11</td>
|
||
<td>12</td>
|
||
<td>279ms</td>
|
||
<td>393ms</td>
|
||
<td>163ms</td>
|
||
<td>573ms</td>
|
||
<td>573ms</td>
|
||
<td>573ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>12</td>
|
||
<td>4</td>
|
||
<td>271ms</td>
|
||
<td>283ms</td>
|
||
<td>138ms</td>
|
||
<td>283ms</td>
|
||
<td>283ms</td>
|
||
<td>283ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>13</td>
|
||
<td>2</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>14</td>
|
||
<td>272</td>
|
||
<td>0ms</td>
|
||
<td>2m30s</td>
|
||
<td>1s592ms</td>
|
||
<td>7s494ms</td>
|
||
<td>7m4s</td>
|
||
<td>7m4s</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>15</td>
|
||
<td>37</td>
|
||
<td>0ms</td>
|
||
<td>3s763ms</td>
|
||
<td>469ms</td>
|
||
<td>272ms</td>
|
||
<td>15s28ms</td>
|
||
<td>15s28ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>16</td>
|
||
<td>32,403</td>
|
||
<td>0ms</td>
|
||
<td>3m6s</td>
|
||
<td>22ms</td>
|
||
<td>1m2s</td>
|
||
<td>8m53s</td>
|
||
<td>8m53s</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>17</td>
|
||
<td>78</td>
|
||
<td>0ms</td>
|
||
<td>25s847ms</td>
|
||
<td>1s734ms</td>
|
||
<td>2m15s</td>
|
||
<td>2m15s</td>
|
||
<td>2m15s</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>19</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>21</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td>Mar 16</td>
|
||
<td>01</td>
|
||
<td>9</td>
|
||
<td>0ms</td>
|
||
<td>25ms</td>
|
||
<td>3ms</td>
|
||
<td>25ms</td>
|
||
<td>25ms</td>
|
||
<td>25ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>02</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>05</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>19</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td>Mar 18</td>
|
||
<td>08</td>
|
||
<td>12</td>
|
||
<td>0ms</td>
|
||
<td>26ms</td>
|
||
<td>2ms</td>
|
||
<td>30ms</td>
|
||
<td>30ms</td>
|
||
<td>30ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>09</td>
|
||
<td>2,106</td>
|
||
<td>0ms</td>
|
||
<td>8s419ms</td>
|
||
<td>36ms</td>
|
||
<td>921ms</td>
|
||
<td>30s166ms</td>
|
||
<td>31s463ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>10</td>
|
||
<td>112</td>
|
||
<td>0ms</td>
|
||
<td>10s935ms</td>
|
||
<td>853ms</td>
|
||
<td>1m35s</td>
|
||
<td>1m35s</td>
|
||
<td>1m35s</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>11</td>
|
||
<td>14</td>
|
||
<td>0ms</td>
|
||
<td>126ms</td>
|
||
<td>9ms</td>
|
||
<td>132ms</td>
|
||
<td>132ms</td>
|
||
<td>132ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>12</td>
|
||
<td>16</td>
|
||
<td>0ms</td>
|
||
<td>40ms</td>
|
||
<td>2ms</td>
|
||
<td>41ms</td>
|
||
<td>41ms</td>
|
||
<td>41ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>13</td>
|
||
<td>21</td>
|
||
<td>0ms</td>
|
||
<td>1s173ms</td>
|
||
<td>230ms</td>
|
||
<td>4s560ms</td>
|
||
<td>4s560ms</td>
|
||
<td>4s560ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>14</td>
|
||
<td>30</td>
|
||
<td>0ms</td>
|
||
<td>306ms</td>
|
||
<td>68ms</td>
|
||
<td>555ms</td>
|
||
<td>555ms</td>
|
||
<td>555ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>15</td>
|
||
<td>38</td>
|
||
<td>0ms</td>
|
||
<td>274ms</td>
|
||
<td>78ms</td>
|
||
<td>466ms</td>
|
||
<td>521ms</td>
|
||
<td>521ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>16</td>
|
||
<td>6</td>
|
||
<td>0ms</td>
|
||
<td>49ms</td>
|
||
<td>8ms</td>
|
||
<td>50ms</td>
|
||
<td>50ms</td>
|
||
<td>50ms</td>
|
||
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<div class="tab-pane" id="general-activity-select-queries">
|
||
<table class="table table-striped table-hover table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>SELECT</th>
|
||
<th>COPY TO</th>
|
||
<th>Average Duration</th>
|
||
<th>Latency Percentile(90)</th>
|
||
<th>Latency Percentile(95)</th>
|
||
<th>Latency Percentile(99)</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Mar 14</td>
|
||
<td>01</td>
|
||
<td>6</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>10</td>
|
||
<td>21</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>11</td>
|
||
<td>5</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>12</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>16</td>
|
||
<td>10,853</td>
|
||
<td>2,595</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>17</td>
|
||
<td>13</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>22</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>23</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td>Mar 15</td>
|
||
<td>00</td>
|
||
<td>55</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>01</td>
|
||
<td>3</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>09</td>
|
||
<td>19</td>
|
||
<td>0</td>
|
||
<td>119ms</td>
|
||
<td>0ms</td>
|
||
<td>2s267ms</td>
|
||
<td>2s267ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>10</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>11</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>12</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>13</td>
|
||
<td>1</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>14</td>
|
||
<td>10</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>15</td>
|
||
<td>3</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>16</td>
|
||
<td>10,860</td>
|
||
<td>2,595</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>17</td>
|
||
<td>12</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>19</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>21</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td>Mar 16</td>
|
||
<td>01</td>
|
||
<td>5</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>02</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>05</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>19</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td>Mar 18</td>
|
||
<td>08</td>
|
||
<td>6</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>09</td>
|
||
<td>1,012</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>10</td>
|
||
<td>12</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>11</td>
|
||
<td>3</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>12</td>
|
||
<td>4</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>13</td>
|
||
<td>3</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>14</td>
|
||
<td>3</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>15</td>
|
||
<td>3</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>16</td>
|
||
<td>3</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<div class="tab-pane" id="general-activity-write-queries">
|
||
<table class="table table-striped table-hover table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>INSERT</th>
|
||
<th>UPDATE</th>
|
||
<th>DELETE</th>
|
||
<th>COPY FROM</th>
|
||
<th>Average Duration</th>
|
||
<th>Latency Percentile(90)</th>
|
||
<th>Latency Percentile(95)</th>
|
||
<th>Latency Percentile(99)</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Mar 14</td>
|
||
<td>01</td>
|
||
<td>1</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>10</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>2</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>11</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>2</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>12</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>16</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>17</td>
|
||
<td>106</td>
|
||
<td>0</td>
|
||
<td>5</td>
|
||
<td>0</td>
|
||
<td>45ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>3s265ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>22</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>23</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td>Mar 15</td>
|
||
<td>00</td>
|
||
<td>106</td>
|
||
<td>0</td>
|
||
<td>5</td>
|
||
<td>0</td>
|
||
<td>2s376ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>4m7s</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>01</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>09</td>
|
||
<td>1</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>10</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>11</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>12</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>13</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>14</td>
|
||
<td>108</td>
|
||
<td>0</td>
|
||
<td>5</td>
|
||
<td>0</td>
|
||
<td>1s364ms</td><td>0ms</td>
|
||
<td>1s270ms</td>
|
||
<td>2m30s</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>15</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>16</td>
|
||
<td>109</td>
|
||
<td>0</td>
|
||
<td>5</td>
|
||
<td>0</td>
|
||
<td>1s670ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>3m6s</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>17</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>19</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>21</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td>Mar 16</td>
|
||
<td>01</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>02</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>05</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>19</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td>Mar 18</td>
|
||
<td>08</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>09</td>
|
||
<td>1</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>10</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>11</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>12</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>13</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>14</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>15</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>16</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0ms</td><td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<div class="tab-pane" id="general-activity-prepared-queries">
|
||
<table class="table table-striped table-hover table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Prepare</th>
|
||
<th>Bind</th>
|
||
<th>Bind/Prepare</th>
|
||
<th>Percentage of prepare</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Mar 14</td>
|
||
<td>01</td>
|
||
<td>4</td>
|
||
<td>4</td>
|
||
<td>1.00</td>
|
||
<td>44.44%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>10</td>
|
||
<td>37</td>
|
||
<td>37</td>
|
||
<td>1.00</td>
|
||
<td>112.12%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>11</td>
|
||
<td>9</td>
|
||
<td>9</td>
|
||
<td>1.00</td>
|
||
<td>42.86%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>12</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0.00</td>
|
||
<td>0.00%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>16</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0.00</td>
|
||
<td>0.00%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>17</td>
|
||
<td>161</td>
|
||
<td>155</td>
|
||
<td>0.96</td>
|
||
<td>99.38%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>22</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0.00</td>
|
||
<td>0.00%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>23</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0.00</td>
|
||
<td>0.00%</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Mar 15</td>
|
||
<td>00</td>
|
||
<td>154</td>
|
||
<td>152</td>
|
||
<td>0.99</td>
|
||
<td>81.48%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>01</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0.00</td>
|
||
<td>0.00%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>09</td>
|
||
<td>27</td>
|
||
<td>27</td>
|
||
<td>1.00</td>
|
||
<td>112.50%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>10</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0.00</td>
|
||
<td>0.00%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>11</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0.00</td>
|
||
<td>0.00%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>12</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0.00</td>
|
||
<td>0.00%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>13</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0.00</td>
|
||
<td>0.00%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>14</td>
|
||
<td>110</td>
|
||
<td>110</td>
|
||
<td>1.00</td>
|
||
<td>83.33%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>15</td>
|
||
<td>3</td>
|
||
<td>3</td>
|
||
<td>1.00</td>
|
||
<td>60.00%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>16</td>
|
||
<td>111</td>
|
||
<td>111</td>
|
||
<td>1.00</td>
|
||
<td>0.82%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>17</td>
|
||
<td>30</td>
|
||
<td>28</td>
|
||
<td>0.93</td>
|
||
<td>107.14%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>19</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0.00</td>
|
||
<td>0.00%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>21</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0.00</td>
|
||
<td>0.00%</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Mar 16</td>
|
||
<td>01</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0.00</td>
|
||
<td>0.00%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>02</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0.00</td>
|
||
<td>0.00%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>05</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0.00</td>
|
||
<td>0.00%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>19</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0.00</td>
|
||
<td>0.00%</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Mar 18</td>
|
||
<td>08</td>
|
||
<td>0</td>
|
||
<td>0</td>
|
||
<td>0.00</td>
|
||
<td>0.00%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>09</td>
|
||
<td>34</td>
|
||
<td>32</td>
|
||
<td>0.94</td>
|
||
<td>3.29%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>10</td>
|
||
<td>42</td>
|
||
<td>38</td>
|
||
<td>0.90</td>
|
||
<td>116.67%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>11</td>
|
||
<td>3</td>
|
||
<td>3</td>
|
||
<td>1.00</td>
|
||
<td>60.00%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>12</td>
|
||
<td>3</td>
|
||
<td>3</td>
|
||
<td>1.00</td>
|
||
<td>50.00%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>13</td>
|
||
<td>3</td>
|
||
<td>3</td>
|
||
<td>1.00</td>
|
||
<td>60.00%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>14</td>
|
||
<td>3</td>
|
||
<td>3</td>
|
||
<td>1.00</td>
|
||
<td>60.00%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>15</td>
|
||
<td>3</td>
|
||
<td>3</td>
|
||
<td>1.00</td>
|
||
<td>60.00%</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>16</td>
|
||
<td>3</td>
|
||
<td>3</td>
|
||
<td>1.00</td>
|
||
<td>100.00%</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<div class="tab-pane" id="general-activity-connections">
|
||
<table class="table table-striped table-hover table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Average / Second</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Mar 14</td>
|
||
<td>01</td>
|
||
<td>4</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>10</td>
|
||
<td>7</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>11</td>
|
||
<td>4</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>12</td>
|
||
<td>4</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>16</td>
|
||
<td>2</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>17</td>
|
||
<td>8</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>22</td>
|
||
<td>1</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>23</td>
|
||
<td>0</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Mar 15</td>
|
||
<td>00</td>
|
||
<td>15</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>01</td>
|
||
<td>3</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>09</td>
|
||
<td>8</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>10</td>
|
||
<td>0</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>11</td>
|
||
<td>0</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>12</td>
|
||
<td>2</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>13</td>
|
||
<td>2</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>14</td>
|
||
<td>7</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>15</td>
|
||
<td>1</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>16</td>
|
||
<td>7</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>17</td>
|
||
<td>4</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>19</td>
|
||
<td>5</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>21</td>
|
||
<td>2</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Mar 16</td>
|
||
<td>01</td>
|
||
<td>10</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>02</td>
|
||
<td>0</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>05</td>
|
||
<td>1</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>19</td>
|
||
<td>1</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Mar 18</td>
|
||
<td>08</td>
|
||
<td>6</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>09</td>
|
||
<td>13</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>10</td>
|
||
<td>4</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>11</td>
|
||
<td>1</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>12</td>
|
||
<td>2</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>13</td>
|
||
<td>2</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>14</td>
|
||
<td>1</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>15</td>
|
||
<td>2</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>16</td>
|
||
<td>1</td>
|
||
<td>0.00/s</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<div class="tab-pane" id="general-activity-sessions">
|
||
<table class="table table-striped table-hover table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Average Duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Mar 14</td>
|
||
<td>01</td>
|
||
<td>4</td>
|
||
<td>1m29s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>10</td>
|
||
<td>4</td>
|
||
<td>6m48s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>11</td>
|
||
<td>5</td>
|
||
<td>7m39s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>12</td>
|
||
<td>4</td>
|
||
<td>3m6s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>16</td>
|
||
<td>1</td>
|
||
<td>3m5s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>17</td>
|
||
<td>9</td>
|
||
<td>1h36m26s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>22</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>23</td>
|
||
<td>1</td>
|
||
<td>11m14s</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Mar 15</td>
|
||
<td>00</td>
|
||
<td>15</td>
|
||
<td>2m12s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>01</td>
|
||
<td>3</td>
|
||
<td>21ms</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>09</td>
|
||
<td>5</td>
|
||
<td>56s996ms</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>10</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>11</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>12</td>
|
||
<td>3</td>
|
||
<td>59m22s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>13</td>
|
||
<td>2</td>
|
||
<td>1m17s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>14</td>
|
||
<td>8</td>
|
||
<td>1h11m7s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>15</td>
|
||
<td>1</td>
|
||
<td>15s128ms</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>16</td>
|
||
<td>7</td>
|
||
<td>21m55s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>17</td>
|
||
<td>5</td>
|
||
<td>12m23s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>19</td>
|
||
<td>4</td>
|
||
<td>24s653ms</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>21</td>
|
||
<td>2</td>
|
||
<td>51m30s</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Mar 16</td>
|
||
<td>01</td>
|
||
<td>9</td>
|
||
<td>30m</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>02</td>
|
||
<td>2</td>
|
||
<td>31m53s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>05</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>19</td>
|
||
<td>2</td>
|
||
<td>7h1m6s</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Mar 18</td>
|
||
<td>08</td>
|
||
<td>6</td>
|
||
<td>14ms</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>09</td>
|
||
<td>13</td>
|
||
<td>3m30s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>10</td>
|
||
<td>4</td>
|
||
<td>4m10s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>11</td>
|
||
<td>1</td>
|
||
<td>57s159ms</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>12</td>
|
||
<td>2</td>
|
||
<td>1m3s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>13</td>
|
||
<td>1</td>
|
||
<td>34s394ms</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>14</td>
|
||
<td>1</td>
|
||
<td>1m12s</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>15</td>
|
||
<td>1</td>
|
||
<td>24s417ms</td>
|
||
</tr>
|
||
<tr>
|
||
<td> </td>
|
||
<td>16</td>
|
||
<td>0</td>
|
||
<td>0ms</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div> <!-- end of div tab-content -->
|
||
<span class="pull-right">↑ <small><a href="#general-activity" class="">Back to the top of the <em>General Activity</em> table</a></small></span>
|
||
</div>
|
||
|
||
</div><!-- end of general activity -->
|
||
|
||
</li>
|
||
<li class="slide" id="connections-slide">
|
||
<h1 class="page-header"><i class="glyphicon icon-external-link-sign"></i> Connections</h1>
|
||
|
||
|
||
<div id="established-connections" class="analysis-item row">
|
||
<h2 class=""><i class="glyphicon icon-random"></i> Established Connections</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">5 connections</span> <span class="figure-label">Connection Peak</span></li>
|
||
<li><span class="figure">2019-03-18 09:00:08</span> <span class="figure-label">Date</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div id="connectionspersecond_graph" class="jqplot-graph linegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var connectionspersecond_graph_2_d1 = [[1552544700000, 2],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 1],[1552576800000, 3],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 1],[1552578600000, 1],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 1],[1552580700000, 1],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 1],[1552582500000, 0],[1552582800000, 1],[1552583100000, 1],[1552583400000, 0],[1552583700000, 1],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 1],[1552599000000, 0],[1552599300000, 1],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 2],[1552601400000, 2],[1552601700000, 0],[1552602000000, 1],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 1],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 1],[1552626600000, 1],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 2],[1552629000000, 2],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 2],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 3],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 1],[1552661400000, 1],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 1],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 1],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 1],[1552676700000, 1],[1552677000000, 0],[1552677300000, 1],[1552677600000, 1],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 1],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 1],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 1],[1552686000000, 0],[1552686300000, 2],[1552686600000, 0],[1552686900000, 0],[1552687200000, 1],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 2],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 1],[1552695300000, 1],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 1],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 1],[1552716600000, 0],[1552716900000, 0],[1552717200000, 1],[1552717500000, 1],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 1],[1552719300000, 1],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 1],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 1],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 2],[1552917600000, 5],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 1],[1552919400000, 1],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 1],[1552920900000, 0],[1552921200000, 1],[1552921500000, 1],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 1],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 1],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 1],[1552931700000, 0],[1552932000000, 1],[1552932300000, 1],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 1],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 1],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 1],[1552942200000, 0],[1552942500000, 0],[1552942800000, 1],[1552943100000, 0]];
|
||
var connectionspersecond_graph_2_d2 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 0],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 0],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 0],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 0],[1552582800000, 0],[1552583100000, 0],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 0],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 0],[1552601700000, 0],[1552602000000, 0],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 0],[1552629000000, 0],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 0],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 0],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 0],[1552677000000, 0],[1552677300000, 0],[1552677600000, 0],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 0],[1552686000000, 0],[1552686300000, 0],[1552686600000, 0],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 0],[1552919400000, 0],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 0],[1552920900000, 0],[1552921200000, 0],[1552921500000, 0],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 0],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
var connectionspersecond_graph_2_d3 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 0],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 0],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 0],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 0],[1552582800000, 0],[1552583100000, 0],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 0],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 0],[1552601700000, 0],[1552602000000, 0],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 0],[1552629000000, 0],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 0],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 0],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 0],[1552677000000, 0],[1552677300000, 0],[1552677600000, 0],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 0],[1552686000000, 0],[1552686300000, 0],[1552686600000, 0],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 0],[1552919400000, 0],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 0],[1552920900000, 0],[1552921200000, 0],[1552921500000, 0],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 0],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
|
||
var series_arr = [ { label: "Maximum", color: "#6e9dc9" },{ label: "Average", color: "#f4ab3a" },{ label: "Minimum", color: "#ac7fa8" } ];
|
||
|
||
create_download_button(2, 'btn btn-default');
|
||
var connectionspersecond_graph = create_linegraph('connectionspersecond_graph', 'Connections per second (5 minutes average)', 'Connections per second', series_arr, [connectionspersecond_graph_2_d1,connectionspersecond_graph_2_d2,connectionspersecond_graph_2_d3]);
|
||
add_download_button_event(2, 'connectionspersecond_graph');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
</div><!-- end of Established connections -->
|
||
|
||
<div class="analysis-item row" id="connections-per-database">
|
||
<h2><i class="glyphicon icon-list-alt"></i> Connections per database</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">ubm</span> <span class="figure-label">Main Database</span></li>
|
||
<li><span class="figure">130 connections</span> <span class="figure-label">Total</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div class="tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#connections-per-database-graph" data-toggle="tab">Chart</a></li>
|
||
<li><a href="#connections-per-database-table" data-toggle="tab">Table</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="tab-pane active" id="connections-per-database-graph">
|
||
<div id="graph_databaseconnections" class="jqplot-graph piegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var data_8 = [ ['postgres', 18],['ubm', 112] ];
|
||
|
||
create_download_button(8, 'btn btn-default');
|
||
var graph_databaseconnections = create_piechart('graph_databaseconnections', 'Connections per database', data_8);
|
||
add_download_button_event(8, 'graph_databaseconnections');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
<div class="tab-pane" id="connections-per-database-table">
|
||
<table class="table table-striped table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th>Database</th>
|
||
<th>User</th>
|
||
<th>Count</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>postgres</td><td> </td><td>18</td></tr><tr><td> </td><td>postgres</td><td>12</td></tr><tr><td> </td><td>ptrowbridge</td><td>6</td></tr><tr><td>ubm</td><td> </td><td>112</td></tr><tr><td> </td><td>api</td><td>34</td></tr><tr><td> </td><td>ptrowbridge</td><td>22</td></tr><tr><td> </td><td>ptrowbridge_md5</td><td>39</td></tr><tr><td> </td><td>report</td><td>17</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div><!-- end of connections per database -->
|
||
|
||
<div class="analysis-item row" id="connections-per-user">
|
||
<h2><i class="glyphicon icon-user"></i> Connections per user</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">ptrowbridge_md5</span> <span class="figure-label">Main User</span></li>
|
||
<li><span class="figure">130 connections</span> <span class="figure-label">Total</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div class="tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#connections-per-user-graph" data-toggle="tab">Chart</a></li>
|
||
<li><a href="#connections-per-user-table" data-toggle="tab">Table</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="tab-pane active" id="connections-per-user-graph">
|
||
<div id="graph_userconnections" class="jqplot-graph piegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var data_9 = [ ['api', 34],['postgres', 12],['ptrowbridge', 28],['ptrowbridge_md5', 39],['report', 17] ];
|
||
|
||
create_download_button(9, 'btn btn-default');
|
||
var graph_userconnections = create_piechart('graph_userconnections', 'Connections per user', data_9);
|
||
add_download_button_event(9, 'graph_userconnections');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
<div class="tab-pane" id="connections-per-user-table">
|
||
<table class="table table-striped table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th>User</th>
|
||
<th>Count</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>api</td><td>34</td></tr><tr><td>postgres</td><td>12</td></tr><tr><td>ptrowbridge</td><td>28</td></tr><tr><td>ptrowbridge_md5</td><td>39</td></tr><tr><td>report</td><td>17</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div><!-- end of connections per user -->
|
||
|
||
<div class="analysis-item row" id="connections-per-host">
|
||
<h2><i class="glyphicon icon-sitemap"></i> Connections per host</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">USHCC10107.GBL.HC-companies.com</span> <span class="figure-label">Main host with 80 connections</span></li>
|
||
<li><span class="figure">130</span> <span class="figure-label">Total connections</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div class="tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#connections-per-host-graph" data-toggle="tab">Chart</a></li>
|
||
<li><a href="#connections-per-host-table" data-toggle="tab">Table</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="tab-pane active" id="connections-per-host-graph">
|
||
<div id="graph_hostconnections" class="jqplot-graph piegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var data_10 = [ ['USHCC10107', 6],['USHCC10107.GBL.HC-companies.com', 80],['[local]', 12],['ubreport', 32] ];
|
||
|
||
create_download_button(10, 'btn btn-default');
|
||
var graph_hostconnections = create_piechart('graph_hostconnections', 'Connections per host', data_10);
|
||
add_download_button_event(10, 'graph_hostconnections');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
<div class="tab-pane" id="connections-per-host-table">
|
||
<table class="table table-striped table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th>Host</th>
|
||
<th>Count</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>USHCC10107</td><td>6</td></tr><tr><td>USHCC10107.GBL.HC-companies.com</td><td>80</td></tr><tr><td>[local]</td><td>12</td></tr><tr><td>ubreport</td><td>32</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div><!-- end of connections per host -->
|
||
|
||
</li>
|
||
<li class="slide" id="sessions-slide">
|
||
<h1 class="page-header"><i class="glyphicon icon-off"></i> Sessions</h1>
|
||
|
||
|
||
<div id="simultaneous-sessions" class="analysis-item row">
|
||
<h2 class=""><i class="glyphicon icon-random"></i> Simultaneous sessions</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">9 sessions</span> <span class="figure-label">Session Peak</span></li>
|
||
<li><span class="figure">2019-03-15 16:48:38</span> <span class="figure-label">Date</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div id="sessionspersecond_graph" class="jqplot-graph linegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var sessionspersecond_graph_3_d1 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 1],[1552576800000, 1],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 1],[1552578300000, 1],[1552578600000, 1],[1552578900000, 1],[1552579200000, 1],[1552579500000, 1],[1552579800000, 0],[1552580100000, 0],[1552580400000, 1],[1552580700000, 2],[1552581000000, 1],[1552581300000, 1],[1552581600000, 1],[1552581900000, 0],[1552582200000, 1],[1552582500000, 1],[1552582800000, 1],[1552583100000, 1],[1552583400000, 0],[1552583700000, 1],[1552584000000, 1],[1552584300000, 1],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 1],[1552599000000, 0],[1552599300000, 1],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 1],[1552601400000, 2],[1552601700000, 2],[1552602000000, 2],[1552602300000, 2],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 2],[1552622400000, 0],[1552622700000, 0],[1552623000000, 2],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 2],[1552626600000, 4],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 4],[1552629000000, 5],[1552629300000, 4],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 4],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 5],[1552661700000, 0],[1552662000000, 4],[1552662300000, 4],[1552662600000, 4],[1552662900000, 0],[1552663200000, 4],[1552663500000, 4],[1552663800000, 4],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 4],[1552665300000, 4],[1552665600000, 4],[1552665900000, 0],[1552666200000, 4],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 4],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 4],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 7],[1552674300000, 7],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 7],[1552676700000, 7],[1552677000000, 7],[1552677300000, 8],[1552677600000, 8],[1552677900000, 8],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 8],[1552680300000, 8],[1552680600000, 8],[1552680900000, 8],[1552681200000, 8],[1552681500000, 0],[1552681800000, 0],[1552682100000, 8],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 8],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 8],[1552685700000, 8],[1552686000000, 8],[1552686300000, 9],[1552686600000, 8],[1552686900000, 0],[1552687200000, 8],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 8],[1552689300000, 8],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 8],[1552695300000, 8],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 8],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 2],[1552717500000, 6],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 6],[1552719300000, 6],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 6],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 5],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 5],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 5],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 1],[1552919400000, 1],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 1],[1552920900000, 1],[1552921200000, 2],[1552921500000, 1],[1552921800000, 1],[1552922100000, 0],[1552922400000, 0],[1552922700000, 2],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 2],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 2],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 3],[1552931700000, 3],[1552932000000, 3],[1552932300000, 3],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 3],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 3],[1552937100000, 0],[1552937400000, 0],[1552937700000, 3],[1552938000000, 3],[1552938300000, 3],[1552938600000, 3],[1552938900000, 0],[1552939200000, 3],[1552939500000, 3],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 3],[1552941600000, 3],[1552941900000, 3],[1552942200000, 0],[1552942500000, 0],[1552942800000, 4],[1552943100000, 0]];
|
||
var sessionspersecond_graph_3_d2 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 0],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 0],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 0],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 0],[1552582800000, 0],[1552583100000, 0],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 0],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 0],[1552601700000, 0],[1552602000000, 0],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 0],[1552629000000, 0],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 0],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 0],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 0],[1552677000000, 0],[1552677300000, 0],[1552677600000, 0],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 0],[1552686000000, 0],[1552686300000, 0],[1552686600000, 0],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 0],[1552919400000, 0],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 0],[1552920900000, 0],[1552921200000, 0],[1552921500000, 0],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 0],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
var sessionspersecond_graph_3_d3 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 0],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 0],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 0],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 0],[1552582800000, 0],[1552583100000, 0],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 0],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 0],[1552601700000, 0],[1552602000000, 0],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 0],[1552629000000, 0],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 0],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 0],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 0],[1552677000000, 0],[1552677300000, 0],[1552677600000, 0],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 0],[1552686000000, 0],[1552686300000, 0],[1552686600000, 0],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 0],[1552919400000, 0],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 0],[1552920900000, 0],[1552921200000, 0],[1552921500000, 0],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 0],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
|
||
var series_arr = [ { label: "Maximum", color: "#6e9dc9" },{ label: "Average", color: "#f4ab3a" },{ label: "Minimum", color: "#ac7fa8" } ];
|
||
|
||
create_download_button(3, 'btn btn-default');
|
||
var sessionspersecond_graph = create_linegraph('sessionspersecond_graph', 'Number of sessions/second (5 minutes average)', 'Sessions', series_arr, [sessionspersecond_graph_3_d1,sessionspersecond_graph_3_d2,sessionspersecond_graph_3_d3]);
|
||
add_download_button_event(3, 'sessionspersecond_graph');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
</div><!-- end of Simultaneous sessions -->
|
||
|
||
<div class="analysis-item row" id="histogram-session-times">
|
||
<h2><i class="glyphicon icon-signal"></i> Histogram of session times</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">38</span> <span class="figure-label">0-500ms duration</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div class="tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#histogram-session-times-graph" data-toggle="tab">Chart</a></li>
|
||
<li><a href="#histogram-session-times-table" data-toggle="tab">Table</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="tab-pane active" id="histogram-session-times-graph">
|
||
<div id="graph_histogram_session_times" class="jqplot-graph duration-histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var bars_11 = [[ '0ms-500ms', 38],[ '500ms-1s', 1],[ '1s-30s', 15],[ '30s-1m', 13],[ '1m-10m', 37],[ '10m-30m', 8],[ '30m-1h', 4],[ '1h-8h', 8],[ '> 8h', 1]];
|
||
create_download_button(11, 'btn btn-default');
|
||
var graph_histogram_session_times = create_bargraph('graph_histogram_session_times', '', 'Sessions', [ bars_11 ]);
|
||
add_download_button_event(11, 'graph_histogram_session_times');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
<div class="tab-pane" id="histogram-session-times-table">
|
||
<table class="table table-striped table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th>Range</th>
|
||
<th>Count</th>
|
||
<th>Percentage</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>0ms-500ms</td><td>38</td><td>30.40%</td></tr><tr><td>500ms-1s</td><td>1</td><td>0.80%</td></tr><tr><td>1s-30s</td><td>15</td><td>12.00%</td></tr><tr><td>30s-1m</td><td>13</td><td>10.40%</td></tr><tr><td>1m-10m</td><td>37</td><td>29.60%</td></tr><tr><td>10m-30m</td><td>8</td><td>6.40%</td></tr><tr><td>30m-1h</td><td>4</td><td>3.20%</td></tr><tr><td>1h-8h</td><td>8</td><td>6.40%</td></tr><tr><td> > 8h</td><td>1</td><td>0.80%</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div><!-- end of queries by type -->
|
||
|
||
<div class="analysis-item row" id="sessions-per-database">
|
||
<h2><i class="glyphicon icon-list-alt"></i> Sessions per database</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">ubm</span> <span class="figure-label">Main Database</span></li>
|
||
<li><span class="figure">125 sessions</span> <span class="figure-label">Total</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div class="tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#sessions-per-database-graph" data-toggle="tab">Chart</a></li>
|
||
<li><a href="#sessions-per-database-table" data-toggle="tab">Table</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="tab-pane active" id="sessions-per-database-graph">
|
||
<div id="graph_databasesessions" class="jqplot-graph piegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var data_12 = [ ['postgres', 18],['ubm', 107] ];
|
||
|
||
create_download_button(12, 'btn btn-default');
|
||
var graph_databasesessions = create_piechart('graph_databasesessions', 'Sessions per database', data_12);
|
||
add_download_button_event(12, 'graph_databasesessions');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
<div class="tab-pane" id="sessions-per-database-table">
|
||
<table class="table table-striped table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th>Database</th>
|
||
<th>User</th>
|
||
<th>Count</th>
|
||
<th>Total Duration</th>
|
||
<th>Average Duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>postgres</td><td>18</td><td>15m53s</td><td>52s986ms</td></tr><tr><td>ubm</td><td>107</td><td>2d7h2m5s</td><td>30m51s</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div><!-- end of sessions per database -->
|
||
|
||
<div class="analysis-item row" id="sessions-per-user">
|
||
<h2><i class="glyphicon icon-user"></i> Sessions per user</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">ptrowbridge_md5</span> <span class="figure-label">Main User</span></li>
|
||
<li><span class="figure">125 sessions</span> <span class="figure-label">Total</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div class="tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#sessions-per-user-graph" data-toggle="tab">Chart</a></li>
|
||
<li><a href="#sessions-per-user-table" data-toggle="tab">Table</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="tab-pane active" id="sessions-per-user-graph">
|
||
<div id="graph_usersessions" class="jqplot-graph piegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var data_13 = [ ['api', 32],['postgres', 12],['ptrowbridge', 28],['ptrowbridge_md5', 37],['report', 16] ];
|
||
|
||
create_download_button(13, 'btn btn-default');
|
||
var graph_usersessions = create_piechart('graph_usersessions', 'Sessions per user', data_13);
|
||
add_download_button_event(13, 'graph_usersessions');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
<div class="tab-pane" id="sessions-per-user-table">
|
||
<table class="table table-striped table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th>User</th>
|
||
<th>Count</th>
|
||
<th>Total Duration</th>
|
||
<th>Average Duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>api</td><td>32</td><td>1d5h19m45s<tr><td>postgres</td><td>12</td><td>165ms<tr><td>ptrowbridge</td><td>28</td><td>1h6m38s<tr><td>ptrowbridge_md5</td><td>37</td><td>23h39m9s<tr><td>report</td><td>16</td><td>1h12m25s
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div><!-- end of sessions per user -->
|
||
|
||
<div class="analysis-item row" id="sessions-per-host">
|
||
<h2><i class="glyphicon icon-sitemap"></i> Sessions per host</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">USHCC10107.GBL.HC-companies.com</span> <span class="figure-label">Main Host</span></li>
|
||
<li><span class="figure">125 sessions</span> <span class="figure-label">Total</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div class="tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#sessions-per-host-graph" data-toggle="tab">Chart</a></li>
|
||
<li><a href="#sessions-per-host-table" data-toggle="tab">Table</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="tab-pane active" id="sessions-per-host-graph">
|
||
<div id="graph_hostsessions" class="jqplot-graph piegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var data_14 = [ ['USHCC10107', 6],['USHCC10107.GBL.HC-companies.com', 76],['[local]', 12],['ubreport', 31] ];
|
||
|
||
create_download_button(14, 'btn btn-default');
|
||
var graph_hostsessions = create_piechart('graph_hostsessions', 'Connections per host', data_14);
|
||
add_download_button_event(14, 'graph_hostsessions');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
<div class="tab-pane" id="sessions-per-host-table">
|
||
<table class="table table-striped table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th>Host</th>
|
||
<th>Count</th>
|
||
<th>Total Duration</th>
|
||
<th>Average Duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>USHCC10107</td><td>6</td><td>21m12s</td><td>3m32s</td></tr><tr><td>USHCC10107.GBL.HC-companies.com</td><td>76</td><td>1d6h4m19s</td><td>23m44s</td></tr><tr><td>[local]</td><td>12</td><td>165ms</td><td>13ms</td></tr><tr><td>ubreport</td><td>31</td><td>1d52m25s</td><td>48m8s</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div><!-- end of sessions per host -->
|
||
|
||
<div class="analysis-item row" id="sessions-per-app">
|
||
<h2><i class="glyphicon icon-sitemap"></i> Sessions per application</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">psql</span> <span class="figure-label">Main Host</span></li>
|
||
<li><span class="figure">125 sessions</span> <span class="figure-label">Total</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div class="tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#sessions-per-app-graph" data-toggle="tab">Chart</a></li>
|
||
<li><a href="#sessions-per-app-table" data-toggle="tab">Table</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="tab-pane active" id="sessions-per-app-graph">
|
||
<div id="graph_appsessions" class="jqplot-graph piegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var data_15 = [ ['Sum sessions < 2%', 13],['[unknown]', 16],['osm_api', 32],['pgAdmin 4 - DB:ubm', 7],['pg_dumpall', 4],['psql', 36],['runner', 17] ];
|
||
|
||
create_download_button(15, 'btn btn-default');
|
||
var graph_appsessions = create_piechart('graph_appsessions', 'Sessions per application', data_15);
|
||
add_download_button_event(15, 'graph_appsessions');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
<div class="tab-pane" id="sessions-per-app-table">
|
||
<table class="table table-striped table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th>Application</th>
|
||
<th>Count</th>
|
||
<th>Total Duration</th>
|
||
<th>Average Duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>DBeaver 5.3.5 - Main</td><td>2</td><td>6h49m55s</td><td>3h24m57s</td></tr><tr><td>DBeaver 5.3.5 - Metadata</td><td>2</td><td>6h49m55s</td><td>3h24m57s</td></tr><tr><td>DBeaver 5.3.5 - Read PostgreSQL database list</td><td>2</td><td>2s56ms</td><td>1s28ms</td></tr><tr><td>DBeaver 6.0.0 - Main</td><td>1</td><td>4h42m22s</td><td>4h42m22s</td></tr><tr><td>DBeaver 6.0.0 - Metadata</td><td>1</td><td>4h42m22s</td><td>4h42m22s</td></tr><tr><td>DBeaver 6.0.0 - Read PostgreSQL database list</td><td>1</td><td>101ms</td><td>101ms</td></tr><tr><td>[unknown]</td><td>16</td><td>1h12m25s</td><td>4m31s</td></tr><tr><td>osm_api</td><td>32</td><td>1d5h19m45s</td><td>54m59s</td></tr><tr><td>pgAdmin 4 - DB:postgres</td><td>2</td><td>15m53s</td><td>7m56s</td></tr><tr><td>pgAdmin 4 - DB:ubm</td><td>7</td><td>15m52s</td><td>2m16s</td></tr><tr><td>pg_dump</td><td>2</td><td>6m4s</td><td>3m2s</td></tr><tr><td>pg_dumpall</td><td>4</td><td>270ms</td><td>67ms</td></tr><tr><td>psql</td><td>36</td><td>39m4s</td><td>1m5s</td></tr><tr><td>runner</td><td>17</td><td>24m13s</td><td>1m25s</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div><!-- end of sessions per app -->
|
||
|
||
</li>
|
||
<li class="slide" id="checkpoints-slide">
|
||
|
||
<h1 class="page-header"><i class="glyphicon icon-pencil"></i> Checkpoints / Restartpoints</h1>
|
||
|
||
<div id="checkpoints-buffers" class="analysis-item row">
|
||
<h2 class=""><i class="glyphicon icon-paste"></i> Checkpoints Buffers</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">85,051 buffers</span> <span class="figure-label">Checkpoint Peak</span></li>
|
||
<li><span class="figure">2019-03-15 00:55:53</span> <span class="figure-label">Date</span></li>
|
||
<li><span class="figure">150.075 seconds</span> <span class="figure-label">Highest write time</span></li>
|
||
<li><span class="figure">0.402 seconds</span> <span class="figure-label">Sync time</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div id="checkpointwritebuffers_graph" class="jqplot-graph linegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var checkpointwritebuffers_graph_16_d1 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 1],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 0],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 17],[1552578900000, 0],[1552579200000, 3],[1552579500000, 5],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 1],[1552581000000, 5],[1552581300000, 0],[1552581600000, 1],[1552581900000, 0],[1552582200000, 0],[1552582500000, 3],[1552582800000, 2],[1552583100000, 8],[1552583400000, 0],[1552583700000, 0],[1552584000000, 2],[1552584300000, 5],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 5],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 768],[1552601700000, 6681],[1552602000000, 0],[1552602300000, 3516],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 0],[1552629000000, 4857],[1552629300000, 85051],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 34249],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 6],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 0],[1552677000000, 83666],[1552677300000, 0],[1552677600000, 0],[1552677900000, 52098],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 5],[1552686000000, 0],[1552686300000, 0],[1552686600000, 83720],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 26524],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 2],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 28],[1552919400000, 30],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 4],[1552920900000, 1],[1552921200000, 0],[1552921500000, 38],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 8],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
|
||
|
||
|
||
var series_arr = [ { label: "Write buffers", color: "#6e9dc9" } ];
|
||
|
||
create_download_button(16, 'btn btn-default');
|
||
var checkpointwritebuffers_graph = create_linegraph('checkpointwritebuffers_graph', 'Checkpoint write buffers (5 minutes period)', 'Buffers', series_arr, [checkpointwritebuffers_graph_16_d1]);
|
||
add_download_button_event(16, 'checkpointwritebuffers_graph');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
</div><!-- end of Checkpoints Buffers -->
|
||
|
||
<div id="checkpoints-files" class="analysis-item row">
|
||
<h2 class=""><i class="glyphicon icon-file-alt"></i> Checkpoints Wal files</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">42 files</span> <span class="figure-label">Wal files usage Peak</span></li>
|
||
<li><span class="figure">2019-03-15 14:12:03</span> <span class="figure-label">Date</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div id="checkpointfiles_graph" class="jqplot-graph linegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var checkpointfiles_graph_17_d1 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 0],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 0],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 0],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 0],[1552582800000, 0],[1552583100000, 0],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 0],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 0],[1552601700000, 0],[1552602000000, 0],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 0],[1552629000000, 0],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 0],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 0],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 0],[1552677000000, 0],[1552677300000, 0],[1552677600000, 0],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 0],[1552686000000, 0],[1552686300000, 0],[1552686600000, 0],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 0],[1552919400000, 0],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 0],[1552920900000, 0],[1552921200000, 0],[1552921500000, 0],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 0],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
var checkpointfiles_graph_17_d2 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 0],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 0],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 0],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 0],[1552582800000, 0],[1552583100000, 0],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 1],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 0],[1552601700000, 4],[1552602000000, 0],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 0],[1552629000000, 4],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 0],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 0],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 0],[1552677000000, 0],[1552677300000, 0],[1552677600000, 0],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 0],[1552686000000, 0],[1552686300000, 0],[1552686600000, 0],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 0],[1552919400000, 0],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 0],[1552920900000, 0],[1552921200000, 0],[1552921500000, 0],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 0],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
var checkpointfiles_graph_17_d3 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 0],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 0],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 0],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 0],[1552582800000, 0],[1552583100000, 0],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 0],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 0],[1552601700000, 0],[1552602000000, 0],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 0],[1552629000000, 0],[1552629300000, 42],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 11],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 0],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 0],[1552677000000, 42],[1552677300000, 0],[1552677600000, 0],[1552677900000, 19],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 0],[1552686000000, 0],[1552686300000, 0],[1552686600000, 42],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 15],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 0],[1552919400000, 0],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 0],[1552920900000, 0],[1552921200000, 0],[1552921500000, 0],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 0],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
|
||
var series_arr = [ { label: "Added", color: "#6e9dc9" },{ label: "Removed", color: "#f4ab3a" },{ label: "Recycled", color: "#ac7fa8" } ];
|
||
|
||
create_download_button(17, 'btn btn-default');
|
||
var checkpointfiles_graph = create_linegraph('checkpointfiles_graph', 'Checkpoint Wal files usage (5 minutes period)', 'Number of files', series_arr, [checkpointfiles_graph_17_d1,checkpointfiles_graph_17_d2,checkpointfiles_graph_17_d3]);
|
||
add_download_button_event(17, 'checkpointfiles_graph');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
</div><!-- end of Checkpoints Files -->
|
||
|
||
<div id="checkpoints-distance" class="analysis-item row">
|
||
<h2 class=""><i class="glyphicon icon-file-alt"></i> Checkpoints distance</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">1,363.03 Mo</span> <span class="figure-label">Distance Peak</span></li>
|
||
<li><span class="figure">2019-03-15 14:12:03</span> <span class="figure-label">Date</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div id="checkpointdistance_graph" class="jqplot-graph linegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var checkpointdistance_graph_18_d1 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 4000],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 0],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 29500],[1552578900000, 0],[1552579200000, 2800],[1552579500000, 24000],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 1000],[1552581000000, 35000],[1552581300000, 0],[1552581600000, 3333],[1552581900000, 0],[1552582200000, 0],[1552582500000, 4333],[1552582800000, 4333],[1552583100000, 11500],[1552583400000, 0],[1552583700000, 0],[1552584000000, 4000],[1552584300000, 12500],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 3153500],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 1539250],[1552601700000, 29899500],[1552602000000, 0],[1552602300000, 376000],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 0],[1552629000000, 14276000],[1552629300000, 343715500],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 0],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 1600],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 0],[1552677000000, 348936000],[1552677300000, 0],[1552677600000, 0],[1552677900000, 297696000],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 1500],[1552686000000, 0],[1552686300000, 0],[1552686600000, 691248000],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 127361000],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 77500],[1552919400000, 93500],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 1500],[1552920900000, 0],[1552921200000, 0],[1552921500000, 127500],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 0],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
var checkpointdistance_graph_18_d2 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 4000],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 0],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 29500],[1552578900000, 0],[1552579200000, 21400],[1552579500000, 99000],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 18000],[1552581000000, 84000],[1552581300000, 0],[1552581600000, 25666],[1552581900000, 0],[1552582200000, 0],[1552582500000, 23333],[1552582800000, 21666],[1552583100000, 15750],[1552583400000, 0],[1552583700000, 0],[1552584000000, 19333],[1552584300000, 27000],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 3153500],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 2992000],[1552601700000, 29899500],[1552602000000, 0],[1552602300000, 376000],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 0],[1552629000000, 14276000],[1552629300000, 343715500],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 0],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 1600],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 0],[1552677000000, 348936000],[1552677300000, 0],[1552677600000, 0],[1552677900000, 657855000],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 148017500],[1552686000000, 0],[1552686300000, 0],[1552686600000, 691248000],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 323798000],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 77500],[1552919400000, 93500],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 84500],[1552920900000, 76000],[1552921200000, 0],[1552921500000, 127500],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 76333],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
|
||
|
||
var series_arr = [ { label: "distance", color: "#6e9dc9" },{ label: "estimate", color: "#f4ab3a" } ];
|
||
|
||
create_download_button(18, 'btn btn-default');
|
||
var checkpointdistance_graph = create_linegraph('checkpointdistance_graph', 'Checkpoint mean distance and estimate (5 minutes period)', 'Number of bytes', series_arr, [checkpointdistance_graph_18_d1,checkpointdistance_graph_18_d2]);
|
||
add_download_button_event(18, 'checkpointdistance_graph');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
</div><!-- end of Checkpoints Files -->
|
||
|
||
<div class="analysis-item row" id="checkpoint-activity">
|
||
<h2 class=""><i class="glyphicon icon-calendar"></i> Checkpoints Activity</h2>
|
||
<div class="col-md-12 tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#checkpoint-activity-buffers" data-toggle="tab">Checkpoints Buffers</a></li>
|
||
<li><a href="#checkpoint-activity-files" data-toggle="tab">Checkpoints files</a></li>
|
||
<li><a href="#checkpoint-activity-warnings" data-toggle="tab">Checkpoints Warnings</a></li>
|
||
<li><a href="#checkpoint-activity-distance" data-toggle="tab">Checkpoints distance</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="active tab-pane" id="checkpoint-activity-buffers">
|
||
<table class="table table-striped table-hover table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Written buffers</th>
|
||
<th>Write time</th>
|
||
<th>Sync time</th>
|
||
<th>Total time</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr><td>Mar 14</td><td>01</td><td>1</td><td>0.106s</td><td>0.072s</td><td>0.232s</td></tr><tr><td></td><td>10</td><td>17</td><td>1.706s</td><td>0.008s</td><td>1.731s</td></tr><tr><td></td><td>11</td><td>18</td><td>1.84s</td><td>0.063s</td><td>2.192s</td></tr><tr><td></td><td>12</td><td>17</td><td>1.728s</td><td>0.028s</td><td>1.88s</td></tr><tr><td></td><td>16</td><td>5</td><td>0.608s</td><td>0.14s</td><td>0.905s</td></tr><tr><td></td><td>17</td><td>10,965</td><td>227.98s</td><td>0.159s</td><td>228.782s</td></tr><tr><td></td><td>22</td><td>0</td><td>0s</td><td>0s</td><td>0s</td></tr><tr><td></td><td>23</td><td>0</td><td>0s</td><td>0s</td><td>0s</td></tr><tr><td>Mar 15</td><td>00</td><td>89,908</td><td>266.772s</td><td>0.108s</td><td>268.024s</td></tr><tr><td></td><td>01</td><td>34,249</td><td>1.191s</td><td>0.402s</td><td>1.71s</td></tr><tr><td></td><td>09</td><td>6</td><td>0.608s</td><td>0.01s</td><td>0.653s</td></tr><tr><td></td><td>10</td><td>0</td><td>0s</td><td>0s</td><td>0s</td></tr><tr><td></td><td>11</td><td>0</td><td>0s</td><td>0s</td><td>0s</td></tr><tr><td></td><td>12</td><td>0</td><td>0s</td><td>0s</td><td>0s</td></tr><tr><td></td><td>13</td><td>0</td><td>0s</td><td>0s</td><td>0s</td></tr><tr><td></td><td>14</td><td>135,764</td><td>298.943s</td><td>0.092s</td><td>299.387s</td></tr><tr><td></td><td>15</td><td>0</td><td>0s</td><td>0s</td><td>0s</td></tr><tr><td></td><td>16</td><td>83,725</td><td>149.627s</td><td>0.051s</td><td>150.551s</td></tr><tr><td></td><td>17</td><td>26,524</td><td>150.075s</td><td>0.035s</td><td>150.292s</td></tr><tr><td></td><td>19</td><td>0</td><td>0s</td><td>0s</td><td>0s</td></tr><tr><td></td><td>21</td><td>0</td><td>0s</td><td>0s</td><td>0s</td></tr><tr><td>Mar 16</td><td>01</td><td>0</td><td>0s</td><td>0s</td><td>0s</td></tr><tr><td></td><td>02</td><td>0</td><td>0s</td><td>0s</td><td>0s</td></tr><tr><td></td><td>05</td><td>0</td><td>0s</td><td>0s</td><td>0s</td></tr><tr><td></td><td>19</td><td>0</td><td>0s</td><td>0s</td><td>0s</td></tr><tr><td>Mar 18</td><td>08</td><td>2</td><td>0.004s</td><td>0.094s</td><td>0.152s</td></tr><tr><td></td><td>09</td><td>63</td><td>6.38s</td><td>0.065s</td><td>6.587s</td></tr><tr><td></td><td>10</td><td>38</td><td>3.943s</td><td>0.019s</td><td>3.98s</td></tr><tr><td></td><td>11</td><td>8</td><td>0.837s</td><td>0.009s</td><td>0.857s</td></tr><tr><td></td><td>12</td><td>0</td><td>0s</td><td>0s</td><td>0s</td></tr><tr><td></td><td>13</td><td>0</td><td>0s</td><td>0s</td><td>0s</td></tr><tr><td></td><td>14</td><td>0</td><td>0s</td><td>0s</td><td>0s</td></tr><tr><td></td><td>15</td><td>0</td><td>0s</td><td>0s</td><td>0s</td></tr><tr><td></td><td>16</td><td>0</td><td>0s</td><td>0s</td><td>0s</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<div class="tab-pane" id="checkpoint-activity-files">
|
||
<table class="table table-striped table-hover table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Added</th>
|
||
<th>Removed</th>
|
||
<th>Recycled</th>
|
||
<th>Synced files</th>
|
||
<th>Longest sync</th>
|
||
<th>Average sync</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr><td>Mar 14</td><td>01</td><td>0</td><td>0</td><td>0</td><td>1</td><td>0.072s</td><td>0.072s</td></tr><tr><td></td><td>10</td><td>0</td><td>0</td><td>0</td><td>2</td><td>0.008s</td><td>0.004s</td></tr><tr><td></td><td>11</td><td>0</td><td>0</td><td>0</td><td>9</td><td>0.011s</td><td>0.046s</td></tr><tr><td></td><td>12</td><td>0</td><td>0</td><td>0</td><td>6</td><td>0.010s</td><td>0.019s</td></tr><tr><td></td><td>16</td><td>0</td><td>1</td><td>0</td><td>6</td><td>0.109s</td><td>0.023s</td></tr><tr><td></td><td>17</td><td>0</td><td>4</td><td>0</td><td>90</td><td>0.015s</td><td>0.003s</td></tr><tr><td></td><td>22</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0s</td><td>0s</td></tr><tr><td></td><td>23</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0s</td><td>0s</td></tr><tr><td>Mar 15</td><td>00</td><td>0</td><td>4</td><td>42</td><td>40</td><td>0.061s</td><td>0.003s</td></tr><tr><td></td><td>01</td><td>0</td><td>0</td><td>11</td><td>17</td><td>0.304s</td><td>0.023s</td></tr><tr><td></td><td>09</td><td>0</td><td>0</td><td>0</td><td>4</td><td>0.008s</td><td>0.002s</td></tr><tr><td></td><td>10</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0s</td><td>0s</td></tr><tr><td></td><td>11</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0s</td><td>0s</td></tr><tr><td></td><td>12</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0s</td><td>0s</td></tr><tr><td></td><td>13</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0s</td><td>0s</td></tr><tr><td></td><td>14</td><td>0</td><td>0</td><td>61</td><td>64</td><td>0.064s</td><td>0.003s</td></tr><tr><td></td><td>15</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0s</td><td>0s</td></tr><tr><td></td><td>16</td><td>0</td><td>0</td><td>42</td><td>45</td><td>0.006s</td><td>0.002s</td></tr><tr><td></td><td>17</td><td>0</td><td>0</td><td>15</td><td>28</td><td>0.008s</td><td>0.001s</td></tr><tr><td></td><td>19</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0s</td><td>0s</td></tr><tr><td></td><td>21</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0s</td><td>0s</td></tr><tr><td>Mar 16</td><td>01</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0s</td><td>0s</td></tr><tr><td></td><td>02</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0s</td><td>0s</td></tr><tr><td></td><td>05</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0s</td><td>0s</td></tr><tr><td></td><td>19</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0s</td><td>0s</td></tr><tr><td>Mar 18</td><td>08</td><td>0</td><td>0</td><td>0</td><td>2</td><td>0.094s</td><td>0.047s</td></tr><tr><td></td><td>09</td><td>0</td><td>0</td><td>0</td><td>43</td><td>0.013s</td><td>0.013s</td></tr><tr><td></td><td>10</td><td>0</td><td>0</td><td>0</td><td>20</td><td>0.011s</td><td>0s</td></tr><tr><td></td><td>11</td><td>0</td><td>0</td><td>0</td><td>5</td><td>0.008s</td><td>0.001s</td></tr><tr><td></td><td>12</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0s</td><td>0s</td></tr><tr><td></td><td>13</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0s</td><td>0s</td></tr><tr><td></td><td>14</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0s</td><td>0s</td></tr><tr><td></td><td>15</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0s</td><td>0s</td></tr><tr><td></td><td>16</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0s</td><td>0s</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<div class="tab-pane" id="checkpoint-activity-warnings">
|
||
<table class="table table-striped table-hover table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Avg time (sec)</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr><td>Mar 14</td><td>01</td><td>0</td><td>0s</td></tr><tr><td></td><td>10</td><td>0</td><td>0s</td></tr><tr><td></td><td>11</td><td>0</td><td>0s</td></tr><tr><td></td><td>12</td><td>0</td><td>0s</td></tr><tr><td></td><td>16</td><td>0</td><td>0s</td></tr><tr><td></td><td>17</td><td>0</td><td>0s</td></tr><tr><td></td><td>22</td><td>0</td><td>0s</td></tr><tr><td></td><td>23</td><td>0</td><td>0s</td></tr><tr><td>Mar 15</td><td>00</td><td>0</td><td>0s</td></tr><tr><td></td><td>01</td><td>0</td><td>0s</td></tr><tr><td></td><td>09</td><td>0</td><td>0s</td></tr><tr><td></td><td>10</td><td>0</td><td>0s</td></tr><tr><td></td><td>11</td><td>0</td><td>0s</td></tr><tr><td></td><td>12</td><td>0</td><td>0s</td></tr><tr><td></td><td>13</td><td>0</td><td>0s</td></tr><tr><td></td><td>14</td><td>0</td><td>0s</td></tr><tr><td></td><td>15</td><td>0</td><td>0s</td></tr><tr><td></td><td>16</td><td>0</td><td>0s</td></tr><tr><td></td><td>17</td><td>0</td><td>0s</td></tr><tr><td></td><td>19</td><td>0</td><td>0s</td></tr><tr><td></td><td>21</td><td>0</td><td>0s</td></tr><tr><td>Mar 16</td><td>01</td><td>0</td><td>0s</td></tr><tr><td></td><td>02</td><td>0</td><td>0s</td></tr><tr><td></td><td>05</td><td>0</td><td>0s</td></tr><tr><td></td><td>19</td><td>0</td><td>0s</td></tr><tr><td>Mar 18</td><td>08</td><td>0</td><td>0s</td></tr><tr><td></td><td>09</td><td>0</td><td>0s</td></tr><tr><td></td><td>10</td><td>0</td><td>0s</td></tr><tr><td></td><td>11</td><td>0</td><td>0s</td></tr><tr><td></td><td>12</td><td>0</td><td>0s</td></tr><tr><td></td><td>13</td><td>0</td><td>0s</td></tr><tr><td></td><td>14</td><td>0</td><td>0s</td></tr><tr><td></td><td>15</td><td>0</td><td>0s</td></tr><tr><td></td><td>16</td><td>0</td><td>0s</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<div class="tab-pane" id="checkpoint-activity-distance">
|
||
<table class="table table-striped table-hover table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Mean distance</th>
|
||
<th>Mean estimate</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr><td>Mar 14</td><td>01</td><td>4.00 kB</td><td>4.00 kB</td></tr><tr><td></td><td>10</td><td>118.00 kB</td><td>118.00 kB</td></tr><tr><td></td><td>11</td><td>16.83 kB</td><td>87.83 kB</td></tr><tr><td></td><td>12</td><td>24.00 kB</td><td>60.00 kB</td></tr><tr><td></td><td>16</td><td>12,614.00 kB</td><td>12,614.00 kB</td></tr><tr><td></td><td>17</td><td>22,110.67 kB</td><td>24,047.67 kB</td></tr><tr><td></td><td>22</td><td>0.00 kB</td><td>0.00 kB</td></tr><tr><td></td><td>23</td><td>0.00 kB</td><td>0.00 kB</td></tr><tr><td>Mar 15</td><td>00</td><td>379,405.50 kB</td><td>379,405.50 kB</td></tr><tr><td></td><td>01</td><td>0.00 kB</td><td>0.00 kB</td></tr><tr><td></td><td>09</td><td>4.00 kB</td><td>4.00 kB</td></tr><tr><td></td><td>10</td><td>0.00 kB</td><td>0.00 kB</td></tr><tr><td></td><td>11</td><td>0.00 kB</td><td>0.00 kB</td></tr><tr><td></td><td>12</td><td>0.00 kB</td><td>0.00 kB</td></tr><tr><td></td><td>13</td><td>0.00 kB</td><td>0.00 kB</td></tr><tr><td></td><td>14</td><td>497,784.00 kB</td><td>677,863.50 kB</td></tr><tr><td></td><td>15</td><td>0.00 kB</td><td>0.00 kB</td></tr><tr><td></td><td>16</td><td>345,627.00 kB</td><td>641,659.00 kB</td></tr><tr><td></td><td>17</td><td>254,722.00 kB</td><td>647,596.00 kB</td></tr><tr><td></td><td>19</td><td>0.00 kB</td><td>0.00 kB</td></tr><tr><td></td><td>21</td><td>0.00 kB</td><td>0.00 kB</td></tr><tr><td>Mar 16</td><td>01</td><td>0.00 kB</td><td>0.00 kB</td></tr><tr><td></td><td>02</td><td>0.00 kB</td><td>0.00 kB</td></tr><tr><td></td><td>05</td><td>0.00 kB</td><td>0.00 kB</td></tr><tr><td></td><td>19</td><td>0.00 kB</td><td>0.00 kB</td></tr><tr><td>Mar 18</td><td>08</td><td>0.00 kB</td><td>0.00 kB</td></tr><tr><td></td><td>09</td><td>69.00 kB</td><td>132.60 kB</td></tr><tr><td></td><td>10</td><td>255.00 kB</td><td>255.00 kB</td></tr><tr><td></td><td>11</td><td>0.00 kB</td><td>229.00 kB</td></tr><tr><td></td><td>12</td><td>0.00 kB</td><td>0.00 kB</td></tr><tr><td></td><td>13</td><td>0.00 kB</td><td>0.00 kB</td></tr><tr><td></td><td>14</td><td>0.00 kB</td><td>0.00 kB</td></tr><tr><td></td><td>15</td><td>0.00 kB</td><td>0.00 kB</td></tr><tr><td></td><td>16</td><td>0.00 kB</td><td>0.00 kB</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div> <!-- end of div tab-content -->
|
||
<span class="pull-right">↑ <small><a href="#checkpoint-activity" class="">Back to the top of the <em>Checkpoint Activity</em> table</a></small></span>
|
||
</div>
|
||
|
||
</div><!-- end of checkpoint activity -->
|
||
|
||
</li>
|
||
<li class="slide" id="tempfiles-slide">
|
||
|
||
<h1 class="page-header"><i class="glyphicon icon-pencil"></i> Temporary Files</h1>
|
||
|
||
<div id="tempfiles-size" class="analysis-item row">
|
||
<h2 class=""><i class="glyphicon icon-resize-full"></i> Size of temporary files</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">2.31 GiB</span> <span class="figure-label">Temp Files size Peak</span></li>
|
||
<li><span class="figure">2019-03-15 16:48:07</span> <span class="figure-label">Date</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div id="temporarydata_graph" class="jqplot-graph linegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var temporarydata_graph_19_d1 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 0],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 0],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 0],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 0],[1552582800000, 0],[1552583100000, 0],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 0],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 0],[1552601700000, 0],[1552602000000, 0],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 0],[1552629000000, 3290633026],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 0],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 0],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 3291477634],[1552677000000, 0],[1552677300000, 0],[1552677600000, 0],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 0],[1552686000000, 0],[1552686300000, 3292409990],[1552686600000, 0],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 0],[1552919400000, 0],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 0],[1552920900000, 0],[1552921200000, 0],[1552921500000, 0],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 0],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
|
||
|
||
|
||
var series_arr = [ { label: "Size of files", color: "#6e9dc9" } ];
|
||
|
||
create_download_button(19, 'btn btn-default');
|
||
var temporarydata_graph = create_linegraph('temporarydata_graph', 'Size of temporary files (5 minutes period)', 'Size of files', series_arr, [temporarydata_graph_19_d1]);
|
||
add_download_button_event(19, 'temporarydata_graph');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
</div><!-- end of Size of temporary files -->
|
||
|
||
<div id="tempfiles-number" class="analysis-item row">
|
||
<h2 class=""><i class="glyphicon icon-th"></i> Number of temporary files</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">6 per second</span> <span class="figure-label">Temp Files Peak</span></li>
|
||
<li><span class="figure">2019-03-15 14:09:18</span> <span class="figure-label">Date</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div id="temporaryfile_graph" class="jqplot-graph linegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var temporaryfile_graph_20_d1 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 0],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 0],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 0],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 0],[1552582800000, 0],[1552583100000, 0],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 0],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 0],[1552601700000, 0],[1552602000000, 0],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 0],[1552629000000, 7],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 0],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 0],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 7],[1552677000000, 0],[1552677300000, 0],[1552677600000, 0],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 0],[1552686000000, 0],[1552686300000, 7],[1552686600000, 0],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 0],[1552919400000, 0],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 0],[1552920900000, 0],[1552921200000, 0],[1552921500000, 0],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 0],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
|
||
|
||
|
||
var series_arr = [ { label: "Number of files", color: "#6e9dc9" } ];
|
||
|
||
create_download_button(20, 'btn btn-default');
|
||
var temporaryfile_graph = create_linegraph('temporaryfile_graph', 'Number of temporary files (5 minutes period)', 'Number of files', series_arr, [temporaryfile_graph_20_d1]);
|
||
add_download_button_event(20, 'temporaryfile_graph');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
</div><!-- end of Number of temporary files -->
|
||
|
||
<div class="analysis-item row" id="tempfiles-activity">
|
||
<h2 class=""><i class="glyphicon icon-calendar"></i> Temporary Files Activity</h2>
|
||
<div class="col-md-12 tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#tempfiles-activity-count" data-toggle="tab">Temp Files</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="active tab-pane" id="tempfiles-activity-count">
|
||
<table class="table table-striped table-hover table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Total size</th>
|
||
<th>Average size</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr><td>Mar 14</td><td>01</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>10</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>11</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>12</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>16</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>17</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>22</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>23</td><td>0</td><td>0</td><td>0</td><tr><td>Mar 15</td><td>00</td><td>7</td><td>3.06 GiB</td></td><td>448.31 MiB</td><tr><td></td><td>01</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>09</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>10</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>11</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>12</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>13</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>14</td><td>7</td><td>3.07 GiB</td></td><td>448.43 MiB</td><tr><td></td><td>15</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>16</td><td>7</td><td>3.07 GiB</td></td><td>448.56 MiB</td><tr><td></td><td>17</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>19</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>21</td><td>0</td><td>0</td><td>0</td><tr><td>Mar 16</td><td>01</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>02</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>05</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>19</td><td>0</td><td>0</td><td>0</td><tr><td>Mar 18</td><td>08</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>09</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>10</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>11</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>12</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>13</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>14</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>15</td><td>0</td><td>0</td><td>0</td><tr><td></td><td>16</td><td>0</td><td>0</td><td>0</td>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div> <!-- end of div tab-content -->
|
||
<span class="pull-right">↑ <small><a href="#tempfiles-activity" class="">Back to the top of the <em>Temporary Files Activity</em> table</a></small></span>
|
||
</div>
|
||
|
||
</div><!-- end of tempfile activity -->
|
||
|
||
<div class="analysis-item row" id="queries-generating-most-temporary-files">
|
||
<h2><i class="glyphicon icon-pencil"></i> Queries generating the most temporary files (N)</h2>
|
||
<div class="col-md-12">
|
||
<table class="table table-striped" id="queries-generating-most-temporary-files-table">
|
||
<thead>
|
||
<tr>
|
||
<th>Rank</th>
|
||
<th>Count</th>
|
||
<th>Total size</th>
|
||
<th>Min size</th>
|
||
<th>Max size</th>
|
||
<th>Avg size</th>
|
||
<th>Query</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
|
||
<tr>
|
||
<td>1</td>
|
||
<td>21</td>
|
||
<td>9.20 GiB</td>
|
||
<td>285.24 MiB</td>
|
||
<td>778.25 MiB</td>
|
||
<td>448.43 MiB</td>
|
||
<td id="queries-generating-most-temporary-files-examples-details-rank-1">
|
||
<div id="query-c-1" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#queries-generating-most-temporary-files-examples-rank-1">Examples</button></p>
|
||
<!-- Examples collapse -->
|
||
<div id="queries-generating-most-temporary-files-examples-rank-1" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-c-1-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 14:09:18
|
||
<b>Duration:</b> 0ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#queries-generating-most-temporary-files-examples-rank-1">x Hide</button></p>
|
||
</div>
|
||
<!-- end of example collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div><!-- end of queries-generating-most-temporary-files -->
|
||
|
||
<div class="analysis-item row" id="queries-generating-largest-temporary-files">
|
||
<h2><i class="glyphicon icon-pencil"></i> Queries generating the largest temporary files</h2>
|
||
<div class="col-md-12">
|
||
<table class="table table-striped" id="queries-generating-largest-temporary-files-table">
|
||
<thead>
|
||
<tr>
|
||
<th>Rank</th>
|
||
<th>Size</th>
|
||
<th>Query</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
|
||
<tr>
|
||
<td>1</td>
|
||
<td>778.25 MiB</td>
|
||
<td id="queries-generating-largest-temporary-files-examples-details-rank-1">
|
||
<div id="query-d-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 16:48:41 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>2</td>
|
||
<td>777.94 MiB</td>
|
||
<td id="queries-generating-largest-temporary-files-examples-details-rank-2">
|
||
<div id="query-d-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 14:09:42 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>3</td>
|
||
<td>777.67 MiB</td>
|
||
<td id="queries-generating-largest-temporary-files-examples-details-rank-3">
|
||
<div id="query-d-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 00:53:37 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>4</td>
|
||
<td>464.89 MiB</td>
|
||
<td id="queries-generating-largest-temporary-files-examples-details-rank-4">
|
||
<div id="query-d-4" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 16:48:07 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>5</td>
|
||
<td>464.79 MiB</td>
|
||
<td id="queries-generating-largest-temporary-files-examples-details-rank-5">
|
||
<div id="query-d-5" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 14:09:18 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>6</td>
|
||
<td>464.70 MiB</td>
|
||
<td id="queries-generating-largest-temporary-files-examples-details-rank-6">
|
||
<div id="query-d-6" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 00:52:54 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>7</td>
|
||
<td>452.11 MiB</td>
|
||
<td id="queries-generating-largest-temporary-files-examples-details-rank-7">
|
||
<div id="query-d-7" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 16:48:07 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>8</td>
|
||
<td>452.01 MiB</td>
|
||
<td id="queries-generating-largest-temporary-files-examples-details-rank-8">
|
||
<div id="query-d-8" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 14:09:18 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>9</td>
|
||
<td>451.93 MiB</td>
|
||
<td id="queries-generating-largest-temporary-files-examples-details-rank-9">
|
||
<div id="query-d-9" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 00:52:54 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>10</td>
|
||
<td>435.58 MiB</td>
|
||
<td id="queries-generating-largest-temporary-files-examples-details-rank-10">
|
||
<div id="query-d-10" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 16:48:07 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>11</td>
|
||
<td>435.48 MiB</td>
|
||
<td id="queries-generating-largest-temporary-files-examples-details-rank-11">
|
||
<div id="query-d-11" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 14:09:18 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>12</td>
|
||
<td>435.39 MiB</td>
|
||
<td id="queries-generating-largest-temporary-files-examples-details-rank-12">
|
||
<div id="query-d-12" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 00:52:54 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>13</td>
|
||
<td>424.71 MiB</td>
|
||
<td id="queries-generating-largest-temporary-files-examples-details-rank-13">
|
||
<div id="query-d-13" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 16:48:07 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>14</td>
|
||
<td>424.62 MiB</td>
|
||
<td id="queries-generating-largest-temporary-files-examples-details-rank-14">
|
||
<div id="query-d-14" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 14:09:18 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>15</td>
|
||
<td>424.53 MiB</td>
|
||
<td id="queries-generating-largest-temporary-files-examples-details-rank-15">
|
||
<div id="query-d-15" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 00:52:54 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>16</td>
|
||
<td>298.93 MiB</td>
|
||
<td id="queries-generating-largest-temporary-files-examples-details-rank-16">
|
||
<div id="query-d-16" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 16:48:07 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>17</td>
|
||
<td>298.83 MiB</td>
|
||
<td id="queries-generating-largest-temporary-files-examples-details-rank-17">
|
||
<div id="query-d-17" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 14:09:18 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>18</td>
|
||
<td>298.74 MiB</td>
|
||
<td id="queries-generating-largest-temporary-files-examples-details-rank-18">
|
||
<div id="query-d-18" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 00:52:54 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>19</td>
|
||
<td>285.42 MiB</td>
|
||
<td id="queries-generating-largest-temporary-files-examples-details-rank-19">
|
||
<div id="query-d-19" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 16:48:07 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>20</td>
|
||
<td>285.32 MiB</td>
|
||
<td id="queries-generating-largest-temporary-files-examples-details-rank-20">
|
||
<div id="query-d-20" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 14:09:18 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
</td>
|
||
</tr>
|
||
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div><!-- end of queries-generating-largest-temporary-files -->
|
||
|
||
</li>
|
||
<li class="slide" id="vacuums-slide">
|
||
|
||
<h1 class="page-header"><i class="glyphicon icon-cogs"></i> Vacuums</h1>
|
||
|
||
<div id="vacuums-count" class="analysis-item row">
|
||
<h2 class=""><i class="glyphicon icon-pencil"></i> Vacuums / Analyzes Distribution</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">0 sec</span> <span class="figure-label">Highest CPU-cost vacuum <br />Table <br />Database </span></li>
|
||
<li><span class="figure"></span> <span class="figure-label">Date</span></li>
|
||
<li><span class="figure">0 sec</span> <span class="figure-label">Highest CPU-cost analyze <br />Table <br />Database </span></li>
|
||
<li><span class="figure"></span> <span class="figure-label">Date</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div id="autovacuum_graph" class="jqplot-graph linegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var autovacuum_graph_21_d1 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 0],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 0],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 0],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 0],[1552582800000, 0],[1552583100000, 0],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 0],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 0],[1552601700000, 0],[1552602000000, 0],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 2],[1552629000000, 0],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 0],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 0],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 1],[1552677000000, 1],[1552677300000, 0],[1552677600000, 0],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 0],[1552686000000, 0],[1552686300000, 1],[1552686600000, 0],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 0],[1552919400000, 0],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 0],[1552920900000, 0],[1552921200000, 0],[1552921500000, 0],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 0],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
var autovacuum_graph_21_d2 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 0],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 0],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 0],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 0],[1552582800000, 0],[1552583100000, 0],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 0],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 1],[1552601700000, 0],[1552602000000, 0],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 2],[1552629000000, 1],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 0],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 0],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 2],[1552677000000, 1],[1552677300000, 0],[1552677600000, 0],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 0],[1552686000000, 0],[1552686300000, 2],[1552686600000, 0],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 0],[1552919400000, 0],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 0],[1552920900000, 0],[1552921200000, 0],[1552921500000, 0],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 0],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
|
||
|
||
var series_arr = [ { label: "VACUUMs", color: "#6e9dc9" },{ label: "ANALYZEs", color: "#f4ab3a" } ];
|
||
|
||
create_download_button(21, 'btn btn-default');
|
||
var autovacuum_graph = create_linegraph('autovacuum_graph', 'Autovacuum actions (5 minutes period)', '', series_arr, [autovacuum_graph_21_d1,autovacuum_graph_21_d2]);
|
||
add_download_button_event(21, 'autovacuum_graph');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
</div><!-- end of Autovacuum actions -->
|
||
|
||
<div class="analysis-item row" id="analyzes-per-table">
|
||
<h2><i class="glyphicon icon-table"></i> Analyzes per table</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">import.osmi (5)</span> <span class="figure-label">Main table analyzed (database ubm)</span></li>
|
||
<li><span class="figure">9 analyzes</span> <span class="figure-label">Total</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div class="tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#analyzes-per-table-graph" data-toggle="tab">Chart</a></li>
|
||
<li><a href="#analyzes-per-table-table" data-toggle="tab">Table</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="tab-pane active" id="analyzes-per-table-graph">
|
||
<div id="graph_tableanalyzes" class="jqplot-graph piegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var data_22 = [ ['ubm.import.osmi', 5],['ubm.rlarp.osm', 1],['ubm.rlarp.osm_ppfa_varto_mv', 3] ];
|
||
|
||
create_download_button(22, 'btn btn-default');
|
||
var graph_tableanalyzes = create_piechart('graph_tableanalyzes', 'Analyzes per tables', data_22);
|
||
add_download_button_event(22, 'graph_tableanalyzes');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
<div class="tab-pane" id="analyzes-per-table-table">
|
||
<table class="table table-striped table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th>Table</th>
|
||
<th>Number of analyzes</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>ubm.import.osmi</td><td>5</td></tr><tr><td>ubm.rlarp.osm_ppfa_varto_mv</td><td>3</td></tr><tr><td>ubm.rlarp.osm</td><td>1</td></tr><tr><th>Total</th><td>9</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div><!-- end of analyzes per table -->
|
||
|
||
<div class="analysis-item row" id="vacuums-per-table">
|
||
<h2><i class="glyphicon icon-table"></i> Vacuums per table</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">import.osmi (4)</span> <span class="figure-label">Main table vacuumed on database ubm</span></li>
|
||
<li><span class="figure">5 vacuums</span> <span class="figure-label">Total</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div class="tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#vacuums-per-table-graph" data-toggle="tab">Chart</a></li>
|
||
<li><a href="#vacuums-per-table-table" data-toggle="tab">Table</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="tab-pane active" id="vacuums-per-table-graph">
|
||
<div id="graph_tablevacuums" class="jqplot-graph piegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var data_23 = [ ['ubm.import.osmi', 4],['ubm.rlarp.osm', 1] ];
|
||
|
||
create_download_button(23, 'btn btn-default');
|
||
var graph_tablevacuums = create_piechart('graph_tablevacuums', 'Vacuums per tables', data_23);
|
||
add_download_button_event(23, 'graph_tablevacuums');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
<div class="tab-pane" id="vacuums-per-table-table">
|
||
<table class="table table-striped table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th>Table</th>
|
||
<th>Number of vacuums</th>
|
||
<th>Index scans</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>ubm.import.osmi</td><td>4</td><td>0</td></tr><tr><td>ubm.rlarp.osm</td><td>1</td><td>1</td></tr><tr><th>Total</th><td>5</td><td>1</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div><!-- end of vacuums per table -->
|
||
|
||
<div class="analysis-item row" id="tuples-removed-per-table">
|
||
<h2><i class="glyphicon icon-table"></i> Tuples removed per table</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">import.osmi (103249)</span> <span class="figure-label">Main table with removed tuples on database ubm</span></li>
|
||
<li><span class="figure">128920 tuples</span> <span class="figure-label">Total removed</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div class="tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#tuples-removed-per-table-graph" data-toggle="tab">Chart</a></li>
|
||
<li><a href="#tuples-removed-per-table-table" data-toggle="tab">Table</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="tab-pane active" id="tuples-removed-per-table-graph">
|
||
<div id="graph_tuplevacuums" class="jqplot-graph piegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var data_24 = [ ['ubm.import.osmi', 103249],['ubm.rlarp.osm', 25671] ];
|
||
|
||
create_download_button(24, 'btn btn-default');
|
||
var graph_tuplevacuums = create_piechart('graph_tuplevacuums', 'Tuples removed per tables', data_24);
|
||
add_download_button_event(24, 'graph_tuplevacuums');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
<div class="tab-pane" id="tuples-removed-per-table-table">
|
||
<table class="table table-striped table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th>Table</th>
|
||
<th>Number of vacuums</th>
|
||
<th>Index scans</th>
|
||
<th>Tuples removed</th>
|
||
<th>Pages removed</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>ubm.import.osmi</td><td>4</td><td>0</td><td>103249</td><td>5638</td></tr><tr><td>ubm.rlarp.osm</td><td>1</td><td>1</td><td>25671</td><td>0</td></tr><tr><th>Total</th><td>5</td><td>1</td><td>128,920</td><td>5,638</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div><!-- end of tuples removed per table -->
|
||
|
||
<div class="analysis-item row" id="pages-removed-per-table">
|
||
<h2><i class="glyphicon icon-table"></i> Pages removed per table</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">import.osmi (5638)</span> <span class="figure-label">Main table with removed pages on database ubm</span></li>
|
||
<li><span class="figure">5638 pages</span> <span class="figure-label">Total removed</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div class="tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#pages-removed-per-table-graph" data-toggle="tab">Chart</a></li>
|
||
<li><a href="#pages-removed-per-table-table" data-toggle="tab">Table</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="tab-pane active" id="pages-removed-per-table-graph">
|
||
<div id="graph_pagevacuums" class="jqplot-graph piegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var data_25 = [ ['ubm.import.osmi', 5638],['ubm.rlarp.osm', 0] ];
|
||
|
||
create_download_button(25, 'btn btn-default');
|
||
var graph_pagevacuums = create_piechart('graph_pagevacuums', 'Pages removed per tables', data_25);
|
||
add_download_button_event(25, 'graph_pagevacuums');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
<div class="tab-pane" id="pages-removed-per-table-table">
|
||
<table class="table table-striped table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th>Table</th>
|
||
<th>Number of vacuums</th>
|
||
<th>Index scans</th>
|
||
<th>Tuples removed</th>
|
||
<th>Pages removed</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>ubm.import.osmi</td><td>4</td><td>0</td><td>103249</td><td>5638</td></tr><tr><td>ubm.rlarp.osm</td><td>1</td><td>1</td><td>25671</td><td>0</td></tr><tr><th>Total</th><td>5</td><td>1</td><td>128,920</td><td>5,638</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div><!-- end of pages removed per table -->
|
||
|
||
<div class="analysis-item row" id="vacuums-activity">
|
||
<h2 class=""><i class="glyphicon icon-calendar"></i> Autovacuum Activity</h2>
|
||
<div class="col-md-12 tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#vacuums-activity-count" data-toggle="tab">Vacuums / Analyzes</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="active tab-pane" id="vacuums-activity-count">
|
||
<table class="table table-striped table-hover table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>VACUUMs</th>
|
||
<th>ANALYZEs</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr><td>Mar 14</td><td>01</td><td>0</td><td>0</td><tr><td></td><td>10</td><td>0</td><td>0</td><tr><td></td><td>11</td><td>0</td><td>0</td><tr><td></td><td>12</td><td>0</td><td>0</td><tr><td></td><td>16</td><td>0</td><td>0</td><tr><td></td><td>17</td><td>0</td><td>1</td><tr><td></td><td>22</td><td>0</td><td>0</td><tr><td></td><td>23</td><td>0</td><td>0</td><tr><td>Mar 15</td><td>00</td><td>2</td><td>3</td><tr><td></td><td>01</td><td>0</td><td>0</td><tr><td></td><td>09</td><td>0</td><td>0</td><tr><td></td><td>10</td><td>0</td><td>0</td><tr><td></td><td>11</td><td>0</td><td>0</td><tr><td></td><td>12</td><td>0</td><td>0</td><tr><td></td><td>13</td><td>0</td><td>0</td><tr><td></td><td>14</td><td>2</td><td>3</td><tr><td></td><td>15</td><td>0</td><td>0</td><tr><td></td><td>16</td><td>1</td><td>2</td><tr><td></td><td>17</td><td>0</td><td>0</td><tr><td></td><td>19</td><td>0</td><td>0</td><tr><td></td><td>21</td><td>0</td><td>0</td><tr><td>Mar 16</td><td>01</td><td>0</td><td>0</td><tr><td></td><td>02</td><td>0</td><td>0</td><tr><td></td><td>05</td><td>0</td><td>0</td><tr><td></td><td>19</td><td>0</td><td>0</td><tr><td>Mar 18</td><td>08</td><td>0</td><td>0</td><tr><td></td><td>09</td><td>0</td><td>0</td><tr><td></td><td>10</td><td>0</td><td>0</td><tr><td></td><td>11</td><td>0</td><td>0</td><tr><td></td><td>12</td><td>0</td><td>0</td><tr><td></td><td>13</td><td>0</td><td>0</td><tr><td></td><td>14</td><td>0</td><td>0</td><tr><td></td><td>15</td><td>0</td><td>0</td><tr><td></td><td>16</td><td>0</td><td>0</td>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div> <!-- end of div tab-content -->
|
||
<span class="pull-right">↑ <small><a href="#vacuums-activity" class="">Back to the top of the <em>Autovacuum Activity</em> table</a></small></span>
|
||
</div>
|
||
|
||
</div><!-- end of vacuum activity -->
|
||
|
||
</li>
|
||
<li class="slide" id="locks-slide">
|
||
|
||
<h1 class="page-header"><i class="glyphicon icon-lock"></i> Locks</h1>
|
||
<div class="analysis-item row" id="locks-type">
|
||
<h2><i class="glyphicon icon-lock"></i> Locks by types</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">unknown</span> <span class="figure-label">Main Lock Type</span></li>
|
||
<li><span class="figure">0 locks</span> <span class="figure-label">Total</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div class="tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#locks-types-graph" data-toggle="tab">Chart</a></li>
|
||
<li><a href="#locks-types-table" data-toggle="tab">Table</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="tab-pane active" id="locks-types-graph">
|
||
|
||
<h3 class="">Type of locks</h3>
|
||
<div id="graph_lockbytype" class="jqplot-graph piegraph"><blockquote><b>NO DATASET</b></blockquote></div>
|
||
|
||
</div>
|
||
<div class="tab-pane" id="locks-types-table">
|
||
<table class="table table-striped table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th>Type</th>
|
||
<th>Object</th>
|
||
<th>Count</th>
|
||
<th>Total Duration</th>
|
||
<th>Average Duration (s)</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td colspan="5"><div class="jqplot-graph"><blockquote><b>NO DATASET</b></blockquote></div></td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div><!-- end of locks by type -->
|
||
|
||
<div class="analysis-item row" id="queries-most-frequent-waiting">
|
||
<h2><i class="glyphicon icon-ban-circle"></i> Most frequent waiting queries (N)</h2>
|
||
<div class="col-md-12">
|
||
<table class="table table-striped" id="queries-most-frequent-waiting-table">
|
||
<thead>
|
||
<tr>
|
||
<th>Rank</th>
|
||
<th>Count</th>
|
||
<th>Total time</th>
|
||
<th>Min time</th>
|
||
<th>Max time</th>
|
||
<th>Avg duration</th>
|
||
<th>Query</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td colspan="7"><div class="jqplot-graph"><blockquote><b>NO DATASET</b></blockquote></div></td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div><!-- end of queries-most-frequent-waiting -->
|
||
|
||
<div class="analysis-item row" id="queries-that-waited-most">
|
||
<h2><i class="glyphicon icon-ban-circle"></i> Queries that waited the most</h2>
|
||
<div class="col-md-12">
|
||
<table class="table table-striped" id="queries-that-waited-most-table">
|
||
<thead>
|
||
<tr>
|
||
<th>Rank</th>
|
||
<th>Wait time</th>
|
||
<th>Query</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td colspan="3"><div class="jqplot-graph"><blockquote><b>NO DATASET</b></blockquote></div></td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div><!-- end of queries-that-waited-most -->
|
||
|
||
</li>
|
||
<li class="slide" id="queries-slide">
|
||
|
||
<h1 class="page-header"><i class="glyphicon icon-question-sign"></i> Queries</h1>
|
||
<div class="analysis-item row" id="queries-by-type">
|
||
<h2><i class="glyphicon icon-question-sign"></i> Queries by type</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">22,915</span> <span class="figure-label">Total read queries</span></li>
|
||
<li><span class="figure">5,838</span> <span class="figure-label">Total write queries</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div class="tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#queries-by-type-graph" data-toggle="tab">Chart</a></li>
|
||
<li><a href="#queries-by-type-table" data-toggle="tab">Table</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="tab-pane active" id="queries-by-type-graph">
|
||
<div id="graph_queriesbytype" class="jqplot-graph piegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var data_27 = [ ['COPY TO', 5190],['Others', 39724],['SELECT', 22915],['Sum query types < 2%', 648] ];
|
||
|
||
create_download_button(27, 'btn btn-default');
|
||
var graph_queriesbytype = create_piechart('graph_queriesbytype', 'Type of queries', data_27);
|
||
add_download_button_event(27, 'graph_queriesbytype');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
<div class="tab-pane" id="queries-by-type-table">
|
||
<table class="table table-striped table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th>Type</th>
|
||
<th>Count</th>
|
||
<th>Percentage</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>SELECT</td><td>22,915</td><td>33.46%</td></tr><tr><td>INSERT</td><td>432</td><td>0.63%</td></tr><tr><td>UPDATE</td><td>0</td><td>0.00%</td></tr><tr><td>DELETE</td><td>24</td><td>0.04%</td></tr><tr><td>COPY FROM</td><td>0</td><td>0.00%</td></tr><tr><td>COPY TO</td><td>5,190</td><td>7.58%</td></tr><tr><td>CTE</td><td>30</td><td>0.04%</td></tr><tr><td>DDL</td><td>75</td><td>0.11%</td></tr><tr><td>TCL</td><td>87</td><td>0.13%</td></tr><tr><td>OTHERS</td><td>39,724</td><td>58.01%</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div><!-- end of queries by type -->
|
||
|
||
<div class="analysis-item row" id="queries-by-database">
|
||
<h2><i class="glyphicon icon-question-sign"></i> Queries by database</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">ubm</span> <span class="figure-label">Main database</span></li>
|
||
<li><span class="figure">68,215</span> <span class="figure-label">Requests</span></li>
|
||
<li><span class="figure">42m15s (ubm)</span></li>
|
||
<li><span class="figure-label">Main time consuming database</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div class="tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#queries-by-database-graph" data-toggle="tab">Chart</a></li>
|
||
<li><a href="#queries-by-database-table" data-toggle="tab">Table</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="tab-pane active" id="queries-by-database-graph">
|
||
<div id="graph_queriesbydatabase" class="jqplot-graph piegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var data_28 = [ ['Sum queries per databases < 2%', 262],['ubm', 68215] ];
|
||
|
||
create_download_button(28, 'btn btn-default');
|
||
var graph_queriesbydatabase = create_piechart('graph_queriesbydatabase', 'Queries per database', data_28);
|
||
add_download_button_event(28, 'graph_queriesbydatabase');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
<div class="tab-pane" id="queries-by-database-table">
|
||
<table class="table table-striped table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th>Database</th>
|
||
<th>Request type</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>postgres</td><td>Total</td><td>206</td><td>580ms</td></tr><tr><td></td><td>OTHERS</td><td>2</td><td>0ms</td></tr><tr><td></td><td>SELECT</td><td>101</td><td>0ms</td></tr><tr><td>ubm</td><td>Total</td><td>68,215</td><td>42m15s</td></tr><tr><td></td><td>COPY TO</td><td>5,190</td><td>0ms</td></tr><tr><td></td><td>CTE</td><td>30</td><td>0ms</td></tr><tr><td></td><td>DDL</td><td>75</td><td>2s707ms</td></tr><tr><td></td><td>DELETE</td><td>24</td><td>24s14ms</td></tr><tr><td></td><td>INSERT</td><td>432</td><td>9m49s</td></tr><tr><td></td><td>OTHERS</td><td>5,477</td><td>11m19s</td></tr><tr><td></td><td>SELECT</td><td>22,814</td><td>2s267ms</td></tr><tr><td></td><td>TCL</td><td>87</td><td>0ms</td></tr><tr><td>unknown</td><td>Total</td><td>56</td><td>5m</td></tr><tr><td></td><td>OTHERS</td><td>56</td><td>5m</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div><!-- end of queries by database -->
|
||
|
||
<div class="analysis-item row" id="queries-by-user">
|
||
<h2><i class="glyphicon icon-question-sign"></i> Queries by user</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">ptrowbridge</span> <span class="figure-label">Main user</span></li>
|
||
<li><span class="figure">66,332</span> <span class="figure-label">Requests</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div class="tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#queries-by-user-graph" data-toggle="tab">Queries Chart</a></li>
|
||
<li><a href="#queries-by-user-table" data-toggle="tab">Table</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="tab-pane active" id="queries-by-user-graph">
|
||
<div id="graph_queriesbyuser" class="jqplot-graph piegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var data_29 = [ ['Sum queries per users < 2%', 2145],['ptrowbridge', 66332] ];
|
||
|
||
create_download_button(29, 'btn btn-default');
|
||
var graph_queriesbyuser = create_piechart('graph_queriesbyuser', 'Queries per user', data_29);
|
||
add_download_button_event(29, 'graph_queriesbyuser');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
<div class="tab-pane" id="queries-by-user-table">
|
||
<table class="table table-striped table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th>User</th>
|
||
<th>Request type</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>api</td><td>Total</td><td>304</td><td>1m4s</td></tr><tr><td></td><td>CTE</td><td>26</td><td>0ms</td></tr><tr><td></td><td>OTHERS</td><td>130</td><td>12s165ms</td></tr><tr><td>postgres</td><td>Total</td><td>24</td><td>60ms</td></tr><tr><td></td><td>SELECT</td><td>12</td><td>0ms</td></tr><tr><td>ptrowbridge</td><td>Total</td><td>66,332</td><td>5m57s</td></tr><tr><td></td><td>COPY TO</td><td>5,190</td><td>0ms</td></tr><tr><td></td><td>CTE</td><td>2</td><td>0ms</td></tr><tr><td></td><td>OTHERS</td><td>5,217</td><td>0ms</td></tr><tr><td></td><td>SELECT</td><td>22,756</td><td>0ms</td></tr><tr><td></td><td>TCL</td><td>2</td><td>0ms</td></tr><tr><td>ptrowbridge_md5</td><td>Total</td><td>1,353</td><td>28m29s</td></tr><tr><td></td><td>CTE</td><td>2</td><td>0ms</td></tr><tr><td></td><td>DDL</td><td>4</td><td>0ms</td></tr><tr><td></td><td>DELETE</td><td>24</td><td>24s14ms</td></tr><tr><td></td><td>INSERT</td><td>432</td><td>9m49s</td></tr><tr><td></td><td>OTHERS</td><td>70</td><td>7m50s</td></tr><tr><td></td><td>SELECT</td><td>99</td><td>2s267ms</td></tr><tr><td></td><td>TCL</td><td>53</td><td>0ms</td></tr><tr><td>report</td><td>Total</td><td>408</td><td>6m44s</td></tr><tr><td></td><td>DDL</td><td>71</td><td>2s707ms</td></tr><tr><td></td><td>OTHERS</td><td>62</td><td>3m17s</td></tr><tr><td></td><td>SELECT</td><td>48</td><td>0ms</td></tr><tr><td></td><td>TCL</td><td>32</td><td>0ms</td></tr><tr><td>unknown</td><td>Total</td><td>56</td><td>5m</td></tr><tr><td></td><td>OTHERS</td><td>56</td><td>5m</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div><!-- end of queries by user -->
|
||
|
||
<div class="analysis-item row" id="duration-by-user">
|
||
<h2><i class="glyphicon icon-time"></i> Duration by user</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">28m29s (ptrowbridge_md5)</span> <span class="figure-label">Main time consuming user</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div class="tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#duration-by-user-graph" data-toggle="tab">Duration Chart</a></li>
|
||
<li><a href="#duration-by-user-table" data-toggle="tab">Table</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="tab-pane active" id="duration-by-user-graph">
|
||
<div id="graph_durationbyuser" class="jqplot-graph piegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var data_30 = [ ['api', 64607.128],['postgres', 60.698],['ptrowbridge', 357611.898],['ptrowbridge_md5', 1709966.917],['report', 404070.892],['unknown', 300148.931] ];
|
||
|
||
create_download_button(30, 'btn btn-default');
|
||
var graph_durationbyuser = create_piechart('graph_durationbyuser', 'Duration per user', data_30);
|
||
add_download_button_event(30, 'graph_durationbyuser');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
<div class="tab-pane" id="duration-by-user-table">
|
||
<table class="table table-striped table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th>User</th>
|
||
<th>Request type</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>api</td><td>Total</td><td>304</td><td>1m4s</td></tr><tr><td></td><td>CTE</td><td>26</td><td>0ms</td></tr><tr><td></td><td>OTHERS</td><td>130</td><td>12s165ms</td></tr><tr><td>postgres</td><td>Total</td><td>24</td><td>60ms</td></tr><tr><td></td><td>SELECT</td><td>12</td><td>0ms</td></tr><tr><td>ptrowbridge</td><td>Total</td><td>66,332</td><td>5m57s</td></tr><tr><td></td><td>COPY TO</td><td>5,190</td><td>0ms</td></tr><tr><td></td><td>CTE</td><td>2</td><td>0ms</td></tr><tr><td></td><td>OTHERS</td><td>5,217</td><td>0ms</td></tr><tr><td></td><td>SELECT</td><td>22,756</td><td>0ms</td></tr><tr><td></td><td>TCL</td><td>2</td><td>0ms</td></tr><tr><td>ptrowbridge_md5</td><td>Total</td><td>1,353</td><td>28m29s</td></tr><tr><td></td><td>CTE</td><td>2</td><td>0ms</td></tr><tr><td></td><td>DDL</td><td>4</td><td>0ms</td></tr><tr><td></td><td>DELETE</td><td>24</td><td>24s14ms</td></tr><tr><td></td><td>INSERT</td><td>432</td><td>9m49s</td></tr><tr><td></td><td>OTHERS</td><td>70</td><td>7m50s</td></tr><tr><td></td><td>SELECT</td><td>99</td><td>2s267ms</td></tr><tr><td></td><td>TCL</td><td>53</td><td>0ms</td></tr><tr><td>report</td><td>Total</td><td>408</td><td>6m44s</td></tr><tr><td></td><td>DDL</td><td>71</td><td>2s707ms</td></tr><tr><td></td><td>OTHERS</td><td>62</td><td>3m17s</td></tr><tr><td></td><td>SELECT</td><td>48</td><td>0ms</td></tr><tr><td></td><td>TCL</td><td>32</td><td>0ms</td></tr><tr><td>unknown</td><td>Total</td><td>56</td><td>5m</td></tr><tr><td></td><td>OTHERS</td><td>56</td><td>5m</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div><!-- end of duration by user -->
|
||
|
||
<div class="analysis-item row" id="queries-by-host">
|
||
<h2><i class="glyphicon icon-question-sign"></i> Queries by host</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">USHCC10107.GBL.HC-companies.com</span> <span class="figure-label">Main host</span></li>
|
||
<li><span class="figure">68,063</span> <span class="figure-label">Requests</span></li>
|
||
<li><span class="figure">41m42s (USHCC10107.GBL.HC-companies.com)</span></li>
|
||
<li><span class="figure-label">Main time consuming host</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div class="tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#queries-by-host-graph" data-toggle="tab">Chart</a></li>
|
||
<li><a href="#queries-by-host-table" data-toggle="tab">Table</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="tab-pane active" id="queries-by-host-graph">
|
||
<div id="graph_queriesbyhost" class="jqplot-graph piegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var data_31 = [ ['Sum queries per hosts < 2%', 414],['USHCC10107.GBL.HC-companies.com', 68063] ];
|
||
|
||
create_download_button(31, 'btn btn-default');
|
||
var graph_queriesbyhost = create_piechart('graph_queriesbyhost', 'Queries per host', data_31);
|
||
add_download_button_event(31, 'graph_queriesbyhost');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
<div class="tab-pane" id="queries-by-host-table">
|
||
<table class="table table-striped table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th>Host</th>
|
||
<th>Request type</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>USHCC10107</td><td>Total</td><td>68</td><td>109ms</td></tr><tr><td></td><td>SELECT</td><td>34</td><td>0ms</td></tr><tr><td>USHCC10107.GBL.HC-companies.com</td><td>Total</td><td>68,063</td><td>41m42s</td></tr><tr><td></td><td>COPY TO</td><td>5,190</td><td>0ms</td></tr><tr><td></td><td>CTE</td><td>30</td><td>0ms</td></tr><tr><td></td><td>DDL</td><td>75</td><td>2s707ms</td></tr><tr><td></td><td>DELETE</td><td>24</td><td>24s14ms</td></tr><tr><td></td><td>INSERT</td><td>432</td><td>9m49s</td></tr><tr><td></td><td>OTHERS</td><td>5,424</td><td>11m8s</td></tr><tr><td></td><td>SELECT</td><td>22,788</td><td>2s267ms</td></tr><tr><td></td><td>TCL</td><td>87</td><td>0ms</td></tr><tr><td>[local]</td><td>Total</td><td>24</td><td>60ms</td></tr><tr><td></td><td>SELECT</td><td>12</td><td>0ms</td></tr><tr><td>ubreport</td><td>Total</td><td>266</td><td>33s847ms</td></tr><tr><td></td><td>OTHERS</td><td>55</td><td>10s837ms</td></tr><tr><td></td><td>SELECT</td><td>81</td><td>0ms</td></tr><tr><td>unknown</td><td>Total</td><td>56</td><td>5m</td></tr><tr><td></td><td>OTHERS</td><td>56</td><td>5m</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div><!-- end of queries by host -->
|
||
|
||
<div class="analysis-item row" id="queries-by-application">
|
||
<h2><i class="glyphicon icon-question-sign"></i> Queries by application</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">pg_dump</span> <span class="figure-label">Main application</span></li>
|
||
<li><span class="figure">64,216</span> <span class="figure-label">Requests</span></li>
|
||
<li><span class="figure">28m20s (psql)</span></li>
|
||
<li><span class="figure-label">Main time consuming application</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div class="tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#queries-by-application-graph" data-toggle="tab">Chart</a></li>
|
||
<li><a href="#queries-by-application-table" data-toggle="tab">Table</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="tab-pane active" id="queries-by-application-graph">
|
||
<div id="graph_queriesbyapplication" class="jqplot-graph piegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var data_32 = [ ['Sum queries per applications < 2%', 2357],['pgAdmin 4 - DB:ubm', 1904],['pg_dump', 64216] ];
|
||
|
||
create_download_button(32, 'btn btn-default');
|
||
var graph_queriesbyapplication = create_piechart('graph_queriesbyapplication', 'Queries per application', data_32);
|
||
add_download_button_event(32, 'graph_queriesbyapplication');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
<div class="tab-pane" id="queries-by-application-table">
|
||
<table class="table table-striped table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th>Application</th>
|
||
<th>Request type</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>DBeaver 5.3.5 - Main</td><td>Total</td><td>44</td><td>1s983ms</td></tr><tr><td></td><td>CTE</td><td>2</td><td>0ms</td></tr><tr><td></td><td>DELETE</td><td>4</td><td>0ms</td></tr><tr><td></td><td>OTHERS</td><td>2</td><td>0ms</td></tr><tr><td></td><td>SELECT</td><td>9</td><td>0ms</td></tr><tr><td></td><td>TCL</td><td>4</td><td>0ms</td></tr><tr><td>DBeaver 5.3.5 - Metadata</td><td>Total</td><td>44</td><td>287ms</td></tr><tr><td></td><td>OTHERS</td><td>2</td><td>0ms</td></tr><tr><td></td><td>SELECT</td><td>19</td><td>0ms</td></tr><tr><td>DBeaver 5.3.5 - Read PostgreSQL database list</td><td>Total</td><td>6</td><td>1ms</td></tr><tr><td></td><td>SELECT</td><td>2</td><td>0ms</td></tr><tr><td>DBeaver 6.0.0 - Main</td><td>Total</td><td>10</td><td>4s535ms</td></tr><tr><td></td><td>OTHERS</td><td>1</td><td>0ms</td></tr><tr><td></td><td>SELECT</td><td>2</td><td>2s267ms</td></tr><tr><td></td><td>TCL</td><td>2</td><td>0ms</td></tr><tr><td>DBeaver 6.0.0 - Metadata</td><td>Total</td><td>19</td><td>34ms</td></tr><tr><td></td><td>OTHERS</td><td>1</td><td>0ms</td></tr><tr><td></td><td>SELECT</td><td>8</td><td>0ms</td></tr><tr><td>DBeaver 6.0.0 - Read PostgreSQL database list</td><td>Total</td><td>3</td><td>0ms</td></tr><tr><td></td><td>SELECT</td><td>1</td><td>0ms</td></tr><tr><td>PostgreSQL JDBC Driver</td><td>Total</td><td>18</td><td>0ms</td></tr><tr><td></td><td>OTHERS</td><td>9</td><td>0ms</td></tr><tr><td>[unknown]</td><td>Total</td><td>435</td><td>6m44s</td></tr><tr><td></td><td>DDL</td><td>71</td><td>2s707ms</td></tr><tr><td></td><td>OTHERS</td><td>80</td><td>3m17s</td></tr><tr><td></td><td>SELECT</td><td>48</td><td>0ms</td></tr><tr><td></td><td>TCL</td><td>32</td><td>0ms</td></tr><tr><td>osm_api</td><td>Total</td><td>304</td><td>1m4s</td></tr><tr><td></td><td>CTE</td><td>26</td><td>0ms</td></tr><tr><td></td><td>OTHERS</td><td>130</td><td>12s165ms</td></tr><tr><td>pgAdmin 4 - DB:postgres</td><td>Total</td><td>114</td><td>410ms</td></tr><tr><td></td><td>OTHERS</td><td>2</td><td>0ms</td></tr><tr><td></td><td>SELECT</td><td>55</td><td>0ms</td></tr><tr><td>pgAdmin 4 - DB:ubm</td><td>Total</td><td>1,904</td><td>14s46ms</td></tr><tr><td></td><td>OTHERS</td><td>7</td><td>0ms</td></tr><tr><td></td><td>SELECT</td><td>945</td><td>0ms</td></tr><tr><td>pg_dump</td><td>Total</td><td>64,216</td><td>5m42s</td></tr><tr><td></td><td>COPY TO</td><td>5,190</td><td>0ms</td></tr><tr><td></td><td>CTE</td><td>2</td><td>0ms</td></tr><tr><td></td><td>OTHERS</td><td>5,208</td><td>0ms</td></tr><tr><td></td><td>SELECT</td><td>21,706</td><td>0ms</td></tr><tr><td></td><td>TCL</td><td>2</td><td>0ms</td></tr><tr><td>pg_dumpall</td><td>Total</td><td>68</td><td>109ms</td></tr><tr><td></td><td>SELECT</td><td>34</td><td>0ms</td></tr><tr><td>psql</td><td>Total</td><td>156</td><td>28m20s</td></tr><tr><td></td><td>DDL</td><td>4</td><td>0ms</td></tr><tr><td></td><td>DELETE</td><td>20</td><td>24s14ms</td></tr><tr><td></td><td>INSERT</td><td>14</td><td>9m49s</td></tr><tr><td></td><td>OTHERS</td><td>3</td><td>7m50s</td></tr><tr><td></td><td>SELECT</td><td>32</td><td>0ms</td></tr><tr><td></td><td>TCL</td><td>13</td><td>0ms</td></tr><tr><td>runner</td><td>Total</td><td>1,080</td><td>2s983ms</td></tr><tr><td></td><td>INSERT</td><td>418</td><td>0ms</td></tr><tr><td></td><td>OTHERS</td><td>34</td><td>0ms</td></tr><tr><td></td><td>SELECT</td><td>54</td><td>0ms</td></tr><tr><td></td><td>TCL</td><td>34</td><td>0ms</td></tr><tr><td>unknown</td><td>Total</td><td>56</td><td>5m</td></tr><tr><td></td><td>OTHERS</td><td>56</td><td>5m</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div><!-- end of queries by application -->
|
||
|
||
<div id="queries-cancelled-number" class="analysis-item row">
|
||
<h2 class=""><i class="glyphicon icon-th"></i> Number of cancelled queries</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">0 per second</span> <span class="figure-label">Cancelled query Peak</span></li>
|
||
<li><span class="figure">2019-03-14 17:12:26</span> <span class="figure-label">Date</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
|
||
<h3 class="">Number of cancelled queries (5 minutes period)</h3>
|
||
<div id="cancelledqueries_graph" class="jqplot-graph linegraph"><blockquote><b>NO DATASET</b></blockquote></div>
|
||
|
||
</div>
|
||
</div><!-- end of Number of cancelled queries -->
|
||
|
||
</li>
|
||
<li class="slide" id="topqueries-slide">
|
||
|
||
<h2><i class="glyphicon icon-question-sign"></i> Top Queries</h2>
|
||
<div class="analysis-item row" id="histogram-query-times">
|
||
<h2><i class="glyphicon icon-signal"></i> Histogram of query times</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">31,367</span> <span class="figure-label">0-1ms duration</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div class="tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#histogram-query-times-graph" data-toggle="tab">Chart</a></li>
|
||
<li><a href="#histogram-query-times-table" data-toggle="tab">Table</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="tab-pane active" id="histogram-query-times-graph">
|
||
<div id="graph_histogram_query_times" class="jqplot-graph duration-histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var bars_34 = [[ '0ms-1ms', 31367],[ '1ms-5ms', 1375],[ '5ms-10ms', 161],[ '10ms-25ms', 977],[ '25ms-50ms', 36],[ '50ms-100ms', 15],[ '100ms-500ms', 181],[ '500ms-1s', 11],[ '1s-10s', 43],[ '> 10s', 23]];
|
||
create_download_button(34, 'btn btn-default');
|
||
var graph_histogram_query_times = create_bargraph('graph_histogram_query_times', '', 'Queries', [ bars_34 ]);
|
||
add_download_button_event(34, 'graph_histogram_query_times');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
<div class="tab-pane" id="histogram-query-times-table">
|
||
<table class="table table-striped table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th>Range</th>
|
||
<th>Count</th>
|
||
<th>Percentage</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>0-1ms</td><td>31,367</td><td>91.75%</td></tr><tr><td>1-5ms</td><td>1,375</td><td>4.02%</td></tr><tr><td>5-10ms</td><td>161</td><td>0.47%</td></tr><tr><td>10-25ms</td><td>977</td><td>2.86%</td></tr><tr><td>25-50ms</td><td>36</td><td>0.11%</td></tr><tr><td>50-100ms</td><td>15</td><td>0.04%</td></tr><tr><td>100-500ms</td><td>181</td><td>0.53%</td></tr><tr><td>500-1000ms</td><td>11</td><td>0.03%</td></tr><tr><td>1000-10000ms</td><td>43</td><td>0.13%</td></tr><tr><td> > 10000ms</td><td>23</td><td>0.07%</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div><!-- end of queries by type -->
|
||
|
||
<div class="analysis-item row" id="slowest-individual-queries">
|
||
<h2><i class="glyphicon icon-spinner"></i> Slowest individual queries</h2>
|
||
<div class="col-md-12">
|
||
<table class="table table-striped" id="slowest-individual-queries-table">
|
||
<thead>
|
||
<tr>
|
||
<th>Rank</th>
|
||
<th>Duration</th>
|
||
<th>Query</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
|
||
<tr>
|
||
<td>1</td>
|
||
<td>4m7s</td>
|
||
<td id="slowest-individual-queries-examples-rank-1">
|
||
<div id="query-d-1-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 00:53:37 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
<div id="query-d-explain-1-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Insert%20on%20osm_ppfa_varto_mv%20%20%28cost%3D0.25..10.25%20rows%3D1000%20width%3D1520%29%20%28actual%20time%3D247216.314..247216.314%20rows%3D0%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D1716294%20read%3D197994%20dirtied%3D106936%20written%3D127%2C%20local%20hit%3D5658761%20read%3D4%20dirtied%3D2%2C%20temp%20read%3D384787%20written%3D401694%0A%09%20%20I%2FO%20Timings%3A%20read%3D8265.132%20write%3D1.395%0A%09%20%20-%3E%20%20Function%20Scan%20on%20osm_ppfa_varto%20%20%28cost%3D0.25..10.25%20rows%3D1000%20width%3D1520%29%20%28actual%20time%3D209413.211..214181.385%20rows%3D1377873%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D106558%20read%3D91107%20dirtied%3D50%2C%20local%20hit%3D5658761%20read%3D4%20dirtied%3D2%2C%20temp%20read%3D384787%20written%3D401694%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8253.083%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Insert on osm_ppfa_varto_mv (cost=0.25..10.25 rows=1000 width=1520) (actual time=247216.314..247216.314 rows=0 loops=1)
|
||
Buffers: shared hit=1716294 read=197994 dirtied=106936 written=127, local hit=5658761 read=4 dirtied=2, temp read=384787 written=401694
|
||
I/O Timings: read=8265.132 write=1.395
|
||
-> Function Scan on osm_ppfa_varto (cost=0.25..10.25 rows=1000 width=1520) (actual time=209413.211..214181.385 rows=1377873 loops=1)
|
||
Buffers: shared hit=106558 read=91107 dirtied=50, local hit=5658761 read=4 dirtied=2, temp read=384787 written=401694
|
||
I/O Timings: read=8253.083
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
<td>2</td>
|
||
<td>3m19s</td>
|
||
<td id="slowest-individual-queries-examples-rank-2">
|
||
<div id="query-d-2-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i>PL/pgSQL function rlarp.osm_ppfa_varto() line 69 at RETURN QUERYWITH
|
||
---------------------------------------segments--------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
SEG AS (
|
||
SELECT
|
||
x.GLEC
|
||
,x.SEGM
|
||
FROM
|
||
(
|
||
VALUES
|
||
('1CU','Retail'),
|
||
('1GR','Greenhouse'),
|
||
('1NU','Nursery'),
|
||
('1RE','Retail'),
|
||
('2WI','Greenhouse'),
|
||
('3BM','Other'),
|
||
('3CO','Other'),
|
||
('3PE','Other'),
|
||
('3PP','Other'),
|
||
('4CO','Other'),
|
||
('4RA','Other'),
|
||
('9MI','Other'),
|
||
('9SA','Other'),
|
||
('9TO','Other')
|
||
) X(GLEC, SEGM)
|
||
)
|
||
---------------------------------------branding flag---------------------------------------------------------------------------------------------------------------------------------------------------
|
||
,MG AS (
|
||
SELECT
|
||
X.F1, X.MING, X.GRP
|
||
FROM
|
||
(
|
||
VALUES
|
||
('L','000','Branded'),
|
||
('L','B10','Branded'),
|
||
('L','B11','Branded'),
|
||
('L','B52','Branded'),
|
||
('L','C10','Branded'),
|
||
('L','D12','Branded'),
|
||
('L','M11','Branded'),
|
||
('L','P12','Branded'),
|
||
('L','P13','Branded'),
|
||
('L','S10','Branded'),
|
||
('L','Y10','Branded'),
|
||
('L','Y11','Branded'),
|
||
('L','Y12','Branded'),
|
||
('P','B10','Branded'),
|
||
('P','B11','Branded'),
|
||
('P','B52','Branded')
|
||
) AS X (F1, MING, GRP)
|
||
)
|
||
---------------------------------------directors-------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
,REPC AS (
|
||
SELECT
|
||
LTRIM(RTRIM(C.A9)) RCODE
|
||
,LTRIM(RTRIM(C.A9)) || ' - ' || C.A30 REPP
|
||
,COALESCE(Q.DIR,'Other') DIRECTOR
|
||
FROM
|
||
LGDAT.CODE C
|
||
LEFT OUTER JOIN RLARP.QRH Q ON
|
||
Q.QR = LTRIM(RTRIM(C.A9))
|
||
WHERE
|
||
C.A2 = 'MM'
|
||
)
|
||
--MOLD DESCRIPTIONS
|
||
,MD AS (
|
||
SELECT
|
||
U.MOLD
|
||
,MAX(U.DESCR) DESCR
|
||
FROM
|
||
(
|
||
SELECT
|
||
SUBSTR(M.AVPART,1,8) MOLD
|
||
,MAX(M.AVDES1) DESCR
|
||
FROM
|
||
LGDAT.STKMM M
|
||
WHERE
|
||
LENGTH(M.AVPART) > 8
|
||
AND SUBSTR(M.AVGLED,1,1) <= '2'
|
||
GROUP BY
|
||
SUBSTR(M.AVPART,1,8)
|
||
UNION ALL
|
||
SELECT
|
||
SUBSTR(P.AWPART,1,8) MOLD
|
||
,MAX(P.AWDES1) DESCR
|
||
FROM
|
||
LGDAT.STKMP P
|
||
WHERE
|
||
LENGTH(P.AWPART) > 8
|
||
AND SUBSTR(P.AWGLED,1,1) <= '2'
|
||
GROUP BY
|
||
SUBSTR(P.AWPART,1,8)
|
||
) U
|
||
GROUP BY
|
||
U.MOLD
|
||
)
|
||
----------------------------------------------------sales major codes----------------------------------------------------------------------------------------------------------------------------------
|
||
,SJ AS (
|
||
SELECT * FROM LGDAT.MMSL WHERE COALESCE(BSMNCD,'') = ''
|
||
)
|
||
----------------------------------------------------sales minor codes----------------------------------------------------------------------------------------------------------------------------------
|
||
,SI AS (
|
||
SELECT * FROM LGDAT.MMSL WHERE COALESCE(BSMNCD,'') <> ''
|
||
)
|
||
----------------------------------------------------date ranges per season------------------------------------------------------------------------------------------------------------------------------
|
||
,seas AS(
|
||
SELECT
|
||
ssyr
|
||
,daterange(MIN(sdat),MAX(edat),'[]') dr
|
||
,current_date <@ daterange(MIN(sdat),MAX(edat),'[]') cy
|
||
FROM
|
||
gld
|
||
GROUP BY
|
||
ssyr
|
||
ORDER BY
|
||
ssyr DESC
|
||
)
|
||
,intv AS (
|
||
SELECT current_date - lower(dr) dy from seas where cy = true
|
||
)
|
||
,std AS (
|
||
SELECT
|
||
s.ssyr
|
||
,s.dr
|
||
,s.cy
|
||
,daterange(lower(dr),dy + LOWER(dr),'[]') ytd
|
||
FROM
|
||
seas s
|
||
CROSS JOIN intv
|
||
)
|
||
---------------------------------------union actual and forecast---------------------------------------------------------------------------------------------------------------------------------------
|
||
,UN AS (
|
||
--plan
|
||
SELECT
|
||
'Budget' AS VERSION
|
||
,'Budget' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE as ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(m.avDES1,p.awDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(m.avNWHT,p.awNWHT) * CASE COALESCE(m.avNWUN, p.awNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSMP OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.VERSION = 'b19'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1901'
|
||
OR OSM.ADJ_ORDERDATE >= '2018-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
--ITER
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(m.avDES1,p.awDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
UNION ALL
|
||
--staged forecast
|
||
SELECT
|
||
'Forecast' AS VERSION
|
||
,'Forecast' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(M.AVNWHT,P.AWNWHT) * CASE COALESCE(M.AVNWUN, P.AWNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSMF OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.VERSION = '5p7'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1901'
|
||
OR OSM.ADJ_ORDERDATE >= '2018-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
--ITER
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
UNION ALL
|
||
--actual
|
||
SELECT
|
||
'Actual' AS VERSION
|
||
,'Actual' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(M.AVNWHT,P.AWNWHT) * CASE COALESCE(M.AVNWUN, P.AWNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSM OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
--AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1606'
|
||
OR OSM.ADJ_ORDERDATE >= '2016-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
)
|
||
---------------------------------------aggregate actual and forecast-----------------------------------------------------------------------------------------------------------------------------------
|
||
,AGG AS (
|
||
SELECT
|
||
un.VERSION::text "version"
|
||
,un.ITER::text "iter"
|
||
,un.OSEAS::numeric oseas
|
||
,un.ODATE::date odate
|
||
,un.SSEAS::numeric sseas
|
||
,un.SDATE::date sdate
|
||
,un.RSEAS::numeric rseas
|
||
,un.RDATE::date rdate
|
||
,un.OM::text om
|
||
,un.SM::text sm
|
||
,un.RM::text rm
|
||
,un.OY::text oy
|
||
,(un.odate <@ _ytd)::boolean ocytd --current year to date
|
||
,(un.odate <@ so.ytd)::boolean oytd --year to date recast for prior/forecast periods
|
||
,un.SY::text sy
|
||
,(un.sdate <@ _ytd)::boolean scytd
|
||
,(un.sdate <@ ss.ytd)::boolean sytd
|
||
--had this order been placed yet? (current day prior year is greater than the order date)
|
||
,CASE WHEN (upper(so.ytd) - interval '1 day') >= un.odate THEN
|
||
--was the order open at this time last year? (for orders that were placed by this time, was the ship date greater then the order date)
|
||
CASE WHEN ((un.sdate > (upper(so.ytd) - interval '1 day')) OR (un.SY = 'F'))
|
||
--for orders that were placed and open at this time last year, was the order considered past due? (current date prior year > request date)
|
||
THEN
|
||
CASE WHEN (upper(so.ytd) - interval '1 day') > un.rdate
|
||
THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE 'Shipped'
|
||
END
|
||
ELSE 'Not Yet Placed'
|
||
END status_py
|
||
,un.RY::text ry
|
||
,un.PLNT::text plnt
|
||
,un.ACCOUNT::text bill_group
|
||
,(un.BILL_CUST || ' - ' || RTRIM(BC.BVNAME))::text bill_cust
|
||
,bc.bvctry bill_ctry
|
||
,bc.bvprcd bill_prov
|
||
,un.SHIPGRP::text ship_group
|
||
,(un.SHIP_CUST || ' - ' || RTRIM(SC.BVNAME))::text ship_cust
|
||
,sc.bvctry ship_ctry
|
||
,sc.bvprcd ship_prov
|
||
,un.CHAN::text chan
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAIL
|
||
ELSE un.CHAN
|
||
END::text mod_chan
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAILSUB
|
||
ELSE ''
|
||
END::text mod_chansub
|
||
,un.PROMO::text promo
|
||
,un.MAJG||COALESCE(' - '||BQDES,'')::text majg
|
||
,un.MING||COALESCE(' - '||BRDES,'')::text ming
|
||
,un.MAJS||COALESCE(' - '||SJ.BSDES1,'')::text majs
|
||
,un.MINS||COALESCE(' - '||SI.BSDES1,'')::text mins
|
||
,un.PART::text part
|
||
,un.PART_DESCR::text part_descr
|
||
,un.PART_FAMILY::text part_family
|
||
,un.PART_GROUP::text part_group
|
||
,un.BRANDING::text branding
|
||
,un.SEGM::text segm
|
||
,COALESCE(REPC.REPP,un.QUOTA_REP)::text quota_rep
|
||
,COALESCE(REPC.DIRECTOR,un.QUOTA_REP)::text director
|
||
,SUM(un.QTY)::numeric qty
|
||
,SUM(un.SALES)::numeric sales
|
||
,SUM(un.STDCOST)::numeric stdcost
|
||
,SUM(un.QTY * COALESCE(cm.cgstcs, cp.chstcs, cr.y0stcs) * un.c_rate)::numeric stdcost_cur
|
||
,SUM(un.POUNDS)::numeric pounds
|
||
,(un.VERSION||'-'||un.SY)::text flag_s
|
||
,(un.VERSION||'-'||un.OY)::text flag_o
|
||
,CASE
|
||
WHEN un.calc_status IN ('BACKORDER','OPEN') THEN
|
||
CASE
|
||
WHEN un.rdate < current_date THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE un.calc_status
|
||
END::text status
|
||
,(SUBSTR(UN.PART,9,3)||'-'||un.BRANDING)::text "options"
|
||
,'Grand Total'::text grandtotal
|
||
FROM
|
||
UN
|
||
LEFT OUTER JOIN REPC ON
|
||
REPC.RCODE = un.QUOTA_REP
|
||
LEFT OUTER JOIN SI ON
|
||
SI.BSMJCD = UN.MAJS
|
||
AND SI.BSMNCD = UN.MINS
|
||
LEFT OUTER JOIN SJ ON
|
||
SJ.BSMJCD = UN.MAJS
|
||
LEFT OUTER JOIN LGDAT.MAJG ON
|
||
BQGRP = un.MAJG
|
||
LEFT OUTER JOIN LGDAT.MMGP ON
|
||
BRMGRP = un.MING
|
||
AND BRGRP = un.MAJG
|
||
LEFT OUTER JOIN LGDAT.CUST BC ON
|
||
BC.BVCUST = UN.BILL_CUST
|
||
LEFT OUTER JOIN LGDAT.CUST SC ON
|
||
SC.BVCUST = UN.BILL_CUST
|
||
LEFT OUTER JOIN LGDAT.ICSTM cm ON
|
||
cm.cgpart = un.part
|
||
AND cm.cgplnt = un.plnt
|
||
LEFT OUTER JOIN LGDAT.ICSTP cp ON
|
||
cp.chpart = un.part
|
||
AND cp.chplnt = un.plnt
|
||
LEFT OUTER JOIN LGDAT.ICSTR cr ON
|
||
cr.y0part = un.part
|
||
AND cr.y0plnt = un.plnt
|
||
LEFT OUTER JOIN STD so ON
|
||
so.ssyr = un.oseas
|
||
LEFT OUTER JOIN STD ss ON
|
||
ss.ssyr = un.sseas
|
||
GROUP BY
|
||
un.VERSION::text
|
||
,un.ITER::text
|
||
,un.OSEAS::numeric
|
||
,un.ODATE::date
|
||
,un.SSEAS::numeric
|
||
,un.SDATE::date
|
||
,un.RSEAS::numeric
|
||
,un.RDATE::date
|
||
,un.OM::text
|
||
,un.SM::text
|
||
,un.RM::text
|
||
,un.OY::text
|
||
--current year to date
|
||
,(un.odate <@ _ytd)::boolean
|
||
--year to date recast for prior/forecast periods
|
||
,(un.odate <@ so.ytd)::boolean
|
||
,un.SY::text
|
||
,(un.sdate <@ _ytd)::boolean
|
||
,(un.sdate <@ ss.ytd)::boolean
|
||
,CASE WHEN (upper(so.ytd) - interval '1 day') >= un.odate THEN
|
||
--was the order open at this time last year? (for orders that were placed by this time, was the ship date greater then the order date)
|
||
CASE WHEN ((un.sdate > (upper(so.ytd) - interval '1 day')) OR (un.SY = 'F'))
|
||
--for orders that were placed and open at this time last year, was the order considered past due? (current date prior year > request date)
|
||
THEN
|
||
CASE WHEN (upper(so.ytd) - interval '1 day') > un.rdate
|
||
THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE 'Shipped'
|
||
END
|
||
ELSE 'Not Yet Placed'
|
||
END
|
||
,un.RY::text
|
||
,un.PLNT::text
|
||
,un.ACCOUNT::text
|
||
,(un.BILL_CUST || ' - ' || RTRIM(BC.BVNAME))::text
|
||
,bc.bvctry
|
||
,bc.bvprcd
|
||
,un.SHIPGRP::text
|
||
,(un.SHIP_CUST || ' - ' || RTRIM(SC.BVNAME))::text
|
||
,sc.bvctry
|
||
,sc.bvprcd
|
||
,un.CHAN::text
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAIL
|
||
ELSE un.CHAN
|
||
END::text
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAILSUB
|
||
ELSE ''
|
||
END::text
|
||
,un.PROMO::text
|
||
,un.MAJG||COALESCE(' - '||BQDES,'')::text
|
||
,un.MING||COALESCE(' - '||BRDES,'')::text
|
||
,un.MAJS||COALESCE(' - '||SJ.BSDES1,'')::text
|
||
,un.MINS||COALESCE(' - '||SI.BSDES1,'')::text
|
||
,un.PART::text
|
||
,un.PART_DESCR::text
|
||
,un.PART_FAMILY::text
|
||
,un.PART_GROUP::text
|
||
,un.BRANDING::text
|
||
,un.SEGM::text
|
||
,COALESCE(REPC.REPP,un.QUOTA_REP)::text
|
||
,COALESCE(REPC.DIRECTOR,un.QUOTA_REP)::text
|
||
,(un.VERSION||'-'||un.SY)::text
|
||
,(un.VERSION||'-'||un.OY)::text
|
||
,CASE
|
||
WHEN un.calc_status IN ('BACKORDER','OPEN') THEN
|
||
CASE
|
||
WHEN un.rdate < current_date THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE un.calc_status
|
||
END::text
|
||
,(SUBSTR(UN.PART,9,3)||'-'||un.BRANDING)::text
|
||
,'Grand Total'::text
|
||
)
|
||
SELECT
|
||
a.version
|
||
,a.iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,a.qty
|
||
,a.sales
|
||
,a.stdcost
|
||
,a.stdcost_cur
|
||
,a.pounds
|
||
,a.flag_s
|
||
,a.flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
agg a
|
||
UNION ALL
|
||
SELECT
|
||
'Var to Fcst' as version
|
||
,'Var to Fcst' as iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.QTY ELSE -a.QTY END::numeric QTY
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.SALES ELSE -a.SALES END::numeric SALES
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST ELSE -a.STDCOST END::numeric STDCOST
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST_CUR ELSE -a.STDCOST_CUR END::numeric STDCOST_CUR
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.POUNDS ELSE -a.POUNDS END::numeric POUNDS
|
||
,'Var to Fcst'||'-'||a.scytd flag_s
|
||
,'Var to Fcst'||'-'||a.ocytd flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
AGG a
|
||
WHERE
|
||
a.VERSION IN ('Actual','Forecast')
|
||
AND (a.ocytd OR a.scytd)
|
||
|
||
UNION ALL
|
||
SELECT
|
||
'Var to Bdgt' as version
|
||
,'Var to Bdgt' as iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.QTY ELSE -a.QTY END::numeric QTY
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.SALES ELSE -a.SALES END::numeric SALES
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST ELSE -a.STDCOST END::numeric STDCOST
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST_CUR ELSE -a.STDCOST_CUR END::numeric STDCOST_CUR
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.POUNDS ELSE -a.POUNDS END::numeric POUNDS
|
||
,'Var to Bdgt'||'-'||a.scytd flag_s
|
||
,'Var to Bdgt'||'-'||a.ocytd flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
AGG a
|
||
WHERE
|
||
a.VERSION IN ('Actual','Budget')
|
||
AND (a.ocytd OR a.scytd)
|
||
;</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 00:52:54 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
<div id="query-d-explain-2-2" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Append%20%20%28cost%3D4510966117154.68..4644894879274.93%20rows%3D1921380827591%20width%3D1520%29%20%28actual%20time%3D182826.066..198343.560%20rows%3D1377873%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D101605%20read%3D90963%2C%20local%20hit%3D5658755%20read%3D1%2C%20temp%20read%3D285245%20written%3D302150%0A%09%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20CTE%20seg%0A%09%20%20%20%20-%3E%20%20Values%20Scan%20on%20%22%2AVALUES%2A%22%20%20%28cost%3D0.00..0.18%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.001..0.004%20rows%3D14%20loops%3D1%29%0A%09%20%20CTE%20mg%0A%09%20%20%20%20-%3E%20%20Values%20Scan%20on%20%22%2AVALUES%2A_1%22%20%20%28cost%3D0.00..0.20%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.002..0.006%20rows%3D16%20loops%3D1%29%0A%09%20%20CTE%20repc%0A%09%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11.47..123.28%20rows%3D120%20width%3D96%29%20%28actual%20time%3D2.591..12.439%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28ltrim%28rtrim%28c.a9%29%29%20%3D%20q.qr%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D11.445%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20code%20c%20%20%28cost%3D9.21..118.86%20rows%3D120%20width%3D25%29%20%28actual%20time%3D2.207..11.727%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28a2%20%3D%20%27MM%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D21%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D25%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D11.107%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20pk_code%20%20%28cost%3D0.00..9.18%20rows%3D120%20width%3D0%29%20%28actual%20time%3D1.684..1.684%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28a2%20%3D%20%27MM%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1.575%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.56..1.56%20rows%3D56%20width%3D12%29%20%28actual%20time%3D0.368..0.368%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2011kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.337%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20qrh%20q%20%20%28cost%3D0.00..1.56%20rows%3D56%20width%3D12%29%20%28actual%20time%3D0.349..0.355%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.337%0A%09%20%20CTE%20md%0A%09%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D11936.00..11938.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D95.558..96.083%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20%28substr%28m.avpart%2C%201%2C%208%29%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Append%20%20%28cost%3D8137.31..11870.54%20rows%3D13091%20width%3D64%29%20%28actual%20time%3D83.235..94.596%20rows%3D3375%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D8137.31..8249.94%20rows%3D9010%20width%3D64%29%20%28actual%20time%3D83.233..84.126%20rows%3D3285%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20substr%28m.avpart%2C%201%2C%208%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m%20%20%28cost%3D0.00..8092.26%20rows%3D9010%20width%3D59%29%20%28actual%20time%3D0.012..41.548%20rows%3D76269%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28length%28avpart%29%20%3E%208%29%20AND%20%28substr%28avgled%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%204728%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D3373.23..3424.24%20rows%3D4081%20width%3D64%29%20%28actual%20time%3D10.241..10.276%20rows%3D90%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20substr%28p.awpart%2C%201%2C%208%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p%20%20%28cost%3D0.00..3352.82%20rows%3D4081%20width%3D52%29%20%28actual%20time%3D0.579..10.168%20rows%3D142%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28length%28awpart%29%20%3E%208%29%20AND%20%28substr%28awgled%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2036557%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20CTE%20sj%0A%09%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmsl%20%20%28cost%3D0.00..1.84%20rows%3D1%20width%3D22%29%20%28actual%20time%3D0.006..0.010%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28COALESCE%28bsmncd%2C%20%27%27%3A%3Atext%29%20%3D%20%27%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2056%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20CTE%20si%0A%09%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmsl%20mmsl_1%20%20%28cost%3D0.00..1.84%20rows%3D66%20width%3D22%29%20%28actual%20time%3D0.342..0.348%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28COALESCE%28bsmncd%2C%20%27%27%3A%3Atext%29%20%3C%3E%20%27%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2011%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.330%0A%09%20%20CTE%20seas%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D10.22..16.31%20rows%3D174%20width%3D41%29%20%28actual%20time%3D0.064..0.094%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20gld.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D10.22..10.65%20rows%3D174%20width%3D16%29%20%28actual%20time%3D0.052..0.059%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20gld.ssyr%20DESC%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2033kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D16%29%20%28actual%20time%3D0.010..0.029%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20CTE%20intv%0A%09%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seas%20%20%28cost%3D0.00..4.13%20rows%3D87%20width%3D4%29%20%28actual%20time%3D0.077..0.078%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20cy%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2014%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20CTE%20std%0A%09%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D0.00..457.62%20rows%3D15138%20width%3D73%29%20%28actual%20time%3D0.080..0.112%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20intv%20%20%28cost%3D0.00..1.74%20rows%3D87%20width%3D4%29%20%28actual%20time%3D0.078..0.079%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seas%20s%20%20%28cost%3D0.00..3.48%20rows%3D174%20width%3D41%29%20%28actual%20time%3D0.000..0.026%20rows%3D15%20loops%3D1%29%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D50003223.80..255856479.46%20rows%3D330423099%20width%3D697%29%20%28actual%20time%3D34264.289..81644.471%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D98372%20read%3D72635%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7746.456%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D50003223.80..63823292.65%20rows%3D83757993%20width%3D701%29%20%28actual%20time%3D34264.288..36465.643%20rows%3D212793%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20osm.adj_orderdate%2C%20sd.ssyr%2C%20%28LEAST%28GREATEST%28osm.adj_shipdate%2C%20sd.sdat%29%2C%20sd.edat%29%29%2C%20rd.ssyr%2C%20osm.adj_requestdate%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm.plnt%2C%20osm.account%2C%20osm.bill_cust%2C%20osm.shipgrp%2C%20osm.ship_cust%2C%20osm.chan%2C%20l.retail%2C%20l.retailsub%2C%20osm.promo%2C%20osm.majg%2C%20osm.ming%2C%20osm.majs%2C%20osm.mins%2C%20osm.part%2C%20%28%28%28osm.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_1.avdes1%2C%20p_1.awdes1%29%29%29%29%2C%20%28%28%28f.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f.descr%29%29%2C%20%28%28%28substr%28osm.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md.descr%29%29%2C%20%28COALESCE%28mg.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm.quota_rep%2C%20%28CASE%20osm.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm.calc_status%20END%29%2C%20osm.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D45043%20read%3D23493%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3613.602%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D50003223.80..50212618.79%20rows%3D83757993%20width%3D594%29%20%28actual%20time%3D34264.218..34431.899%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20osm.adj_orderdate%2C%20sd.ssyr%2C%20%28LEAST%28GREATEST%28osm.adj_shipdate%2C%20sd.sdat%29%2C%20sd.edat%29%29%2C%20rd.ssyr%2C%20osm.adj_requestdate%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm.plnt%2C%20osm.account%2C%20osm.bill_cust%2C%20osm.shipgrp%2C%20osm.ship_cust%2C%20osm.chan%2C%20l.retail%2C%20l.retailsub%2C%20osm.promo%2C%20osm.majg%2C%20osm.ming%2C%20osm.majs%2C%20osm.mins%2C%20osm.part%2C%20%28%28%28osm.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_1.avdes1%2C%20p_1.awdes1%29%29%29%29%2C%20%28%28%28f.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f.descr%29%29%2C%20%28%28%28substr%28osm.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md.descr%29%29%2C%20%28COALESCE%28mg.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm.quota_rep%2C%20%28CASE%20osm.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm.calc_status%20END%29%2C%20osm.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20352782kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D45043%20read%3D23493%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3613.602%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..16650773.71%20rows%3D83757993%20width%3D594%29%20%28actual%20time%3D523.585..12806.506%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm.bill_class%20%3D%20l.bill%29%20AND%20%28osm.ship_class%20%3D%20l.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D45040%20read%3D23493%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3613.602%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..10583311.94%20rows%3D83757993%20width%3D583%29%20%28actual%20time%3D522.937..12019.634%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm.part%2C%201%2C%208%29%20%3D%20md.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D45040%20read%3D23491%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3613.055%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..5348430.88%20rows%3D83757993%20width%3D551%29%20%28actual%20time%3D425.063..11458.763%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.part%20%3D%20p_1.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35984%20read%3D23491%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3613.055%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..5125106.33%20rows%3D83757993%20width%3D527%29%20%28actual%20time%3D313.496..11101.481%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35982%20read%3D20885%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3534.677%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..337594.45%20rows%3D4332310%20width%3D455%29%20%28actual%20time%3D313.488..8642.098%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35982%20read%3D20885%2C%20local%20hit%3D1281897%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3534.677%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..89964.52%20rows%3D224085%20width%3D383%29%20%28actual%20time%3D313.453..5992.381%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.part%20%3D%20m_1.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35982%20read%3D20885%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3534.662%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..81103.81%20rows%3D224085%20width%3D348%29%20%28actual%20time%3D12.984..5414.171%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm.part%2C%201%2C%203%29%20%3D%20f.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35980%20read%3D14439%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3281.743%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..77718.84%20rows%3D224085%20width%3D324%29%20%28actual%20time%3D0.106..4996.296%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm.part%2C%2016%2C%201%29%20%3D%20mg.f1%29%20AND%20%28osm.ming%20%3D%20mg.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35980%20read%3D14430%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3269.024%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..75750.09%20rows%3D224085%20width%3D292%29%20%28actual%20time%3D0.084..4563.487%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.glec%20%3D%20seg.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35980%20read%3D14430%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3269.024%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..72674.81%20rows%3D224085%20width%3D264%29%20%28actual%20time%3D0.070..4318.873%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35980%20read%3D14430%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3269.024%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmp%20osm%20%20%28cost%3D0.00..69587.73%20rows%3D224085%20width%3D184%29%20%28actual%20time%3D0.017..4055.770%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28version%20%3D%20%27b19%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271901%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272018-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2057051%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35980%20read%3D14430%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3269.024%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.048..0.048%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.003..0.024%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.011..0.011%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.002..0.008%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.015..0.015%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.003..0.012%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D12.868..12.868%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D12.719%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D12.733..12.786%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D12.719%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D300.407..300.407%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D6446%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D252.919%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_1%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D0.600..277.166%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D6446%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D252.919%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D641010%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1281895%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.015%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D641010%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1281894%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D108.057..108.057%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D2606%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D78.378%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_1%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D1.096..89.328%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D2606%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D78.378%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D97.843..97.843%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D95.561..97.114%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.629..0.629%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.546%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.574..0.596%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.546%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D33445583.00..42801951.72%20rows%3D56705265%20width%3D699%29%20%28actual%20time%3D21899.780..27106.566%20rows%3D250477%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20osm_1.adj_orderdate%2C%20sd_1.ssyr%2C%20%28LEAST%28GREATEST%28osm_1.adj_shipdate%2C%20sd_1.sdat%29%2C%20sd_1.edat%29%29%2C%20rd_1.ssyr%2C%20osm_1.adj_requestdate%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_1.plnt%2C%20osm_1.account%2C%20osm_1.bill_cust%2C%20osm_1.shipgrp%2C%20osm_1.ship_cust%2C%20osm_1.chan%2C%20l_1.retail%2C%20l_1.retailsub%2C%20osm_1.promo%2C%20osm_1.majg%2C%20osm_1.ming%2C%20osm_1.majs%2C%20osm_1.mins%2C%20osm_1.part%2C%20%28%28%28osm_1.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_2.avdes1%2C%20p_2.awdes1%29%29%29%29%2C%20%28%28%28f_1.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_1.descr%29%29%2C%20%28%28%28substr%28osm_1.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_1.descr%29%29%2C%20%28COALESCE%28mg_1.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_1.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_1.quota_rep%2C%20%28CASE%20osm_1.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_1.calc_status%20END%29%2C%20osm_1.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35412%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D33445583.00..33587346.16%20rows%3D56705265%20width%3D595%29%20%28actual%20time%3D21899.740..22369.501%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20osm_1.adj_orderdate%2C%20sd_1.ssyr%2C%20%28LEAST%28GREATEST%28osm_1.adj_shipdate%2C%20sd_1.sdat%29%2C%20sd_1.edat%29%29%2C%20rd_1.ssyr%2C%20osm_1.adj_requestdate%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_1.plnt%2C%20osm_1.account%2C%20osm_1.bill_cust%2C%20osm_1.shipgrp%2C%20osm_1.ship_cust%2C%20osm_1.chan%2C%20l_1.retail%2C%20l_1.retailsub%2C%20osm_1.promo%2C%20osm_1.majg%2C%20osm_1.ming%2C%20osm_1.majs%2C%20osm_1.mins%2C%20osm_1.part%2C%20%28%28%28osm_1.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_2.avdes1%2C%20p_2.awdes1%29%29%29%29%2C%20%28%28%28f_1.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_1.descr%29%29%2C%20%28%28%28substr%28osm_1.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_1.descr%29%29%2C%20%28COALESCE%28mg_1.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_1.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_1.quota_rep%2C%20%28CASE%20osm_1.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_1.calc_status%20END%29%2C%20osm_1.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20222052kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35412%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..11025086.80%20rows%3D56705265%20width%3D595%29%20%28actual%20time%3D82.385..8358.833%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm_1.bill_class%20%3D%20l_1.bill%29%20AND%20%28osm_1.ship_class%20%3D%20l_1.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35412%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..6967724.27%20rows%3D55168846%20width%3D584%29%20%28actual%20time%3D82.294..7619.217%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_1.part%2C%201%2C%208%29%20%3D%20md_1.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35410%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..3519664.90%20rows%3D55168846%20width%3D552%29%20%28actual%20time%3D81.174..7139.198%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.part%20%3D%20p_2.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35410%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..3371395.52%20rows%3D55168846%20width%3D528%29%20%28actual%20time%3D50.759..6837.840%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32802%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..217901.28%20rows%3D2853561%20width%3D456%29%20%28actual%20time%3D50.749..4566.299%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32802%2C%20local%20hit%3D813630%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..54789.49%20rows%3D147598%20width%3D384%29%20%28actual%20time%3D50.729..2196.620%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.part%20%3D%20m_2.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32802%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..46129.57%20rows%3D147598%20width%3D349%29%20%28actual%20time%3D0.257..1813.794%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_1.part%2C%201%2C%203%29%20%3D%20f_1.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26354%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..43891.91%20rows%3D147598%20width%3D325%29%20%28actual%20time%3D0.121..1436.906%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm_1.part%2C%2016%2C%201%29%20%3D%20mg_1.f1%29%20AND%20%28osm_1.ming%20%3D%20mg_1.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..42594.49%20rows%3D147598%20width%3D293%29%20%28actual%20time%3D0.110..1056.449%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.glec%20%3D%20seg_1.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..40564.57%20rows%3D147598%20width%3D265%29%20%28actual%20time%3D0.098..857.465%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.fspr%20%3D%20sd_1.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmf%20osm_1%20%20%28cost%3D0.00..38529.18%20rows%3D147598%20width%3D185%29%20%28actual%20time%3D0.026..619.289%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28version%20%3D%20%275p7%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271901%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272018-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.065..0.065%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.008..0.035%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.007..0.007%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20seg_1%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.002..0.004%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.007..0.007%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20mg_1%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.001..0.003%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.131..0.131%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f_1%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.010..0.054%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D50.417..50.417%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_2%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D0.005..27.523%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od_1%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.005..0.005%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813628%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd_1%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.005%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813628%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D30.201..30.201%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_2%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D0.009..17.401%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D1.104..1.104%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20md_1%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.002..0.386%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.063..0.063%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l_1%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.011..0.032%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D112931514.84..144274888.60%20rows%3D189959841%20width%3D695%29%20%28actual%20time%3D16710.998..17936.290%20rows%3D348959%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_2.ssyr%2C%20osm_2.adj_orderdate%2C%20sd_2.ssyr%2C%20%28LEAST%28GREATEST%28osm_2.adj_shipdate%2C%20sd_2.sdat%29%2C%20sd_2.edat%29%29%2C%20rd_2.ssyr%2C%20osm_2.adj_requestdate%2C%20%28COALESCE%28od_2.cm%2C%20sd_2.cm%29%29%2C%20%28COALESCE%28sd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_2.cy%2C%20sd_2.cy%29%29%2C%20%28COALESCE%28sd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_2.plnt%2C%20osm_2.account%2C%20osm_2.bill_cust%2C%20osm_2.shipgrp%2C%20osm_2.ship_cust%2C%20osm_2.chan%2C%20l_2.retail%2C%20l_2.retailsub%2C%20osm_2.promo%2C%20osm_2.majg%2C%20osm_2.ming%2C%20osm_2.majs%2C%20osm_2.mins%2C%20osm_2.part%2C%20%28%28%28osm_2.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_3.avdes1%2C%20p_3.awdes1%29%29%29%29%2C%20%28%28%28f_2.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_2.descr%29%29%2C%20%28%28%28substr%28osm_2.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_2.descr%29%29%2C%20%28COALESCE%28mg_2.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_2.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_2.quota_rep%2C%20%28CASE%20osm_2.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_2.calc_status%20END%29%2C%20osm_2.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D17917%20read%3D49142%2C%20local%20hit%3D1467704%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D112931514.84..113406414.44%20rows%3D189959841%20width%3D584%29%20%28actual%20time%3D16710.946..16814.969%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_2.ssyr%2C%20osm_2.adj_orderdate%2C%20sd_2.ssyr%2C%20%28LEAST%28GREATEST%28osm_2.adj_shipdate%2C%20sd_2.sdat%29%2C%20sd_2.edat%29%29%2C%20rd_2.ssyr%2C%20osm_2.adj_requestdate%2C%20%28COALESCE%28od_2.cm%2C%20sd_2.cm%29%29%2C%20%28COALESCE%28sd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_2.cy%2C%20sd_2.cy%29%29%2C%20%28COALESCE%28sd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_2.plnt%2C%20osm_2.account%2C%20osm_2.bill_cust%2C%20osm_2.shipgrp%2C%20osm_2.ship_cust%2C%20osm_2.chan%2C%20l_2.retail%2C%20l_2.retailsub%2C%20osm_2.promo%2C%20osm_2.majg%2C%20osm_2.ming%2C%20osm_2.majs%2C%20osm_2.mins%2C%20osm_2.part%2C%20%28%28%28osm_2.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_3.avdes1%2C%20p_3.awdes1%29%29%29%29%2C%20%28%28%28f_2.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_2.descr%29%29%2C%20%28%28%28substr%28osm_2.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_2.descr%29%29%2C%20%28COALESCE%28mg_2.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_2.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_2.quota_rep%2C%20%28CASE%20osm_2.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_2.calc_status%20END%29%2C%20osm_2.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20201623kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D17917%20read%3D49142%2C%20local%20hit%3D1467704%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..37465936.67%20rows%3D189959841%20width%3D584%29%20%28actual%20time%3D154.009..11372.141%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm_2.bill_class%20%3D%20l_2.bill%29%20AND%20%28osm_2.ship_class%20%3D%20l_2.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D17917%20read%3D49142%2C%20local%20hit%3D1467704%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..23902628.82%20rows%3D189959841%20width%3D574%29%20%28actual%20time%3D153.913..10698.691%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_2.part%2C%201%2C%208%29%20%3D%20md_2.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D17915%20read%3D49142%2C%20local%20hit%3D1467704%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..12030132.26%20rows%3D189959841%20width%3D542%29%20%28actual%20time%3D148.767..10299.042%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.part%20%3D%20p_3.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D17915%20read%3D49142%2C%20local%20hit%3D1467704%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..11527995.69%20rows%3D189959841%20width%3D518%29%20%28actual%20time%3D102.067..10041.030%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D15307%20read%3D49142%2C%20local%20hit%3D1467704%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..670498.91%20rows%3D9825509%20width%3D446%29%20%28actual%20time%3D102.059..8236.690%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D15307%20read%3D49142%2C%20local%20hit%3D733854%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..108904.23%20rows%3D508216%20width%3D374%29%20%28actual%20time%3D102.031..6271.278%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.part%20%3D%20m_3.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D15307%20read%3D49142%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..99297.64%20rows%3D508216%20width%3D339%29%20%28actual%20time%3D6.361..5913.268%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_2.part%2C%201%2C%203%29%20%3D%20f_2.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D8859%20read%3D49142%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..91650.71%20rows%3D508216%20width%3D315%29%20%28actual%20time%3D6.219..5568.521%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm_2.part%2C%2016%2C%201%29%20%3D%20mg_2.f1%29%20AND%20%28osm_2.ming%20%3D%20mg_2.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D8850%20read%3D49142%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..87189.88%20rows%3D508216%20width%3D283%29%20%28actual%20time%3D6.207..5231.289%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.glec%20%3D%20seg_2.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D8850%20read%3D49142%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..80265.15%20rows%3D508216%20width%3D255%29%20%28actual%20time%3D6.193..5042.515%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.fspr%20%3D%20sd_2.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D8850%20read%3D49142%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osm%20osm_2%20%20%28cost%3D0.00..73663.10%20rows%3D508216%20width%3D175%29%20%28actual%20time%3D6.115..4852.376%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271606%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272016-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20417318%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D8850%20read%3D49142%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.064..0.064%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_2%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.009..0.036%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.006..0.006%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20seg_2%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.002..0.003%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.006..0.006%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20mg_2%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.001..0.002%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.131..0.131%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f_2%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.010..0.051%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D95.611..95.611%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_3%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D0.005..42.484%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od_2%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D367211%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_2.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_2.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D733852%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd_2%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D367211%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_2.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm_2.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D733850%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D46.657..46.657%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_3%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D0.010..23.613%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D5.110..5.110%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20md_2%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.002..0.405%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.068..0.068%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l_2%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.021..0.039%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20CTE%20agg%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D3990139087947.22..4510710248131.84%20rows%3D1892986037035%20width%3D1404%29%20%28actual%20time%3D182825.587..189012.716%20rows%3D809487%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20un.version%2C%20un.iter%2C%20%28%28un.oseas%29%3A%3Anumeric%29%2C%20un.odate%2C%20%28%28un.sseas%29%3A%3Anumeric%29%2C%20un.sdate%2C%20%28%28un.rseas%29%3A%3Anumeric%29%2C%20un.rdate%2C%20un.om%2C%20un.sm%2C%20un.rm%2C%20un.oy%2C%20%28%28un.odate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.odate%20%3C%40%20so.ytd%29%29%2C%20un.sy%2C%20%28%28un.sdate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.sdate%20%3C%40%20ss.ytd%29%29%2C%20%28CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%3D%20un.odate%29%20THEN%20CASE%20WHEN%20%28%28un.sdate%20%3E%20%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%29%20OR%20%28un.sy%20%3D%20%27F%27%3A%3Atext%29%29%20THEN%20CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%20un.rdate%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20%27Shipped%27%3A%3Atext%20END%20ELSE%20%27Not%20Yet%20Placed%27%3A%3Atext%20END%29%2C%20un.ry%2C%20un.plnt%2C%20un.account%2C%20%28%28%28un.bill_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28bc.bvname%29%29%29%2C%20bc.bvctry%2C%20bc.bvprcd%2C%20un.shipgrp%2C%20%28%28%28un.ship_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28sc.bvname%29%29%29%2C%20sc.bvctry%2C%20sc.bvprcd%2C%20un.chan%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retail%20ELSE%20un.chan%20END%29%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retailsub%20ELSE%20%27%27%3A%3Atext%20END%29%2C%20un.promo%2C%20%28%28un.majg%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20majg.bqdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.ming%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20mmgp.brdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.majs%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20sj.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.mins%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20si.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20un.part%2C%20un.part_descr%2C%20un.part_family%2C%20un.part_group%2C%20un.branding%2C%20un.segm%2C%20%28COALESCE%28repc.repp%2C%20un.quota_rep%29%29%2C%20%28COALESCE%28repc.director%2C%20un.quota_rep%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.sy%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.oy%29%29%2C%20%28CASE%20WHEN%20%28un.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20THEN%20CASE%20WHEN%20%28un.rdate%20%3C%20CURRENT_DATE%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20un.calc_status%20END%29%2C%20%28%28%28substr%28un.part%2C%209%2C%203%29%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.branding%29%29%2C%20%27Grand%20Total%27%3A%3Atext%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101605%20read%3D90963%2C%20local%20hit%3D5658755%20read%3D1%2C%20temp%20read%3D169551%20written%3D244303%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D3990139087947.22..3994871553039.80%20rows%3D1892986037035%20width%3D1346%29%20%28actual%20time%3D182817.706..183828.314%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.version%2C%20un.iter%2C%20%28%28un.oseas%29%3A%3Anumeric%29%2C%20un.odate%2C%20%28%28un.sseas%29%3A%3Anumeric%29%2C%20un.sdate%2C%20%28%28un.rseas%29%3A%3Anumeric%29%2C%20un.rdate%2C%20un.om%2C%20un.sm%2C%20un.rm%2C%20un.oy%2C%20%28%28un.odate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.odate%20%3C%40%20so.ytd%29%29%2C%20un.sy%2C%20%28%28un.sdate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.sdate%20%3C%40%20ss.ytd%29%29%2C%20%28CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%3D%20un.odate%29%20THEN%20CASE%20WHEN%20%28%28un.sdate%20%3E%20%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%29%20OR%20%28un.sy%20%3D%20%27F%27%3A%3Atext%29%29%20THEN%20CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%20un.rdate%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20%27Shipped%27%3A%3Atext%20END%20ELSE%20%27Not%20Yet%20Placed%27%3A%3Atext%20END%29%2C%20un.ry%2C%20un.plnt%2C%20un.account%2C%20%28%28%28un.bill_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28bc.bvname%29%29%29%2C%20bc.bvctry%2C%20bc.bvprcd%2C%20un.shipgrp%2C%20%28%28%28un.ship_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28sc.bvname%29%29%29%2C%20sc.bvctry%2C%20sc.bvprcd%2C%20un.chan%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retail%20ELSE%20un.chan%20END%29%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retailsub%20ELSE%20%27%27%3A%3Atext%20END%29%2C%20un.promo%2C%20%28%28un.majg%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20majg.bqdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.ming%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20mmgp.brdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.majs%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20sj.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.mins%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20si.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20un.part%2C%20un.part_descr%2C%20un.part_family%2C%20un.part_group%2C%20un.branding%2C%20un.segm%2C%20%28COALESCE%28repc.repp%2C%20un.quota_rep%29%29%2C%20%28COALESCE%28repc.director%2C%20un.quota_rep%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.sy%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.oy%29%29%2C%20%28CASE%20WHEN%20%28un.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20THEN%20CASE%20WHEN%20%28un.rdate%20%3C%20CURRENT_DATE%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20un.calc_status%20END%29%2C%20%28%28%28substr%28un.part%2C%209%2C%203%29%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.branding%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20475848kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101605%20read%3D90963%2C%20local%20hit%3D5658755%20read%3D1%2C%20temp%20read%3D169551%20written%3D244303%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Merge%20Right%20Join%20%20%28cost%3D33563712447.31..265517026370.70%20rows%3D1892986037035%20width%3D1346%29%20%28actual%20time%3D117209.936..123600.017%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Merge%20Cond%3A%20%28ss.ssyr%20%3D%20un.sseas%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D90963%2C%20local%20hit%3D5658755%20read%3D1%2C%20temp%20read%3D110070%20written%3D184821%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D1353.78..1391.63%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.122..0.740%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20ss.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20std%20ss%20%20%28cost%3D0.00..302.76%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.081..0.117%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D33563711093.53..33688759715.34%20rows%3D25009724363%20width%3D1300%29%20%28actual%20time%3D117198.447..119674.219%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D90963%2C%20local%20hit%3D5658753%20read%3D1%2C%20temp%20read%3D110070%20written%3D184821%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D33563711093.53..33626235404.44%20rows%3D25009724363%20width%3D1300%29%20%28actual%20time%3D117198.083..117976.508%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.sseas%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20445840kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D90963%2C%20local%20hit%3D5658753%20read%3D1%2C%20temp%20read%3D110070%20written%3D146582%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Merge%20Right%20Join%20%20%28cost%3D488162845.81..864134844.69%20rows%3D25009724363%20width%3D1300%29%20%28actual%20time%3D105501.163..109753.807%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Merge%20Cond%3A%20%28so.ssyr%20%3D%20un.oseas%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D90963%2C%20local%20hit%3D5658753%20read%3D1%2C%20temp%20read%3D54340%20written%3D90851%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D1353.78..1391.63%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.005..0.009%20rows%3D13%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20so.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20std%20so%20%20%28cost%3D0.00..302.76%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.000..0.002%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D488161492.03..489813607.52%20rows%3D330423099%20width%3D1268%29%20%28actual%20time%3D105468.884..108956.573%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D90963%2C%20local%20hit%3D5658753%20read%3D1%2C%20temp%20read%3D54340%20written%3D90851%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D488161492.03..488987549.77%20rows%3D330423099%20width%3D1268%29%20%28actual%20time%3D105419.215..105977.954%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.oseas%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20434720kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D90963%2C%20local%20hit%3D5658753%20read%3D1%2C%20temp%20read%3D54340%20written%3D54341%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30326.40..75489285.22%20rows%3D330423099%20width%3D1268%29%20%28actual%20time%3D34892.831..94537.687%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cr.y0part%29%20AND%20%28un.plnt%20%3D%20cr.y0plnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D90963%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D22414.65..56426266.97%20rows%3D330423099%20width%3D1262%29%20%28actual%20time%3D34668.780..93298.840%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cp.chpart%29%20AND%20%28un.plnt%20%3D%20cp.chplnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D85711%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8003.465%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D14299.03..36533966.06%20rows%3D330423099%20width%3D1256%29%20%28actual%20time%3D34522.917..92143.759%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cm.cgpart%29%20AND%20%28un.plnt%20%3D%20cm.cgplnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D80395%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7920.833%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D7433.88..34026391.85%20rows%3D330423099%20width%3D1250%29%20%28actual%20time%3D34383.160..90732.988%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.bill_cust%20%3D%20sc.bvcust%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D75888%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7833.063%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D3723.16..29479363.52%20rows%3D330423099%20width%3D1223%29%20%28actual%20time%3D34366.365..89923.315%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.bill_cust%20%3D%20bc.bvcust%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D98373%20read%3D75888%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7833.063%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D12.44..24932335.18%20rows%3D330423099%20width%3D1196%29%20%28actual%20time%3D34277.988..88987.624%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.ming%20%3D%20mmgp.brmgrp%29%20AND%20%28un.majg%20%3D%20mmgp.brgrp%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D98373%20read%3D72664%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7758.824%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D7.51..15006668.18%20rows%3D330423099%20width%3D1186%29%20%28actual%20time%3D34277.622..88269.216%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.majg%20%3D%20majg.bqgrp%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D98373%20read%3D72663%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7758.524%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.24..13569326.43%20rows%3D330423099%20width%3D1176%29%20%28actual%20time%3D34277.304..87627.015%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.majs%20%3D%20sj.bsmjcd%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D98373%20read%3D72662%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7758.231%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.21..12313718.62%20rows%3D330423099%20width%3D1144%29%20%28actual%20time%3D34277.281..87019.163%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.majs%20%3D%20si.bsmjcd%29%20AND%20%28un.mins%20%3D%20si.bsmncd%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D98372%20read%3D72662%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7758.231%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D3.90..9830091.09%20rows%3D330423099%20width%3D1112%29%20%28actual%20time%3D34276.887..86204.919%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.quota_rep%20%3D%20repc.rcode%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D98372%20read%3D72661%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7757.901%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..6608461.98%20rows%3D330423099%20width%3D1048%29%20%28actual%20time%3D34264.293..85100.705%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D98372%20read%3D72635%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7746.456%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2.40..2.40%20rows%3D120%20width%3D96%29%20%28actual%20time%3D12.582..12.582%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2017kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D11.445%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20repc%20%20%28cost%3D0.00..2.40%20rows%3D120%20width%3D96%29%20%28actual%20time%3D2.594..12.537%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D11.445%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.32..1.32%20rows%3D66%20width%3D96%29%20%28actual%20time%3D0.382..0.382%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2011kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.330%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20si%20%20%28cost%3D0.00..1.32%20rows%3D66%20width%3D96%29%20%28actual%20time%3D0.344..0.363%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.330%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.02..0.02%20rows%3D1%20width%3D64%29%20%28actual%20time%3D0.016..0.016%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20sj%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D64%29%20%28actual%20time%3D0.007..0.013%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.12..1.12%20rows%3D12%20width%3D14%29%20%28actual%20time%3D0.312..0.312%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.293%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20majg%20%20%28cost%3D0.00..1.12%20rows%3D12%20width%3D14%29%20%28actual%20time%3D0.301..0.303%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.293%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2.57..2.57%20rows%3D157%20width%3D18%29%20%28actual%20time%3D0.359..0.359%20rows%3D157%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.300%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmgp%20%20%28cost%3D0.00..2.57%20rows%3D157%20width%3D18%29%20%28actual%20time%3D0.309..0.326%20rows%3D157%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.300%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3440.32..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D88.356..88.356%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2032768%20%20Batches%3A%201%20%20Memory%20Usage%3A%201721kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D74.239%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20cust%20bc%20%20%28cost%3D0.00..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D0.900..82.368%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D74.239%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3440.32..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D16.771..16.771%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2032768%20%20Batches%3A%201%20%20Memory%20Usage%3A%201721kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20cust%20sc%20%20%28cost%3D0.00..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D0.007..10.557%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D5450.26..5450.26%20rows%3D94326%20width%3D29%29%20%28actual%20time%3D139.654..139.654%20rows%3D94326%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%206699kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4507%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D87.770%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstm%20cm%20%20%28cost%3D0.00..5450.26%20rows%3D94326%20width%3D29%29%20%28actual%20time%3D1.271..114.520%20rows%3D94326%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4507%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D87.770%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D6435.85..6435.85%20rows%3D111985%20width%3D20%29%20%28actual%20time%3D145.806..145.806%20rows%3D111985%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%206768kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5316%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D82.632%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstp%20cp%20%20%28cost%3D0.00..6435.85%20rows%3D111985%20width%3D20%29%20%28actual%20time%3D3.411..114.774%20rows%3D111985%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5316%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D82.632%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D6315.90..6315.90%20rows%3D106390%20width%3D27%29%20%28actual%20time%3D223.650..223.650%20rows%3D106390%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207334kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5252%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D175.960%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstr%20cr%20%20%28cost%3D0.00..6315.90%20rows%3D106390%20width%3D27%29%20%28actual%20time%3D1.134..193.496%20rows%3D106390%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5252%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D175.960%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a%20%20%28cost%3D0.00..37859720740.70%20rows%3D1892986037035%20width%3D1520%29%20%28actual%20time%3D182825.842..192275.884%20rows%3D809487%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101605%20read%3D90963%2C%20local%20hit%3D5658755%20read%3D1%2C%20temp%20read%3D169551%20written%3D302149%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a_1%20%20%28cost%3D0.00..43089094668.02%20rows%3D14197395278%20width%3D1520%29%20%28actual%20time%3D336.760..2113.121%20rows%3D298364%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Filter%3A%20%28%28ocytd%20OR%20scytd%29%20AND%20%28version%20%3D%20ANY%20%28%27%7BActual%2CForecast%7D%27%3A%3Atext%5B%5D%29%29%29%0A%09%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20511123%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20temp%20read%3D57847%20written%3D1%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a_2%20%20%28cost%3D0.00..43089094668.02%20rows%3D14197395278%20width%3D1520%29%20%28actual%20time%3D218.764..3615.793%20rows%3D270022%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Filter%3A%20%28%28ocytd%20OR%20scytd%29%20AND%20%28version%20%3D%20ANY%20%28%27%7BActual%2CBudget%7D%27%3A%3Atext%5B%5D%29%29%29%0A%09%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20539465%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20temp%20read%3D57847%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Append (cost=4510966117154.68..4644894879274.93 rows=1921380827591 width=1520) (actual time=182826.066..198343.560 rows=1377873 loops=1)
|
||
Buffers: shared hit=101605 read=90963, local hit=5658755 read=1, temp read=285245 written=302150
|
||
I/O Timings: read=8179.425
|
||
CTE seg
|
||
-> Values Scan on "*VALUES*" (cost=0.00..0.18 rows=14 width=64) (actual time=0.001..0.004 rows=14 loops=1)
|
||
CTE mg
|
||
-> Values Scan on "*VALUES*_1" (cost=0.00..0.20 rows=16 width=96) (actual time=0.002..0.006 rows=16 loops=1)
|
||
CTE repc
|
||
-> Hash Left Join (cost=11.47..123.28 rows=120 width=96) (actual time=2.591..12.439 rows=120 loops=1)
|
||
Hash Cond: (ltrim(rtrim(c.a9)) = q.qr)
|
||
Buffers: shared read=26
|
||
I/O Timings: read=11.445
|
||
-> Bitmap Heap Scan on code c (cost=9.21..118.86 rows=120 width=25) (actual time=2.207..11.727 rows=120 loops=1)
|
||
Recheck Cond: (a2 = 'MM'::text)
|
||
Heap Blocks: exact=21
|
||
Buffers: shared read=25
|
||
I/O Timings: read=11.107
|
||
-> Bitmap Index Scan on pk_code (cost=0.00..9.18 rows=120 width=0) (actual time=1.684..1.684 rows=120 loops=1)
|
||
Index Cond: (a2 = 'MM'::text)
|
||
Buffers: shared read=4
|
||
I/O Timings: read=1.575
|
||
-> Hash (cost=1.56..1.56 rows=56 width=12) (actual time=0.368..0.368 rows=56 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 11kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.337
|
||
-> Seq Scan on qrh q (cost=0.00..1.56 rows=56 width=12) (actual time=0.349..0.355 rows=56 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.337
|
||
CTE md
|
||
-> HashAggregate (cost=11936.00..11938.00 rows=200 width=64) (actual time=95.558..96.083 rows=3368 loops=1)
|
||
Group Key: (substr(m.avpart, 1, 8))
|
||
Buffers: shared hit=9056
|
||
-> Append (cost=8137.31..11870.54 rows=13091 width=64) (actual time=83.235..94.596 rows=3375 loops=1)
|
||
Buffers: shared hit=9056
|
||
-> HashAggregate (cost=8137.31..8249.94 rows=9010 width=64) (actual time=83.233..84.126 rows=3285 loops=1)
|
||
Group Key: substr(m.avpart, 1, 8)
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m (cost=0.00..8092.26 rows=9010 width=59) (actual time=0.012..41.548 rows=76269 loops=1)
|
||
Filter: ((length(avpart) > 8) AND (substr(avgled, 1, 1) <= '2'::text))
|
||
Rows Removed by Filter: 4728
|
||
Buffers: shared hit=6448
|
||
-> HashAggregate (cost=3373.23..3424.24 rows=4081 width=64) (actual time=10.241..10.276 rows=90 loops=1)
|
||
Group Key: substr(p.awpart, 1, 8)
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p (cost=0.00..3352.82 rows=4081 width=52) (actual time=0.579..10.168 rows=142 loops=1)
|
||
Filter: ((length(awpart) > 8) AND (substr(awgled, 1, 1) <= '2'::text))
|
||
Rows Removed by Filter: 36557
|
||
Buffers: shared hit=2608
|
||
CTE sj
|
||
-> Seq Scan on mmsl (cost=0.00..1.84 rows=1 width=22) (actual time=0.006..0.010 rows=11 loops=1)
|
||
Filter: (COALESCE(bsmncd, ''::text) = ''::text)
|
||
Rows Removed by Filter: 56
|
||
Buffers: shared hit=1
|
||
CTE si
|
||
-> Seq Scan on mmsl mmsl_1 (cost=0.00..1.84 rows=66 width=22) (actual time=0.342..0.348 rows=56 loops=1)
|
||
Filter: (COALESCE(bsmncd, ''::text) <> ''::text)
|
||
Rows Removed by Filter: 11
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.330
|
||
CTE seas
|
||
-> GroupAggregate (cost=10.22..16.31 rows=174 width=41) (actual time=0.064..0.094 rows=15 loops=1)
|
||
Group Key: gld.ssyr
|
||
Buffers: local hit=2
|
||
-> Sort (cost=10.22..10.65 rows=174 width=16) (actual time=0.052..0.059 rows=174 loops=1)
|
||
Sort Key: gld.ssyr DESC
|
||
Sort Method: quicksort Memory: 33kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld (cost=0.00..3.74 rows=174 width=16) (actual time=0.010..0.029 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
CTE intv
|
||
-> CTE Scan on seas (cost=0.00..4.13 rows=87 width=4) (actual time=0.077..0.078 rows=1 loops=1)
|
||
Filter: cy
|
||
Rows Removed by Filter: 14
|
||
Buffers: local hit=2
|
||
CTE std
|
||
-> Nested Loop (cost=0.00..457.62 rows=15138 width=73) (actual time=0.080..0.112 rows=15 loops=1)
|
||
Buffers: local hit=2
|
||
-> CTE Scan on intv (cost=0.00..1.74 rows=87 width=4) (actual time=0.078..0.079 rows=1 loops=1)
|
||
Buffers: local hit=2
|
||
-> CTE Scan on seas s (cost=0.00..3.48 rows=174 width=41) (actual time=0.000..0.026 rows=15 loops=1)
|
||
CTE un
|
||
-> Append (cost=50003223.80..255856479.46 rows=330423099 width=697) (actual time=34264.289..81644.471 rows=812229 loops=1)
|
||
Buffers: shared hit=98372 read=72635, local hit=5658753 read=1
|
||
I/O Timings: read=7746.456
|
||
-> GroupAggregate (cost=50003223.80..63823292.65 rows=83757993 width=701) (actual time=34264.288..36465.643 rows=212793 loops=1)
|
||
Group Key: od.ssyr, osm.adj_orderdate, sd.ssyr, (LEAST(GREATEST(osm.adj_shipdate, sd.sdat), sd.edat)), rd.ssyr, osm.adj_requestdate, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(rd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text)), (COALESCE(rd.cy, 'F'::text)), osm.plnt, osm.account, osm.bill_cust, osm.shipgrp, osm.ship_cust, osm.chan, l.retail, l.retailsub, osm.promo, osm.majg, osm.ming, osm.majs, osm.mins, osm.part, (((osm.part || ' - '::text) || rtrim(COALESCE(m_1.avdes1, p_1.awdes1)))), (((f.f3 || ' - '::text) || f.descr)), (((substr(osm.part, 1, 8) || ' - '::text) || md.descr)), (COALESCE(mg.grp, 'Unbranded'::text)), (COALESCE(seg.segm, 'Other'::text)), osm.quota_rep, (CASE osm.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm.calc_status END), osm.c_rate
|
||
Buffers: shared hit=45043 read=23493, local hit=2563791 read=1
|
||
I/O Timings: read=3613.602
|
||
-> Sort (cost=50003223.80..50212618.79 rows=83757993 width=594) (actual time=34264.218..34431.899 rows=641010 loops=1)
|
||
Sort Key: od.ssyr, osm.adj_orderdate, sd.ssyr, (LEAST(GREATEST(osm.adj_shipdate, sd.sdat), sd.edat)), rd.ssyr, osm.adj_requestdate, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(rd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text)), (COALESCE(rd.cy, 'F'::text)), osm.plnt, osm.account, osm.bill_cust, osm.shipgrp, osm.ship_cust, osm.chan, l.retail, l.retailsub, osm.promo, osm.majg, osm.ming, osm.majs, osm.mins, osm.part, (((osm.part || ' - '::text) || rtrim(COALESCE(m_1.avdes1, p_1.awdes1)))), (((f.f3 || ' - '::text) || f.descr)), (((substr(osm.part, 1, 8) || ' - '::text) || md.descr)), (COALESCE(mg.grp, 'Unbranded'::text)), (COALESCE(seg.segm, 'Other'::text)), osm.quota_rep, (CASE osm.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm.calc_status END), osm.c_rate
|
||
Sort Method: quicksort Memory: 352782kB
|
||
Buffers: shared hit=45043 read=23493, local hit=2563791 read=1
|
||
I/O Timings: read=3613.602
|
||
-> Hash Left Join (cost=11749.79..16650773.71 rows=83757993 width=594) (actual time=523.585..12806.506 rows=641010 loops=1)
|
||
Hash Cond: ((osm.bill_class = l.bill) AND (osm.ship_class = l.ship))
|
||
Buffers: shared hit=45040 read=23493, local hit=2563791 read=1
|
||
I/O Timings: read=3613.602
|
||
-> Hash Left Join (cost=11744.32..10583311.94 rows=83757993 width=583) (actual time=522.937..12019.634 rows=641010 loops=1)
|
||
Hash Cond: (substr(osm.part, 1, 8) = md.mold)
|
||
Buffers: shared hit=45040 read=23491, local hit=2563791 read=1
|
||
I/O Timings: read=3613.055
|
||
-> Hash Left Join (cost=11737.82..5348430.88 rows=83757993 width=551) (actual time=425.063..11458.763 rows=641010 loops=1)
|
||
Hash Cond: (osm.part = p_1.awpart)
|
||
Buffers: shared hit=35984 read=23491, local hit=2563791 read=1
|
||
I/O Timings: read=3613.055
|
||
-> Nested Loop Left Join (cost=8303.37..5125106.33 rows=83757993 width=527) (actual time=313.496..11101.481 rows=641010 loops=1)
|
||
Buffers: shared hit=35982 read=20885, local hit=2563791 read=1
|
||
I/O Timings: read=3534.677
|
||
-> Nested Loop Left Join (cost=8303.23..337594.45 rows=4332310 width=455) (actual time=313.488..8642.098 rows=641010 loops=1)
|
||
Buffers: shared hit=35982 read=20885, local hit=1281897 read=1
|
||
I/O Timings: read=3534.677
|
||
-> Hash Left Join (cost=8303.08..89964.52 rows=224085 width=383) (actual time=313.453..5992.381 rows=641010 loops=1)
|
||
Hash Cond: (osm.part = m_1.avpart)
|
||
Buffers: shared hit=35982 read=20885, local hit=2
|
||
I/O Timings: read=3534.662
|
||
-> Hash Left Join (cost=30.62..81103.81 rows=224085 width=348) (actual time=12.984..5414.171 rows=641010 loops=1)
|
||
Hash Cond: (substr(osm.part, 1, 3) = f.f3)
|
||
Buffers: shared hit=35980 read=14439, local hit=2
|
||
I/O Timings: read=3281.743
|
||
-> Hash Left Join (cost=6.93..77718.84 rows=224085 width=324) (actual time=0.106..4996.296 rows=641010 loops=1)
|
||
Hash Cond: ((substr(osm.part, 16, 1) = mg.f1) AND (osm.ming = mg.ming))
|
||
Buffers: shared hit=35980 read=14430, local hit=2
|
||
I/O Timings: read=3269.024
|
||
-> Hash Left Join (cost=6.37..75750.09 rows=224085 width=292) (actual time=0.084..4563.487 rows=641010 loops=1)
|
||
Hash Cond: (osm.glec = seg.glec)
|
||
Buffers: shared hit=35980 read=14430, local hit=2
|
||
I/O Timings: read=3269.024
|
||
-> Hash Left Join (cost=5.92..72674.81 rows=224085 width=264) (actual time=0.070..4318.873 rows=641010 loops=1)
|
||
Hash Cond: (osm.fspr = sd.fspr)
|
||
Buffers: shared hit=35980 read=14430, local hit=2
|
||
I/O Timings: read=3269.024
|
||
-> Seq Scan on osmp osm (cost=0.00..69587.73 rows=224085 width=184) (actual time=0.017..4055.770 rows=641010 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND (version = 'b19'::text) AND (substr(glec, 1, 1) <= '2'::text) AND ((fspr >= '1901'::text) OR (adj_orderdate >= '2018-06-01'::date)))
|
||
Rows Removed by Filter: 57051
|
||
Buffers: shared hit=35980 read=14430
|
||
I/O Timings: read=3269.024
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.048..0.048 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd (cost=0.00..3.74 rows=174 width=112) (actual time=0.003..0.024 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.011..0.011 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg (cost=0.00..0.28 rows=14 width=64) (actual time=0.002..0.008 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.015..0.015 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg (cost=0.00..0.32 rows=16 width=96) (actual time=0.003..0.012 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=12.868..12.868 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared read=9
|
||
I/O Timings: read=12.719
|
||
-> Seq Scan on family f (cost=0.00..15.53 rows=653 width=24) (actual time=12.733..12.786 rows=653 loops=1)
|
||
Buffers: shared read=9
|
||
I/O Timings: read=12.719
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=300.407..300.407 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=2 read=6446
|
||
I/O Timings: read=252.919
|
||
-> Seq Scan on stkmm m_1 (cost=0.00..7258.87 rows=81087 width=54) (actual time=0.600..277.166 rows=80997 loops=1)
|
||
Buffers: shared hit=2 read=6446
|
||
I/O Timings: read=252.919
|
||
-> Index Scan using se_dat on gld od (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=641010)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=1281895 read=1
|
||
I/O Timings: read=0.015
|
||
-> Index Scan using se_dat on gld rd (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=641010)
|
||
Index Cond: ((osm.adj_requestdate >= sdat) AND (osm.adj_requestdate <= edat))
|
||
Buffers: local hit=1281894
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=108.057..108.057 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2 read=2606
|
||
I/O Timings: read=78.378
|
||
-> Seq Scan on stkmp p_1 (cost=0.00..2975.31 rows=36731 width=33) (actual time=1.096..89.328 rows=36699 loops=1)
|
||
Buffers: shared hit=2 read=2606
|
||
I/O Timings: read=78.378
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=97.843..97.843 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
Buffers: shared hit=9056
|
||
-> CTE Scan on md (cost=0.00..4.00 rows=200 width=64) (actual time=95.561..97.114 rows=3368 loops=1)
|
||
Buffers: shared hit=9056
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.629..0.629 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared read=2
|
||
I/O Timings: read=0.546
|
||
-> Seq Scan on ffchnl l (cost=0.00..3.39 rows=139 width=25) (actual time=0.574..0.596 rows=139 loops=1)
|
||
Buffers: shared read=2
|
||
I/O Timings: read=0.546
|
||
-> GroupAggregate (cost=33445583.00..42801951.72 rows=56705265 width=699) (actual time=21899.780..27106.566 rows=250477 loops=1)
|
||
Group Key: od_1.ssyr, osm_1.adj_orderdate, sd_1.ssyr, (LEAST(GREATEST(osm_1.adj_shipdate, sd_1.sdat), sd_1.edat)), rd_1.ssyr, osm_1.adj_requestdate, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(rd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text)), (COALESCE(rd_1.cy, 'F'::text)), osm_1.plnt, osm_1.account, osm_1.bill_cust, osm_1.shipgrp, osm_1.ship_cust, osm_1.chan, l_1.retail, l_1.retailsub, osm_1.promo, osm_1.majg, osm_1.ming, osm_1.majs, osm_1.mins, osm_1.part, (((osm_1.part || ' - '::text) || rtrim(COALESCE(m_2.avdes1, p_2.awdes1)))), (((f_1.f3 || ' - '::text) || f_1.descr)), (((substr(osm_1.part, 1, 8) || ' - '::text) || md_1.descr)), (COALESCE(mg_1.grp, 'Unbranded'::text)), (COALESCE(seg_1.segm, 'Other'::text)), osm_1.quota_rep, (CASE osm_1.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_1.calc_status END), osm_1.c_rate
|
||
Buffers: shared hit=35412, local hit=1627258
|
||
-> Sort (cost=33445583.00..33587346.16 rows=56705265 width=595) (actual time=21899.740..22369.501 rows=406814 loops=1)
|
||
Sort Key: od_1.ssyr, osm_1.adj_orderdate, sd_1.ssyr, (LEAST(GREATEST(osm_1.adj_shipdate, sd_1.sdat), sd_1.edat)), rd_1.ssyr, osm_1.adj_requestdate, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(rd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text)), (COALESCE(rd_1.cy, 'F'::text)), osm_1.plnt, osm_1.account, osm_1.bill_cust, osm_1.shipgrp, osm_1.ship_cust, osm_1.chan, l_1.retail, l_1.retailsub, osm_1.promo, osm_1.majg, osm_1.ming, osm_1.majs, osm_1.mins, osm_1.part, (((osm_1.part || ' - '::text) || rtrim(COALESCE(m_2.avdes1, p_2.awdes1)))), (((f_1.f3 || ' - '::text) || f_1.descr)), (((substr(osm_1.part, 1, 8) || ' - '::text) || md_1.descr)), (COALESCE(mg_1.grp, 'Unbranded'::text)), (COALESCE(seg_1.segm, 'Other'::text)), osm_1.quota_rep, (CASE osm_1.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_1.calc_status END), osm_1.c_rate
|
||
Sort Method: quicksort Memory: 222052kB
|
||
Buffers: shared hit=35412, local hit=1627258
|
||
-> Hash Left Join (cost=11749.79..11025086.80 rows=56705265 width=595) (actual time=82.385..8358.833 rows=406814 loops=1)
|
||
Hash Cond: ((osm_1.bill_class = l_1.bill) AND (osm_1.ship_class = l_1.ship))
|
||
Buffers: shared hit=35412, local hit=1627258
|
||
-> Hash Left Join (cost=11744.32..6967724.27 rows=55168846 width=584) (actual time=82.294..7619.217 rows=406814 loops=1)
|
||
Hash Cond: (substr(osm_1.part, 1, 8) = md_1.mold)
|
||
Buffers: shared hit=35410, local hit=1627258
|
||
-> Hash Left Join (cost=11737.82..3519664.90 rows=55168846 width=552) (actual time=81.174..7139.198 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.part = p_2.awpart)
|
||
Buffers: shared hit=35410, local hit=1627258
|
||
-> Nested Loop Left Join (cost=8303.37..3371395.52 rows=55168846 width=528) (actual time=50.759..6837.840 rows=406814 loops=1)
|
||
Buffers: shared hit=32802, local hit=1627258
|
||
-> Nested Loop Left Join (cost=8303.23..217901.28 rows=2853561 width=456) (actual time=50.749..4566.299 rows=406814 loops=1)
|
||
Buffers: shared hit=32802, local hit=813630
|
||
-> Hash Left Join (cost=8303.08..54789.49 rows=147598 width=384) (actual time=50.729..2196.620 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.part = m_2.avpart)
|
||
Buffers: shared hit=32802, local hit=2
|
||
-> Hash Left Join (cost=30.62..46129.57 rows=147598 width=349) (actual time=0.257..1813.794 rows=406814 loops=1)
|
||
Hash Cond: (substr(osm_1.part, 1, 3) = f_1.f3)
|
||
Buffers: shared hit=26354, local hit=2
|
||
-> Hash Left Join (cost=6.93..43891.91 rows=147598 width=325) (actual time=0.121..1436.906 rows=406814 loops=1)
|
||
Hash Cond: ((substr(osm_1.part, 16, 1) = mg_1.f1) AND (osm_1.ming = mg_1.ming))
|
||
Buffers: shared hit=26345, local hit=2
|
||
-> Hash Left Join (cost=6.37..42594.49 rows=147598 width=293) (actual time=0.110..1056.449 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.glec = seg_1.glec)
|
||
Buffers: shared hit=26345, local hit=2
|
||
-> Hash Left Join (cost=5.92..40564.57 rows=147598 width=265) (actual time=0.098..857.465 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.fspr = sd_1.fspr)
|
||
Buffers: shared hit=26345, local hit=2
|
||
-> Seq Scan on osmf osm_1 (cost=0.00..38529.18 rows=147598 width=185) (actual time=0.026..619.289 rows=406814 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND (version = '5p7'::text) AND (substr(glec, 1, 1) <= '2'::text) AND ((fspr >= '1901'::text) OR (adj_orderdate >= '2018-06-01'::date)))
|
||
Rows Removed by Filter: 358
|
||
Buffers: shared hit=26345
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.065..0.065 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_1 (cost=0.00..3.74 rows=174 width=112) (actual time=0.008..0.035 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.007..0.007 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg seg_1 (cost=0.00..0.28 rows=14 width=64) (actual time=0.002..0.004 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.007..0.007 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg mg_1 (cost=0.00..0.32 rows=16 width=96) (actual time=0.001..0.003 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=0.131..0.131 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared hit=9
|
||
-> Seq Scan on family f_1 (cost=0.00..15.53 rows=653 width=24) (actual time=0.010..0.054 rows=653 loops=1)
|
||
Buffers: shared hit=9
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=50.417..50.417 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m_2 (cost=0.00..7258.87 rows=81087 width=54) (actual time=0.005..27.523 rows=80997 loops=1)
|
||
Buffers: shared hit=6448
|
||
-> Index Scan using se_dat on gld od_1 (cost=0.14..0.92 rows=19 width=80) (actual time=0.005..0.005 rows=1 loops=406814)
|
||
Index Cond: ((osm_1.adj_orderdate >= sdat) AND (osm_1.adj_orderdate <= edat))
|
||
Buffers: local hit=813628
|
||
-> Index Scan using se_dat on gld rd_1 (cost=0.14..0.92 rows=19 width=80) (actual time=0.004..0.005 rows=1 loops=406814)
|
||
Index Cond: ((osm_1.adj_requestdate >= sdat) AND (osm_1.adj_requestdate <= edat))
|
||
Buffers: local hit=813628
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=30.201..30.201 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p_2 (cost=0.00..2975.31 rows=36731 width=33) (actual time=0.009..17.401 rows=36699 loops=1)
|
||
Buffers: shared hit=2608
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=1.104..1.104 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
-> CTE Scan on md md_1 (cost=0.00..4.00 rows=200 width=64) (actual time=0.002..0.386 rows=3368 loops=1)
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.063..0.063 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared hit=2
|
||
-> Seq Scan on ffchnl l_1 (cost=0.00..3.39 rows=139 width=25) (actual time=0.011..0.032 rows=139 loops=1)
|
||
Buffers: shared hit=2
|
||
-> GroupAggregate (cost=112931514.84..144274888.60 rows=189959841 width=695) (actual time=16710.998..17936.290 rows=348959 loops=1)
|
||
Group Key: od_2.ssyr, osm_2.adj_orderdate, sd_2.ssyr, (LEAST(GREATEST(osm_2.adj_shipdate, sd_2.sdat), sd_2.edat)), rd_2.ssyr, osm_2.adj_requestdate, (COALESCE(od_2.cm, sd_2.cm)), (COALESCE(sd_2.cm, 'F'::text)), (COALESCE(rd_2.cm, 'F'::text)), (COALESCE(od_2.cy, sd_2.cy)), (COALESCE(sd_2.cy, 'F'::text)), (COALESCE(rd_2.cy, 'F'::text)), osm_2.plnt, osm_2.account, osm_2.bill_cust, osm_2.shipgrp, osm_2.ship_cust, osm_2.chan, l_2.retail, l_2.retailsub, osm_2.promo, osm_2.majg, osm_2.ming, osm_2.majs, osm_2.mins, osm_2.part, (((osm_2.part || ' - '::text) || rtrim(COALESCE(m_3.avdes1, p_3.awdes1)))), (((f_2.f3 || ' - '::text) || f_2.descr)), (((substr(osm_2.part, 1, 8) || ' - '::text) || md_2.descr)), (COALESCE(mg_2.grp, 'Unbranded'::text)), (COALESCE(seg_2.segm, 'Other'::text)), osm_2.quota_rep, (CASE osm_2.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_2.calc_status END), osm_2.c_rate
|
||
Buffers: shared hit=17917 read=49142, local hit=1467704
|
||
I/O Timings: read=4132.855
|
||
-> Sort (cost=112931514.84..113406414.44 rows=189959841 width=584) (actual time=16710.946..16814.969 rows=367211 loops=1)
|
||
Sort Key: od_2.ssyr, osm_2.adj_orderdate, sd_2.ssyr, (LEAST(GREATEST(osm_2.adj_shipdate, sd_2.sdat), sd_2.edat)), rd_2.ssyr, osm_2.adj_requestdate, (COALESCE(od_2.cm, sd_2.cm)), (COALESCE(sd_2.cm, 'F'::text)), (COALESCE(rd_2.cm, 'F'::text)), (COALESCE(od_2.cy, sd_2.cy)), (COALESCE(sd_2.cy, 'F'::text)), (COALESCE(rd_2.cy, 'F'::text)), osm_2.plnt, osm_2.account, osm_2.bill_cust, osm_2.shipgrp, osm_2.ship_cust, osm_2.chan, l_2.retail, l_2.retailsub, osm_2.promo, osm_2.majg, osm_2.ming, osm_2.majs, osm_2.mins, osm_2.part, (((osm_2.part || ' - '::text) || rtrim(COALESCE(m_3.avdes1, p_3.awdes1)))), (((f_2.f3 || ' - '::text) || f_2.descr)), (((substr(osm_2.part, 1, 8) || ' - '::text) || md_2.descr)), (COALESCE(mg_2.grp, 'Unbranded'::text)), (COALESCE(seg_2.segm, 'Other'::text)), osm_2.quota_rep, (CASE osm_2.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_2.calc_status END), osm_2.c_rate
|
||
Sort Method: quicksort Memory: 201623kB
|
||
Buffers: shared hit=17917 read=49142, local hit=1467704
|
||
I/O Timings: read=4132.855
|
||
-> Hash Left Join (cost=11749.79..37465936.67 rows=189959841 width=584) (actual time=154.009..11372.141 rows=367211 loops=1)
|
||
Hash Cond: ((osm_2.bill_class = l_2.bill) AND (osm_2.ship_class = l_2.ship))
|
||
Buffers: shared hit=17917 read=49142, local hit=1467704
|
||
I/O Timings: read=4132.855
|
||
-> Hash Left Join (cost=11744.32..23902628.82 rows=189959841 width=574) (actual time=153.913..10698.691 rows=367211 loops=1)
|
||
Hash Cond: (substr(osm_2.part, 1, 8) = md_2.mold)
|
||
Buffers: shared hit=17915 read=49142, local hit=1467704
|
||
I/O Timings: read=4132.855
|
||
-> Hash Left Join (cost=11737.82..12030132.26 rows=189959841 width=542) (actual time=148.767..10299.042 rows=367211 loops=1)
|
||
Hash Cond: (osm_2.part = p_3.awpart)
|
||
Buffers: shared hit=17915 read=49142, local hit=1467704
|
||
I/O Timings: read=4132.855
|
||
-> Nested Loop Left Join (cost=8303.37..11527995.69 rows=189959841 width=518) (actual time=102.067..10041.030 rows=367211 loops=1)
|
||
Buffers: shared hit=15307 read=49142, local hit=1467704
|
||
I/O Timings: read=4132.855
|
||
-> Nested Loop Left Join (cost=8303.23..670498.91 rows=9825509 width=446) (actual time=102.059..8236.690 rows=367211 loops=1)
|
||
Buffers: shared hit=15307 read=49142, local hit=733854
|
||
I/O Timings: read=4132.855
|
||
-> Hash Left Join (cost=8303.08..108904.23 rows=508216 width=374) (actual time=102.031..6271.278 rows=367211 loops=1)
|
||
Hash Cond: (osm_2.part = m_3.avpart)
|
||
Buffers: shared hit=15307 read=49142, local hit=2
|
||
I/O Timings: read=4132.855
|
||
-> Hash Left Join (cost=30.62..99297.64 rows=508216 width=339) (actual time=6.361..5913.268 rows=367211 loops=1)
|
||
Hash Cond: (substr(osm_2.part, 1, 3) = f_2.f3)
|
||
Buffers: shared hit=8859 read=49142, local hit=2
|
||
I/O Timings: read=4132.855
|
||
-> Hash Left Join (cost=6.93..91650.71 rows=508216 width=315) (actual time=6.219..5568.521 rows=367211 loops=1)
|
||
Hash Cond: ((substr(osm_2.part, 16, 1) = mg_2.f1) AND (osm_2.ming = mg_2.ming))
|
||
Buffers: shared hit=8850 read=49142, local hit=2
|
||
I/O Timings: read=4132.855
|
||
-> Hash Left Join (cost=6.37..87189.88 rows=508216 width=283) (actual time=6.207..5231.289 rows=367211 loops=1)
|
||
Hash Cond: (osm_2.glec = seg_2.glec)
|
||
Buffers: shared hit=8850 read=49142, local hit=2
|
||
I/O Timings: read=4132.855
|
||
-> Hash Left Join (cost=5.92..80265.15 rows=508216 width=255) (actual time=6.193..5042.515 rows=367211 loops=1)
|
||
Hash Cond: (osm_2.fspr = sd_2.fspr)
|
||
Buffers: shared hit=8850 read=49142, local hit=2
|
||
I/O Timings: read=4132.855
|
||
-> Seq Scan on osm osm_2 (cost=0.00..73663.10 rows=508216 width=175) (actual time=6.115..4852.376 rows=367211 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND ((fspr >= '1606'::text) OR (adj_orderdate >= '2016-06-01'::date)))
|
||
Rows Removed by Filter: 417318
|
||
Buffers: shared hit=8850 read=49142
|
||
I/O Timings: read=4132.855
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.064..0.064 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_2 (cost=0.00..3.74 rows=174 width=112) (actual time=0.009..0.036 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.006..0.006 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg seg_2 (cost=0.00..0.28 rows=14 width=64) (actual time=0.002..0.003 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.006..0.006 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg mg_2 (cost=0.00..0.32 rows=16 width=96) (actual time=0.001..0.002 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=0.131..0.131 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared hit=9
|
||
-> Seq Scan on family f_2 (cost=0.00..15.53 rows=653 width=24) (actual time=0.010..0.051 rows=653 loops=1)
|
||
Buffers: shared hit=9
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=95.611..95.611 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m_3 (cost=0.00..7258.87 rows=81087 width=54) (actual time=0.005..42.484 rows=80997 loops=1)
|
||
Buffers: shared hit=6448
|
||
-> Index Scan using se_dat on gld od_2 (cost=0.14..0.92 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=367211)
|
||
Index Cond: ((osm_2.adj_orderdate >= sdat) AND (osm_2.adj_orderdate <= edat))
|
||
Buffers: local hit=733852
|
||
-> Index Scan using se_dat on gld rd_2 (cost=0.14..0.92 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=367211)
|
||
Index Cond: ((osm_2.adj_requestdate >= sdat) AND (osm_2.adj_requestdate <= edat))
|
||
Buffers: local hit=733850
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=46.657..46.657 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p_3 (cost=0.00..2975.31 rows=36731 width=33) (actual time=0.010..23.613 rows=36699 loops=1)
|
||
Buffers: shared hit=2608
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=5.110..5.110 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
-> CTE Scan on md md_2 (cost=0.00..4.00 rows=200 width=64) (actual time=0.002..0.405 rows=3368 loops=1)
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.068..0.068 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared hit=2
|
||
-> Seq Scan on ffchnl l_2 (cost=0.00..3.39 rows=139 width=25) (actual time=0.021..0.039 rows=139 loops=1)
|
||
Buffers: shared hit=2
|
||
CTE agg
|
||
-> GroupAggregate (cost=3990139087947.22..4510710248131.84 rows=1892986037035 width=1404) (actual time=182825.587..189012.716 rows=809487 loops=1)
|
||
Group Key: un.version, un.iter, ((un.oseas)::numeric), un.odate, ((un.sseas)::numeric), un.sdate, ((un.rseas)::numeric), un.rdate, un.om, un.sm, un.rm, un.oy, ((un.odate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.odate <@ so.ytd)), un.sy, ((un.sdate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.sdate <@ ss.ytd)), (CASE WHEN ((upper(so.ytd) - '1 day'::interval) >= un.odate) THEN CASE WHEN ((un.sdate > (upper(so.ytd) - '1 day'::interval)) OR (un.sy = 'F'::text)) THEN CASE WHEN ((upper(so.ytd) - '1 day'::interval) > un.rdate) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE 'Shipped'::text END ELSE 'Not Yet Placed'::text END), un.ry, un.plnt, un.account, (((un.bill_cust || ' - '::text) || rtrim(bc.bvname))), bc.bvctry, bc.bvprcd, un.shipgrp, (((un.ship_cust || ' - '::text) || rtrim(sc.bvname))), sc.bvctry, sc.bvprcd, un.chan, (CASE un.segm WHEN 'Retail'::text THEN un.retail ELSE un.chan END), (CASE un.segm WHEN 'Retail'::text THEN un.retailsub ELSE ''::text END), un.promo, ((un.majg || COALESCE((' - '::text || majg.bqdes), ''::text))), ((un.ming || COALESCE((' - '::text || mmgp.brdes), ''::text))), ((un.majs || COALESCE((' - '::text || sj.bsdes1), ''::text))), ((un.mins || COALESCE((' - '::text || si.bsdes1), ''::text))), un.part, un.part_descr, un.part_family, un.part_group, un.branding, un.segm, (COALESCE(repc.repp, un.quota_rep)), (COALESCE(repc.director, un.quota_rep)), (((un.version || '-'::text) || un.sy)), (((un.version || '-'::text) || un.oy)), (CASE WHEN (un.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) THEN CASE WHEN (un.rdate < CURRENT_DATE) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE un.calc_status END), (((substr(un.part, 9, 3) || '-'::text) || un.branding)), 'Grand Total'::text
|
||
Buffers: shared hit=101605 read=90963, local hit=5658755 read=1, temp read=169551 written=244303
|
||
I/O Timings: read=8179.425
|
||
-> Sort (cost=3990139087947.22..3994871553039.80 rows=1892986037035 width=1346) (actual time=182817.706..183828.314 rows=812229 loops=1)
|
||
Sort Key: un.version, un.iter, ((un.oseas)::numeric), un.odate, ((un.sseas)::numeric), un.sdate, ((un.rseas)::numeric), un.rdate, un.om, un.sm, un.rm, un.oy, ((un.odate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.odate <@ so.ytd)), un.sy, ((un.sdate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.sdate <@ ss.ytd)), (CASE WHEN ((upper(so.ytd) - '1 day'::interval) >= un.odate) THEN CASE WHEN ((un.sdate > (upper(so.ytd) - '1 day'::interval)) OR (un.sy = 'F'::text)) THEN CASE WHEN ((upper(so.ytd) - '1 day'::interval) > un.rdate) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE 'Shipped'::text END ELSE 'Not Yet Placed'::text END), un.ry, un.plnt, un.account, (((un.bill_cust || ' - '::text) || rtrim(bc.bvname))), bc.bvctry, bc.bvprcd, un.shipgrp, (((un.ship_cust || ' - '::text) || rtrim(sc.bvname))), sc.bvctry, sc.bvprcd, un.chan, (CASE un.segm WHEN 'Retail'::text THEN un.retail ELSE un.chan END), (CASE un.segm WHEN 'Retail'::text THEN un.retailsub ELSE ''::text END), un.promo, ((un.majg || COALESCE((' - '::text || majg.bqdes), ''::text))), ((un.ming || COALESCE((' - '::text || mmgp.brdes), ''::text))), ((un.majs || COALESCE((' - '::text || sj.bsdes1), ''::text))), ((un.mins || COALESCE((' - '::text || si.bsdes1), ''::text))), un.part, un.part_descr, un.part_family, un.part_group, un.branding, un.segm, (COALESCE(repc.repp, un.quota_rep)), (COALESCE(repc.director, un.quota_rep)), (((un.version || '-'::text) || un.sy)), (((un.version || '-'::text) || un.oy)), (CASE WHEN (un.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) THEN CASE WHEN (un.rdate < CURRENT_DATE) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE un.calc_status END), (((substr(un.part, 9, 3) || '-'::text) || un.branding))
|
||
Sort Method: external merge Disk: 475848kB
|
||
Buffers: shared hit=101605 read=90963, local hit=5658755 read=1, temp read=169551 written=244303
|
||
I/O Timings: read=8179.425
|
||
-> Merge Right Join (cost=33563712447.31..265517026370.70 rows=1892986037035 width=1346) (actual time=117209.936..123600.017 rows=812229 loops=1)
|
||
Merge Cond: (ss.ssyr = un.sseas)
|
||
Buffers: shared hit=101597 read=90963, local hit=5658755 read=1, temp read=110070 written=184821
|
||
I/O Timings: read=8179.425
|
||
-> Sort (cost=1353.78..1391.63 rows=15138 width=40) (actual time=0.122..0.740 rows=15 loops=1)
|
||
Sort Key: ss.ssyr
|
||
Sort Method: quicksort Memory: 26kB
|
||
Buffers: local hit=2
|
||
-> CTE Scan on std ss (cost=0.00..302.76 rows=15138 width=40) (actual time=0.081..0.117 rows=15 loops=1)
|
||
Buffers: local hit=2
|
||
-> Materialize (cost=33563711093.53..33688759715.34 rows=25009724363 width=1300) (actual time=117198.447..119674.219 rows=812229 loops=1)
|
||
Buffers: shared hit=101597 read=90963, local hit=5658753 read=1, temp read=110070 written=184821
|
||
I/O Timings: read=8179.425
|
||
-> Sort (cost=33563711093.53..33626235404.44 rows=25009724363 width=1300) (actual time=117198.083..117976.508 rows=812229 loops=1)
|
||
Sort Key: un.sseas
|
||
Sort Method: external merge Disk: 445840kB
|
||
Buffers: shared hit=101597 read=90963, local hit=5658753 read=1, temp read=110070 written=146582
|
||
I/O Timings: read=8179.425
|
||
-> Merge Right Join (cost=488162845.81..864134844.69 rows=25009724363 width=1300) (actual time=105501.163..109753.807 rows=812229 loops=1)
|
||
Merge Cond: (so.ssyr = un.oseas)
|
||
Buffers: shared hit=101597 read=90963, local hit=5658753 read=1, temp read=54340 written=90851
|
||
I/O Timings: read=8179.425
|
||
-> Sort (cost=1353.78..1391.63 rows=15138 width=40) (actual time=0.005..0.009 rows=13 loops=1)
|
||
Sort Key: so.ssyr
|
||
Sort Method: quicksort Memory: 26kB
|
||
-> CTE Scan on std so (cost=0.00..302.76 rows=15138 width=40) (actual time=0.000..0.002 rows=15 loops=1)
|
||
-> Materialize (cost=488161492.03..489813607.52 rows=330423099 width=1268) (actual time=105468.884..108956.573 rows=812229 loops=1)
|
||
Buffers: shared hit=101597 read=90963, local hit=5658753 read=1, temp read=54340 written=90851
|
||
I/O Timings: read=8179.425
|
||
-> Sort (cost=488161492.03..488987549.77 rows=330423099 width=1268) (actual time=105419.215..105977.954 rows=812229 loops=1)
|
||
Sort Key: un.oseas
|
||
Sort Method: external merge Disk: 434720kB
|
||
Buffers: shared hit=101597 read=90963, local hit=5658753 read=1, temp read=54340 written=54341
|
||
I/O Timings: read=8179.425
|
||
-> Hash Left Join (cost=30326.40..75489285.22 rows=330423099 width=1268) (actual time=34892.831..94537.687 rows=812229 loops=1)
|
||
Hash Cond: ((un.part = cr.y0part) AND (un.plnt = cr.y0plnt))
|
||
Buffers: shared hit=101597 read=90963, local hit=5658753 read=1
|
||
I/O Timings: read=8179.425
|
||
-> Hash Left Join (cost=22414.65..56426266.97 rows=330423099 width=1262) (actual time=34668.780..93298.840 rows=812229 loops=1)
|
||
Hash Cond: ((un.part = cp.chpart) AND (un.plnt = cp.chplnt))
|
||
Buffers: shared hit=101597 read=85711, local hit=5658753 read=1
|
||
I/O Timings: read=8003.465
|
||
-> Hash Left Join (cost=14299.03..36533966.06 rows=330423099 width=1256) (actual time=34522.917..92143.759 rows=812229 loops=1)
|
||
Hash Cond: ((un.part = cm.cgpart) AND (un.plnt = cm.cgplnt))
|
||
Buffers: shared hit=101597 read=80395, local hit=5658753 read=1
|
||
I/O Timings: read=7920.833
|
||
-> Hash Left Join (cost=7433.88..34026391.85 rows=330423099 width=1250) (actual time=34383.160..90732.988 rows=812229 loops=1)
|
||
Hash Cond: (un.bill_cust = sc.bvcust)
|
||
Buffers: shared hit=101597 read=75888, local hit=5658753 read=1
|
||
I/O Timings: read=7833.063
|
||
-> Hash Left Join (cost=3723.16..29479363.52 rows=330423099 width=1223) (actual time=34366.365..89923.315 rows=812229 loops=1)
|
||
Hash Cond: (un.bill_cust = bc.bvcust)
|
||
Buffers: shared hit=98373 read=75888, local hit=5658753 read=1
|
||
I/O Timings: read=7833.063
|
||
-> Hash Left Join (cost=12.44..24932335.18 rows=330423099 width=1196) (actual time=34277.988..88987.624 rows=812229 loops=1)
|
||
Hash Cond: ((un.ming = mmgp.brmgrp) AND (un.majg = mmgp.brgrp))
|
||
Buffers: shared hit=98373 read=72664, local hit=5658753 read=1
|
||
I/O Timings: read=7758.824
|
||
-> Hash Left Join (cost=7.51..15006668.18 rows=330423099 width=1186) (actual time=34277.622..88269.216 rows=812229 loops=1)
|
||
Hash Cond: (un.majg = majg.bqgrp)
|
||
Buffers: shared hit=98373 read=72663, local hit=5658753 read=1
|
||
I/O Timings: read=7758.524
|
||
-> Hash Left Join (cost=6.24..13569326.43 rows=330423099 width=1176) (actual time=34277.304..87627.015 rows=812229 loops=1)
|
||
Hash Cond: (un.majs = sj.bsmjcd)
|
||
Buffers: shared hit=98373 read=72662, local hit=5658753 read=1
|
||
I/O Timings: read=7758.231
|
||
-> Hash Left Join (cost=6.21..12313718.62 rows=330423099 width=1144) (actual time=34277.281..87019.163 rows=812229 loops=1)
|
||
Hash Cond: ((un.majs = si.bsmjcd) AND (un.mins = si.bsmncd))
|
||
Buffers: shared hit=98372 read=72662, local hit=5658753 read=1
|
||
I/O Timings: read=7758.231
|
||
-> Hash Left Join (cost=3.90..9830091.09 rows=330423099 width=1112) (actual time=34276.887..86204.919 rows=812229 loops=1)
|
||
Hash Cond: (un.quota_rep = repc.rcode)
|
||
Buffers: shared hit=98372 read=72661, local hit=5658753 read=1
|
||
I/O Timings: read=7757.901
|
||
-> CTE Scan on un (cost=0.00..6608461.98 rows=330423099 width=1048) (actual time=34264.293..85100.705 rows=812229 loops=1)
|
||
Buffers: shared hit=98372 read=72635, local hit=5658753 read=1
|
||
I/O Timings: read=7746.456
|
||
-> Hash (cost=2.40..2.40 rows=120 width=96) (actual time=12.582..12.582 rows=120 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 17kB
|
||
Buffers: shared read=26
|
||
I/O Timings: read=11.445
|
||
-> CTE Scan on repc (cost=0.00..2.40 rows=120 width=96) (actual time=2.594..12.537 rows=120 loops=1)
|
||
Buffers: shared read=26
|
||
I/O Timings: read=11.445
|
||
-> Hash (cost=1.32..1.32 rows=66 width=96) (actual time=0.382..0.382 rows=56 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 11kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.330
|
||
-> CTE Scan on si (cost=0.00..1.32 rows=66 width=96) (actual time=0.344..0.363 rows=56 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.330
|
||
-> Hash (cost=0.02..0.02 rows=1 width=64) (actual time=0.016..0.016 rows=11 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
Buffers: shared hit=1
|
||
-> CTE Scan on sj (cost=0.00..0.02 rows=1 width=64) (actual time=0.007..0.013 rows=11 loops=1)
|
||
Buffers: shared hit=1
|
||
-> Hash (cost=1.12..1.12 rows=12 width=14) (actual time=0.312..0.312 rows=12 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.293
|
||
-> Seq Scan on majg (cost=0.00..1.12 rows=12 width=14) (actual time=0.301..0.303 rows=12 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.293
|
||
-> Hash (cost=2.57..2.57 rows=157 width=18) (actual time=0.359..0.359 rows=157 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.300
|
||
-> Seq Scan on mmgp (cost=0.00..2.57 rows=157 width=18) (actual time=0.309..0.326 rows=157 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.300
|
||
-> Hash (cost=3440.32..3440.32 rows=21632 width=35) (actual time=88.356..88.356 rows=21632 loops=1)
|
||
Buckets: 32768 Batches: 1 Memory Usage: 1721kB
|
||
Buffers: shared read=3224
|
||
I/O Timings: read=74.239
|
||
-> Seq Scan on cust bc (cost=0.00..3440.32 rows=21632 width=35) (actual time=0.900..82.368 rows=21632 loops=1)
|
||
Buffers: shared read=3224
|
||
I/O Timings: read=74.239
|
||
-> Hash (cost=3440.32..3440.32 rows=21632 width=35) (actual time=16.771..16.771 rows=21632 loops=1)
|
||
Buckets: 32768 Batches: 1 Memory Usage: 1721kB
|
||
Buffers: shared hit=3224
|
||
-> Seq Scan on cust sc (cost=0.00..3440.32 rows=21632 width=35) (actual time=0.007..10.557 rows=21632 loops=1)
|
||
Buffers: shared hit=3224
|
||
-> Hash (cost=5450.26..5450.26 rows=94326 width=29) (actual time=139.654..139.654 rows=94326 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 6699kB
|
||
Buffers: shared read=4507
|
||
I/O Timings: read=87.770
|
||
-> Seq Scan on icstm cm (cost=0.00..5450.26 rows=94326 width=29) (actual time=1.271..114.520 rows=94326 loops=1)
|
||
Buffers: shared read=4507
|
||
I/O Timings: read=87.770
|
||
-> Hash (cost=6435.85..6435.85 rows=111985 width=20) (actual time=145.806..145.806 rows=111985 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 6768kB
|
||
Buffers: shared read=5316
|
||
I/O Timings: read=82.632
|
||
-> Seq Scan on icstp cp (cost=0.00..6435.85 rows=111985 width=20) (actual time=3.411..114.774 rows=111985 loops=1)
|
||
Buffers: shared read=5316
|
||
I/O Timings: read=82.632
|
||
-> Hash (cost=6315.90..6315.90 rows=106390 width=27) (actual time=223.650..223.650 rows=106390 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7334kB
|
||
Buffers: shared read=5252
|
||
I/O Timings: read=175.960
|
||
-> Seq Scan on icstr cr (cost=0.00..6315.90 rows=106390 width=27) (actual time=1.134..193.496 rows=106390 loops=1)
|
||
Buffers: shared read=5252
|
||
I/O Timings: read=175.960
|
||
-> CTE Scan on agg a (cost=0.00..37859720740.70 rows=1892986037035 width=1520) (actual time=182825.842..192275.884 rows=809487 loops=1)
|
||
Buffers: shared hit=101605 read=90963, local hit=5658755 read=1, temp read=169551 written=302149
|
||
I/O Timings: read=8179.425
|
||
-> CTE Scan on agg a_1 (cost=0.00..43089094668.02 rows=14197395278 width=1520) (actual time=336.760..2113.121 rows=298364 loops=1)
|
||
Filter: ((ocytd OR scytd) AND (version = ANY ('{Actual,Forecast}'::text[])))
|
||
Rows Removed by Filter: 511123
|
||
Buffers: temp read=57847 written=1
|
||
-> CTE Scan on agg a_2 (cost=0.00..43089094668.02 rows=14197395278 width=1520) (actual time=218.764..3615.793 rows=270022 loops=1)
|
||
Filter: ((ocytd OR scytd) AND (version = ANY ('{Actual,Budget}'::text[])))
|
||
Rows Removed by Filter: 539465
|
||
Buffers: temp read=57847
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
<td>3</td>
|
||
<td>3m6s</td>
|
||
<td id="slowest-individual-queries-examples-rank-3">
|
||
<div id="query-d-3-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 16:48:41 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
<div id="query-d-explain-3-3" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Insert%20on%20osm_ppfa_varto_mv%20%20%28cost%3D0.25..10.25%20rows%3D1000%20width%3D1520%29%20%28actual%20time%3D186692.239..186692.239%20rows%3D0%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D1652058%20read%3D262701%20dirtied%3D107023%20written%3D340%2C%20local%20hit%3D5660301%20read%3D4%20dirtied%3D2%2C%20temp%20read%3D384981%20written%3D401910%0A%09%20%20I%2FO%20Timings%3A%20read%3D5890.327%20write%3D3.241%0A%09%20%20-%3E%20%20Function%20Scan%20on%20osm_ppfa_varto%20%20%28cost%3D0.25..10.25%20rows%3D1000%20width%3D1520%29%20%28actual%20time%3D152354.359..164471.890%20rows%3D1378962%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D40911%20read%3D155742%20dirtied%3D65%2C%20local%20hit%3D5660301%20read%3D4%20dirtied%3D2%2C%20temp%20read%3D384981%20written%3D401910%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5888.364%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Insert on osm_ppfa_varto_mv (cost=0.25..10.25 rows=1000 width=1520) (actual time=186692.239..186692.239 rows=0 loops=1)
|
||
Buffers: shared hit=1652058 read=262701 dirtied=107023 written=340, local hit=5660301 read=4 dirtied=2, temp read=384981 written=401910
|
||
I/O Timings: read=5890.327 write=3.241
|
||
-> Function Scan on osm_ppfa_varto (cost=0.25..10.25 rows=1000 width=1520) (actual time=152354.359..164471.890 rows=1378962 loops=1)
|
||
Buffers: shared hit=40911 read=155742 dirtied=65, local hit=5660301 read=4 dirtied=2, temp read=384981 written=401910
|
||
I/O Timings: read=5888.364
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
<td>4</td>
|
||
<td>2m30s</td>
|
||
<td id="slowest-individual-queries-examples-rank-4">
|
||
<div id="query-d-4-4" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 14:09:42 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
<div id="query-d-explain-4-4" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Insert%20on%20osm_ppfa_varto_mv%20%20%28cost%3D0.25..10.25%20rows%3D1000%20width%3D1520%29%20%28actual%20time%3D150711.860..150711.860%20rows%3D0%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D1649817%20read%3D264466%20dirtied%3D106965%20written%3D88%2C%20local%20hit%3D5659525%20read%3D4%20dirtied%3D2%2C%20temp%20read%3D384879%20written%3D401797%0A%09%20%20I%2FO%20Timings%3A%20read%3D5508.081%20write%3D14.599%0A%09%20%20-%3E%20%20Function%20Scan%20on%20osm_ppfa_varto%20%20%28cost%3D0.25..10.25%20rows%3D1000%20width%3D1520%29%20%28actual%20time%3D127165.594..135951.084%20rows%3D1378380%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D39318%20read%3D157546%20dirtied%3D46%2C%20local%20hit%3D5659525%20read%3D4%20dirtied%3D2%2C%20temp%20read%3D384879%20written%3D401797%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5507.907%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Insert on osm_ppfa_varto_mv (cost=0.25..10.25 rows=1000 width=1520) (actual time=150711.860..150711.860 rows=0 loops=1)
|
||
Buffers: shared hit=1649817 read=264466 dirtied=106965 written=88, local hit=5659525 read=4 dirtied=2, temp read=384879 written=401797
|
||
I/O Timings: read=5508.081 write=14.599
|
||
-> Function Scan on osm_ppfa_varto (cost=0.25..10.25 rows=1000 width=1520) (actual time=127165.594..135951.084 rows=1378380 loops=1)
|
||
Buffers: shared hit=39318 read=157546 dirtied=46, local hit=5659525 read=4 dirtied=2, temp read=384879 written=401797
|
||
I/O Timings: read=5507.907
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
<td>5</td>
|
||
<td>2m28s</td>
|
||
<td id="slowest-individual-queries-examples-rank-5">
|
||
<div id="query-d-5-5" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i>PL/pgSQL function rlarp.osm_ppfa_varto() line 69 at RETURN QUERYWITH
|
||
---------------------------------------segments--------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
SEG AS (
|
||
SELECT
|
||
x.GLEC
|
||
,x.SEGM
|
||
FROM
|
||
(
|
||
VALUES
|
||
('1CU','Retail'),
|
||
('1GR','Greenhouse'),
|
||
('1NU','Nursery'),
|
||
('1RE','Retail'),
|
||
('2WI','Greenhouse'),
|
||
('3BM','Other'),
|
||
('3CO','Other'),
|
||
('3PE','Other'),
|
||
('3PP','Other'),
|
||
('4CO','Other'),
|
||
('4RA','Other'),
|
||
('9MI','Other'),
|
||
('9SA','Other'),
|
||
('9TO','Other')
|
||
) X(GLEC, SEGM)
|
||
)
|
||
---------------------------------------branding flag---------------------------------------------------------------------------------------------------------------------------------------------------
|
||
,MG AS (
|
||
SELECT
|
||
X.F1, X.MING, X.GRP
|
||
FROM
|
||
(
|
||
VALUES
|
||
('L','000','Branded'),
|
||
('L','B10','Branded'),
|
||
('L','B11','Branded'),
|
||
('L','B52','Branded'),
|
||
('L','C10','Branded'),
|
||
('L','D12','Branded'),
|
||
('L','M11','Branded'),
|
||
('L','P12','Branded'),
|
||
('L','P13','Branded'),
|
||
('L','S10','Branded'),
|
||
('L','Y10','Branded'),
|
||
('L','Y11','Branded'),
|
||
('L','Y12','Branded'),
|
||
('P','B10','Branded'),
|
||
('P','B11','Branded'),
|
||
('P','B52','Branded')
|
||
) AS X (F1, MING, GRP)
|
||
)
|
||
---------------------------------------directors-------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
,REPC AS (
|
||
SELECT
|
||
LTRIM(RTRIM(C.A9)) RCODE
|
||
,LTRIM(RTRIM(C.A9)) || ' - ' || C.A30 REPP
|
||
,COALESCE(Q.DIR,'Other') DIRECTOR
|
||
FROM
|
||
LGDAT.CODE C
|
||
LEFT OUTER JOIN RLARP.QRH Q ON
|
||
Q.QR = LTRIM(RTRIM(C.A9))
|
||
WHERE
|
||
C.A2 = 'MM'
|
||
)
|
||
--MOLD DESCRIPTIONS
|
||
,MD AS (
|
||
SELECT
|
||
U.MOLD
|
||
,MAX(U.DESCR) DESCR
|
||
FROM
|
||
(
|
||
SELECT
|
||
SUBSTR(M.AVPART,1,8) MOLD
|
||
,MAX(M.AVDES1) DESCR
|
||
FROM
|
||
LGDAT.STKMM M
|
||
WHERE
|
||
LENGTH(M.AVPART) > 8
|
||
AND SUBSTR(M.AVGLED,1,1) <= '2'
|
||
GROUP BY
|
||
SUBSTR(M.AVPART,1,8)
|
||
UNION ALL
|
||
SELECT
|
||
SUBSTR(P.AWPART,1,8) MOLD
|
||
,MAX(P.AWDES1) DESCR
|
||
FROM
|
||
LGDAT.STKMP P
|
||
WHERE
|
||
LENGTH(P.AWPART) > 8
|
||
AND SUBSTR(P.AWGLED,1,1) <= '2'
|
||
GROUP BY
|
||
SUBSTR(P.AWPART,1,8)
|
||
) U
|
||
GROUP BY
|
||
U.MOLD
|
||
)
|
||
----------------------------------------------------sales major codes----------------------------------------------------------------------------------------------------------------------------------
|
||
,SJ AS (
|
||
SELECT * FROM LGDAT.MMSL WHERE COALESCE(BSMNCD,'') = ''
|
||
)
|
||
----------------------------------------------------sales minor codes----------------------------------------------------------------------------------------------------------------------------------
|
||
,SI AS (
|
||
SELECT * FROM LGDAT.MMSL WHERE COALESCE(BSMNCD,'') <> ''
|
||
)
|
||
----------------------------------------------------date ranges per season------------------------------------------------------------------------------------------------------------------------------
|
||
,seas AS(
|
||
SELECT
|
||
ssyr
|
||
,daterange(MIN(sdat),MAX(edat),'[]') dr
|
||
,current_date <@ daterange(MIN(sdat),MAX(edat),'[]') cy
|
||
FROM
|
||
gld
|
||
GROUP BY
|
||
ssyr
|
||
ORDER BY
|
||
ssyr DESC
|
||
)
|
||
,intv AS (
|
||
SELECT current_date - lower(dr) dy from seas where cy = true
|
||
)
|
||
,std AS (
|
||
SELECT
|
||
s.ssyr
|
||
,s.dr
|
||
,s.cy
|
||
,daterange(lower(dr),dy + LOWER(dr),'[]') ytd
|
||
FROM
|
||
seas s
|
||
CROSS JOIN intv
|
||
)
|
||
---------------------------------------union actual and forecast---------------------------------------------------------------------------------------------------------------------------------------
|
||
,UN AS (
|
||
--plan
|
||
SELECT
|
||
'Budget' AS VERSION
|
||
,'Budget' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE as ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(m.avDES1,p.awDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(m.avNWHT,p.awNWHT) * CASE COALESCE(m.avNWUN, p.awNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSMP OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.VERSION = 'b19'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1901'
|
||
OR OSM.ADJ_ORDERDATE >= '2018-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
--ITER
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(m.avDES1,p.awDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
UNION ALL
|
||
--staged forecast
|
||
SELECT
|
||
'Forecast' AS VERSION
|
||
,'Forecast' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(M.AVNWHT,P.AWNWHT) * CASE COALESCE(M.AVNWUN, P.AWNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSMF OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.VERSION = '5p7'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1901'
|
||
OR OSM.ADJ_ORDERDATE >= '2018-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
--ITER
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
UNION ALL
|
||
--actual
|
||
SELECT
|
||
'Actual' AS VERSION
|
||
,'Actual' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(M.AVNWHT,P.AWNWHT) * CASE COALESCE(M.AVNWUN, P.AWNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSM OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
--AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1606'
|
||
OR OSM.ADJ_ORDERDATE >= '2016-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
)
|
||
---------------------------------------aggregate actual and forecast-----------------------------------------------------------------------------------------------------------------------------------
|
||
,AGG AS (
|
||
SELECT
|
||
un.VERSION::text "version"
|
||
,un.ITER::text "iter"
|
||
,un.OSEAS::numeric oseas
|
||
,un.ODATE::date odate
|
||
,un.SSEAS::numeric sseas
|
||
,un.SDATE::date sdate
|
||
,un.RSEAS::numeric rseas
|
||
,un.RDATE::date rdate
|
||
,un.OM::text om
|
||
,un.SM::text sm
|
||
,un.RM::text rm
|
||
,un.OY::text oy
|
||
,(un.odate <@ _ytd)::boolean ocytd --current year to date
|
||
,(un.odate <@ so.ytd)::boolean oytd --year to date recast for prior/forecast periods
|
||
,un.SY::text sy
|
||
,(un.sdate <@ _ytd)::boolean scytd
|
||
,(un.sdate <@ ss.ytd)::boolean sytd
|
||
--had this order been placed yet? (current day prior year is greater than the order date)
|
||
,CASE WHEN (upper(so.ytd) - interval '1 day') >= un.odate THEN
|
||
--was the order open at this time last year? (for orders that were placed by this time, was the ship date greater then the order date)
|
||
CASE WHEN ((un.sdate > (upper(so.ytd) - interval '1 day')) OR (un.SY = 'F'))
|
||
--for orders that were placed and open at this time last year, was the order considered past due? (current date prior year > request date)
|
||
THEN
|
||
CASE WHEN (upper(so.ytd) - interval '1 day') > un.rdate
|
||
THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE 'Shipped'
|
||
END
|
||
ELSE 'Not Yet Placed'
|
||
END status_py
|
||
,un.RY::text ry
|
||
,un.PLNT::text plnt
|
||
,un.ACCOUNT::text bill_group
|
||
,(un.BILL_CUST || ' - ' || RTRIM(BC.BVNAME))::text bill_cust
|
||
,bc.bvctry bill_ctry
|
||
,bc.bvprcd bill_prov
|
||
,un.SHIPGRP::text ship_group
|
||
,(un.SHIP_CUST || ' - ' || RTRIM(SC.BVNAME))::text ship_cust
|
||
,sc.bvctry ship_ctry
|
||
,sc.bvprcd ship_prov
|
||
,un.CHAN::text chan
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAIL
|
||
ELSE un.CHAN
|
||
END::text mod_chan
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAILSUB
|
||
ELSE ''
|
||
END::text mod_chansub
|
||
,un.PROMO::text promo
|
||
,un.MAJG||COALESCE(' - '||BQDES,'')::text majg
|
||
,un.MING||COALESCE(' - '||BRDES,'')::text ming
|
||
,un.MAJS||COALESCE(' - '||SJ.BSDES1,'')::text majs
|
||
,un.MINS||COALESCE(' - '||SI.BSDES1,'')::text mins
|
||
,un.PART::text part
|
||
,un.PART_DESCR::text part_descr
|
||
,un.PART_FAMILY::text part_family
|
||
,un.PART_GROUP::text part_group
|
||
,un.BRANDING::text branding
|
||
,un.SEGM::text segm
|
||
,COALESCE(REPC.REPP,un.QUOTA_REP)::text quota_rep
|
||
,COALESCE(REPC.DIRECTOR,un.QUOTA_REP)::text director
|
||
,SUM(un.QTY)::numeric qty
|
||
,SUM(un.SALES)::numeric sales
|
||
,SUM(un.STDCOST)::numeric stdcost
|
||
,SUM(un.QTY * COALESCE(cm.cgstcs, cp.chstcs, cr.y0stcs) * un.c_rate)::numeric stdcost_cur
|
||
,SUM(un.POUNDS)::numeric pounds
|
||
,(un.VERSION||'-'||un.SY)::text flag_s
|
||
,(un.VERSION||'-'||un.OY)::text flag_o
|
||
,CASE
|
||
WHEN un.calc_status IN ('BACKORDER','OPEN') THEN
|
||
CASE
|
||
WHEN un.rdate < current_date THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE un.calc_status
|
||
END::text status
|
||
,(SUBSTR(UN.PART,9,3)||'-'||un.BRANDING)::text "options"
|
||
,'Grand Total'::text grandtotal
|
||
FROM
|
||
UN
|
||
LEFT OUTER JOIN REPC ON
|
||
REPC.RCODE = un.QUOTA_REP
|
||
LEFT OUTER JOIN SI ON
|
||
SI.BSMJCD = UN.MAJS
|
||
AND SI.BSMNCD = UN.MINS
|
||
LEFT OUTER JOIN SJ ON
|
||
SJ.BSMJCD = UN.MAJS
|
||
LEFT OUTER JOIN LGDAT.MAJG ON
|
||
BQGRP = un.MAJG
|
||
LEFT OUTER JOIN LGDAT.MMGP ON
|
||
BRMGRP = un.MING
|
||
AND BRGRP = un.MAJG
|
||
LEFT OUTER JOIN LGDAT.CUST BC ON
|
||
BC.BVCUST = UN.BILL_CUST
|
||
LEFT OUTER JOIN LGDAT.CUST SC ON
|
||
SC.BVCUST = UN.BILL_CUST
|
||
LEFT OUTER JOIN LGDAT.ICSTM cm ON
|
||
cm.cgpart = un.part
|
||
AND cm.cgplnt = un.plnt
|
||
LEFT OUTER JOIN LGDAT.ICSTP cp ON
|
||
cp.chpart = un.part
|
||
AND cp.chplnt = un.plnt
|
||
LEFT OUTER JOIN LGDAT.ICSTR cr ON
|
||
cr.y0part = un.part
|
||
AND cr.y0plnt = un.plnt
|
||
LEFT OUTER JOIN STD so ON
|
||
so.ssyr = un.oseas
|
||
LEFT OUTER JOIN STD ss ON
|
||
ss.ssyr = un.sseas
|
||
GROUP BY
|
||
un.VERSION::text
|
||
,un.ITER::text
|
||
,un.OSEAS::numeric
|
||
,un.ODATE::date
|
||
,un.SSEAS::numeric
|
||
,un.SDATE::date
|
||
,un.RSEAS::numeric
|
||
,un.RDATE::date
|
||
,un.OM::text
|
||
,un.SM::text
|
||
,un.RM::text
|
||
,un.OY::text
|
||
--current year to date
|
||
,(un.odate <@ _ytd)::boolean
|
||
--year to date recast for prior/forecast periods
|
||
,(un.odate <@ so.ytd)::boolean
|
||
,un.SY::text
|
||
,(un.sdate <@ _ytd)::boolean
|
||
,(un.sdate <@ ss.ytd)::boolean
|
||
,CASE WHEN (upper(so.ytd) - interval '1 day') >= un.odate THEN
|
||
--was the order open at this time last year? (for orders that were placed by this time, was the ship date greater then the order date)
|
||
CASE WHEN ((un.sdate > (upper(so.ytd) - interval '1 day')) OR (un.SY = 'F'))
|
||
--for orders that were placed and open at this time last year, was the order considered past due? (current date prior year > request date)
|
||
THEN
|
||
CASE WHEN (upper(so.ytd) - interval '1 day') > un.rdate
|
||
THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE 'Shipped'
|
||
END
|
||
ELSE 'Not Yet Placed'
|
||
END
|
||
,un.RY::text
|
||
,un.PLNT::text
|
||
,un.ACCOUNT::text
|
||
,(un.BILL_CUST || ' - ' || RTRIM(BC.BVNAME))::text
|
||
,bc.bvctry
|
||
,bc.bvprcd
|
||
,un.SHIPGRP::text
|
||
,(un.SHIP_CUST || ' - ' || RTRIM(SC.BVNAME))::text
|
||
,sc.bvctry
|
||
,sc.bvprcd
|
||
,un.CHAN::text
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAIL
|
||
ELSE un.CHAN
|
||
END::text
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAILSUB
|
||
ELSE ''
|
||
END::text
|
||
,un.PROMO::text
|
||
,un.MAJG||COALESCE(' - '||BQDES,'')::text
|
||
,un.MING||COALESCE(' - '||BRDES,'')::text
|
||
,un.MAJS||COALESCE(' - '||SJ.BSDES1,'')::text
|
||
,un.MINS||COALESCE(' - '||SI.BSDES1,'')::text
|
||
,un.PART::text
|
||
,un.PART_DESCR::text
|
||
,un.PART_FAMILY::text
|
||
,un.PART_GROUP::text
|
||
,un.BRANDING::text
|
||
,un.SEGM::text
|
||
,COALESCE(REPC.REPP,un.QUOTA_REP)::text
|
||
,COALESCE(REPC.DIRECTOR,un.QUOTA_REP)::text
|
||
,(un.VERSION||'-'||un.SY)::text
|
||
,(un.VERSION||'-'||un.OY)::text
|
||
,CASE
|
||
WHEN un.calc_status IN ('BACKORDER','OPEN') THEN
|
||
CASE
|
||
WHEN un.rdate < current_date THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE un.calc_status
|
||
END::text
|
||
,(SUBSTR(UN.PART,9,3)||'-'||un.BRANDING)::text
|
||
,'Grand Total'::text
|
||
)
|
||
SELECT
|
||
a.version
|
||
,a.iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,a.qty
|
||
,a.sales
|
||
,a.stdcost
|
||
,a.stdcost_cur
|
||
,a.pounds
|
||
,a.flag_s
|
||
,a.flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
agg a
|
||
UNION ALL
|
||
SELECT
|
||
'Var to Fcst' as version
|
||
,'Var to Fcst' as iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.QTY ELSE -a.QTY END::numeric QTY
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.SALES ELSE -a.SALES END::numeric SALES
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST ELSE -a.STDCOST END::numeric STDCOST
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST_CUR ELSE -a.STDCOST_CUR END::numeric STDCOST_CUR
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.POUNDS ELSE -a.POUNDS END::numeric POUNDS
|
||
,'Var to Fcst'||'-'||a.scytd flag_s
|
||
,'Var to Fcst'||'-'||a.ocytd flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
AGG a
|
||
WHERE
|
||
a.VERSION IN ('Actual','Forecast')
|
||
AND (a.ocytd OR a.scytd)
|
||
|
||
UNION ALL
|
||
SELECT
|
||
'Var to Bdgt' as version
|
||
,'Var to Bdgt' as iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.QTY ELSE -a.QTY END::numeric QTY
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.SALES ELSE -a.SALES END::numeric SALES
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST ELSE -a.STDCOST END::numeric STDCOST
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST_CUR ELSE -a.STDCOST_CUR END::numeric STDCOST_CUR
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.POUNDS ELSE -a.POUNDS END::numeric POUNDS
|
||
,'Var to Bdgt'||'-'||a.scytd flag_s
|
||
,'Var to Bdgt'||'-'||a.ocytd flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
AGG a
|
||
WHERE
|
||
a.VERSION IN ('Actual','Budget')
|
||
AND (a.ocytd OR a.scytd)
|
||
;</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 16:48:07 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
<div id="query-d-explain-5-5" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Append%20%20%28cost%3D4309162605406.33..4437117814888.42%20rows%3D1835682510591%20width%3D1520%29%20%28actual%20time%3D130217.190..147603.781%20rows%3D1378962%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D37003%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660295%20read%3D1%2C%20temp%20read%3D285365%20written%3D302292%0A%09%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20CTE%20seg%0A%09%20%20%20%20-%3E%20%20Values%20Scan%20on%20%22%2AVALUES%2A%22%20%20%28cost%3D0.00..0.18%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.003..0.006%20rows%3D14%20loops%3D1%29%0A%09%20%20CTE%20mg%0A%09%20%20%20%20-%3E%20%20Values%20Scan%20on%20%22%2AVALUES%2A_1%22%20%20%28cost%3D0.00..0.20%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.003..0.011%20rows%3D16%20loops%3D1%29%0A%09%20%20CTE%20repc%0A%09%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11.47..123.28%20rows%3D120%20width%3D96%29%20%28actual%20time%3D7.419..15.669%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28ltrim%28rtrim%28c.a9%29%29%20%3D%20q.qr%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D25%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D14.644%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20code%20c%20%20%28cost%3D9.21..118.86%20rows%3D120%20width%3D25%29%20%28actual%20time%3D7.351..15.256%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28a2%20%3D%20%27MM%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D21%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D25%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D14.644%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20pk_code%20%20%28cost%3D0.00..9.18%20rows%3D120%20width%3D0%29%20%28actual%20time%3D6.872..6.872%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28a2%20%3D%20%27MM%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D6.737%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.56..1.56%20rows%3D56%20width%3D12%29%20%28actual%20time%3D0.044..0.044%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2011kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20qrh%20q%20%20%28cost%3D0.00..1.56%20rows%3D56%20width%3D12%29%20%28actual%20time%3D0.016..0.024%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20CTE%20md%0A%09%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D11936.00..11938.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D109.370..109.781%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20%28substr%28m.avpart%2C%201%2C%208%29%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Append%20%20%28cost%3D8137.31..11870.54%20rows%3D13091%20width%3D64%29%20%28actual%20time%3D98.760..108.518%20rows%3D3375%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D8137.31..8249.94%20rows%3D9010%20width%3D64%29%20%28actual%20time%3D98.758..99.319%20rows%3D3285%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20substr%28m.avpart%2C%201%2C%208%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m%20%20%28cost%3D0.00..8092.26%20rows%3D9010%20width%3D59%29%20%28actual%20time%3D0.016..53.186%20rows%3D76269%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28length%28avpart%29%20%3E%208%29%20AND%20%28substr%28avgled%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%204728%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D3373.23..3424.24%20rows%3D4081%20width%3D64%29%20%28actual%20time%3D8.960..8.993%20rows%3D90%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20substr%28p.awpart%2C%201%2C%208%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p%20%20%28cost%3D0.00..3352.82%20rows%3D4081%20width%3D52%29%20%28actual%20time%3D0.460..8.898%20rows%3D142%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28length%28awpart%29%20%3E%208%29%20AND%20%28substr%28awgled%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2036557%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20CTE%20sj%0A%09%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmsl%20%20%28cost%3D0.00..1.84%20rows%3D1%20width%3D22%29%20%28actual%20time%3D0.005..0.011%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28COALESCE%28bsmncd%2C%20%27%27%3A%3Atext%29%20%3D%20%27%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2056%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20CTE%20si%0A%09%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmsl%20mmsl_1%20%20%28cost%3D0.00..1.84%20rows%3D66%20width%3D22%29%20%28actual%20time%3D1.513..1.521%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28COALESCE%28bsmncd%2C%20%27%27%3A%3Atext%29%20%3C%3E%20%27%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2011%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1.503%0A%09%20%20CTE%20seas%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D10.22..16.31%20rows%3D174%20width%3D41%29%20%28actual%20time%3D0.067..0.097%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20gld.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D10.22..10.65%20rows%3D174%20width%3D16%29%20%28actual%20time%3D0.052..0.059%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20gld.ssyr%20DESC%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2033kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D16%29%20%28actual%20time%3D0.010..0.030%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20CTE%20intv%0A%09%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seas%20%20%28cost%3D0.00..4.13%20rows%3D87%20width%3D4%29%20%28actual%20time%3D0.078..0.079%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20cy%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2014%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20CTE%20std%0A%09%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D0.00..457.62%20rows%3D15138%20width%3D73%29%20%28actual%20time%3D0.081..0.114%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20intv%20%20%28cost%3D0.00..1.74%20rows%3D87%20width%3D4%29%20%28actual%20time%3D0.078..0.079%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seas%20s%20%20%28cost%3D0.00..3.48%20rows%3D174%20width%3D41%29%20%28actual%20time%3D0.000..0.027%20rows%3D15%20loops%3D1%29%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D50003223.80..244355794.95%20rows%3D315685415%20width%3D697%29%20%28actual%20time%3D24427.622..55248.745%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D33769%20read%3D137238%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5418.990%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D50003223.80..63823292.65%20rows%3D83757993%20width%3D701%29%20%28actual%20time%3D24427.621..26180.035%20rows%3D212793%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20osm.adj_orderdate%2C%20sd.ssyr%2C%20%28LEAST%28GREATEST%28osm.adj_shipdate%2C%20sd.sdat%29%2C%20sd.edat%29%29%2C%20rd.ssyr%2C%20osm.adj_requestdate%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm.plnt%2C%20osm.account%2C%20osm.bill_cust%2C%20osm.shipgrp%2C%20osm.ship_cust%2C%20osm.chan%2C%20l.retail%2C%20l.retailsub%2C%20osm.promo%2C%20osm.majg%2C%20osm.ming%2C%20osm.majs%2C%20osm.mins%2C%20osm.part%2C%20%28%28%28osm.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_1.avdes1%2C%20p_1.awdes1%29%29%29%29%2C%20%28%28%28f.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f.descr%29%29%2C%20%28%28%28substr%28osm.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md.descr%29%29%2C%20%28COALESCE%28mg.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm.quota_rep%2C%20%28CASE%20osm.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm.calc_status%20END%29%2C%20osm.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9106%20read%3D59430%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2239.382%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D50003223.80..50212618.79%20rows%3D83757993%20width%3D594%29%20%28actual%20time%3D24427.582..24584.713%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20osm.adj_orderdate%2C%20sd.ssyr%2C%20%28LEAST%28GREATEST%28osm.adj_shipdate%2C%20sd.sdat%29%2C%20sd.edat%29%29%2C%20rd.ssyr%2C%20osm.adj_requestdate%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm.plnt%2C%20osm.account%2C%20osm.bill_cust%2C%20osm.shipgrp%2C%20osm.ship_cust%2C%20osm.chan%2C%20l.retail%2C%20l.retailsub%2C%20osm.promo%2C%20osm.majg%2C%20osm.ming%2C%20osm.majs%2C%20osm.mins%2C%20osm.part%2C%20%28%28%28osm.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_1.avdes1%2C%20p_1.awdes1%29%29%29%29%2C%20%28%28%28f.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f.descr%29%29%2C%20%28%28%28substr%28osm.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md.descr%29%29%2C%20%28COALESCE%28mg.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm.quota_rep%2C%20%28CASE%20osm.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm.calc_status%20END%29%2C%20osm.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20352782kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9106%20read%3D59430%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2239.382%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..16650773.71%20rows%3D83757993%20width%3D594%29%20%28actual%20time%3D594.631..11450.131%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm.bill_class%20%3D%20l.bill%29%20AND%20%28osm.ship_class%20%3D%20l.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9103%20read%3D59430%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2239.382%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..10583311.94%20rows%3D83757993%20width%3D583%29%20%28actual%20time%3D594.565..10651.699%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm.part%2C%201%2C%208%29%20%3D%20md.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9101%20read%3D59430%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2239.382%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..5348430.88%20rows%3D83757993%20width%3D551%29%20%28actual%20time%3D483.328..10064.882%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.part%20%3D%20p_1.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D45%20read%3D59430%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2239.382%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..5125106.33%20rows%3D83757993%20width%3D527%29%20%28actual%20time%3D372.833..9705.810%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D43%20read%3D56824%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2158.329%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..337594.45%20rows%3D4332310%20width%3D455%29%20%28actual%20time%3D372.826..7154.118%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D43%20read%3D56824%2C%20local%20hit%3D1281897%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2158.329%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..89964.52%20rows%3D224085%20width%3D383%29%20%28actual%20time%3D372.784..4519.221%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.part%20%3D%20m_1.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D43%20read%3D56824%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2158.311%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..81103.81%20rows%3D224085%20width%3D348%29%20%28actual%20time%3D1.380..3884.310%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm.part%2C%201%2C%203%29%20%3D%20f.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D41%20read%3D50378%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1843.013%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..77718.84%20rows%3D224085%20width%3D324%29%20%28actual%20time%3D1.257..3476.551%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm.part%2C%2016%2C%201%29%20%3D%20mg.f1%29%20AND%20%28osm.ming%20%3D%20mg.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32%20read%3D50378%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1843.013%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..75750.09%20rows%3D224085%20width%3D292%29%20%28actual%20time%3D1.228..3039.988%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.glec%20%3D%20seg.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32%20read%3D50378%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1843.013%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..72674.81%20rows%3D224085%20width%3D264%29%20%28actual%20time%3D1.210..2805.095%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32%20read%3D50378%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1843.013%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmp%20osm%20%20%28cost%3D0.00..69587.73%20rows%3D224085%20width%3D184%29%20%28actual%20time%3D1.134..2545.900%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28version%20%3D%20%27b19%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271901%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272018-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2057051%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32%20read%3D50378%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1843.013%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.058..0.058%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.010..0.033%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.013..0.013%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.005..0.011%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.018..0.018%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.003..0.015%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.118..0.118%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.017..0.054%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D371.346..371.346%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D6446%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D315.299%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_1%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D1.087..344.662%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D6446%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D315.299%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D641010%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1281895%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.018%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D641010%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1281894%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D110.296..110.296%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D2606%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D81.053%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_1%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D0.977..97.487%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D2606%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D81.053%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D111.215..111.215%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D109.374..110.690%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.051..0.051%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.012..0.026%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D33445583.00..42801951.72%20rows%3D56705265%20width%3D699%29%20%28actual%20time%3D16460.682..17590.319%20rows%3D250477%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20osm_1.adj_orderdate%2C%20sd_1.ssyr%2C%20%28LEAST%28GREATEST%28osm_1.adj_shipdate%2C%20sd_1.sdat%29%2C%20sd_1.edat%29%29%2C%20rd_1.ssyr%2C%20osm_1.adj_requestdate%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_1.plnt%2C%20osm_1.account%2C%20osm_1.bill_cust%2C%20osm_1.shipgrp%2C%20osm_1.ship_cust%2C%20osm_1.chan%2C%20l_1.retail%2C%20l_1.retailsub%2C%20osm_1.promo%2C%20osm_1.majg%2C%20osm_1.ming%2C%20osm_1.majs%2C%20osm_1.mins%2C%20osm_1.part%2C%20%28%28%28osm_1.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_2.avdes1%2C%20p_2.awdes1%29%29%29%29%2C%20%28%28%28f_1.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_1.descr%29%29%2C%20%28%28%28substr%28osm_1.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_1.descr%29%29%2C%20%28COALESCE%28mg_1.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_1.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_1.quota_rep%2C%20%28CASE%20osm_1.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_1.calc_status%20END%29%2C%20osm_1.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9067%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D33445583.00..33587346.16%20rows%3D56705265%20width%3D595%29%20%28actual%20time%3D16460.650..16563.021%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20osm_1.adj_orderdate%2C%20sd_1.ssyr%2C%20%28LEAST%28GREATEST%28osm_1.adj_shipdate%2C%20sd_1.sdat%29%2C%20sd_1.edat%29%29%2C%20rd_1.ssyr%2C%20osm_1.adj_requestdate%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_1.plnt%2C%20osm_1.account%2C%20osm_1.bill_cust%2C%20osm_1.shipgrp%2C%20osm_1.ship_cust%2C%20osm_1.chan%2C%20l_1.retail%2C%20l_1.retailsub%2C%20osm_1.promo%2C%20osm_1.majg%2C%20osm_1.ming%2C%20osm_1.majs%2C%20osm_1.mins%2C%20osm_1.part%2C%20%28%28%28osm_1.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_2.avdes1%2C%20p_2.awdes1%29%29%29%29%2C%20%28%28%28f_1.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_1.descr%29%29%2C%20%28%28%28substr%28osm_1.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_1.descr%29%29%2C%20%28COALESCE%28mg_1.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_1.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_1.quota_rep%2C%20%28CASE%20osm_1.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_1.calc_status%20END%29%2C%20osm_1.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20222052kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9067%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..11025086.80%20rows%3D56705265%20width%3D595%29%20%28actual%20time%3D61.424..7759.480%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm_1.bill_class%20%3D%20l_1.bill%29%20AND%20%28osm_1.ship_class%20%3D%20l_1.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9067%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..6967724.27%20rows%3D55168846%20width%3D584%29%20%28actual%20time%3D61.349..7305.324%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_1.part%2C%201%2C%208%29%20%3D%20md_1.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9065%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..3519664.90%20rows%3D55168846%20width%3D552%29%20%28actual%20time%3D60.509..6993.509%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.part%20%3D%20p_2.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9065%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..3371395.52%20rows%3D55168846%20width%3D528%29%20%28actual%20time%3D43.514..6803.629%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6457%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..217901.28%20rows%3D2853561%20width%3D456%29%20%28actual%20time%3D43.508..5300.883%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6457%20read%3D26345%2C%20local%20hit%3D813630%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..54789.49%20rows%3D147598%20width%3D384%29%20%28actual%20time%3D43.490..3729.138%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.part%20%3D%20m_2.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6457%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..46129.57%20rows%3D147598%20width%3D349%29%20%28actual%20time%3D5.697..3467.540%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_1.part%2C%201%2C%203%29%20%3D%20f_1.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..43891.91%20rows%3D147598%20width%3D325%29%20%28actual%20time%3D5.585..3211.131%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm_1.part%2C%2016%2C%201%29%20%3D%20mg_1.f1%29%20AND%20%28osm_1.ming%20%3D%20mg_1.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..42594.49%20rows%3D147598%20width%3D293%29%20%28actual%20time%3D5.575..2952.469%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.glec%20%3D%20seg_1.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..40564.57%20rows%3D147598%20width%3D265%29%20%28actual%20time%3D5.564..2812.752%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.fspr%20%3D%20sd_1.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmf%20osm_1%20%20%28cost%3D0.00..38529.18%20rows%3D147598%20width%3D185%29%20%28actual%20time%3D5.391..2669.916%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28version%20%3D%20%275p7%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271901%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272018-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.158..0.158%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.080..0.111%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.006..0.006%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20seg_1%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.002..0.004%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.005..0.005%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20mg_1%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.001..0.002%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.108..0.108%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f_1%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.010..0.047%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D37.738..37.738%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_2%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D0.007..22.454%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od_1%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813628%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd_1%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813628%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D16.826..16.826%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_2%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D0.007..9.949%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.825..0.825%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20md_1%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.002..0.290%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.045..0.045%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l_1%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.008..0.022%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D104083613.45..132995269.35%20rows%3D175222157%20width%3D695%29%20%28actual%20time%3D10242.201..11403.381%20rows%3D349322%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_2.ssyr%2C%20osm_2.adj_orderdate%2C%20sd_2.ssyr%2C%20%28LEAST%28GREATEST%28osm_2.adj_shipdate%2C%20sd_2.sdat%29%2C%20sd_2.edat%29%29%2C%20rd_2.ssyr%2C%20osm_2.adj_requestdate%2C%20%28COALESCE%28od_2.cm%2C%20sd_2.cm%29%29%2C%20%28COALESCE%28sd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_2.cy%2C%20sd_2.cy%29%29%2C%20%28COALESCE%28sd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_2.plnt%2C%20osm_2.account%2C%20osm_2.bill_cust%2C%20osm_2.shipgrp%2C%20osm_2.ship_cust%2C%20osm_2.chan%2C%20l_2.retail%2C%20l_2.retailsub%2C%20osm_2.promo%2C%20osm_2.majg%2C%20osm_2.ming%2C%20osm_2.majs%2C%20osm_2.mins%2C%20osm_2.part%2C%20%28%28%28osm_2.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_3.avdes1%2C%20p_3.awdes1%29%29%29%29%2C%20%28%28%28f_2.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_2.descr%29%29%2C%20%28%28%28substr%28osm_2.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_2.descr%29%29%2C%20%28COALESCE%28mg_2.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_2.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_2.quota_rep%2C%20%28CASE%20osm_2.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_2.calc_status%20END%29%2C%20osm_2.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D15596%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D1469244%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D104083613.45..104521668.84%20rows%3D175222157%20width%3D584%29%20%28actual%20time%3D10242.147..10337.649%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_2.ssyr%2C%20osm_2.adj_orderdate%2C%20sd_2.ssyr%2C%20%28LEAST%28GREATEST%28osm_2.adj_shipdate%2C%20sd_2.sdat%29%2C%20sd_2.edat%29%29%2C%20rd_2.ssyr%2C%20osm_2.adj_requestdate%2C%20%28COALESCE%28od_2.cm%2C%20sd_2.cm%29%29%2C%20%28COALESCE%28sd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_2.cy%2C%20sd_2.cy%29%29%2C%20%28COALESCE%28sd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_2.plnt%2C%20osm_2.account%2C%20osm_2.bill_cust%2C%20osm_2.shipgrp%2C%20osm_2.ship_cust%2C%20osm_2.chan%2C%20l_2.retail%2C%20l_2.retailsub%2C%20osm_2.promo%2C%20osm_2.majg%2C%20osm_2.ming%2C%20osm_2.majs%2C%20osm_2.mins%2C%20osm_2.part%2C%20%28%28%28osm_2.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_3.avdes1%2C%20p_3.awdes1%29%29%29%29%2C%20%28%28%28f_2.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_2.descr%29%29%2C%20%28%28%28substr%28osm_2.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_2.descr%29%29%2C%20%28COALESCE%28mg_2.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_2.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_2.quota_rep%2C%20%28CASE%20osm_2.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_2.calc_status%20END%29%2C%20osm_2.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20201821kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D15596%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D1469244%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..34574966.31%20rows%3D175222157%20width%3D584%29%20%28actual%20time%3D54.045..5505.369%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm_2.bill_class%20%3D%20l_2.bill%29%20AND%20%28osm_2.ship_class%20%3D%20l_2.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D15596%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D1469244%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..22053510.74%20rows%3D175222157%20width%3D572%29%20%28actual%20time%3D53.991..5099.469%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_2.part%2C%201%2C%208%29%20%3D%20md_2.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D15594%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D1469244%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..11102119.43%20rows%3D175222157%20width%3D540%29%20%28actual%20time%3D53.191..4854.338%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.part%20%3D%20p_3.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D15594%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D1469244%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..10638673.75%20rows%3D175222157%20width%3D516%29%20%28actual%20time%3D37.296..4707.080%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D12986%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D1469244%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..623511.84%20rows%3D9063215%20width%3D444%29%20%28actual%20time%3D37.291..3491.892%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D12986%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D734624%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..105486.21%20rows%3D468787%20width%3D372%29%20%28actual%20time%3D37.263..2223.924%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.part%20%3D%20m_3.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D12986%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..95983.12%20rows%3D468787%20width%3D337%29%20%28actual%20time%3D0.270..2039.720%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_2.part%2C%201%2C%203%29%20%3D%20f_2.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6538%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..88927.62%20rows%3D468787%20width%3D313%29%20%28actual%20time%3D0.129..1823.936%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm_2.part%2C%2016%2C%201%29%20%3D%20mg_2.f1%29%20AND%20%28osm_2.ming%20%3D%20mg_2.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6529%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..84811.93%20rows%3D468787%20width%3D281%29%20%28actual%20time%3D0.119..1623.505%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.glec%20%3D%20seg_2.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6529%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..78421.13%20rows%3D468787%20width%3D253%29%20%28actual%20time%3D0.111..1504.191%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.fspr%20%3D%20sd_2.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6529%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osm%20osm_2%20%20%28cost%3D0.00..72340.04%20rows%3D468787%20width%3D173%29%20%28actual%20time%3D0.052..1372.311%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271606%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272016-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20417392%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6529%20read%3D51463%20dirtied%3D4%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.053..0.053%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_2%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.007..0.029%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.006..0.006%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20seg_2%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.002..0.003%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.006..0.006%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20mg_2%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.001..0.002%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.136..0.136%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f_2%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.008..0.047%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D36.937..36.937%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_3%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D0.006..22.525%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od_2%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D367596%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_2.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_2.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D734622%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd_2%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D367596%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_2.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm_2.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D734620%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D15.858..15.858%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_3%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D0.007..9.906%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.788..0.788%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20md_2%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.002..0.291%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.043..0.043%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l_2%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.007..0.021%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20CTE%20agg%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D3811565832720.57..4308918237067.99%20rows%3D1808554197627%20width%3D1404%29%20%28actual%20time%3D130217.184..134929.396%20rows%3D809850%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20un.version%2C%20un.iter%2C%20%28%28un.oseas%29%3A%3Anumeric%29%2C%20un.odate%2C%20%28%28un.sseas%29%3A%3Anumeric%29%2C%20un.sdate%2C%20%28%28un.rseas%29%3A%3Anumeric%29%2C%20un.rdate%2C%20un.om%2C%20un.sm%2C%20un.rm%2C%20un.oy%2C%20%28%28un.odate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.odate%20%3C%40%20so.ytd%29%29%2C%20un.sy%2C%20%28%28un.sdate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.sdate%20%3C%40%20ss.ytd%29%29%2C%20%28CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%3D%20un.odate%29%20THEN%20CASE%20WHEN%20%28%28un.sdate%20%3E%20%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%29%20OR%20%28un.sy%20%3D%20%27F%27%3A%3Atext%29%29%20THEN%20CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%20un.rdate%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20%27Shipped%27%3A%3Atext%20END%20ELSE%20%27Not%20Yet%20Placed%27%3A%3Atext%20END%29%2C%20un.ry%2C%20un.plnt%2C%20un.account%2C%20%28%28%28un.bill_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28bc.bvname%29%29%29%2C%20bc.bvctry%2C%20bc.bvprcd%2C%20un.shipgrp%2C%20%28%28%28un.ship_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28sc.bvname%29%29%29%2C%20sc.bvctry%2C%20sc.bvprcd%2C%20un.chan%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retail%20ELSE%20un.chan%20END%29%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retailsub%20ELSE%20%27%27%3A%3Atext%20END%29%2C%20un.promo%2C%20%28%28un.majg%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20majg.bqdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.ming%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20mmgp.brdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.majs%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20sj.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.mins%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20si.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20un.part%2C%20un.part_descr%2C%20un.part_family%2C%20un.part_group%2C%20un.branding%2C%20un.segm%2C%20%28COALESCE%28repc.repp%2C%20un.quota_rep%29%29%2C%20%28COALESCE%28repc.director%2C%20un.quota_rep%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.sy%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.oy%29%29%2C%20%28CASE%20WHEN%20%28un.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20THEN%20CASE%20WHEN%20%28un.rdate%20%3C%20CURRENT_DATE%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20un.calc_status%20END%29%2C%20%28%28%28substr%28un.part%2C%209%2C%203%29%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.branding%29%29%2C%20%27Grand%20Total%27%3A%3Atext%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D37003%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660295%20read%3D1%2C%20temp%20read%3D169623%20written%3D244421%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D3811565832720.57..3816087218214.63%20rows%3D1808554197627%20width%3D1346%29%20%28actual%20time%3D130217.139..131170.872%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.version%2C%20un.iter%2C%20%28%28un.oseas%29%3A%3Anumeric%29%2C%20un.odate%2C%20%28%28un.sseas%29%3A%3Anumeric%29%2C%20un.sdate%2C%20%28%28un.rseas%29%3A%3Anumeric%29%2C%20un.rdate%2C%20un.om%2C%20un.sm%2C%20un.rm%2C%20un.oy%2C%20%28%28un.odate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.odate%20%3C%40%20so.ytd%29%29%2C%20un.sy%2C%20%28%28un.sdate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.sdate%20%3C%40%20ss.ytd%29%29%2C%20%28CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%3D%20un.odate%29%20THEN%20CASE%20WHEN%20%28%28un.sdate%20%3E%20%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%29%20OR%20%28un.sy%20%3D%20%27F%27%3A%3Atext%29%29%20THEN%20CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%20un.rdate%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20%27Shipped%27%3A%3Atext%20END%20ELSE%20%27Not%20Yet%20Placed%27%3A%3Atext%20END%29%2C%20un.ry%2C%20un.plnt%2C%20un.account%2C%20%28%28%28un.bill_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28bc.bvname%29%29%29%2C%20bc.bvctry%2C%20bc.bvprcd%2C%20un.shipgrp%2C%20%28%28%28un.ship_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28sc.bvname%29%29%29%2C%20sc.bvctry%2C%20sc.bvprcd%2C%20un.chan%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retail%20ELSE%20un.chan%20END%29%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retailsub%20ELSE%20%27%27%3A%3Atext%20END%29%2C%20un.promo%2C%20%28%28un.majg%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20majg.bqdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.ming%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20mmgp.brdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.majs%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20sj.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.mins%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20si.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20un.part%2C%20un.part_descr%2C%20un.part_family%2C%20un.part_group%2C%20un.branding%2C%20un.segm%2C%20%28COALESCE%28repc.repp%2C%20un.quota_rep%29%29%2C%20%28COALESCE%28repc.director%2C%20un.quota_rep%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.sy%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.oy%29%29%2C%20%28CASE%20WHEN%20%28un.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20THEN%20CASE%20WHEN%20%28un.rdate%20%3C%20CURRENT_DATE%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20un.calc_status%20END%29%2C%20%28%28%28substr%28un.part%2C%209%2C%203%29%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.branding%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20476048kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D37003%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660295%20read%3D1%2C%20temp%20read%3D169623%20written%3D244421%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Merge%20Right%20Join%20%20%28cost%3D32058721370.12..253666346227.77%20rows%3D1808554197627%20width%3D1346%29%20%28actual%20time%3D79725.467..85819.348%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Merge%20Cond%3A%20%28ss.ssyr%20%3D%20un.sseas%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660295%20read%3D1%2C%20temp%20read%3D110117%20written%3D184914%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D1353.78..1391.63%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.123..0.131%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20ss.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20std%20ss%20%20%28cost%3D0.00..302.76%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.082..0.119%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D32058720016.34..32178191161.64%20rows%3D23894229061%20width%3D1300%29%20%28actual%20time%3D79718.116..82479.293%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%2C%20temp%20read%3D110117%20written%3D184914%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D32058720016.34..32118455588.99%20rows%3D23894229061%20width%3D1300%29%20%28actual%20time%3D79718.091..80948.227%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.sseas%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20446032kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%2C%20temp%20read%3D110117%20written%3D146652%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Merge%20Right%20Join%20%20%28cost%3D466287095.31..825489820.45%20rows%3D23894229061%20width%3D1300%29%20%28actual%20time%3D67066.711..71526.574%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Merge%20Cond%3A%20%28so.ssyr%20%3D%20un.oseas%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%2C%20temp%20read%3D54363%20written%3D90897%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D1353.78..1391.63%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.004..0.008%20rows%3D13%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20so.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20std%20so%20%20%28cost%3D0.00..302.76%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.000..0.002%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D466285741.52..467864168.60%20rows%3D315685415%20width%3D1268%29%20%28actual%20time%3D67055.329..70663.573%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%2C%20temp%20read%3D54363%20written%3D90897%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D466285741.52..467074955.06%20rows%3D315685415%20width%3D1268%29%20%28actual%20time%3D67050.634..68022.803%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.oseas%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20434904kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%2C%20temp%20read%3D54363%20written%3D54364%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30326.40..72123629.81%20rows%3D315685415%20width%3D1268%29%20%28actual%20time%3D24989.685..60611.536%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cr.y0part%29%20AND%20%28un.plnt%20%3D%20cr.y0plnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D22414.65..53910516.25%20rows%3D315685415%20width%3D1262%29%20%28actual%20time%3D24857.162..60071.090%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cp.chpart%29%20AND%20%28un.plnt%20%3D%20cp.chplnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D150313%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5704.175%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D14299.03..34905098.97%20rows%3D315685415%20width%3D1256%29%20%28actual%20time%3D24690.716..59482.739%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cm.cgpart%29%20AND%20%28un.plnt%20%3D%20cm.cgplnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D144997%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5598.963%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D7433.88..32509062.54%20rows%3D315685415%20width%3D1250%29%20%28actual%20time%3D24542.324..58815.424%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.bill_cust%20%3D%20sc.bvcust%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D140490%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5507.001%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D3723.16..28164677.36%20rows%3D315685415%20width%3D1223%29%20%28actual%20time%3D24531.977..58466.240%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.bill_cust%20%3D%20bc.bvcust%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D33771%20read%3D140490%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5507.001%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D12.44..23820292.19%20rows%3D315685415%20width%3D1196%29%20%28actual%20time%3D24445.824..58031.724%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.ming%20%3D%20mmgp.brmgrp%29%20AND%20%28un.majg%20%3D%20mmgp.brgrp%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D33771%20read%3D137266%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5435.817%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D7.51..14337334.16%20rows%3D315685415%20width%3D1186%29%20%28actual%20time%3D24445.412..57697.186%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.majg%20%3D%20majg.bqgrp%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D33771%20read%3D137265%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5435.479%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.24..12964101.34%20rows%3D315685415%20width%3D1176%29%20%28actual%20time%3D24445.051..57415.327%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.majs%20%3D%20sj.bsmjcd%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D33771%20read%3D137264%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5435.137%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.21..11764496.73%20rows%3D315685415%20width%3D1144%29%20%28actual%20time%3D24445.027..57139.761%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.majs%20%3D%20si.bsmjcd%29%20AND%20%28un.mins%20%3D%20si.bsmncd%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D33770%20read%3D137264%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5435.137%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D3.90..9391645.00%20rows%3D315685415%20width%3D1112%29%20%28actual%20time%3D24443.462..56809.926%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.quota_rep%20%3D%20repc.rcode%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D33770%20read%3D137263%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5433.634%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..6313708.30%20rows%3D315685415%20width%3D1048%29%20%28actual%20time%3D24427.626..56309.934%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D33769%20read%3D137238%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5418.990%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2.40..2.40%20rows%3D120%20width%3D96%29%20%28actual%20time%3D15.823..15.823%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2017kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D25%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D14.644%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20repc%20%20%28cost%3D0.00..2.40%20rows%3D120%20width%3D96%29%20%28actual%20time%3D7.422..15.771%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D25%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D14.644%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.32..1.32%20rows%3D66%20width%3D96%29%20%28actual%20time%3D1.556..1.556%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2011kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1.503%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20si%20%20%28cost%3D0.00..1.32%20rows%3D66%20width%3D96%29%20%28actual%20time%3D1.516..1.541%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1.503%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.02..0.02%20rows%3D1%20width%3D64%29%20%28actual%20time%3D0.017..0.017%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20sj%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D64%29%20%28actual%20time%3D0.006..0.014%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.12..1.12%20rows%3D12%20width%3D14%29%20%28actual%20time%3D0.357..0.357%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.342%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20majg%20%20%28cost%3D0.00..1.12%20rows%3D12%20width%3D14%29%20%28actual%20time%3D0.349..0.351%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.342%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2.57..2.57%20rows%3D157%20width%3D18%29%20%28actual%20time%3D0.404..0.404%20rows%3D157%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.338%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmgp%20%20%28cost%3D0.00..2.57%20rows%3D157%20width%3D18%29%20%28actual%20time%3D0.350..0.369%20rows%3D157%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.338%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3440.32..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D86.128..86.128%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2032768%20%20Batches%3A%201%20%20Memory%20Usage%3A%201721kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D71.184%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20cust%20bc%20%20%28cost%3D0.00..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D1.719..80.386%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D71.184%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3440.32..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D10.320..10.320%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2032768%20%20Batches%3A%201%20%20Memory%20Usage%3A%201721kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20cust%20sc%20%20%28cost%3D0.00..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D0.007..6.682%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D5450.26..5450.26%20rows%3D94326%20width%3D29%29%20%28actual%20time%3D148.322..148.322%20rows%3D94326%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%206699kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4507%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D91.962%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstm%20cm%20%20%28cost%3D0.00..5450.26%20rows%3D94326%20width%3D29%29%20%28actual%20time%3D1.674..121.636%20rows%3D94326%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4507%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D91.962%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D6435.85..6435.85%20rows%3D111985%20width%3D20%29%20%28actual%20time%3D166.382..166.382%20rows%3D111985%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%206768kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5316%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D105.211%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstp%20cp%20%20%28cost%3D0.00..6435.85%20rows%3D111985%20width%3D20%29%20%28actual%20time%3D2.877..136.300%20rows%3D111985%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5316%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D105.211%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D6315.90..6315.90%20rows%3D106390%20width%3D27%29%20%28actual%20time%3D132.044..132.044%20rows%3D106390%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207334kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5252%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D92.401%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstr%20cr%20%20%28cost%3D0.00..6315.90%20rows%3D106390%20width%3D27%29%20%28actual%20time%3D1.095..107.748%20rows%3D106390%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5252%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D92.401%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a%20%20%28cost%3D0.00..36171083952.54%20rows%3D1808554197627%20width%3D1520%29%20%28actual%20time%3D130217.189..139003.919%20rows%3D809850%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D37003%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660295%20read%3D1%2C%20temp%20read%3D169623%20written%3D302291%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a_1%20%20%28cost%3D0.00..41167214923.48%20rows%3D13564156482%20width%3D1520%29%20%28actual%20time%3D313.638..4190.172%20rows%3D298727%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Filter%3A%20%28%28ocytd%20OR%20scytd%29%20AND%20%28version%20%3D%20ANY%20%28%27%7BActual%2CForecast%7D%27%3A%3Atext%5B%5D%29%29%29%0A%09%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20511123%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20temp%20read%3D57871%20written%3D1%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a_2%20%20%28cost%3D0.00..41167214923.48%20rows%3D13564156482%20width%3D1520%29%20%28actual%20time%3D77.645..4240.941%20rows%3D270385%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Filter%3A%20%28%28ocytd%20OR%20scytd%29%20AND%20%28version%20%3D%20ANY%20%28%27%7BActual%2CBudget%7D%27%3A%3Atext%5B%5D%29%29%29%0A%09%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20539465%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20temp%20read%3D57871%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Append (cost=4309162605406.33..4437117814888.42 rows=1835682510591 width=1520) (actual time=130217.190..147603.781 rows=1378962 loops=1)
|
||
Buffers: shared hit=37003 read=155565 dirtied=4, local hit=5660295 read=1, temp read=285365 written=302292
|
||
I/O Timings: read=5796.575
|
||
CTE seg
|
||
-> Values Scan on "*VALUES*" (cost=0.00..0.18 rows=14 width=64) (actual time=0.003..0.006 rows=14 loops=1)
|
||
CTE mg
|
||
-> Values Scan on "*VALUES*_1" (cost=0.00..0.20 rows=16 width=96) (actual time=0.003..0.011 rows=16 loops=1)
|
||
CTE repc
|
||
-> Hash Left Join (cost=11.47..123.28 rows=120 width=96) (actual time=7.419..15.669 rows=120 loops=1)
|
||
Hash Cond: (ltrim(rtrim(c.a9)) = q.qr)
|
||
Buffers: shared hit=1 read=25
|
||
I/O Timings: read=14.644
|
||
-> Bitmap Heap Scan on code c (cost=9.21..118.86 rows=120 width=25) (actual time=7.351..15.256 rows=120 loops=1)
|
||
Recheck Cond: (a2 = 'MM'::text)
|
||
Heap Blocks: exact=21
|
||
Buffers: shared read=25
|
||
I/O Timings: read=14.644
|
||
-> Bitmap Index Scan on pk_code (cost=0.00..9.18 rows=120 width=0) (actual time=6.872..6.872 rows=120 loops=1)
|
||
Index Cond: (a2 = 'MM'::text)
|
||
Buffers: shared read=4
|
||
I/O Timings: read=6.737
|
||
-> Hash (cost=1.56..1.56 rows=56 width=12) (actual time=0.044..0.044 rows=56 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 11kB
|
||
Buffers: shared hit=1
|
||
-> Seq Scan on qrh q (cost=0.00..1.56 rows=56 width=12) (actual time=0.016..0.024 rows=56 loops=1)
|
||
Buffers: shared hit=1
|
||
CTE md
|
||
-> HashAggregate (cost=11936.00..11938.00 rows=200 width=64) (actual time=109.370..109.781 rows=3368 loops=1)
|
||
Group Key: (substr(m.avpart, 1, 8))
|
||
Buffers: shared hit=9056
|
||
-> Append (cost=8137.31..11870.54 rows=13091 width=64) (actual time=98.760..108.518 rows=3375 loops=1)
|
||
Buffers: shared hit=9056
|
||
-> HashAggregate (cost=8137.31..8249.94 rows=9010 width=64) (actual time=98.758..99.319 rows=3285 loops=1)
|
||
Group Key: substr(m.avpart, 1, 8)
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m (cost=0.00..8092.26 rows=9010 width=59) (actual time=0.016..53.186 rows=76269 loops=1)
|
||
Filter: ((length(avpart) > 8) AND (substr(avgled, 1, 1) <= '2'::text))
|
||
Rows Removed by Filter: 4728
|
||
Buffers: shared hit=6448
|
||
-> HashAggregate (cost=3373.23..3424.24 rows=4081 width=64) (actual time=8.960..8.993 rows=90 loops=1)
|
||
Group Key: substr(p.awpart, 1, 8)
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p (cost=0.00..3352.82 rows=4081 width=52) (actual time=0.460..8.898 rows=142 loops=1)
|
||
Filter: ((length(awpart) > 8) AND (substr(awgled, 1, 1) <= '2'::text))
|
||
Rows Removed by Filter: 36557
|
||
Buffers: shared hit=2608
|
||
CTE sj
|
||
-> Seq Scan on mmsl (cost=0.00..1.84 rows=1 width=22) (actual time=0.005..0.011 rows=11 loops=1)
|
||
Filter: (COALESCE(bsmncd, ''::text) = ''::text)
|
||
Rows Removed by Filter: 56
|
||
Buffers: shared hit=1
|
||
CTE si
|
||
-> Seq Scan on mmsl mmsl_1 (cost=0.00..1.84 rows=66 width=22) (actual time=1.513..1.521 rows=56 loops=1)
|
||
Filter: (COALESCE(bsmncd, ''::text) <> ''::text)
|
||
Rows Removed by Filter: 11
|
||
Buffers: shared read=1
|
||
I/O Timings: read=1.503
|
||
CTE seas
|
||
-> GroupAggregate (cost=10.22..16.31 rows=174 width=41) (actual time=0.067..0.097 rows=15 loops=1)
|
||
Group Key: gld.ssyr
|
||
Buffers: local hit=2
|
||
-> Sort (cost=10.22..10.65 rows=174 width=16) (actual time=0.052..0.059 rows=174 loops=1)
|
||
Sort Key: gld.ssyr DESC
|
||
Sort Method: quicksort Memory: 33kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld (cost=0.00..3.74 rows=174 width=16) (actual time=0.010..0.030 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
CTE intv
|
||
-> CTE Scan on seas (cost=0.00..4.13 rows=87 width=4) (actual time=0.078..0.079 rows=1 loops=1)
|
||
Filter: cy
|
||
Rows Removed by Filter: 14
|
||
Buffers: local hit=2
|
||
CTE std
|
||
-> Nested Loop (cost=0.00..457.62 rows=15138 width=73) (actual time=0.081..0.114 rows=15 loops=1)
|
||
Buffers: local hit=2
|
||
-> CTE Scan on intv (cost=0.00..1.74 rows=87 width=4) (actual time=0.078..0.079 rows=1 loops=1)
|
||
Buffers: local hit=2
|
||
-> CTE Scan on seas s (cost=0.00..3.48 rows=174 width=41) (actual time=0.000..0.027 rows=15 loops=1)
|
||
CTE un
|
||
-> Append (cost=50003223.80..244355794.95 rows=315685415 width=697) (actual time=24427.622..55248.745 rows=812592 loops=1)
|
||
Buffers: shared hit=33769 read=137238 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5418.990
|
||
-> GroupAggregate (cost=50003223.80..63823292.65 rows=83757993 width=701) (actual time=24427.621..26180.035 rows=212793 loops=1)
|
||
Group Key: od.ssyr, osm.adj_orderdate, sd.ssyr, (LEAST(GREATEST(osm.adj_shipdate, sd.sdat), sd.edat)), rd.ssyr, osm.adj_requestdate, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(rd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text)), (COALESCE(rd.cy, 'F'::text)), osm.plnt, osm.account, osm.bill_cust, osm.shipgrp, osm.ship_cust, osm.chan, l.retail, l.retailsub, osm.promo, osm.majg, osm.ming, osm.majs, osm.mins, osm.part, (((osm.part || ' - '::text) || rtrim(COALESCE(m_1.avdes1, p_1.awdes1)))), (((f.f3 || ' - '::text) || f.descr)), (((substr(osm.part, 1, 8) || ' - '::text) || md.descr)), (COALESCE(mg.grp, 'Unbranded'::text)), (COALESCE(seg.segm, 'Other'::text)), osm.quota_rep, (CASE osm.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm.calc_status END), osm.c_rate
|
||
Buffers: shared hit=9106 read=59430, local hit=2563791 read=1
|
||
I/O Timings: read=2239.382
|
||
-> Sort (cost=50003223.80..50212618.79 rows=83757993 width=594) (actual time=24427.582..24584.713 rows=641010 loops=1)
|
||
Sort Key: od.ssyr, osm.adj_orderdate, sd.ssyr, (LEAST(GREATEST(osm.adj_shipdate, sd.sdat), sd.edat)), rd.ssyr, osm.adj_requestdate, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(rd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text)), (COALESCE(rd.cy, 'F'::text)), osm.plnt, osm.account, osm.bill_cust, osm.shipgrp, osm.ship_cust, osm.chan, l.retail, l.retailsub, osm.promo, osm.majg, osm.ming, osm.majs, osm.mins, osm.part, (((osm.part || ' - '::text) || rtrim(COALESCE(m_1.avdes1, p_1.awdes1)))), (((f.f3 || ' - '::text) || f.descr)), (((substr(osm.part, 1, 8) || ' - '::text) || md.descr)), (COALESCE(mg.grp, 'Unbranded'::text)), (COALESCE(seg.segm, 'Other'::text)), osm.quota_rep, (CASE osm.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm.calc_status END), osm.c_rate
|
||
Sort Method: quicksort Memory: 352782kB
|
||
Buffers: shared hit=9106 read=59430, local hit=2563791 read=1
|
||
I/O Timings: read=2239.382
|
||
-> Hash Left Join (cost=11749.79..16650773.71 rows=83757993 width=594) (actual time=594.631..11450.131 rows=641010 loops=1)
|
||
Hash Cond: ((osm.bill_class = l.bill) AND (osm.ship_class = l.ship))
|
||
Buffers: shared hit=9103 read=59430, local hit=2563791 read=1
|
||
I/O Timings: read=2239.382
|
||
-> Hash Left Join (cost=11744.32..10583311.94 rows=83757993 width=583) (actual time=594.565..10651.699 rows=641010 loops=1)
|
||
Hash Cond: (substr(osm.part, 1, 8) = md.mold)
|
||
Buffers: shared hit=9101 read=59430, local hit=2563791 read=1
|
||
I/O Timings: read=2239.382
|
||
-> Hash Left Join (cost=11737.82..5348430.88 rows=83757993 width=551) (actual time=483.328..10064.882 rows=641010 loops=1)
|
||
Hash Cond: (osm.part = p_1.awpart)
|
||
Buffers: shared hit=45 read=59430, local hit=2563791 read=1
|
||
I/O Timings: read=2239.382
|
||
-> Nested Loop Left Join (cost=8303.37..5125106.33 rows=83757993 width=527) (actual time=372.833..9705.810 rows=641010 loops=1)
|
||
Buffers: shared hit=43 read=56824, local hit=2563791 read=1
|
||
I/O Timings: read=2158.329
|
||
-> Nested Loop Left Join (cost=8303.23..337594.45 rows=4332310 width=455) (actual time=372.826..7154.118 rows=641010 loops=1)
|
||
Buffers: shared hit=43 read=56824, local hit=1281897 read=1
|
||
I/O Timings: read=2158.329
|
||
-> Hash Left Join (cost=8303.08..89964.52 rows=224085 width=383) (actual time=372.784..4519.221 rows=641010 loops=1)
|
||
Hash Cond: (osm.part = m_1.avpart)
|
||
Buffers: shared hit=43 read=56824, local hit=2
|
||
I/O Timings: read=2158.311
|
||
-> Hash Left Join (cost=30.62..81103.81 rows=224085 width=348) (actual time=1.380..3884.310 rows=641010 loops=1)
|
||
Hash Cond: (substr(osm.part, 1, 3) = f.f3)
|
||
Buffers: shared hit=41 read=50378, local hit=2
|
||
I/O Timings: read=1843.013
|
||
-> Hash Left Join (cost=6.93..77718.84 rows=224085 width=324) (actual time=1.257..3476.551 rows=641010 loops=1)
|
||
Hash Cond: ((substr(osm.part, 16, 1) = mg.f1) AND (osm.ming = mg.ming))
|
||
Buffers: shared hit=32 read=50378, local hit=2
|
||
I/O Timings: read=1843.013
|
||
-> Hash Left Join (cost=6.37..75750.09 rows=224085 width=292) (actual time=1.228..3039.988 rows=641010 loops=1)
|
||
Hash Cond: (osm.glec = seg.glec)
|
||
Buffers: shared hit=32 read=50378, local hit=2
|
||
I/O Timings: read=1843.013
|
||
-> Hash Left Join (cost=5.92..72674.81 rows=224085 width=264) (actual time=1.210..2805.095 rows=641010 loops=1)
|
||
Hash Cond: (osm.fspr = sd.fspr)
|
||
Buffers: shared hit=32 read=50378, local hit=2
|
||
I/O Timings: read=1843.013
|
||
-> Seq Scan on osmp osm (cost=0.00..69587.73 rows=224085 width=184) (actual time=1.134..2545.900 rows=641010 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND (version = 'b19'::text) AND (substr(glec, 1, 1) <= '2'::text) AND ((fspr >= '1901'::text) OR (adj_orderdate >= '2018-06-01'::date)))
|
||
Rows Removed by Filter: 57051
|
||
Buffers: shared hit=32 read=50378
|
||
I/O Timings: read=1843.013
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.058..0.058 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd (cost=0.00..3.74 rows=174 width=112) (actual time=0.010..0.033 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.013..0.013 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg (cost=0.00..0.28 rows=14 width=64) (actual time=0.005..0.011 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.018..0.018 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg (cost=0.00..0.32 rows=16 width=96) (actual time=0.003..0.015 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=0.118..0.118 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared hit=9
|
||
-> Seq Scan on family f (cost=0.00..15.53 rows=653 width=24) (actual time=0.017..0.054 rows=653 loops=1)
|
||
Buffers: shared hit=9
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=371.346..371.346 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=2 read=6446
|
||
I/O Timings: read=315.299
|
||
-> Seq Scan on stkmm m_1 (cost=0.00..7258.87 rows=81087 width=54) (actual time=1.087..344.662 rows=80997 loops=1)
|
||
Buffers: shared hit=2 read=6446
|
||
I/O Timings: read=315.299
|
||
-> Index Scan using se_dat on gld od (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=641010)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=1281895 read=1
|
||
I/O Timings: read=0.018
|
||
-> Index Scan using se_dat on gld rd (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=641010)
|
||
Index Cond: ((osm.adj_requestdate >= sdat) AND (osm.adj_requestdate <= edat))
|
||
Buffers: local hit=1281894
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=110.296..110.296 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2 read=2606
|
||
I/O Timings: read=81.053
|
||
-> Seq Scan on stkmp p_1 (cost=0.00..2975.31 rows=36731 width=33) (actual time=0.977..97.487 rows=36699 loops=1)
|
||
Buffers: shared hit=2 read=2606
|
||
I/O Timings: read=81.053
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=111.215..111.215 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
Buffers: shared hit=9056
|
||
-> CTE Scan on md (cost=0.00..4.00 rows=200 width=64) (actual time=109.374..110.690 rows=3368 loops=1)
|
||
Buffers: shared hit=9056
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.051..0.051 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared hit=2
|
||
-> Seq Scan on ffchnl l (cost=0.00..3.39 rows=139 width=25) (actual time=0.012..0.026 rows=139 loops=1)
|
||
Buffers: shared hit=2
|
||
-> GroupAggregate (cost=33445583.00..42801951.72 rows=56705265 width=699) (actual time=16460.682..17590.319 rows=250477 loops=1)
|
||
Group Key: od_1.ssyr, osm_1.adj_orderdate, sd_1.ssyr, (LEAST(GREATEST(osm_1.adj_shipdate, sd_1.sdat), sd_1.edat)), rd_1.ssyr, osm_1.adj_requestdate, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(rd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text)), (COALESCE(rd_1.cy, 'F'::text)), osm_1.plnt, osm_1.account, osm_1.bill_cust, osm_1.shipgrp, osm_1.ship_cust, osm_1.chan, l_1.retail, l_1.retailsub, osm_1.promo, osm_1.majg, osm_1.ming, osm_1.majs, osm_1.mins, osm_1.part, (((osm_1.part || ' - '::text) || rtrim(COALESCE(m_2.avdes1, p_2.awdes1)))), (((f_1.f3 || ' - '::text) || f_1.descr)), (((substr(osm_1.part, 1, 8) || ' - '::text) || md_1.descr)), (COALESCE(mg_1.grp, 'Unbranded'::text)), (COALESCE(seg_1.segm, 'Other'::text)), osm_1.quota_rep, (CASE osm_1.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_1.calc_status END), osm_1.c_rate
|
||
Buffers: shared hit=9067 read=26345, local hit=1627258
|
||
I/O Timings: read=2275.461
|
||
-> Sort (cost=33445583.00..33587346.16 rows=56705265 width=595) (actual time=16460.650..16563.021 rows=406814 loops=1)
|
||
Sort Key: od_1.ssyr, osm_1.adj_orderdate, sd_1.ssyr, (LEAST(GREATEST(osm_1.adj_shipdate, sd_1.sdat), sd_1.edat)), rd_1.ssyr, osm_1.adj_requestdate, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(rd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text)), (COALESCE(rd_1.cy, 'F'::text)), osm_1.plnt, osm_1.account, osm_1.bill_cust, osm_1.shipgrp, osm_1.ship_cust, osm_1.chan, l_1.retail, l_1.retailsub, osm_1.promo, osm_1.majg, osm_1.ming, osm_1.majs, osm_1.mins, osm_1.part, (((osm_1.part || ' - '::text) || rtrim(COALESCE(m_2.avdes1, p_2.awdes1)))), (((f_1.f3 || ' - '::text) || f_1.descr)), (((substr(osm_1.part, 1, 8) || ' - '::text) || md_1.descr)), (COALESCE(mg_1.grp, 'Unbranded'::text)), (COALESCE(seg_1.segm, 'Other'::text)), osm_1.quota_rep, (CASE osm_1.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_1.calc_status END), osm_1.c_rate
|
||
Sort Method: quicksort Memory: 222052kB
|
||
Buffers: shared hit=9067 read=26345, local hit=1627258
|
||
I/O Timings: read=2275.461
|
||
-> Hash Left Join (cost=11749.79..11025086.80 rows=56705265 width=595) (actual time=61.424..7759.480 rows=406814 loops=1)
|
||
Hash Cond: ((osm_1.bill_class = l_1.bill) AND (osm_1.ship_class = l_1.ship))
|
||
Buffers: shared hit=9067 read=26345, local hit=1627258
|
||
I/O Timings: read=2275.461
|
||
-> Hash Left Join (cost=11744.32..6967724.27 rows=55168846 width=584) (actual time=61.349..7305.324 rows=406814 loops=1)
|
||
Hash Cond: (substr(osm_1.part, 1, 8) = md_1.mold)
|
||
Buffers: shared hit=9065 read=26345, local hit=1627258
|
||
I/O Timings: read=2275.461
|
||
-> Hash Left Join (cost=11737.82..3519664.90 rows=55168846 width=552) (actual time=60.509..6993.509 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.part = p_2.awpart)
|
||
Buffers: shared hit=9065 read=26345, local hit=1627258
|
||
I/O Timings: read=2275.461
|
||
-> Nested Loop Left Join (cost=8303.37..3371395.52 rows=55168846 width=528) (actual time=43.514..6803.629 rows=406814 loops=1)
|
||
Buffers: shared hit=6457 read=26345, local hit=1627258
|
||
I/O Timings: read=2275.461
|
||
-> Nested Loop Left Join (cost=8303.23..217901.28 rows=2853561 width=456) (actual time=43.508..5300.883 rows=406814 loops=1)
|
||
Buffers: shared hit=6457 read=26345, local hit=813630
|
||
I/O Timings: read=2275.461
|
||
-> Hash Left Join (cost=8303.08..54789.49 rows=147598 width=384) (actual time=43.490..3729.138 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.part = m_2.avpart)
|
||
Buffers: shared hit=6457 read=26345, local hit=2
|
||
I/O Timings: read=2275.461
|
||
-> Hash Left Join (cost=30.62..46129.57 rows=147598 width=349) (actual time=5.697..3467.540 rows=406814 loops=1)
|
||
Hash Cond: (substr(osm_1.part, 1, 3) = f_1.f3)
|
||
Buffers: shared hit=9 read=26345, local hit=2
|
||
I/O Timings: read=2275.461
|
||
-> Hash Left Join (cost=6.93..43891.91 rows=147598 width=325) (actual time=5.585..3211.131 rows=406814 loops=1)
|
||
Hash Cond: ((substr(osm_1.part, 16, 1) = mg_1.f1) AND (osm_1.ming = mg_1.ming))
|
||
Buffers: shared read=26345, local hit=2
|
||
I/O Timings: read=2275.461
|
||
-> Hash Left Join (cost=6.37..42594.49 rows=147598 width=293) (actual time=5.575..2952.469 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.glec = seg_1.glec)
|
||
Buffers: shared read=26345, local hit=2
|
||
I/O Timings: read=2275.461
|
||
-> Hash Left Join (cost=5.92..40564.57 rows=147598 width=265) (actual time=5.564..2812.752 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.fspr = sd_1.fspr)
|
||
Buffers: shared read=26345, local hit=2
|
||
I/O Timings: read=2275.461
|
||
-> Seq Scan on osmf osm_1 (cost=0.00..38529.18 rows=147598 width=185) (actual time=5.391..2669.916 rows=406814 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND (version = '5p7'::text) AND (substr(glec, 1, 1) <= '2'::text) AND ((fspr >= '1901'::text) OR (adj_orderdate >= '2018-06-01'::date)))
|
||
Rows Removed by Filter: 358
|
||
Buffers: shared read=26345
|
||
I/O Timings: read=2275.461
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.158..0.158 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_1 (cost=0.00..3.74 rows=174 width=112) (actual time=0.080..0.111 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.006..0.006 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg seg_1 (cost=0.00..0.28 rows=14 width=64) (actual time=0.002..0.004 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.005..0.005 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg mg_1 (cost=0.00..0.32 rows=16 width=96) (actual time=0.001..0.002 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=0.108..0.108 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared hit=9
|
||
-> Seq Scan on family f_1 (cost=0.00..15.53 rows=653 width=24) (actual time=0.010..0.047 rows=653 loops=1)
|
||
Buffers: shared hit=9
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=37.738..37.738 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m_2 (cost=0.00..7258.87 rows=81087 width=54) (actual time=0.007..22.454 rows=80997 loops=1)
|
||
Buffers: shared hit=6448
|
||
-> Index Scan using se_dat on gld od_1 (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=406814)
|
||
Index Cond: ((osm_1.adj_orderdate >= sdat) AND (osm_1.adj_orderdate <= edat))
|
||
Buffers: local hit=813628
|
||
-> Index Scan using se_dat on gld rd_1 (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=406814)
|
||
Index Cond: ((osm_1.adj_requestdate >= sdat) AND (osm_1.adj_requestdate <= edat))
|
||
Buffers: local hit=813628
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=16.826..16.826 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p_2 (cost=0.00..2975.31 rows=36731 width=33) (actual time=0.007..9.949 rows=36699 loops=1)
|
||
Buffers: shared hit=2608
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=0.825..0.825 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
-> CTE Scan on md md_1 (cost=0.00..4.00 rows=200 width=64) (actual time=0.002..0.290 rows=3368 loops=1)
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.045..0.045 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared hit=2
|
||
-> Seq Scan on ffchnl l_1 (cost=0.00..3.39 rows=139 width=25) (actual time=0.008..0.022 rows=139 loops=1)
|
||
Buffers: shared hit=2
|
||
-> GroupAggregate (cost=104083613.45..132995269.35 rows=175222157 width=695) (actual time=10242.201..11403.381 rows=349322 loops=1)
|
||
Group Key: od_2.ssyr, osm_2.adj_orderdate, sd_2.ssyr, (LEAST(GREATEST(osm_2.adj_shipdate, sd_2.sdat), sd_2.edat)), rd_2.ssyr, osm_2.adj_requestdate, (COALESCE(od_2.cm, sd_2.cm)), (COALESCE(sd_2.cm, 'F'::text)), (COALESCE(rd_2.cm, 'F'::text)), (COALESCE(od_2.cy, sd_2.cy)), (COALESCE(sd_2.cy, 'F'::text)), (COALESCE(rd_2.cy, 'F'::text)), osm_2.plnt, osm_2.account, osm_2.bill_cust, osm_2.shipgrp, osm_2.ship_cust, osm_2.chan, l_2.retail, l_2.retailsub, osm_2.promo, osm_2.majg, osm_2.ming, osm_2.majs, osm_2.mins, osm_2.part, (((osm_2.part || ' - '::text) || rtrim(COALESCE(m_3.avdes1, p_3.awdes1)))), (((f_2.f3 || ' - '::text) || f_2.descr)), (((substr(osm_2.part, 1, 8) || ' - '::text) || md_2.descr)), (COALESCE(mg_2.grp, 'Unbranded'::text)), (COALESCE(seg_2.segm, 'Other'::text)), osm_2.quota_rep, (CASE osm_2.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_2.calc_status END), osm_2.c_rate
|
||
Buffers: shared hit=15596 read=51463 dirtied=4, local hit=1469244
|
||
I/O Timings: read=904.147
|
||
-> Sort (cost=104083613.45..104521668.84 rows=175222157 width=584) (actual time=10242.147..10337.649 rows=367596 loops=1)
|
||
Sort Key: od_2.ssyr, osm_2.adj_orderdate, sd_2.ssyr, (LEAST(GREATEST(osm_2.adj_shipdate, sd_2.sdat), sd_2.edat)), rd_2.ssyr, osm_2.adj_requestdate, (COALESCE(od_2.cm, sd_2.cm)), (COALESCE(sd_2.cm, 'F'::text)), (COALESCE(rd_2.cm, 'F'::text)), (COALESCE(od_2.cy, sd_2.cy)), (COALESCE(sd_2.cy, 'F'::text)), (COALESCE(rd_2.cy, 'F'::text)), osm_2.plnt, osm_2.account, osm_2.bill_cust, osm_2.shipgrp, osm_2.ship_cust, osm_2.chan, l_2.retail, l_2.retailsub, osm_2.promo, osm_2.majg, osm_2.ming, osm_2.majs, osm_2.mins, osm_2.part, (((osm_2.part || ' - '::text) || rtrim(COALESCE(m_3.avdes1, p_3.awdes1)))), (((f_2.f3 || ' - '::text) || f_2.descr)), (((substr(osm_2.part, 1, 8) || ' - '::text) || md_2.descr)), (COALESCE(mg_2.grp, 'Unbranded'::text)), (COALESCE(seg_2.segm, 'Other'::text)), osm_2.quota_rep, (CASE osm_2.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_2.calc_status END), osm_2.c_rate
|
||
Sort Method: quicksort Memory: 201821kB
|
||
Buffers: shared hit=15596 read=51463 dirtied=4, local hit=1469244
|
||
I/O Timings: read=904.147
|
||
-> Hash Left Join (cost=11749.79..34574966.31 rows=175222157 width=584) (actual time=54.045..5505.369 rows=367596 loops=1)
|
||
Hash Cond: ((osm_2.bill_class = l_2.bill) AND (osm_2.ship_class = l_2.ship))
|
||
Buffers: shared hit=15596 read=51463 dirtied=4, local hit=1469244
|
||
I/O Timings: read=904.147
|
||
-> Hash Left Join (cost=11744.32..22053510.74 rows=175222157 width=572) (actual time=53.991..5099.469 rows=367596 loops=1)
|
||
Hash Cond: (substr(osm_2.part, 1, 8) = md_2.mold)
|
||
Buffers: shared hit=15594 read=51463 dirtied=4, local hit=1469244
|
||
I/O Timings: read=904.147
|
||
-> Hash Left Join (cost=11737.82..11102119.43 rows=175222157 width=540) (actual time=53.191..4854.338 rows=367596 loops=1)
|
||
Hash Cond: (osm_2.part = p_3.awpart)
|
||
Buffers: shared hit=15594 read=51463 dirtied=4, local hit=1469244
|
||
I/O Timings: read=904.147
|
||
-> Nested Loop Left Join (cost=8303.37..10638673.75 rows=175222157 width=516) (actual time=37.296..4707.080 rows=367596 loops=1)
|
||
Buffers: shared hit=12986 read=51463 dirtied=4, local hit=1469244
|
||
I/O Timings: read=904.147
|
||
-> Nested Loop Left Join (cost=8303.23..623511.84 rows=9063215 width=444) (actual time=37.291..3491.892 rows=367596 loops=1)
|
||
Buffers: shared hit=12986 read=51463 dirtied=4, local hit=734624
|
||
I/O Timings: read=904.147
|
||
-> Hash Left Join (cost=8303.08..105486.21 rows=468787 width=372) (actual time=37.263..2223.924 rows=367596 loops=1)
|
||
Hash Cond: (osm_2.part = m_3.avpart)
|
||
Buffers: shared hit=12986 read=51463 dirtied=4, local hit=2
|
||
I/O Timings: read=904.147
|
||
-> Hash Left Join (cost=30.62..95983.12 rows=468787 width=337) (actual time=0.270..2039.720 rows=367596 loops=1)
|
||
Hash Cond: (substr(osm_2.part, 1, 3) = f_2.f3)
|
||
Buffers: shared hit=6538 read=51463 dirtied=4, local hit=2
|
||
I/O Timings: read=904.147
|
||
-> Hash Left Join (cost=6.93..88927.62 rows=468787 width=313) (actual time=0.129..1823.936 rows=367596 loops=1)
|
||
Hash Cond: ((substr(osm_2.part, 16, 1) = mg_2.f1) AND (osm_2.ming = mg_2.ming))
|
||
Buffers: shared hit=6529 read=51463 dirtied=4, local hit=2
|
||
I/O Timings: read=904.147
|
||
-> Hash Left Join (cost=6.37..84811.93 rows=468787 width=281) (actual time=0.119..1623.505 rows=367596 loops=1)
|
||
Hash Cond: (osm_2.glec = seg_2.glec)
|
||
Buffers: shared hit=6529 read=51463 dirtied=4, local hit=2
|
||
I/O Timings: read=904.147
|
||
-> Hash Left Join (cost=5.92..78421.13 rows=468787 width=253) (actual time=0.111..1504.191 rows=367596 loops=1)
|
||
Hash Cond: (osm_2.fspr = sd_2.fspr)
|
||
Buffers: shared hit=6529 read=51463 dirtied=4, local hit=2
|
||
I/O Timings: read=904.147
|
||
-> Seq Scan on osm osm_2 (cost=0.00..72340.04 rows=468787 width=173) (actual time=0.052..1372.311 rows=367596 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND ((fspr >= '1606'::text) OR (adj_orderdate >= '2016-06-01'::date)))
|
||
Rows Removed by Filter: 417392
|
||
Buffers: shared hit=6529 read=51463 dirtied=4
|
||
I/O Timings: read=904.147
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.053..0.053 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_2 (cost=0.00..3.74 rows=174 width=112) (actual time=0.007..0.029 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.006..0.006 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg seg_2 (cost=0.00..0.28 rows=14 width=64) (actual time=0.002..0.003 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.006..0.006 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg mg_2 (cost=0.00..0.32 rows=16 width=96) (actual time=0.001..0.002 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=0.136..0.136 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared hit=9
|
||
-> Seq Scan on family f_2 (cost=0.00..15.53 rows=653 width=24) (actual time=0.008..0.047 rows=653 loops=1)
|
||
Buffers: shared hit=9
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=36.937..36.937 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m_3 (cost=0.00..7258.87 rows=81087 width=54) (actual time=0.006..22.525 rows=80997 loops=1)
|
||
Buffers: shared hit=6448
|
||
-> Index Scan using se_dat on gld od_2 (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=367596)
|
||
Index Cond: ((osm_2.adj_orderdate >= sdat) AND (osm_2.adj_orderdate <= edat))
|
||
Buffers: local hit=734622
|
||
-> Index Scan using se_dat on gld rd_2 (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=367596)
|
||
Index Cond: ((osm_2.adj_requestdate >= sdat) AND (osm_2.adj_requestdate <= edat))
|
||
Buffers: local hit=734620
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=15.858..15.858 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p_3 (cost=0.00..2975.31 rows=36731 width=33) (actual time=0.007..9.906 rows=36699 loops=1)
|
||
Buffers: shared hit=2608
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=0.788..0.788 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
-> CTE Scan on md md_2 (cost=0.00..4.00 rows=200 width=64) (actual time=0.002..0.291 rows=3368 loops=1)
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.043..0.043 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared hit=2
|
||
-> Seq Scan on ffchnl l_2 (cost=0.00..3.39 rows=139 width=25) (actual time=0.007..0.021 rows=139 loops=1)
|
||
Buffers: shared hit=2
|
||
CTE agg
|
||
-> GroupAggregate (cost=3811565832720.57..4308918237067.99 rows=1808554197627 width=1404) (actual time=130217.184..134929.396 rows=809850 loops=1)
|
||
Group Key: un.version, un.iter, ((un.oseas)::numeric), un.odate, ((un.sseas)::numeric), un.sdate, ((un.rseas)::numeric), un.rdate, un.om, un.sm, un.rm, un.oy, ((un.odate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.odate <@ so.ytd)), un.sy, ((un.sdate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.sdate <@ ss.ytd)), (CASE WHEN ((upper(so.ytd) - '1 day'::interval) >= un.odate) THEN CASE WHEN ((un.sdate > (upper(so.ytd) - '1 day'::interval)) OR (un.sy = 'F'::text)) THEN CASE WHEN ((upper(so.ytd) - '1 day'::interval) > un.rdate) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE 'Shipped'::text END ELSE 'Not Yet Placed'::text END), un.ry, un.plnt, un.account, (((un.bill_cust || ' - '::text) || rtrim(bc.bvname))), bc.bvctry, bc.bvprcd, un.shipgrp, (((un.ship_cust || ' - '::text) || rtrim(sc.bvname))), sc.bvctry, sc.bvprcd, un.chan, (CASE un.segm WHEN 'Retail'::text THEN un.retail ELSE un.chan END), (CASE un.segm WHEN 'Retail'::text THEN un.retailsub ELSE ''::text END), un.promo, ((un.majg || COALESCE((' - '::text || majg.bqdes), ''::text))), ((un.ming || COALESCE((' - '::text || mmgp.brdes), ''::text))), ((un.majs || COALESCE((' - '::text || sj.bsdes1), ''::text))), ((un.mins || COALESCE((' - '::text || si.bsdes1), ''::text))), un.part, un.part_descr, un.part_family, un.part_group, un.branding, un.segm, (COALESCE(repc.repp, un.quota_rep)), (COALESCE(repc.director, un.quota_rep)), (((un.version || '-'::text) || un.sy)), (((un.version || '-'::text) || un.oy)), (CASE WHEN (un.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) THEN CASE WHEN (un.rdate < CURRENT_DATE) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE un.calc_status END), (((substr(un.part, 9, 3) || '-'::text) || un.branding)), 'Grand Total'::text
|
||
Buffers: shared hit=37003 read=155565 dirtied=4, local hit=5660295 read=1, temp read=169623 written=244421
|
||
I/O Timings: read=5796.575
|
||
-> Sort (cost=3811565832720.57..3816087218214.63 rows=1808554197627 width=1346) (actual time=130217.139..131170.872 rows=812592 loops=1)
|
||
Sort Key: un.version, un.iter, ((un.oseas)::numeric), un.odate, ((un.sseas)::numeric), un.sdate, ((un.rseas)::numeric), un.rdate, un.om, un.sm, un.rm, un.oy, ((un.odate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.odate <@ so.ytd)), un.sy, ((un.sdate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.sdate <@ ss.ytd)), (CASE WHEN ((upper(so.ytd) - '1 day'::interval) >= un.odate) THEN CASE WHEN ((un.sdate > (upper(so.ytd) - '1 day'::interval)) OR (un.sy = 'F'::text)) THEN CASE WHEN ((upper(so.ytd) - '1 day'::interval) > un.rdate) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE 'Shipped'::text END ELSE 'Not Yet Placed'::text END), un.ry, un.plnt, un.account, (((un.bill_cust || ' - '::text) || rtrim(bc.bvname))), bc.bvctry, bc.bvprcd, un.shipgrp, (((un.ship_cust || ' - '::text) || rtrim(sc.bvname))), sc.bvctry, sc.bvprcd, un.chan, (CASE un.segm WHEN 'Retail'::text THEN un.retail ELSE un.chan END), (CASE un.segm WHEN 'Retail'::text THEN un.retailsub ELSE ''::text END), un.promo, ((un.majg || COALESCE((' - '::text || majg.bqdes), ''::text))), ((un.ming || COALESCE((' - '::text || mmgp.brdes), ''::text))), ((un.majs || COALESCE((' - '::text || sj.bsdes1), ''::text))), ((un.mins || COALESCE((' - '::text || si.bsdes1), ''::text))), un.part, un.part_descr, un.part_family, un.part_group, un.branding, un.segm, (COALESCE(repc.repp, un.quota_rep)), (COALESCE(repc.director, un.quota_rep)), (((un.version || '-'::text) || un.sy)), (((un.version || '-'::text) || un.oy)), (CASE WHEN (un.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) THEN CASE WHEN (un.rdate < CURRENT_DATE) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE un.calc_status END), (((substr(un.part, 9, 3) || '-'::text) || un.branding))
|
||
Sort Method: external merge Disk: 476048kB
|
||
Buffers: shared hit=37003 read=155565 dirtied=4, local hit=5660295 read=1, temp read=169623 written=244421
|
||
I/O Timings: read=5796.575
|
||
-> Merge Right Join (cost=32058721370.12..253666346227.77 rows=1808554197627 width=1346) (actual time=79725.467..85819.348 rows=812592 loops=1)
|
||
Merge Cond: (ss.ssyr = un.sseas)
|
||
Buffers: shared hit=36995 read=155565 dirtied=4, local hit=5660295 read=1, temp read=110117 written=184914
|
||
I/O Timings: read=5796.575
|
||
-> Sort (cost=1353.78..1391.63 rows=15138 width=40) (actual time=0.123..0.131 rows=15 loops=1)
|
||
Sort Key: ss.ssyr
|
||
Sort Method: quicksort Memory: 26kB
|
||
Buffers: local hit=2
|
||
-> CTE Scan on std ss (cost=0.00..302.76 rows=15138 width=40) (actual time=0.082..0.119 rows=15 loops=1)
|
||
Buffers: local hit=2
|
||
-> Materialize (cost=32058720016.34..32178191161.64 rows=23894229061 width=1300) (actual time=79718.116..82479.293 rows=812592 loops=1)
|
||
Buffers: shared hit=36995 read=155565 dirtied=4, local hit=5660293 read=1, temp read=110117 written=184914
|
||
I/O Timings: read=5796.575
|
||
-> Sort (cost=32058720016.34..32118455588.99 rows=23894229061 width=1300) (actual time=79718.091..80948.227 rows=812592 loops=1)
|
||
Sort Key: un.sseas
|
||
Sort Method: external merge Disk: 446032kB
|
||
Buffers: shared hit=36995 read=155565 dirtied=4, local hit=5660293 read=1, temp read=110117 written=146652
|
||
I/O Timings: read=5796.575
|
||
-> Merge Right Join (cost=466287095.31..825489820.45 rows=23894229061 width=1300) (actual time=67066.711..71526.574 rows=812592 loops=1)
|
||
Merge Cond: (so.ssyr = un.oseas)
|
||
Buffers: shared hit=36995 read=155565 dirtied=4, local hit=5660293 read=1, temp read=54363 written=90897
|
||
I/O Timings: read=5796.575
|
||
-> Sort (cost=1353.78..1391.63 rows=15138 width=40) (actual time=0.004..0.008 rows=13 loops=1)
|
||
Sort Key: so.ssyr
|
||
Sort Method: quicksort Memory: 26kB
|
||
-> CTE Scan on std so (cost=0.00..302.76 rows=15138 width=40) (actual time=0.000..0.002 rows=15 loops=1)
|
||
-> Materialize (cost=466285741.52..467864168.60 rows=315685415 width=1268) (actual time=67055.329..70663.573 rows=812592 loops=1)
|
||
Buffers: shared hit=36995 read=155565 dirtied=4, local hit=5660293 read=1, temp read=54363 written=90897
|
||
I/O Timings: read=5796.575
|
||
-> Sort (cost=466285741.52..467074955.06 rows=315685415 width=1268) (actual time=67050.634..68022.803 rows=812592 loops=1)
|
||
Sort Key: un.oseas
|
||
Sort Method: external merge Disk: 434904kB
|
||
Buffers: shared hit=36995 read=155565 dirtied=4, local hit=5660293 read=1, temp read=54363 written=54364
|
||
I/O Timings: read=5796.575
|
||
-> Hash Left Join (cost=30326.40..72123629.81 rows=315685415 width=1268) (actual time=24989.685..60611.536 rows=812592 loops=1)
|
||
Hash Cond: ((un.part = cr.y0part) AND (un.plnt = cr.y0plnt))
|
||
Buffers: shared hit=36995 read=155565 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5796.575
|
||
-> Hash Left Join (cost=22414.65..53910516.25 rows=315685415 width=1262) (actual time=24857.162..60071.090 rows=812592 loops=1)
|
||
Hash Cond: ((un.part = cp.chpart) AND (un.plnt = cp.chplnt))
|
||
Buffers: shared hit=36995 read=150313 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5704.175
|
||
-> Hash Left Join (cost=14299.03..34905098.97 rows=315685415 width=1256) (actual time=24690.716..59482.739 rows=812592 loops=1)
|
||
Hash Cond: ((un.part = cm.cgpart) AND (un.plnt = cm.cgplnt))
|
||
Buffers: shared hit=36995 read=144997 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5598.963
|
||
-> Hash Left Join (cost=7433.88..32509062.54 rows=315685415 width=1250) (actual time=24542.324..58815.424 rows=812592 loops=1)
|
||
Hash Cond: (un.bill_cust = sc.bvcust)
|
||
Buffers: shared hit=36995 read=140490 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5507.001
|
||
-> Hash Left Join (cost=3723.16..28164677.36 rows=315685415 width=1223) (actual time=24531.977..58466.240 rows=812592 loops=1)
|
||
Hash Cond: (un.bill_cust = bc.bvcust)
|
||
Buffers: shared hit=33771 read=140490 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5507.001
|
||
-> Hash Left Join (cost=12.44..23820292.19 rows=315685415 width=1196) (actual time=24445.824..58031.724 rows=812592 loops=1)
|
||
Hash Cond: ((un.ming = mmgp.brmgrp) AND (un.majg = mmgp.brgrp))
|
||
Buffers: shared hit=33771 read=137266 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5435.817
|
||
-> Hash Left Join (cost=7.51..14337334.16 rows=315685415 width=1186) (actual time=24445.412..57697.186 rows=812592 loops=1)
|
||
Hash Cond: (un.majg = majg.bqgrp)
|
||
Buffers: shared hit=33771 read=137265 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5435.479
|
||
-> Hash Left Join (cost=6.24..12964101.34 rows=315685415 width=1176) (actual time=24445.051..57415.327 rows=812592 loops=1)
|
||
Hash Cond: (un.majs = sj.bsmjcd)
|
||
Buffers: shared hit=33771 read=137264 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5435.137
|
||
-> Hash Left Join (cost=6.21..11764496.73 rows=315685415 width=1144) (actual time=24445.027..57139.761 rows=812592 loops=1)
|
||
Hash Cond: ((un.majs = si.bsmjcd) AND (un.mins = si.bsmncd))
|
||
Buffers: shared hit=33770 read=137264 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5435.137
|
||
-> Hash Left Join (cost=3.90..9391645.00 rows=315685415 width=1112) (actual time=24443.462..56809.926 rows=812592 loops=1)
|
||
Hash Cond: (un.quota_rep = repc.rcode)
|
||
Buffers: shared hit=33770 read=137263 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5433.634
|
||
-> CTE Scan on un (cost=0.00..6313708.30 rows=315685415 width=1048) (actual time=24427.626..56309.934 rows=812592 loops=1)
|
||
Buffers: shared hit=33769 read=137238 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5418.990
|
||
-> Hash (cost=2.40..2.40 rows=120 width=96) (actual time=15.823..15.823 rows=120 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 17kB
|
||
Buffers: shared hit=1 read=25
|
||
I/O Timings: read=14.644
|
||
-> CTE Scan on repc (cost=0.00..2.40 rows=120 width=96) (actual time=7.422..15.771 rows=120 loops=1)
|
||
Buffers: shared hit=1 read=25
|
||
I/O Timings: read=14.644
|
||
-> Hash (cost=1.32..1.32 rows=66 width=96) (actual time=1.556..1.556 rows=56 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 11kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=1.503
|
||
-> CTE Scan on si (cost=0.00..1.32 rows=66 width=96) (actual time=1.516..1.541 rows=56 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=1.503
|
||
-> Hash (cost=0.02..0.02 rows=1 width=64) (actual time=0.017..0.017 rows=11 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
Buffers: shared hit=1
|
||
-> CTE Scan on sj (cost=0.00..0.02 rows=1 width=64) (actual time=0.006..0.014 rows=11 loops=1)
|
||
Buffers: shared hit=1
|
||
-> Hash (cost=1.12..1.12 rows=12 width=14) (actual time=0.357..0.357 rows=12 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.342
|
||
-> Seq Scan on majg (cost=0.00..1.12 rows=12 width=14) (actual time=0.349..0.351 rows=12 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.342
|
||
-> Hash (cost=2.57..2.57 rows=157 width=18) (actual time=0.404..0.404 rows=157 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.338
|
||
-> Seq Scan on mmgp (cost=0.00..2.57 rows=157 width=18) (actual time=0.350..0.369 rows=157 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.338
|
||
-> Hash (cost=3440.32..3440.32 rows=21632 width=35) (actual time=86.128..86.128 rows=21632 loops=1)
|
||
Buckets: 32768 Batches: 1 Memory Usage: 1721kB
|
||
Buffers: shared read=3224
|
||
I/O Timings: read=71.184
|
||
-> Seq Scan on cust bc (cost=0.00..3440.32 rows=21632 width=35) (actual time=1.719..80.386 rows=21632 loops=1)
|
||
Buffers: shared read=3224
|
||
I/O Timings: read=71.184
|
||
-> Hash (cost=3440.32..3440.32 rows=21632 width=35) (actual time=10.320..10.320 rows=21632 loops=1)
|
||
Buckets: 32768 Batches: 1 Memory Usage: 1721kB
|
||
Buffers: shared hit=3224
|
||
-> Seq Scan on cust sc (cost=0.00..3440.32 rows=21632 width=35) (actual time=0.007..6.682 rows=21632 loops=1)
|
||
Buffers: shared hit=3224
|
||
-> Hash (cost=5450.26..5450.26 rows=94326 width=29) (actual time=148.322..148.322 rows=94326 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 6699kB
|
||
Buffers: shared read=4507
|
||
I/O Timings: read=91.962
|
||
-> Seq Scan on icstm cm (cost=0.00..5450.26 rows=94326 width=29) (actual time=1.674..121.636 rows=94326 loops=1)
|
||
Buffers: shared read=4507
|
||
I/O Timings: read=91.962
|
||
-> Hash (cost=6435.85..6435.85 rows=111985 width=20) (actual time=166.382..166.382 rows=111985 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 6768kB
|
||
Buffers: shared read=5316
|
||
I/O Timings: read=105.211
|
||
-> Seq Scan on icstp cp (cost=0.00..6435.85 rows=111985 width=20) (actual time=2.877..136.300 rows=111985 loops=1)
|
||
Buffers: shared read=5316
|
||
I/O Timings: read=105.211
|
||
-> Hash (cost=6315.90..6315.90 rows=106390 width=27) (actual time=132.044..132.044 rows=106390 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7334kB
|
||
Buffers: shared read=5252
|
||
I/O Timings: read=92.401
|
||
-> Seq Scan on icstr cr (cost=0.00..6315.90 rows=106390 width=27) (actual time=1.095..107.748 rows=106390 loops=1)
|
||
Buffers: shared read=5252
|
||
I/O Timings: read=92.401
|
||
-> CTE Scan on agg a (cost=0.00..36171083952.54 rows=1808554197627 width=1520) (actual time=130217.189..139003.919 rows=809850 loops=1)
|
||
Buffers: shared hit=37003 read=155565 dirtied=4, local hit=5660295 read=1, temp read=169623 written=302291
|
||
I/O Timings: read=5796.575
|
||
-> CTE Scan on agg a_1 (cost=0.00..41167214923.48 rows=13564156482 width=1520) (actual time=313.638..4190.172 rows=298727 loops=1)
|
||
Filter: ((ocytd OR scytd) AND (version = ANY ('{Actual,Forecast}'::text[])))
|
||
Rows Removed by Filter: 511123
|
||
Buffers: temp read=57871 written=1
|
||
-> CTE Scan on agg a_2 (cost=0.00..41167214923.48 rows=13564156482 width=1520) (actual time=77.645..4240.941 rows=270385 loops=1)
|
||
Filter: ((ocytd OR scytd) AND (version = ANY ('{Actual,Budget}'::text[])))
|
||
Rows Removed by Filter: 539465
|
||
Buffers: temp read=57871
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
<td>6</td>
|
||
<td>2m2s</td>
|
||
<td id="slowest-individual-queries-examples-rank-6">
|
||
<div id="query-d-6-6" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i>PL/pgSQL function rlarp.osm_ppfa_varto() line 69 at RETURN QUERYWITH
|
||
---------------------------------------segments--------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
SEG AS (
|
||
SELECT
|
||
x.GLEC
|
||
,x.SEGM
|
||
FROM
|
||
(
|
||
VALUES
|
||
('1CU','Retail'),
|
||
('1GR','Greenhouse'),
|
||
('1NU','Nursery'),
|
||
('1RE','Retail'),
|
||
('2WI','Greenhouse'),
|
||
('3BM','Other'),
|
||
('3CO','Other'),
|
||
('3PE','Other'),
|
||
('3PP','Other'),
|
||
('4CO','Other'),
|
||
('4RA','Other'),
|
||
('9MI','Other'),
|
||
('9SA','Other'),
|
||
('9TO','Other')
|
||
) X(GLEC, SEGM)
|
||
)
|
||
---------------------------------------branding flag---------------------------------------------------------------------------------------------------------------------------------------------------
|
||
,MG AS (
|
||
SELECT
|
||
X.F1, X.MING, X.GRP
|
||
FROM
|
||
(
|
||
VALUES
|
||
('L','000','Branded'),
|
||
('L','B10','Branded'),
|
||
('L','B11','Branded'),
|
||
('L','B52','Branded'),
|
||
('L','C10','Branded'),
|
||
('L','D12','Branded'),
|
||
('L','M11','Branded'),
|
||
('L','P12','Branded'),
|
||
('L','P13','Branded'),
|
||
('L','S10','Branded'),
|
||
('L','Y10','Branded'),
|
||
('L','Y11','Branded'),
|
||
('L','Y12','Branded'),
|
||
('P','B10','Branded'),
|
||
('P','B11','Branded'),
|
||
('P','B52','Branded')
|
||
) AS X (F1, MING, GRP)
|
||
)
|
||
---------------------------------------directors-------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
,REPC AS (
|
||
SELECT
|
||
LTRIM(RTRIM(C.A9)) RCODE
|
||
,LTRIM(RTRIM(C.A9)) || ' - ' || C.A30 REPP
|
||
,COALESCE(Q.DIR,'Other') DIRECTOR
|
||
FROM
|
||
LGDAT.CODE C
|
||
LEFT OUTER JOIN RLARP.QRH Q ON
|
||
Q.QR = LTRIM(RTRIM(C.A9))
|
||
WHERE
|
||
C.A2 = 'MM'
|
||
)
|
||
--MOLD DESCRIPTIONS
|
||
,MD AS (
|
||
SELECT
|
||
U.MOLD
|
||
,MAX(U.DESCR) DESCR
|
||
FROM
|
||
(
|
||
SELECT
|
||
SUBSTR(M.AVPART,1,8) MOLD
|
||
,MAX(M.AVDES1) DESCR
|
||
FROM
|
||
LGDAT.STKMM M
|
||
WHERE
|
||
LENGTH(M.AVPART) > 8
|
||
AND SUBSTR(M.AVGLED,1,1) <= '2'
|
||
GROUP BY
|
||
SUBSTR(M.AVPART,1,8)
|
||
UNION ALL
|
||
SELECT
|
||
SUBSTR(P.AWPART,1,8) MOLD
|
||
,MAX(P.AWDES1) DESCR
|
||
FROM
|
||
LGDAT.STKMP P
|
||
WHERE
|
||
LENGTH(P.AWPART) > 8
|
||
AND SUBSTR(P.AWGLED,1,1) <= '2'
|
||
GROUP BY
|
||
SUBSTR(P.AWPART,1,8)
|
||
) U
|
||
GROUP BY
|
||
U.MOLD
|
||
)
|
||
----------------------------------------------------sales major codes----------------------------------------------------------------------------------------------------------------------------------
|
||
,SJ AS (
|
||
SELECT * FROM LGDAT.MMSL WHERE COALESCE(BSMNCD,'') = ''
|
||
)
|
||
----------------------------------------------------sales minor codes----------------------------------------------------------------------------------------------------------------------------------
|
||
,SI AS (
|
||
SELECT * FROM LGDAT.MMSL WHERE COALESCE(BSMNCD,'') <> ''
|
||
)
|
||
----------------------------------------------------date ranges per season------------------------------------------------------------------------------------------------------------------------------
|
||
,seas AS(
|
||
SELECT
|
||
ssyr
|
||
,daterange(MIN(sdat),MAX(edat),'[]') dr
|
||
,current_date <@ daterange(MIN(sdat),MAX(edat),'[]') cy
|
||
FROM
|
||
gld
|
||
GROUP BY
|
||
ssyr
|
||
ORDER BY
|
||
ssyr DESC
|
||
)
|
||
,intv AS (
|
||
SELECT current_date - lower(dr) dy from seas where cy = true
|
||
)
|
||
,std AS (
|
||
SELECT
|
||
s.ssyr
|
||
,s.dr
|
||
,s.cy
|
||
,daterange(lower(dr),dy + LOWER(dr),'[]') ytd
|
||
FROM
|
||
seas s
|
||
CROSS JOIN intv
|
||
)
|
||
---------------------------------------union actual and forecast---------------------------------------------------------------------------------------------------------------------------------------
|
||
,UN AS (
|
||
--plan
|
||
SELECT
|
||
'Budget' AS VERSION
|
||
,'Budget' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE as ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(m.avDES1,p.awDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(m.avNWHT,p.awNWHT) * CASE COALESCE(m.avNWUN, p.awNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSMP OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.VERSION = 'b19'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1901'
|
||
OR OSM.ADJ_ORDERDATE >= '2018-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
--ITER
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(m.avDES1,p.awDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
UNION ALL
|
||
--staged forecast
|
||
SELECT
|
||
'Forecast' AS VERSION
|
||
,'Forecast' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(M.AVNWHT,P.AWNWHT) * CASE COALESCE(M.AVNWUN, P.AWNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSMF OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.VERSION = '5p7'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1901'
|
||
OR OSM.ADJ_ORDERDATE >= '2018-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
--ITER
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
UNION ALL
|
||
--actual
|
||
SELECT
|
||
'Actual' AS VERSION
|
||
,'Actual' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(M.AVNWHT,P.AWNWHT) * CASE COALESCE(M.AVNWUN, P.AWNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSM OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
--AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1606'
|
||
OR OSM.ADJ_ORDERDATE >= '2016-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
)
|
||
---------------------------------------aggregate actual and forecast-----------------------------------------------------------------------------------------------------------------------------------
|
||
,AGG AS (
|
||
SELECT
|
||
un.VERSION::text "version"
|
||
,un.ITER::text "iter"
|
||
,un.OSEAS::numeric oseas
|
||
,un.ODATE::date odate
|
||
,un.SSEAS::numeric sseas
|
||
,un.SDATE::date sdate
|
||
,un.RSEAS::numeric rseas
|
||
,un.RDATE::date rdate
|
||
,un.OM::text om
|
||
,un.SM::text sm
|
||
,un.RM::text rm
|
||
,un.OY::text oy
|
||
,(un.odate <@ _ytd)::boolean ocytd --current year to date
|
||
,(un.odate <@ so.ytd)::boolean oytd --year to date recast for prior/forecast periods
|
||
,un.SY::text sy
|
||
,(un.sdate <@ _ytd)::boolean scytd
|
||
,(un.sdate <@ ss.ytd)::boolean sytd
|
||
--had this order been placed yet? (current day prior year is greater than the order date)
|
||
,CASE WHEN (upper(so.ytd) - interval '1 day') >= un.odate THEN
|
||
--was the order open at this time last year? (for orders that were placed by this time, was the ship date greater then the order date)
|
||
CASE WHEN ((un.sdate > (upper(so.ytd) - interval '1 day')) OR (un.SY = 'F'))
|
||
--for orders that were placed and open at this time last year, was the order considered past due? (current date prior year > request date)
|
||
THEN
|
||
CASE WHEN (upper(so.ytd) - interval '1 day') > un.rdate
|
||
THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE 'Shipped'
|
||
END
|
||
ELSE 'Not Yet Placed'
|
||
END status_py
|
||
,un.RY::text ry
|
||
,un.PLNT::text plnt
|
||
,un.ACCOUNT::text bill_group
|
||
,(un.BILL_CUST || ' - ' || RTRIM(BC.BVNAME))::text bill_cust
|
||
,bc.bvctry bill_ctry
|
||
,bc.bvprcd bill_prov
|
||
,un.SHIPGRP::text ship_group
|
||
,(un.SHIP_CUST || ' - ' || RTRIM(SC.BVNAME))::text ship_cust
|
||
,sc.bvctry ship_ctry
|
||
,sc.bvprcd ship_prov
|
||
,un.CHAN::text chan
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAIL
|
||
ELSE un.CHAN
|
||
END::text mod_chan
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAILSUB
|
||
ELSE ''
|
||
END::text mod_chansub
|
||
,un.PROMO::text promo
|
||
,un.MAJG||COALESCE(' - '||BQDES,'')::text majg
|
||
,un.MING||COALESCE(' - '||BRDES,'')::text ming
|
||
,un.MAJS||COALESCE(' - '||SJ.BSDES1,'')::text majs
|
||
,un.MINS||COALESCE(' - '||SI.BSDES1,'')::text mins
|
||
,un.PART::text part
|
||
,un.PART_DESCR::text part_descr
|
||
,un.PART_FAMILY::text part_family
|
||
,un.PART_GROUP::text part_group
|
||
,un.BRANDING::text branding
|
||
,un.SEGM::text segm
|
||
,COALESCE(REPC.REPP,un.QUOTA_REP)::text quota_rep
|
||
,COALESCE(REPC.DIRECTOR,un.QUOTA_REP)::text director
|
||
,SUM(un.QTY)::numeric qty
|
||
,SUM(un.SALES)::numeric sales
|
||
,SUM(un.STDCOST)::numeric stdcost
|
||
,SUM(un.QTY * COALESCE(cm.cgstcs, cp.chstcs, cr.y0stcs) * un.c_rate)::numeric stdcost_cur
|
||
,SUM(un.POUNDS)::numeric pounds
|
||
,(un.VERSION||'-'||un.SY)::text flag_s
|
||
,(un.VERSION||'-'||un.OY)::text flag_o
|
||
,CASE
|
||
WHEN un.calc_status IN ('BACKORDER','OPEN') THEN
|
||
CASE
|
||
WHEN un.rdate < current_date THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE un.calc_status
|
||
END::text status
|
||
,(SUBSTR(UN.PART,9,3)||'-'||un.BRANDING)::text "options"
|
||
,'Grand Total'::text grandtotal
|
||
FROM
|
||
UN
|
||
LEFT OUTER JOIN REPC ON
|
||
REPC.RCODE = un.QUOTA_REP
|
||
LEFT OUTER JOIN SI ON
|
||
SI.BSMJCD = UN.MAJS
|
||
AND SI.BSMNCD = UN.MINS
|
||
LEFT OUTER JOIN SJ ON
|
||
SJ.BSMJCD = UN.MAJS
|
||
LEFT OUTER JOIN LGDAT.MAJG ON
|
||
BQGRP = un.MAJG
|
||
LEFT OUTER JOIN LGDAT.MMGP ON
|
||
BRMGRP = un.MING
|
||
AND BRGRP = un.MAJG
|
||
LEFT OUTER JOIN LGDAT.CUST BC ON
|
||
BC.BVCUST = UN.BILL_CUST
|
||
LEFT OUTER JOIN LGDAT.CUST SC ON
|
||
SC.BVCUST = UN.BILL_CUST
|
||
LEFT OUTER JOIN LGDAT.ICSTM cm ON
|
||
cm.cgpart = un.part
|
||
AND cm.cgplnt = un.plnt
|
||
LEFT OUTER JOIN LGDAT.ICSTP cp ON
|
||
cp.chpart = un.part
|
||
AND cp.chplnt = un.plnt
|
||
LEFT OUTER JOIN LGDAT.ICSTR cr ON
|
||
cr.y0part = un.part
|
||
AND cr.y0plnt = un.plnt
|
||
LEFT OUTER JOIN STD so ON
|
||
so.ssyr = un.oseas
|
||
LEFT OUTER JOIN STD ss ON
|
||
ss.ssyr = un.sseas
|
||
GROUP BY
|
||
un.VERSION::text
|
||
,un.ITER::text
|
||
,un.OSEAS::numeric
|
||
,un.ODATE::date
|
||
,un.SSEAS::numeric
|
||
,un.SDATE::date
|
||
,un.RSEAS::numeric
|
||
,un.RDATE::date
|
||
,un.OM::text
|
||
,un.SM::text
|
||
,un.RM::text
|
||
,un.OY::text
|
||
--current year to date
|
||
,(un.odate <@ _ytd)::boolean
|
||
--year to date recast for prior/forecast periods
|
||
,(un.odate <@ so.ytd)::boolean
|
||
,un.SY::text
|
||
,(un.sdate <@ _ytd)::boolean
|
||
,(un.sdate <@ ss.ytd)::boolean
|
||
,CASE WHEN (upper(so.ytd) - interval '1 day') >= un.odate THEN
|
||
--was the order open at this time last year? (for orders that were placed by this time, was the ship date greater then the order date)
|
||
CASE WHEN ((un.sdate > (upper(so.ytd) - interval '1 day')) OR (un.SY = 'F'))
|
||
--for orders that were placed and open at this time last year, was the order considered past due? (current date prior year > request date)
|
||
THEN
|
||
CASE WHEN (upper(so.ytd) - interval '1 day') > un.rdate
|
||
THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE 'Shipped'
|
||
END
|
||
ELSE 'Not Yet Placed'
|
||
END
|
||
,un.RY::text
|
||
,un.PLNT::text
|
||
,un.ACCOUNT::text
|
||
,(un.BILL_CUST || ' - ' || RTRIM(BC.BVNAME))::text
|
||
,bc.bvctry
|
||
,bc.bvprcd
|
||
,un.SHIPGRP::text
|
||
,(un.SHIP_CUST || ' - ' || RTRIM(SC.BVNAME))::text
|
||
,sc.bvctry
|
||
,sc.bvprcd
|
||
,un.CHAN::text
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAIL
|
||
ELSE un.CHAN
|
||
END::text
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAILSUB
|
||
ELSE ''
|
||
END::text
|
||
,un.PROMO::text
|
||
,un.MAJG||COALESCE(' - '||BQDES,'')::text
|
||
,un.MING||COALESCE(' - '||BRDES,'')::text
|
||
,un.MAJS||COALESCE(' - '||SJ.BSDES1,'')::text
|
||
,un.MINS||COALESCE(' - '||SI.BSDES1,'')::text
|
||
,un.PART::text
|
||
,un.PART_DESCR::text
|
||
,un.PART_FAMILY::text
|
||
,un.PART_GROUP::text
|
||
,un.BRANDING::text
|
||
,un.SEGM::text
|
||
,COALESCE(REPC.REPP,un.QUOTA_REP)::text
|
||
,COALESCE(REPC.DIRECTOR,un.QUOTA_REP)::text
|
||
,(un.VERSION||'-'||un.SY)::text
|
||
,(un.VERSION||'-'||un.OY)::text
|
||
,CASE
|
||
WHEN un.calc_status IN ('BACKORDER','OPEN') THEN
|
||
CASE
|
||
WHEN un.rdate < current_date THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE un.calc_status
|
||
END::text
|
||
,(SUBSTR(UN.PART,9,3)||'-'||un.BRANDING)::text
|
||
,'Grand Total'::text
|
||
)
|
||
SELECT
|
||
a.version
|
||
,a.iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,a.qty
|
||
,a.sales
|
||
,a.stdcost
|
||
,a.stdcost_cur
|
||
,a.pounds
|
||
,a.flag_s
|
||
,a.flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
agg a
|
||
UNION ALL
|
||
SELECT
|
||
'Var to Fcst' as version
|
||
,'Var to Fcst' as iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.QTY ELSE -a.QTY END::numeric QTY
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.SALES ELSE -a.SALES END::numeric SALES
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST ELSE -a.STDCOST END::numeric STDCOST
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST_CUR ELSE -a.STDCOST_CUR END::numeric STDCOST_CUR
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.POUNDS ELSE -a.POUNDS END::numeric POUNDS
|
||
,'Var to Fcst'||'-'||a.scytd flag_s
|
||
,'Var to Fcst'||'-'||a.ocytd flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
AGG a
|
||
WHERE
|
||
a.VERSION IN ('Actual','Forecast')
|
||
AND (a.ocytd OR a.scytd)
|
||
|
||
UNION ALL
|
||
SELECT
|
||
'Var to Bdgt' as version
|
||
,'Var to Bdgt' as iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.QTY ELSE -a.QTY END::numeric QTY
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.SALES ELSE -a.SALES END::numeric SALES
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST ELSE -a.STDCOST END::numeric STDCOST
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST_CUR ELSE -a.STDCOST_CUR END::numeric STDCOST_CUR
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.POUNDS ELSE -a.POUNDS END::numeric POUNDS
|
||
,'Var to Bdgt'||'-'||a.scytd flag_s
|
||
,'Var to Bdgt'||'-'||a.ocytd flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
AGG a
|
||
WHERE
|
||
a.VERSION IN ('Actual','Budget')
|
||
AND (a.ocytd OR a.scytd)
|
||
;</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 14:09:18 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
<div id="query-d-explain-6-6" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Append%20%20%28cost%3D4510966117154.68..4644894879274.93%20rows%3D1921380827591%20width%3D1520%29%20%28actual%20time%3D112425.684..121699.211%20rows%3D1378380%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D35380%20read%3D157188%2C%20local%20hit%3D5659519%20read%3D1%2C%20temp%20read%3D285302%20written%3D302218%0A%09%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20CTE%20seg%0A%09%20%20%20%20-%3E%20%20Values%20Scan%20on%20%22%2AVALUES%2A%22%20%20%28cost%3D0.00..0.18%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.003..0.006%20rows%3D14%20loops%3D1%29%0A%09%20%20CTE%20mg%0A%09%20%20%20%20-%3E%20%20Values%20Scan%20on%20%22%2AVALUES%2A_1%22%20%20%28cost%3D0.00..0.20%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.002..0.007%20rows%3D16%20loops%3D1%29%0A%09%20%20CTE%20repc%0A%09%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11.47..123.28%20rows%3D120%20width%3D96%29%20%28actual%20time%3D4.005..11.391%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28ltrim%28rtrim%28c.a9%29%29%20%3D%20q.qr%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10.590%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20code%20c%20%20%28cost%3D9.21..118.86%20rows%3D120%20width%3D25%29%20%28actual%20time%3D3.631..10.743%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28a2%20%3D%20%27MM%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D21%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D25%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10.256%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20pk_code%20%20%28cost%3D0.00..9.18%20rows%3D120%20width%3D0%29%20%28actual%20time%3D2.484..2.484%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28a2%20%3D%20%27MM%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2.398%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.56..1.56%20rows%3D56%20width%3D12%29%20%28actual%20time%3D0.359..0.359%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2011kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.334%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20qrh%20q%20%20%28cost%3D0.00..1.56%20rows%3D56%20width%3D12%29%20%28actual%20time%3D0.342..0.348%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.334%0A%09%20%20CTE%20md%0A%09%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D11936.00..11938.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D141.238..141.651%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20%28substr%28m.avpart%2C%201%2C%208%29%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Append%20%20%28cost%3D8137.31..11870.54%20rows%3D13091%20width%3D64%29%20%28actual%20time%3D131.283..140.399%20rows%3D3375%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D8137.31..8249.94%20rows%3D9010%20width%3D64%29%20%28actual%20time%3D131.282..131.853%20rows%3D3285%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20substr%28m.avpart%2C%201%2C%208%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m%20%20%28cost%3D0.00..8092.26%20rows%3D9010%20width%3D59%29%20%28actual%20time%3D0.026..38.556%20rows%3D76269%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28length%28avpart%29%20%3E%208%29%20AND%20%28substr%28avgled%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%204728%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D3373.23..3424.24%20rows%3D4081%20width%3D64%29%20%28actual%20time%3D8.321..8.352%20rows%3D90%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20substr%28p.awpart%2C%201%2C%208%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p%20%20%28cost%3D0.00..3352.82%20rows%3D4081%20width%3D52%29%20%28actual%20time%3D0.446..8.258%20rows%3D142%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28length%28awpart%29%20%3E%208%29%20AND%20%28substr%28awgled%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2036557%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20CTE%20sj%0A%09%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmsl%20%20%28cost%3D0.00..1.84%20rows%3D1%20width%3D22%29%20%28actual%20time%3D0.004..0.009%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28COALESCE%28bsmncd%2C%20%27%27%3A%3Atext%29%20%3D%20%27%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2056%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20CTE%20si%0A%09%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmsl%20mmsl_1%20%20%28cost%3D0.00..1.84%20rows%3D66%20width%3D22%29%20%28actual%20time%3D0.307..0.314%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28COALESCE%28bsmncd%2C%20%27%27%3A%3Atext%29%20%3C%3E%20%27%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2011%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.297%0A%09%20%20CTE%20seas%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D10.22..16.31%20rows%3D174%20width%3D41%29%20%28actual%20time%3D0.068..0.100%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20gld.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D10.22..10.65%20rows%3D174%20width%3D16%29%20%28actual%20time%3D0.054..0.061%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20gld.ssyr%20DESC%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2033kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D16%29%20%28actual%20time%3D0.010..0.030%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20CTE%20intv%0A%09%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seas%20%20%28cost%3D0.00..4.13%20rows%3D87%20width%3D4%29%20%28actual%20time%3D0.080..0.081%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20cy%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2014%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20CTE%20std%0A%09%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D0.00..457.62%20rows%3D15138%20width%3D73%29%20%28actual%20time%3D0.087..0.122%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20intv%20%20%28cost%3D0.00..1.74%20rows%3D87%20width%3D4%29%20%28actual%20time%3D0.081..0.082%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seas%20s%20%20%28cost%3D0.00..3.48%20rows%3D174%20width%3D41%29%20%28actual%20time%3D0.000..0.028%20rows%3D15%20loops%3D1%29%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D50003223.80..255856479.46%20rows%3D330423099%20width%3D697%29%20%28actual%20time%3D26363.405..56340.259%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32147%20read%3D138860%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5000.713%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D50003223.80..63823292.65%20rows%3D83757993%20width%3D701%29%20%28actual%20time%3D26363.404..28258.932%20rows%3D212793%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20osm.adj_orderdate%2C%20sd.ssyr%2C%20%28LEAST%28GREATEST%28osm.adj_shipdate%2C%20sd.sdat%29%2C%20sd.edat%29%29%2C%20rd.ssyr%2C%20osm.adj_requestdate%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm.plnt%2C%20osm.account%2C%20osm.bill_cust%2C%20osm.shipgrp%2C%20osm.ship_cust%2C%20osm.chan%2C%20l.retail%2C%20l.retailsub%2C%20osm.promo%2C%20osm.majg%2C%20osm.ming%2C%20osm.majs%2C%20osm.mins%2C%20osm.part%2C%20%28%28%28osm.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_1.avdes1%2C%20p_1.awdes1%29%29%29%29%2C%20%28%28%28f.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f.descr%29%29%2C%20%28%28%28substr%28osm.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md.descr%29%29%2C%20%28COALESCE%28mg.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm.quota_rep%2C%20%28CASE%20osm.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm.calc_status%20END%29%2C%20osm.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9063%20read%3D59473%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2714.560%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D50003223.80..50212618.79%20rows%3D83757993%20width%3D594%29%20%28actual%20time%3D26363.369..26503.583%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20osm.adj_orderdate%2C%20sd.ssyr%2C%20%28LEAST%28GREATEST%28osm.adj_shipdate%2C%20sd.sdat%29%2C%20sd.edat%29%29%2C%20rd.ssyr%2C%20osm.adj_requestdate%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm.plnt%2C%20osm.account%2C%20osm.bill_cust%2C%20osm.shipgrp%2C%20osm.ship_cust%2C%20osm.chan%2C%20l.retail%2C%20l.retailsub%2C%20osm.promo%2C%20osm.majg%2C%20osm.ming%2C%20osm.majs%2C%20osm.mins%2C%20osm.part%2C%20%28%28%28osm.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_1.avdes1%2C%20p_1.awdes1%29%29%29%29%2C%20%28%28%28f.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f.descr%29%29%2C%20%28%28%28substr%28osm.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md.descr%29%29%2C%20%28COALESCE%28mg.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm.quota_rep%2C%20%28CASE%20osm.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm.calc_status%20END%29%2C%20osm.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20352782kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9063%20read%3D59473%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2714.560%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..16650773.71%20rows%3D83757993%20width%3D594%29%20%28actual%20time%3D412.849..12408.886%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm.bill_class%20%3D%20l.bill%29%20AND%20%28osm.ship_class%20%3D%20l.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9060%20read%3D59473%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2714.560%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..10583311.94%20rows%3D83757993%20width%3D583%29%20%28actual%20time%3D412.362..11595.759%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm.part%2C%201%2C%208%29%20%3D%20md.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9060%20read%3D59471%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2714.141%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..5348430.88%20rows%3D83757993%20width%3D551%29%20%28actual%20time%3D269.279..10961.881%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.part%20%3D%20p_1.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4%20read%3D59471%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2714.141%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..5125106.33%20rows%3D83757993%20width%3D527%29%20%28actual%20time%3D188.919..10630.169%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D56865%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2652.319%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..337594.45%20rows%3D4332310%20width%3D455%29%20%28actual%20time%3D188.914..7884.956%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D56865%2C%20local%20hit%3D1281897%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2652.319%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..89964.52%20rows%3D224085%20width%3D383%29%20%28actual%20time%3D188.885..5089.482%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.part%20%3D%20m_1.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D56865%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2652.306%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..81103.81%20rows%3D224085%20width%3D348%29%20%28actual%20time%3D3.518..4614.841%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm.part%2C%201%2C%203%29%20%3D%20f.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D50419%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2511.680%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..77718.84%20rows%3D224085%20width%3D324%29%20%28actual%20time%3D2.296..4183.537%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm.part%2C%2016%2C%201%29%20%3D%20mg.f1%29%20AND%20%28osm.ming%20%3D%20mg.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D50410%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2510.588%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..75750.09%20rows%3D224085%20width%3D292%29%20%28actual%20time%3D2.277..3733.098%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.glec%20%3D%20seg.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D50410%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2510.588%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..72674.81%20rows%3D224085%20width%3D264%29%20%28actual%20time%3D2.259..3490.071%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D50410%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2510.588%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmp%20osm%20%20%28cost%3D0.00..69587.73%20rows%3D224085%20width%3D184%29%20%28actual%20time%3D2.186..3227.306%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28version%20%3D%20%27b19%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271901%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272018-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2057051%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D50410%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2510.588%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.060..0.060%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.008..0.034%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.014..0.014%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.005..0.011%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.015..0.015%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.003..0.011%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D1.217..1.217%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1.092%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.985..1.149%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1.092%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D185.313..185.313%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D6446%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D140.626%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_1%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D0.508..163.116%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D6446%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D140.626%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D641010%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1281895%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.013%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.004%20rows%3D1%20loops%3D641010%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1281894%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D80.171..80.171%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D2606%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D61.823%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_1%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D0.342..70.937%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D2606%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D61.823%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D143.065..143.065%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D141.241..142.539%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.472..0.472%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.418%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.424..0.443%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.418%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D33445583.00..42801951.72%20rows%3D56705265%20width%3D699%29%20%28actual%20time%3D17060.209..18105.019%20rows%3D250477%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20osm_1.adj_orderdate%2C%20sd_1.ssyr%2C%20%28LEAST%28GREATEST%28osm_1.adj_shipdate%2C%20sd_1.sdat%29%2C%20sd_1.edat%29%29%2C%20rd_1.ssyr%2C%20osm_1.adj_requestdate%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_1.plnt%2C%20osm_1.account%2C%20osm_1.bill_cust%2C%20osm_1.shipgrp%2C%20osm_1.ship_cust%2C%20osm_1.chan%2C%20l_1.retail%2C%20l_1.retailsub%2C%20osm_1.promo%2C%20osm_1.majg%2C%20osm_1.ming%2C%20osm_1.majs%2C%20osm_1.mins%2C%20osm_1.part%2C%20%28%28%28osm_1.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_2.avdes1%2C%20p_2.awdes1%29%29%29%29%2C%20%28%28%28f_1.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_1.descr%29%29%2C%20%28%28%28substr%28osm_1.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_1.descr%29%29%2C%20%28COALESCE%28mg_1.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_1.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_1.quota_rep%2C%20%28CASE%20osm_1.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_1.calc_status%20END%29%2C%20osm_1.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9067%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D33445583.00..33587346.16%20rows%3D56705265%20width%3D595%29%20%28actual%20time%3D17060.177..17152.591%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20osm_1.adj_orderdate%2C%20sd_1.ssyr%2C%20%28LEAST%28GREATEST%28osm_1.adj_shipdate%2C%20sd_1.sdat%29%2C%20sd_1.edat%29%29%2C%20rd_1.ssyr%2C%20osm_1.adj_requestdate%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_1.plnt%2C%20osm_1.account%2C%20osm_1.bill_cust%2C%20osm_1.shipgrp%2C%20osm_1.ship_cust%2C%20osm_1.chan%2C%20l_1.retail%2C%20l_1.retailsub%2C%20osm_1.promo%2C%20osm_1.majg%2C%20osm_1.ming%2C%20osm_1.majs%2C%20osm_1.mins%2C%20osm_1.part%2C%20%28%28%28osm_1.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_2.avdes1%2C%20p_2.awdes1%29%29%29%29%2C%20%28%28%28f_1.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_1.descr%29%29%2C%20%28%28%28substr%28osm_1.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_1.descr%29%29%2C%20%28COALESCE%28mg_1.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_1.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_1.quota_rep%2C%20%28CASE%20osm_1.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_1.calc_status%20END%29%2C%20osm_1.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20222052kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9067%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..11025086.80%20rows%3D56705265%20width%3D595%29%20%28actual%20time%3D160.607..8900.120%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm_1.bill_class%20%3D%20l_1.bill%29%20AND%20%28osm_1.ship_class%20%3D%20l_1.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9067%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..6967724.27%20rows%3D55168846%20width%3D584%29%20%28actual%20time%3D160.531..8303.160%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_1.part%2C%201%2C%208%29%20%3D%20md_1.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9065%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..3519664.90%20rows%3D55168846%20width%3D552%29%20%28actual%20time%3D159.458..7928.685%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.part%20%3D%20p_2.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9065%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..3371395.52%20rows%3D55168846%20width%3D528%29%20%28actual%20time%3D139.481..7719.889%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6457%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..217901.28%20rows%3D2853561%20width%3D456%29%20%28actual%20time%3D139.471..5838.942%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6457%20read%3D26345%2C%20local%20hit%3D813630%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..54789.49%20rows%3D147598%20width%3D384%29%20%28actual%20time%3D139.449..3929.023%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.part%20%3D%20m_2.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6457%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..46129.57%20rows%3D147598%20width%3D349%29%20%28actual%20time%3D79.183..3618.398%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_1.part%2C%201%2C%203%29%20%3D%20f_1.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..43891.91%20rows%3D147598%20width%3D325%29%20%28actual%20time%3D78.806..3313.087%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm_1.part%2C%2016%2C%201%29%20%3D%20mg_1.f1%29%20AND%20%28osm_1.ming%20%3D%20mg_1.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..42594.49%20rows%3D147598%20width%3D293%29%20%28actual%20time%3D78.771..2997.016%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.glec%20%3D%20seg_1.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..40564.57%20rows%3D147598%20width%3D265%29%20%28actual%20time%3D78.706..2840.808%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.fspr%20%3D%20sd_1.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmf%20osm_1%20%20%28cost%3D0.00..38529.18%20rows%3D147598%20width%3D185%29%20%28actual%20time%3D78.437..2657.330%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28version%20%3D%20%275p7%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271901%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272018-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.200..0.200%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.053..0.147%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.039..0.039%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20seg_1%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.009..0.015%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.014..0.014%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20mg_1%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.003..0.008%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.350..0.350%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f_1%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.090..0.194%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D59.937..59.937%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_2%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D0.021..34.499%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od_1%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813628%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd_1%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813628%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D19.766..19.766%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_2%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D0.008..10.901%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D1.056..1.056%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20md_1%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.003..0.385%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.055..0.055%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l_1%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.007..0.025%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D112931514.84..144274888.60%20rows%3D189959841%20width%3D695%29%20%28actual%20time%3D8819.747..9896.203%20rows%3D349128%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_2.ssyr%2C%20osm_2.adj_orderdate%2C%20sd_2.ssyr%2C%20%28LEAST%28GREATEST%28osm_2.adj_shipdate%2C%20sd_2.sdat%29%2C%20sd_2.edat%29%29%2C%20rd_2.ssyr%2C%20osm_2.adj_requestdate%2C%20%28COALESCE%28od_2.cm%2C%20sd_2.cm%29%29%2C%20%28COALESCE%28sd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_2.cy%2C%20sd_2.cy%29%29%2C%20%28COALESCE%28sd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_2.plnt%2C%20osm_2.account%2C%20osm_2.bill_cust%2C%20osm_2.shipgrp%2C%20osm_2.ship_cust%2C%20osm_2.chan%2C%20l_2.retail%2C%20l_2.retailsub%2C%20osm_2.promo%2C%20osm_2.majg%2C%20osm_2.ming%2C%20osm_2.majs%2C%20osm_2.mins%2C%20osm_2.part%2C%20%28%28%28osm_2.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_3.avdes1%2C%20p_3.awdes1%29%29%29%29%2C%20%28%28%28f_2.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_2.descr%29%29%2C%20%28%28%28substr%28osm_2.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_2.descr%29%29%2C%20%28COALESCE%28mg_2.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_2.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_2.quota_rep%2C%20%28CASE%20osm_2.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_2.calc_status%20END%29%2C%20osm_2.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D14017%20read%3D53042%2C%20local%20hit%3D1468468%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D112931514.84..113406414.44%20rows%3D189959841%20width%3D584%29%20%28actual%20time%3D8819.714..8895.706%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_2.ssyr%2C%20osm_2.adj_orderdate%2C%20sd_2.ssyr%2C%20%28LEAST%28GREATEST%28osm_2.adj_shipdate%2C%20sd_2.sdat%29%2C%20sd_2.edat%29%29%2C%20rd_2.ssyr%2C%20osm_2.adj_requestdate%2C%20%28COALESCE%28od_2.cm%2C%20sd_2.cm%29%29%2C%20%28COALESCE%28sd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_2.cy%2C%20sd_2.cy%29%29%2C%20%28COALESCE%28sd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_2.plnt%2C%20osm_2.account%2C%20osm_2.bill_cust%2C%20osm_2.shipgrp%2C%20osm_2.ship_cust%2C%20osm_2.chan%2C%20l_2.retail%2C%20l_2.retailsub%2C%20osm_2.promo%2C%20osm_2.majg%2C%20osm_2.ming%2C%20osm_2.majs%2C%20osm_2.mins%2C%20osm_2.part%2C%20%28%28%28osm_2.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_3.avdes1%2C%20p_3.awdes1%29%29%29%29%2C%20%28%28%28f_2.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_2.descr%29%29%2C%20%28%28%28substr%28osm_2.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_2.descr%29%29%2C%20%28COALESCE%28mg_2.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_2.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_2.quota_rep%2C%20%28CASE%20osm_2.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_2.calc_status%20END%29%2C%20osm_2.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20201721kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D14017%20read%3D53042%2C%20local%20hit%3D1468468%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..37465936.67%20rows%3D189959841%20width%3D584%29%20%28actual%20time%3D50.604..4494.745%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm_2.bill_class%20%3D%20l_2.bill%29%20AND%20%28osm_2.ship_class%20%3D%20l_2.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D14017%20read%3D53042%2C%20local%20hit%3D1468468%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..23902628.82%20rows%3D189959841%20width%3D574%29%20%28actual%20time%3D50.549..4122.287%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_2.part%2C%201%2C%208%29%20%3D%20md_2.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D14015%20read%3D53042%2C%20local%20hit%3D1468468%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..12030132.26%20rows%3D189959841%20width%3D542%29%20%28actual%20time%3D49.780..3891.847%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.part%20%3D%20p_3.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D14015%20read%3D53042%2C%20local%20hit%3D1468468%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..11527995.69%20rows%3D189959841%20width%3D518%29%20%28actual%20time%3D34.804..3756.178%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D11407%20read%3D53042%2C%20local%20hit%3D1468468%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..670498.91%20rows%3D9825509%20width%3D446%29%20%28actual%20time%3D34.797..2623.310%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D11407%20read%3D53042%2C%20local%20hit%3D734236%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..108904.23%20rows%3D508216%20width%3D374%29%20%28actual%20time%3D34.774..1278.961%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.part%20%3D%20m_3.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D11407%20read%3D53042%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..99297.64%20rows%3D508216%20width%3D339%29%20%28actual%20time%3D0.327..1108.708%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_2.part%2C%201%2C%203%29%20%3D%20f_2.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4959%20read%3D53042%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..91650.71%20rows%3D508216%20width%3D315%29%20%28actual%20time%3D0.203..921.418%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm_2.part%2C%2016%2C%201%29%20%3D%20mg_2.f1%29%20AND%20%28osm_2.ming%20%3D%20mg_2.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4950%20read%3D53042%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..87189.88%20rows%3D508216%20width%3D283%29%20%28actual%20time%3D0.191..727.591%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.glec%20%3D%20seg_2.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4950%20read%3D53042%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..80265.15%20rows%3D508216%20width%3D255%29%20%28actual%20time%3D0.180..611.979%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.fspr%20%3D%20sd_2.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4950%20read%3D53042%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osm%20osm_2%20%20%28cost%3D0.00..73663.10%20rows%3D508216%20width%3D175%29%20%28actual%20time%3D0.106..492.248%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271606%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272016-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20417370%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4950%20read%3D53042%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.065..0.065%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_2%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.018..0.041%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.006..0.006%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20seg_2%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.002..0.003%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.006..0.006%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20mg_2%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.001..0.002%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.119..0.119%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f_2%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.014..0.051%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D34.398..34.398%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_3%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D0.006..21.130%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od_2%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D367402%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_2.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_2.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D734234%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd_2%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.002..0.003%20rows%3D1%20loops%3D367402%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_2.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm_2.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D734232%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D14.938..14.938%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_3%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D0.006..9.060%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.757..0.757%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20md_2%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.002..0.289%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.042..0.042%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l_2%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.006..0.020%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20CTE%20agg%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D3990139087947.22..4510710248131.84%20rows%3D1892986037035%20width%3D1404%29%20%28actual%20time%3D112425.677..116271.291%20rows%3D809656%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20un.version%2C%20un.iter%2C%20%28%28un.oseas%29%3A%3Anumeric%29%2C%20un.odate%2C%20%28%28un.sseas%29%3A%3Anumeric%29%2C%20un.sdate%2C%20%28%28un.rseas%29%3A%3Anumeric%29%2C%20un.rdate%2C%20un.om%2C%20un.sm%2C%20un.rm%2C%20un.oy%2C%20%28%28un.odate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.odate%20%3C%40%20so.ytd%29%29%2C%20un.sy%2C%20%28%28un.sdate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.sdate%20%3C%40%20ss.ytd%29%29%2C%20%28CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%3D%20un.odate%29%20THEN%20CASE%20WHEN%20%28%28un.sdate%20%3E%20%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%29%20OR%20%28un.sy%20%3D%20%27F%27%3A%3Atext%29%29%20THEN%20CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%20un.rdate%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20%27Shipped%27%3A%3Atext%20END%20ELSE%20%27Not%20Yet%20Placed%27%3A%3Atext%20END%29%2C%20un.ry%2C%20un.plnt%2C%20un.account%2C%20%28%28%28un.bill_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28bc.bvname%29%29%29%2C%20bc.bvctry%2C%20bc.bvprcd%2C%20un.shipgrp%2C%20%28%28%28un.ship_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28sc.bvname%29%29%29%2C%20sc.bvctry%2C%20sc.bvprcd%2C%20un.chan%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retail%20ELSE%20un.chan%20END%29%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retailsub%20ELSE%20%27%27%3A%3Atext%20END%29%2C%20un.promo%2C%20%28%28un.majg%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20majg.bqdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.ming%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20mmgp.brdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.majs%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20sj.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.mins%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20si.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20un.part%2C%20un.part_descr%2C%20un.part_family%2C%20un.part_group%2C%20un.branding%2C%20un.segm%2C%20%28COALESCE%28repc.repp%2C%20un.quota_rep%29%29%2C%20%28COALESCE%28repc.director%2C%20un.quota_rep%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.sy%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.oy%29%29%2C%20%28CASE%20WHEN%20%28un.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20THEN%20CASE%20WHEN%20%28un.rdate%20%3C%20CURRENT_DATE%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20un.calc_status%20END%29%2C%20%28%28%28substr%28un.part%2C%209%2C%203%29%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.branding%29%29%2C%20%27Grand%20Total%27%3A%3Atext%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35380%20read%3D157188%2C%20local%20hit%3D5659519%20read%3D1%2C%20temp%20read%3D169586%20written%3D244360%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D3990139087947.22..3994871553039.80%20rows%3D1892986037035%20width%3D1346%29%20%28actual%20time%3D112425.642..112859.948%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.version%2C%20un.iter%2C%20%28%28un.oseas%29%3A%3Anumeric%29%2C%20un.odate%2C%20%28%28un.sseas%29%3A%3Anumeric%29%2C%20un.sdate%2C%20%28%28un.rseas%29%3A%3Anumeric%29%2C%20un.rdate%2C%20un.om%2C%20un.sm%2C%20un.rm%2C%20un.oy%2C%20%28%28un.odate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.odate%20%3C%40%20so.ytd%29%29%2C%20un.sy%2C%20%28%28un.sdate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.sdate%20%3C%40%20ss.ytd%29%29%2C%20%28CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%3D%20un.odate%29%20THEN%20CASE%20WHEN%20%28%28un.sdate%20%3E%20%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%29%20OR%20%28un.sy%20%3D%20%27F%27%3A%3Atext%29%29%20THEN%20CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%20un.rdate%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20%27Shipped%27%3A%3Atext%20END%20ELSE%20%27Not%20Yet%20Placed%27%3A%3Atext%20END%29%2C%20un.ry%2C%20un.plnt%2C%20un.account%2C%20%28%28%28un.bill_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28bc.bvname%29%29%29%2C%20bc.bvctry%2C%20bc.bvprcd%2C%20un.shipgrp%2C%20%28%28%28un.ship_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28sc.bvname%29%29%29%2C%20sc.bvctry%2C%20sc.bvprcd%2C%20un.chan%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retail%20ELSE%20un.chan%20END%29%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retailsub%20ELSE%20%27%27%3A%3Atext%20END%29%2C%20un.promo%2C%20%28%28un.majg%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20majg.bqdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.ming%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20mmgp.brdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.majs%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20sj.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.mins%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20si.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20un.part%2C%20un.part_descr%2C%20un.part_family%2C%20un.part_group%2C%20un.branding%2C%20un.segm%2C%20%28COALESCE%28repc.repp%2C%20un.quota_rep%29%29%2C%20%28COALESCE%28repc.director%2C%20un.quota_rep%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.sy%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.oy%29%29%2C%20%28CASE%20WHEN%20%28un.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20THEN%20CASE%20WHEN%20%28un.rdate%20%3C%20CURRENT_DATE%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20un.calc_status%20END%29%2C%20%28%28%28substr%28un.part%2C%209%2C%203%29%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.branding%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20475944kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35380%20read%3D157188%2C%20local%20hit%3D5659519%20read%3D1%2C%20temp%20read%3D169586%20written%3D244360%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Merge%20Right%20Join%20%20%28cost%3D33563712447.31..265517026370.70%20rows%3D1892986037035%20width%3D1346%29%20%28actual%20time%3D69370.743..73383.296%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Merge%20Cond%3A%20%28ss.ssyr%20%3D%20un.sseas%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D157188%2C%20local%20hit%3D5659519%20read%3D1%2C%20temp%20read%3D110093%20written%3D184866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D1353.78..1391.63%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.187..0.194%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20ss.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20std%20ss%20%20%28cost%3D0.00..302.76%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.143..0.183%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D33563711093.53..33688759715.34%20rows%3D25009724363%20width%3D1300%29%20%28actual%20time%3D69363.504..70242.785%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D157188%2C%20local%20hit%3D5659517%20read%3D1%2C%20temp%20read%3D110093%20written%3D184866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D33563711093.53..33626235404.44%20rows%3D25009724363%20width%3D1300%29%20%28actual%20time%3D69363.500..69636.493%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.sseas%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20445936kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D157188%2C%20local%20hit%3D5659517%20read%3D1%2C%20temp%20read%3D110093%20written%3D146616%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Merge%20Right%20Join%20%20%28cost%3D488162845.81..864134844.69%20rows%3D25009724363%20width%3D1300%29%20%28actual%20time%3D64619.072..67097.961%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Merge%20Cond%3A%20%28so.ssyr%20%3D%20un.oseas%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D157188%2C%20local%20hit%3D5659517%20read%3D1%2C%20temp%20read%3D54351%20written%3D90873%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D1353.78..1391.63%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.005..0.009%20rows%3D13%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20so.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20std%20so%20%20%28cost%3D0.00..302.76%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.001..0.002%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D488161492.03..489813607.52%20rows%3D330423099%20width%3D1268%29%20%28actual%20time%3D64619.055..66543.724%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D157188%2C%20local%20hit%3D5659517%20read%3D1%2C%20temp%20read%3D54351%20written%3D90873%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D488161492.03..488987549.77%20rows%3D330423099%20width%3D1268%29%20%28actual%20time%3D64619.051..65222.574%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.oseas%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20434808kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D157188%2C%20local%20hit%3D5659517%20read%3D1%2C%20temp%20read%3D54351%20written%3D54352%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30326.40..75489285.22%20rows%3D330423099%20width%3D1268%29%20%28actual%20time%3D26974.130..61679.511%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cr.y0part%29%20AND%20%28un.plnt%20%3D%20cr.y0plnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D157188%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D22414.65..56426266.97%20rows%3D330423099%20width%3D1262%29%20%28actual%20time%3D26803.460..61130.886%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cp.chpart%29%20AND%20%28un.plnt%20%3D%20cp.chplnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D151936%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5307.518%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D14299.03..36533966.06%20rows%3D330423099%20width%3D1256%29%20%28actual%20time%3D26596.173..60544.080%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cm.cgpart%29%20AND%20%28un.plnt%20%3D%20cm.cgplnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D146620%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5163.164%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D7433.88..34026391.85%20rows%3D330423099%20width%3D1250%29%20%28actual%20time%3D26466.230..59938.193%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.bill_cust%20%3D%20sc.bvcust%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D142113%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5079.788%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D3723.16..29479363.52%20rows%3D330423099%20width%3D1223%29%20%28actual%20time%3D26455.847..59596.315%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.bill_cust%20%3D%20bc.bvcust%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32148%20read%3D142113%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5079.788%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D12.44..24932335.18%20rows%3D330423099%20width%3D1196%29%20%28actual%20time%3D26376.451..59161.607%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.ming%20%3D%20mmgp.brmgrp%29%20AND%20%28un.majg%20%3D%20mmgp.brgrp%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32148%20read%3D138889%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5012.664%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D7.51..15006668.18%20rows%3D330423099%20width%3D1186%29%20%28actual%20time%3D26375.626..58843.583%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.majg%20%3D%20majg.bqgrp%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32148%20read%3D138888%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5011.904%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.24..13569326.43%20rows%3D330423099%20width%3D1176%29%20%28actual%20time%3D26375.306..58564.379%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.majs%20%3D%20sj.bsmjcd%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32148%20read%3D138887%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5011.601%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.21..12313718.62%20rows%3D330423099%20width%3D1144%29%20%28actual%20time%3D26375.285..58278.120%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.majs%20%3D%20si.bsmjcd%29%20AND%20%28un.mins%20%3D%20si.bsmncd%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32147%20read%3D138887%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5011.601%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D3.90..9830091.09%20rows%3D330423099%20width%3D1112%29%20%28actual%20time%3D26374.932..57946.951%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.quota_rep%20%3D%20repc.rcode%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32147%20read%3D138886%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5011.303%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..6608461.98%20rows%3D330423099%20width%3D1048%29%20%28actual%20time%3D26363.408..57457.121%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32147%20read%3D138860%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5000.713%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2.40..2.40%20rows%3D120%20width%3D96%29%20%28actual%20time%3D11.512..11.512%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2017kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10.590%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20repc%20%20%28cost%3D0.00..2.40%20rows%3D120%20width%3D96%29%20%28actual%20time%3D4.008..11.473%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10.590%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.32..1.32%20rows%3D66%20width%3D96%29%20%28actual%20time%3D0.343..0.343%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2011kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.297%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20si%20%20%28cost%3D0.00..1.32%20rows%3D66%20width%3D96%29%20%28actual%20time%3D0.310..0.330%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.297%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.02..0.02%20rows%3D1%20width%3D64%29%20%28actual%20time%3D0.014..0.014%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20sj%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D64%29%20%28actual%20time%3D0.006..0.012%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.12..1.12%20rows%3D12%20width%3D14%29%20%28actual%20time%3D0.316..0.316%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.303%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20majg%20%20%28cost%3D0.00..1.12%20rows%3D12%20width%3D14%29%20%28actual%20time%3D0.309..0.310%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.303%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2.57..2.57%20rows%3D157%20width%3D18%29%20%28actual%20time%3D0.818..0.818%20rows%3D157%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.760%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmgp%20%20%28cost%3D0.00..2.57%20rows%3D157%20width%3D18%29%20%28actual%20time%3D0.771..0.787%20rows%3D157%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.760%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3440.32..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D79.377..79.377%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2032768%20%20Batches%3A%201%20%20Memory%20Usage%3A%201721kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D67.124%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20cust%20bc%20%20%28cost%3D0.00..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D1.226..74.190%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D67.124%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3440.32..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D10.361..10.361%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2032768%20%20Batches%3A%201%20%20Memory%20Usage%3A%201721kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20cust%20sc%20%20%28cost%3D0.00..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D0.007..6.549%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D5450.26..5450.26%20rows%3D94326%20width%3D29%29%20%28actual%20time%3D129.891..129.891%20rows%3D94326%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%206699kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4507%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.376%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstm%20cm%20%20%28cost%3D0.00..5450.26%20rows%3D94326%20width%3D29%29%20%28actual%20time%3D1.628..106.590%20rows%3D94326%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4507%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.376%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D6435.85..6435.85%20rows%3D111985%20width%3D20%29%20%28actual%20time%3D207.238..207.238%20rows%3D111985%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%206768kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5316%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D144.354%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstp%20cp%20%20%28cost%3D0.00..6435.85%20rows%3D111985%20width%3D20%29%20%28actual%20time%3D12.877..174.296%20rows%3D111985%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5316%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D144.354%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D6315.90..6315.90%20rows%3D106390%20width%3D27%29%20%28actual%20time%3D167.190..167.190%20rows%3D106390%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207334kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5252%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D123.594%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstr%20cr%20%20%28cost%3D0.00..6315.90%20rows%3D106390%20width%3D27%29%20%28actual%20time%3D1.618..138.920%20rows%3D106390%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5252%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D123.594%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a%20%20%28cost%3D0.00..37859720740.70%20rows%3D1892986037035%20width%3D1520%29%20%28actual%20time%3D112425.683..119325.832%20rows%3D809656%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35380%20read%3D157188%2C%20local%20hit%3D5659519%20read%3D1%2C%20temp%20read%3D169586%20written%3D302217%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a_1%20%20%28cost%3D0.00..43089094668.02%20rows%3D14197395278%20width%3D1520%29%20%28actual%20time%3D10.640..1070.930%20rows%3D298533%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Filter%3A%20%28%28ocytd%20OR%20scytd%29%20AND%20%28version%20%3D%20ANY%20%28%27%7BActual%2CForecast%7D%27%3A%3Atext%5B%5D%29%29%29%0A%09%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20511123%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20temp%20read%3D57858%20written%3D1%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a_2%20%20%28cost%3D0.00..43089094668.02%20rows%3D14197395278%20width%3D1520%29%20%28actual%20time%3D24.901..1109.287%20rows%3D270191%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Filter%3A%20%28%28ocytd%20OR%20scytd%29%20AND%20%28version%20%3D%20ANY%20%28%27%7BActual%2CBudget%7D%27%3A%3Atext%5B%5D%29%29%29%0A%09%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20539465%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20temp%20read%3D57858%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Append (cost=4510966117154.68..4644894879274.93 rows=1921380827591 width=1520) (actual time=112425.684..121699.211 rows=1378380 loops=1)
|
||
Buffers: shared hit=35380 read=157188, local hit=5659519 read=1, temp read=285302 written=302218
|
||
I/O Timings: read=5431.112
|
||
CTE seg
|
||
-> Values Scan on "*VALUES*" (cost=0.00..0.18 rows=14 width=64) (actual time=0.003..0.006 rows=14 loops=1)
|
||
CTE mg
|
||
-> Values Scan on "*VALUES*_1" (cost=0.00..0.20 rows=16 width=96) (actual time=0.002..0.007 rows=16 loops=1)
|
||
CTE repc
|
||
-> Hash Left Join (cost=11.47..123.28 rows=120 width=96) (actual time=4.005..11.391 rows=120 loops=1)
|
||
Hash Cond: (ltrim(rtrim(c.a9)) = q.qr)
|
||
Buffers: shared read=26
|
||
I/O Timings: read=10.590
|
||
-> Bitmap Heap Scan on code c (cost=9.21..118.86 rows=120 width=25) (actual time=3.631..10.743 rows=120 loops=1)
|
||
Recheck Cond: (a2 = 'MM'::text)
|
||
Heap Blocks: exact=21
|
||
Buffers: shared read=25
|
||
I/O Timings: read=10.256
|
||
-> Bitmap Index Scan on pk_code (cost=0.00..9.18 rows=120 width=0) (actual time=2.484..2.484 rows=120 loops=1)
|
||
Index Cond: (a2 = 'MM'::text)
|
||
Buffers: shared read=4
|
||
I/O Timings: read=2.398
|
||
-> Hash (cost=1.56..1.56 rows=56 width=12) (actual time=0.359..0.359 rows=56 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 11kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.334
|
||
-> Seq Scan on qrh q (cost=0.00..1.56 rows=56 width=12) (actual time=0.342..0.348 rows=56 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.334
|
||
CTE md
|
||
-> HashAggregate (cost=11936.00..11938.00 rows=200 width=64) (actual time=141.238..141.651 rows=3368 loops=1)
|
||
Group Key: (substr(m.avpart, 1, 8))
|
||
Buffers: shared hit=9056
|
||
-> Append (cost=8137.31..11870.54 rows=13091 width=64) (actual time=131.283..140.399 rows=3375 loops=1)
|
||
Buffers: shared hit=9056
|
||
-> HashAggregate (cost=8137.31..8249.94 rows=9010 width=64) (actual time=131.282..131.853 rows=3285 loops=1)
|
||
Group Key: substr(m.avpart, 1, 8)
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m (cost=0.00..8092.26 rows=9010 width=59) (actual time=0.026..38.556 rows=76269 loops=1)
|
||
Filter: ((length(avpart) > 8) AND (substr(avgled, 1, 1) <= '2'::text))
|
||
Rows Removed by Filter: 4728
|
||
Buffers: shared hit=6448
|
||
-> HashAggregate (cost=3373.23..3424.24 rows=4081 width=64) (actual time=8.321..8.352 rows=90 loops=1)
|
||
Group Key: substr(p.awpart, 1, 8)
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p (cost=0.00..3352.82 rows=4081 width=52) (actual time=0.446..8.258 rows=142 loops=1)
|
||
Filter: ((length(awpart) > 8) AND (substr(awgled, 1, 1) <= '2'::text))
|
||
Rows Removed by Filter: 36557
|
||
Buffers: shared hit=2608
|
||
CTE sj
|
||
-> Seq Scan on mmsl (cost=0.00..1.84 rows=1 width=22) (actual time=0.004..0.009 rows=11 loops=1)
|
||
Filter: (COALESCE(bsmncd, ''::text) = ''::text)
|
||
Rows Removed by Filter: 56
|
||
Buffers: shared hit=1
|
||
CTE si
|
||
-> Seq Scan on mmsl mmsl_1 (cost=0.00..1.84 rows=66 width=22) (actual time=0.307..0.314 rows=56 loops=1)
|
||
Filter: (COALESCE(bsmncd, ''::text) <> ''::text)
|
||
Rows Removed by Filter: 11
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.297
|
||
CTE seas
|
||
-> GroupAggregate (cost=10.22..16.31 rows=174 width=41) (actual time=0.068..0.100 rows=15 loops=1)
|
||
Group Key: gld.ssyr
|
||
Buffers: local hit=2
|
||
-> Sort (cost=10.22..10.65 rows=174 width=16) (actual time=0.054..0.061 rows=174 loops=1)
|
||
Sort Key: gld.ssyr DESC
|
||
Sort Method: quicksort Memory: 33kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld (cost=0.00..3.74 rows=174 width=16) (actual time=0.010..0.030 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
CTE intv
|
||
-> CTE Scan on seas (cost=0.00..4.13 rows=87 width=4) (actual time=0.080..0.081 rows=1 loops=1)
|
||
Filter: cy
|
||
Rows Removed by Filter: 14
|
||
Buffers: local hit=2
|
||
CTE std
|
||
-> Nested Loop (cost=0.00..457.62 rows=15138 width=73) (actual time=0.087..0.122 rows=15 loops=1)
|
||
Buffers: local hit=2
|
||
-> CTE Scan on intv (cost=0.00..1.74 rows=87 width=4) (actual time=0.081..0.082 rows=1 loops=1)
|
||
Buffers: local hit=2
|
||
-> CTE Scan on seas s (cost=0.00..3.48 rows=174 width=41) (actual time=0.000..0.028 rows=15 loops=1)
|
||
CTE un
|
||
-> Append (cost=50003223.80..255856479.46 rows=330423099 width=697) (actual time=26363.405..56340.259 rows=812398 loops=1)
|
||
Buffers: shared hit=32147 read=138860, local hit=5659517 read=1
|
||
I/O Timings: read=5000.713
|
||
-> GroupAggregate (cost=50003223.80..63823292.65 rows=83757993 width=701) (actual time=26363.404..28258.932 rows=212793 loops=1)
|
||
Group Key: od.ssyr, osm.adj_orderdate, sd.ssyr, (LEAST(GREATEST(osm.adj_shipdate, sd.sdat), sd.edat)), rd.ssyr, osm.adj_requestdate, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(rd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text)), (COALESCE(rd.cy, 'F'::text)), osm.plnt, osm.account, osm.bill_cust, osm.shipgrp, osm.ship_cust, osm.chan, l.retail, l.retailsub, osm.promo, osm.majg, osm.ming, osm.majs, osm.mins, osm.part, (((osm.part || ' - '::text) || rtrim(COALESCE(m_1.avdes1, p_1.awdes1)))), (((f.f3 || ' - '::text) || f.descr)), (((substr(osm.part, 1, 8) || ' - '::text) || md.descr)), (COALESCE(mg.grp, 'Unbranded'::text)), (COALESCE(seg.segm, 'Other'::text)), osm.quota_rep, (CASE osm.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm.calc_status END), osm.c_rate
|
||
Buffers: shared hit=9063 read=59473, local hit=2563791 read=1
|
||
I/O Timings: read=2714.560
|
||
-> Sort (cost=50003223.80..50212618.79 rows=83757993 width=594) (actual time=26363.369..26503.583 rows=641010 loops=1)
|
||
Sort Key: od.ssyr, osm.adj_orderdate, sd.ssyr, (LEAST(GREATEST(osm.adj_shipdate, sd.sdat), sd.edat)), rd.ssyr, osm.adj_requestdate, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(rd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text)), (COALESCE(rd.cy, 'F'::text)), osm.plnt, osm.account, osm.bill_cust, osm.shipgrp, osm.ship_cust, osm.chan, l.retail, l.retailsub, osm.promo, osm.majg, osm.ming, osm.majs, osm.mins, osm.part, (((osm.part || ' - '::text) || rtrim(COALESCE(m_1.avdes1, p_1.awdes1)))), (((f.f3 || ' - '::text) || f.descr)), (((substr(osm.part, 1, 8) || ' - '::text) || md.descr)), (COALESCE(mg.grp, 'Unbranded'::text)), (COALESCE(seg.segm, 'Other'::text)), osm.quota_rep, (CASE osm.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm.calc_status END), osm.c_rate
|
||
Sort Method: quicksort Memory: 352782kB
|
||
Buffers: shared hit=9063 read=59473, local hit=2563791 read=1
|
||
I/O Timings: read=2714.560
|
||
-> Hash Left Join (cost=11749.79..16650773.71 rows=83757993 width=594) (actual time=412.849..12408.886 rows=641010 loops=1)
|
||
Hash Cond: ((osm.bill_class = l.bill) AND (osm.ship_class = l.ship))
|
||
Buffers: shared hit=9060 read=59473, local hit=2563791 read=1
|
||
I/O Timings: read=2714.560
|
||
-> Hash Left Join (cost=11744.32..10583311.94 rows=83757993 width=583) (actual time=412.362..11595.759 rows=641010 loops=1)
|
||
Hash Cond: (substr(osm.part, 1, 8) = md.mold)
|
||
Buffers: shared hit=9060 read=59471, local hit=2563791 read=1
|
||
I/O Timings: read=2714.141
|
||
-> Hash Left Join (cost=11737.82..5348430.88 rows=83757993 width=551) (actual time=269.279..10961.881 rows=641010 loops=1)
|
||
Hash Cond: (osm.part = p_1.awpart)
|
||
Buffers: shared hit=4 read=59471, local hit=2563791 read=1
|
||
I/O Timings: read=2714.141
|
||
-> Nested Loop Left Join (cost=8303.37..5125106.33 rows=83757993 width=527) (actual time=188.919..10630.169 rows=641010 loops=1)
|
||
Buffers: shared hit=2 read=56865, local hit=2563791 read=1
|
||
I/O Timings: read=2652.319
|
||
-> Nested Loop Left Join (cost=8303.23..337594.45 rows=4332310 width=455) (actual time=188.914..7884.956 rows=641010 loops=1)
|
||
Buffers: shared hit=2 read=56865, local hit=1281897 read=1
|
||
I/O Timings: read=2652.319
|
||
-> Hash Left Join (cost=8303.08..89964.52 rows=224085 width=383) (actual time=188.885..5089.482 rows=641010 loops=1)
|
||
Hash Cond: (osm.part = m_1.avpart)
|
||
Buffers: shared hit=2 read=56865, local hit=2
|
||
I/O Timings: read=2652.306
|
||
-> Hash Left Join (cost=30.62..81103.81 rows=224085 width=348) (actual time=3.518..4614.841 rows=641010 loops=1)
|
||
Hash Cond: (substr(osm.part, 1, 3) = f.f3)
|
||
Buffers: shared read=50419, local hit=2
|
||
I/O Timings: read=2511.680
|
||
-> Hash Left Join (cost=6.93..77718.84 rows=224085 width=324) (actual time=2.296..4183.537 rows=641010 loops=1)
|
||
Hash Cond: ((substr(osm.part, 16, 1) = mg.f1) AND (osm.ming = mg.ming))
|
||
Buffers: shared read=50410, local hit=2
|
||
I/O Timings: read=2510.588
|
||
-> Hash Left Join (cost=6.37..75750.09 rows=224085 width=292) (actual time=2.277..3733.098 rows=641010 loops=1)
|
||
Hash Cond: (osm.glec = seg.glec)
|
||
Buffers: shared read=50410, local hit=2
|
||
I/O Timings: read=2510.588
|
||
-> Hash Left Join (cost=5.92..72674.81 rows=224085 width=264) (actual time=2.259..3490.071 rows=641010 loops=1)
|
||
Hash Cond: (osm.fspr = sd.fspr)
|
||
Buffers: shared read=50410, local hit=2
|
||
I/O Timings: read=2510.588
|
||
-> Seq Scan on osmp osm (cost=0.00..69587.73 rows=224085 width=184) (actual time=2.186..3227.306 rows=641010 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND (version = 'b19'::text) AND (substr(glec, 1, 1) <= '2'::text) AND ((fspr >= '1901'::text) OR (adj_orderdate >= '2018-06-01'::date)))
|
||
Rows Removed by Filter: 57051
|
||
Buffers: shared read=50410
|
||
I/O Timings: read=2510.588
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.060..0.060 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd (cost=0.00..3.74 rows=174 width=112) (actual time=0.008..0.034 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.014..0.014 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg (cost=0.00..0.28 rows=14 width=64) (actual time=0.005..0.011 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.015..0.015 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg (cost=0.00..0.32 rows=16 width=96) (actual time=0.003..0.011 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=1.217..1.217 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared read=9
|
||
I/O Timings: read=1.092
|
||
-> Seq Scan on family f (cost=0.00..15.53 rows=653 width=24) (actual time=0.985..1.149 rows=653 loops=1)
|
||
Buffers: shared read=9
|
||
I/O Timings: read=1.092
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=185.313..185.313 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=2 read=6446
|
||
I/O Timings: read=140.626
|
||
-> Seq Scan on stkmm m_1 (cost=0.00..7258.87 rows=81087 width=54) (actual time=0.508..163.116 rows=80997 loops=1)
|
||
Buffers: shared hit=2 read=6446
|
||
I/O Timings: read=140.626
|
||
-> Index Scan using se_dat on gld od (cost=0.14..0.92 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=641010)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=1281895 read=1
|
||
I/O Timings: read=0.013
|
||
-> Index Scan using se_dat on gld rd (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.004 rows=1 loops=641010)
|
||
Index Cond: ((osm.adj_requestdate >= sdat) AND (osm.adj_requestdate <= edat))
|
||
Buffers: local hit=1281894
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=80.171..80.171 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2 read=2606
|
||
I/O Timings: read=61.823
|
||
-> Seq Scan on stkmp p_1 (cost=0.00..2975.31 rows=36731 width=33) (actual time=0.342..70.937 rows=36699 loops=1)
|
||
Buffers: shared hit=2 read=2606
|
||
I/O Timings: read=61.823
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=143.065..143.065 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
Buffers: shared hit=9056
|
||
-> CTE Scan on md (cost=0.00..4.00 rows=200 width=64) (actual time=141.241..142.539 rows=3368 loops=1)
|
||
Buffers: shared hit=9056
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.472..0.472 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared read=2
|
||
I/O Timings: read=0.418
|
||
-> Seq Scan on ffchnl l (cost=0.00..3.39 rows=139 width=25) (actual time=0.424..0.443 rows=139 loops=1)
|
||
Buffers: shared read=2
|
||
I/O Timings: read=0.418
|
||
-> GroupAggregate (cost=33445583.00..42801951.72 rows=56705265 width=699) (actual time=17060.209..18105.019 rows=250477 loops=1)
|
||
Group Key: od_1.ssyr, osm_1.adj_orderdate, sd_1.ssyr, (LEAST(GREATEST(osm_1.adj_shipdate, sd_1.sdat), sd_1.edat)), rd_1.ssyr, osm_1.adj_requestdate, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(rd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text)), (COALESCE(rd_1.cy, 'F'::text)), osm_1.plnt, osm_1.account, osm_1.bill_cust, osm_1.shipgrp, osm_1.ship_cust, osm_1.chan, l_1.retail, l_1.retailsub, osm_1.promo, osm_1.majg, osm_1.ming, osm_1.majs, osm_1.mins, osm_1.part, (((osm_1.part || ' - '::text) || rtrim(COALESCE(m_2.avdes1, p_2.awdes1)))), (((f_1.f3 || ' - '::text) || f_1.descr)), (((substr(osm_1.part, 1, 8) || ' - '::text) || md_1.descr)), (COALESCE(mg_1.grp, 'Unbranded'::text)), (COALESCE(seg_1.segm, 'Other'::text)), osm_1.quota_rep, (CASE osm_1.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_1.calc_status END), osm_1.c_rate
|
||
Buffers: shared hit=9067 read=26345, local hit=1627258
|
||
I/O Timings: read=2202.796
|
||
-> Sort (cost=33445583.00..33587346.16 rows=56705265 width=595) (actual time=17060.177..17152.591 rows=406814 loops=1)
|
||
Sort Key: od_1.ssyr, osm_1.adj_orderdate, sd_1.ssyr, (LEAST(GREATEST(osm_1.adj_shipdate, sd_1.sdat), sd_1.edat)), rd_1.ssyr, osm_1.adj_requestdate, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(rd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text)), (COALESCE(rd_1.cy, 'F'::text)), osm_1.plnt, osm_1.account, osm_1.bill_cust, osm_1.shipgrp, osm_1.ship_cust, osm_1.chan, l_1.retail, l_1.retailsub, osm_1.promo, osm_1.majg, osm_1.ming, osm_1.majs, osm_1.mins, osm_1.part, (((osm_1.part || ' - '::text) || rtrim(COALESCE(m_2.avdes1, p_2.awdes1)))), (((f_1.f3 || ' - '::text) || f_1.descr)), (((substr(osm_1.part, 1, 8) || ' - '::text) || md_1.descr)), (COALESCE(mg_1.grp, 'Unbranded'::text)), (COALESCE(seg_1.segm, 'Other'::text)), osm_1.quota_rep, (CASE osm_1.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_1.calc_status END), osm_1.c_rate
|
||
Sort Method: quicksort Memory: 222052kB
|
||
Buffers: shared hit=9067 read=26345, local hit=1627258
|
||
I/O Timings: read=2202.796
|
||
-> Hash Left Join (cost=11749.79..11025086.80 rows=56705265 width=595) (actual time=160.607..8900.120 rows=406814 loops=1)
|
||
Hash Cond: ((osm_1.bill_class = l_1.bill) AND (osm_1.ship_class = l_1.ship))
|
||
Buffers: shared hit=9067 read=26345, local hit=1627258
|
||
I/O Timings: read=2202.796
|
||
-> Hash Left Join (cost=11744.32..6967724.27 rows=55168846 width=584) (actual time=160.531..8303.160 rows=406814 loops=1)
|
||
Hash Cond: (substr(osm_1.part, 1, 8) = md_1.mold)
|
||
Buffers: shared hit=9065 read=26345, local hit=1627258
|
||
I/O Timings: read=2202.796
|
||
-> Hash Left Join (cost=11737.82..3519664.90 rows=55168846 width=552) (actual time=159.458..7928.685 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.part = p_2.awpart)
|
||
Buffers: shared hit=9065 read=26345, local hit=1627258
|
||
I/O Timings: read=2202.796
|
||
-> Nested Loop Left Join (cost=8303.37..3371395.52 rows=55168846 width=528) (actual time=139.481..7719.889 rows=406814 loops=1)
|
||
Buffers: shared hit=6457 read=26345, local hit=1627258
|
||
I/O Timings: read=2202.796
|
||
-> Nested Loop Left Join (cost=8303.23..217901.28 rows=2853561 width=456) (actual time=139.471..5838.942 rows=406814 loops=1)
|
||
Buffers: shared hit=6457 read=26345, local hit=813630
|
||
I/O Timings: read=2202.796
|
||
-> Hash Left Join (cost=8303.08..54789.49 rows=147598 width=384) (actual time=139.449..3929.023 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.part = m_2.avpart)
|
||
Buffers: shared hit=6457 read=26345, local hit=2
|
||
I/O Timings: read=2202.796
|
||
-> Hash Left Join (cost=30.62..46129.57 rows=147598 width=349) (actual time=79.183..3618.398 rows=406814 loops=1)
|
||
Hash Cond: (substr(osm_1.part, 1, 3) = f_1.f3)
|
||
Buffers: shared hit=9 read=26345, local hit=2
|
||
I/O Timings: read=2202.796
|
||
-> Hash Left Join (cost=6.93..43891.91 rows=147598 width=325) (actual time=78.806..3313.087 rows=406814 loops=1)
|
||
Hash Cond: ((substr(osm_1.part, 16, 1) = mg_1.f1) AND (osm_1.ming = mg_1.ming))
|
||
Buffers: shared read=26345, local hit=2
|
||
I/O Timings: read=2202.796
|
||
-> Hash Left Join (cost=6.37..42594.49 rows=147598 width=293) (actual time=78.771..2997.016 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.glec = seg_1.glec)
|
||
Buffers: shared read=26345, local hit=2
|
||
I/O Timings: read=2202.796
|
||
-> Hash Left Join (cost=5.92..40564.57 rows=147598 width=265) (actual time=78.706..2840.808 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.fspr = sd_1.fspr)
|
||
Buffers: shared read=26345, local hit=2
|
||
I/O Timings: read=2202.796
|
||
-> Seq Scan on osmf osm_1 (cost=0.00..38529.18 rows=147598 width=185) (actual time=78.437..2657.330 rows=406814 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND (version = '5p7'::text) AND (substr(glec, 1, 1) <= '2'::text) AND ((fspr >= '1901'::text) OR (adj_orderdate >= '2018-06-01'::date)))
|
||
Rows Removed by Filter: 358
|
||
Buffers: shared read=26345
|
||
I/O Timings: read=2202.796
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.200..0.200 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_1 (cost=0.00..3.74 rows=174 width=112) (actual time=0.053..0.147 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.039..0.039 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg seg_1 (cost=0.00..0.28 rows=14 width=64) (actual time=0.009..0.015 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.014..0.014 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg mg_1 (cost=0.00..0.32 rows=16 width=96) (actual time=0.003..0.008 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=0.350..0.350 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared hit=9
|
||
-> Seq Scan on family f_1 (cost=0.00..15.53 rows=653 width=24) (actual time=0.090..0.194 rows=653 loops=1)
|
||
Buffers: shared hit=9
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=59.937..59.937 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m_2 (cost=0.00..7258.87 rows=81087 width=54) (actual time=0.021..34.499 rows=80997 loops=1)
|
||
Buffers: shared hit=6448
|
||
-> Index Scan using se_dat on gld od_1 (cost=0.14..0.92 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=406814)
|
||
Index Cond: ((osm_1.adj_orderdate >= sdat) AND (osm_1.adj_orderdate <= edat))
|
||
Buffers: local hit=813628
|
||
-> Index Scan using se_dat on gld rd_1 (cost=0.14..0.92 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=406814)
|
||
Index Cond: ((osm_1.adj_requestdate >= sdat) AND (osm_1.adj_requestdate <= edat))
|
||
Buffers: local hit=813628
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=19.766..19.766 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p_2 (cost=0.00..2975.31 rows=36731 width=33) (actual time=0.008..10.901 rows=36699 loops=1)
|
||
Buffers: shared hit=2608
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=1.056..1.056 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
-> CTE Scan on md md_1 (cost=0.00..4.00 rows=200 width=64) (actual time=0.003..0.385 rows=3368 loops=1)
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.055..0.055 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared hit=2
|
||
-> Seq Scan on ffchnl l_1 (cost=0.00..3.39 rows=139 width=25) (actual time=0.007..0.025 rows=139 loops=1)
|
||
Buffers: shared hit=2
|
||
-> GroupAggregate (cost=112931514.84..144274888.60 rows=189959841 width=695) (actual time=8819.747..9896.203 rows=349128 loops=1)
|
||
Group Key: od_2.ssyr, osm_2.adj_orderdate, sd_2.ssyr, (LEAST(GREATEST(osm_2.adj_shipdate, sd_2.sdat), sd_2.edat)), rd_2.ssyr, osm_2.adj_requestdate, (COALESCE(od_2.cm, sd_2.cm)), (COALESCE(sd_2.cm, 'F'::text)), (COALESCE(rd_2.cm, 'F'::text)), (COALESCE(od_2.cy, sd_2.cy)), (COALESCE(sd_2.cy, 'F'::text)), (COALESCE(rd_2.cy, 'F'::text)), osm_2.plnt, osm_2.account, osm_2.bill_cust, osm_2.shipgrp, osm_2.ship_cust, osm_2.chan, l_2.retail, l_2.retailsub, osm_2.promo, osm_2.majg, osm_2.ming, osm_2.majs, osm_2.mins, osm_2.part, (((osm_2.part || ' - '::text) || rtrim(COALESCE(m_3.avdes1, p_3.awdes1)))), (((f_2.f3 || ' - '::text) || f_2.descr)), (((substr(osm_2.part, 1, 8) || ' - '::text) || md_2.descr)), (COALESCE(mg_2.grp, 'Unbranded'::text)), (COALESCE(seg_2.segm, 'Other'::text)), osm_2.quota_rep, (CASE osm_2.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_2.calc_status END), osm_2.c_rate
|
||
Buffers: shared hit=14017 read=53042, local hit=1468468
|
||
I/O Timings: read=83.358
|
||
-> Sort (cost=112931514.84..113406414.44 rows=189959841 width=584) (actual time=8819.714..8895.706 rows=367402 loops=1)
|
||
Sort Key: od_2.ssyr, osm_2.adj_orderdate, sd_2.ssyr, (LEAST(GREATEST(osm_2.adj_shipdate, sd_2.sdat), sd_2.edat)), rd_2.ssyr, osm_2.adj_requestdate, (COALESCE(od_2.cm, sd_2.cm)), (COALESCE(sd_2.cm, 'F'::text)), (COALESCE(rd_2.cm, 'F'::text)), (COALESCE(od_2.cy, sd_2.cy)), (COALESCE(sd_2.cy, 'F'::text)), (COALESCE(rd_2.cy, 'F'::text)), osm_2.plnt, osm_2.account, osm_2.bill_cust, osm_2.shipgrp, osm_2.ship_cust, osm_2.chan, l_2.retail, l_2.retailsub, osm_2.promo, osm_2.majg, osm_2.ming, osm_2.majs, osm_2.mins, osm_2.part, (((osm_2.part || ' - '::text) || rtrim(COALESCE(m_3.avdes1, p_3.awdes1)))), (((f_2.f3 || ' - '::text) || f_2.descr)), (((substr(osm_2.part, 1, 8) || ' - '::text) || md_2.descr)), (COALESCE(mg_2.grp, 'Unbranded'::text)), (COALESCE(seg_2.segm, 'Other'::text)), osm_2.quota_rep, (CASE osm_2.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_2.calc_status END), osm_2.c_rate
|
||
Sort Method: quicksort Memory: 201721kB
|
||
Buffers: shared hit=14017 read=53042, local hit=1468468
|
||
I/O Timings: read=83.358
|
||
-> Hash Left Join (cost=11749.79..37465936.67 rows=189959841 width=584) (actual time=50.604..4494.745 rows=367402 loops=1)
|
||
Hash Cond: ((osm_2.bill_class = l_2.bill) AND (osm_2.ship_class = l_2.ship))
|
||
Buffers: shared hit=14017 read=53042, local hit=1468468
|
||
I/O Timings: read=83.358
|
||
-> Hash Left Join (cost=11744.32..23902628.82 rows=189959841 width=574) (actual time=50.549..4122.287 rows=367402 loops=1)
|
||
Hash Cond: (substr(osm_2.part, 1, 8) = md_2.mold)
|
||
Buffers: shared hit=14015 read=53042, local hit=1468468
|
||
I/O Timings: read=83.358
|
||
-> Hash Left Join (cost=11737.82..12030132.26 rows=189959841 width=542) (actual time=49.780..3891.847 rows=367402 loops=1)
|
||
Hash Cond: (osm_2.part = p_3.awpart)
|
||
Buffers: shared hit=14015 read=53042, local hit=1468468
|
||
I/O Timings: read=83.358
|
||
-> Nested Loop Left Join (cost=8303.37..11527995.69 rows=189959841 width=518) (actual time=34.804..3756.178 rows=367402 loops=1)
|
||
Buffers: shared hit=11407 read=53042, local hit=1468468
|
||
I/O Timings: read=83.358
|
||
-> Nested Loop Left Join (cost=8303.23..670498.91 rows=9825509 width=446) (actual time=34.797..2623.310 rows=367402 loops=1)
|
||
Buffers: shared hit=11407 read=53042, local hit=734236
|
||
I/O Timings: read=83.358
|
||
-> Hash Left Join (cost=8303.08..108904.23 rows=508216 width=374) (actual time=34.774..1278.961 rows=367402 loops=1)
|
||
Hash Cond: (osm_2.part = m_3.avpart)
|
||
Buffers: shared hit=11407 read=53042, local hit=2
|
||
I/O Timings: read=83.358
|
||
-> Hash Left Join (cost=30.62..99297.64 rows=508216 width=339) (actual time=0.327..1108.708 rows=367402 loops=1)
|
||
Hash Cond: (substr(osm_2.part, 1, 3) = f_2.f3)
|
||
Buffers: shared hit=4959 read=53042, local hit=2
|
||
I/O Timings: read=83.358
|
||
-> Hash Left Join (cost=6.93..91650.71 rows=508216 width=315) (actual time=0.203..921.418 rows=367402 loops=1)
|
||
Hash Cond: ((substr(osm_2.part, 16, 1) = mg_2.f1) AND (osm_2.ming = mg_2.ming))
|
||
Buffers: shared hit=4950 read=53042, local hit=2
|
||
I/O Timings: read=83.358
|
||
-> Hash Left Join (cost=6.37..87189.88 rows=508216 width=283) (actual time=0.191..727.591 rows=367402 loops=1)
|
||
Hash Cond: (osm_2.glec = seg_2.glec)
|
||
Buffers: shared hit=4950 read=53042, local hit=2
|
||
I/O Timings: read=83.358
|
||
-> Hash Left Join (cost=5.92..80265.15 rows=508216 width=255) (actual time=0.180..611.979 rows=367402 loops=1)
|
||
Hash Cond: (osm_2.fspr = sd_2.fspr)
|
||
Buffers: shared hit=4950 read=53042, local hit=2
|
||
I/O Timings: read=83.358
|
||
-> Seq Scan on osm osm_2 (cost=0.00..73663.10 rows=508216 width=175) (actual time=0.106..492.248 rows=367402 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND ((fspr >= '1606'::text) OR (adj_orderdate >= '2016-06-01'::date)))
|
||
Rows Removed by Filter: 417370
|
||
Buffers: shared hit=4950 read=53042
|
||
I/O Timings: read=83.358
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.065..0.065 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_2 (cost=0.00..3.74 rows=174 width=112) (actual time=0.018..0.041 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.006..0.006 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg seg_2 (cost=0.00..0.28 rows=14 width=64) (actual time=0.002..0.003 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.006..0.006 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg mg_2 (cost=0.00..0.32 rows=16 width=96) (actual time=0.001..0.002 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=0.119..0.119 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared hit=9
|
||
-> Seq Scan on family f_2 (cost=0.00..15.53 rows=653 width=24) (actual time=0.014..0.051 rows=653 loops=1)
|
||
Buffers: shared hit=9
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=34.398..34.398 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m_3 (cost=0.00..7258.87 rows=81087 width=54) (actual time=0.006..21.130 rows=80997 loops=1)
|
||
Buffers: shared hit=6448
|
||
-> Index Scan using se_dat on gld od_2 (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=367402)
|
||
Index Cond: ((osm_2.adj_orderdate >= sdat) AND (osm_2.adj_orderdate <= edat))
|
||
Buffers: local hit=734234
|
||
-> Index Scan using se_dat on gld rd_2 (cost=0.14..0.92 rows=19 width=80) (actual time=0.002..0.003 rows=1 loops=367402)
|
||
Index Cond: ((osm_2.adj_requestdate >= sdat) AND (osm_2.adj_requestdate <= edat))
|
||
Buffers: local hit=734232
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=14.938..14.938 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p_3 (cost=0.00..2975.31 rows=36731 width=33) (actual time=0.006..9.060 rows=36699 loops=1)
|
||
Buffers: shared hit=2608
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=0.757..0.757 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
-> CTE Scan on md md_2 (cost=0.00..4.00 rows=200 width=64) (actual time=0.002..0.289 rows=3368 loops=1)
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.042..0.042 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared hit=2
|
||
-> Seq Scan on ffchnl l_2 (cost=0.00..3.39 rows=139 width=25) (actual time=0.006..0.020 rows=139 loops=1)
|
||
Buffers: shared hit=2
|
||
CTE agg
|
||
-> GroupAggregate (cost=3990139087947.22..4510710248131.84 rows=1892986037035 width=1404) (actual time=112425.677..116271.291 rows=809656 loops=1)
|
||
Group Key: un.version, un.iter, ((un.oseas)::numeric), un.odate, ((un.sseas)::numeric), un.sdate, ((un.rseas)::numeric), un.rdate, un.om, un.sm, un.rm, un.oy, ((un.odate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.odate <@ so.ytd)), un.sy, ((un.sdate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.sdate <@ ss.ytd)), (CASE WHEN ((upper(so.ytd) - '1 day'::interval) >= un.odate) THEN CASE WHEN ((un.sdate > (upper(so.ytd) - '1 day'::interval)) OR (un.sy = 'F'::text)) THEN CASE WHEN ((upper(so.ytd) - '1 day'::interval) > un.rdate) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE 'Shipped'::text END ELSE 'Not Yet Placed'::text END), un.ry, un.plnt, un.account, (((un.bill_cust || ' - '::text) || rtrim(bc.bvname))), bc.bvctry, bc.bvprcd, un.shipgrp, (((un.ship_cust || ' - '::text) || rtrim(sc.bvname))), sc.bvctry, sc.bvprcd, un.chan, (CASE un.segm WHEN 'Retail'::text THEN un.retail ELSE un.chan END), (CASE un.segm WHEN 'Retail'::text THEN un.retailsub ELSE ''::text END), un.promo, ((un.majg || COALESCE((' - '::text || majg.bqdes), ''::text))), ((un.ming || COALESCE((' - '::text || mmgp.brdes), ''::text))), ((un.majs || COALESCE((' - '::text || sj.bsdes1), ''::text))), ((un.mins || COALESCE((' - '::text || si.bsdes1), ''::text))), un.part, un.part_descr, un.part_family, un.part_group, un.branding, un.segm, (COALESCE(repc.repp, un.quota_rep)), (COALESCE(repc.director, un.quota_rep)), (((un.version || '-'::text) || un.sy)), (((un.version || '-'::text) || un.oy)), (CASE WHEN (un.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) THEN CASE WHEN (un.rdate < CURRENT_DATE) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE un.calc_status END), (((substr(un.part, 9, 3) || '-'::text) || un.branding)), 'Grand Total'::text
|
||
Buffers: shared hit=35380 read=157188, local hit=5659519 read=1, temp read=169586 written=244360
|
||
I/O Timings: read=5431.112
|
||
-> Sort (cost=3990139087947.22..3994871553039.80 rows=1892986037035 width=1346) (actual time=112425.642..112859.948 rows=812398 loops=1)
|
||
Sort Key: un.version, un.iter, ((un.oseas)::numeric), un.odate, ((un.sseas)::numeric), un.sdate, ((un.rseas)::numeric), un.rdate, un.om, un.sm, un.rm, un.oy, ((un.odate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.odate <@ so.ytd)), un.sy, ((un.sdate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.sdate <@ ss.ytd)), (CASE WHEN ((upper(so.ytd) - '1 day'::interval) >= un.odate) THEN CASE WHEN ((un.sdate > (upper(so.ytd) - '1 day'::interval)) OR (un.sy = 'F'::text)) THEN CASE WHEN ((upper(so.ytd) - '1 day'::interval) > un.rdate) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE 'Shipped'::text END ELSE 'Not Yet Placed'::text END), un.ry, un.plnt, un.account, (((un.bill_cust || ' - '::text) || rtrim(bc.bvname))), bc.bvctry, bc.bvprcd, un.shipgrp, (((un.ship_cust || ' - '::text) || rtrim(sc.bvname))), sc.bvctry, sc.bvprcd, un.chan, (CASE un.segm WHEN 'Retail'::text THEN un.retail ELSE un.chan END), (CASE un.segm WHEN 'Retail'::text THEN un.retailsub ELSE ''::text END), un.promo, ((un.majg || COALESCE((' - '::text || majg.bqdes), ''::text))), ((un.ming || COALESCE((' - '::text || mmgp.brdes), ''::text))), ((un.majs || COALESCE((' - '::text || sj.bsdes1), ''::text))), ((un.mins || COALESCE((' - '::text || si.bsdes1), ''::text))), un.part, un.part_descr, un.part_family, un.part_group, un.branding, un.segm, (COALESCE(repc.repp, un.quota_rep)), (COALESCE(repc.director, un.quota_rep)), (((un.version || '-'::text) || un.sy)), (((un.version || '-'::text) || un.oy)), (CASE WHEN (un.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) THEN CASE WHEN (un.rdate < CURRENT_DATE) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE un.calc_status END), (((substr(un.part, 9, 3) || '-'::text) || un.branding))
|
||
Sort Method: external merge Disk: 475944kB
|
||
Buffers: shared hit=35380 read=157188, local hit=5659519 read=1, temp read=169586 written=244360
|
||
I/O Timings: read=5431.112
|
||
-> Merge Right Join (cost=33563712447.31..265517026370.70 rows=1892986037035 width=1346) (actual time=69370.743..73383.296 rows=812398 loops=1)
|
||
Merge Cond: (ss.ssyr = un.sseas)
|
||
Buffers: shared hit=35372 read=157188, local hit=5659519 read=1, temp read=110093 written=184866
|
||
I/O Timings: read=5431.112
|
||
-> Sort (cost=1353.78..1391.63 rows=15138 width=40) (actual time=0.187..0.194 rows=15 loops=1)
|
||
Sort Key: ss.ssyr
|
||
Sort Method: quicksort Memory: 26kB
|
||
Buffers: local hit=2
|
||
-> CTE Scan on std ss (cost=0.00..302.76 rows=15138 width=40) (actual time=0.143..0.183 rows=15 loops=1)
|
||
Buffers: local hit=2
|
||
-> Materialize (cost=33563711093.53..33688759715.34 rows=25009724363 width=1300) (actual time=69363.504..70242.785 rows=812398 loops=1)
|
||
Buffers: shared hit=35372 read=157188, local hit=5659517 read=1, temp read=110093 written=184866
|
||
I/O Timings: read=5431.112
|
||
-> Sort (cost=33563711093.53..33626235404.44 rows=25009724363 width=1300) (actual time=69363.500..69636.493 rows=812398 loops=1)
|
||
Sort Key: un.sseas
|
||
Sort Method: external merge Disk: 445936kB
|
||
Buffers: shared hit=35372 read=157188, local hit=5659517 read=1, temp read=110093 written=146616
|
||
I/O Timings: read=5431.112
|
||
-> Merge Right Join (cost=488162845.81..864134844.69 rows=25009724363 width=1300) (actual time=64619.072..67097.961 rows=812398 loops=1)
|
||
Merge Cond: (so.ssyr = un.oseas)
|
||
Buffers: shared hit=35372 read=157188, local hit=5659517 read=1, temp read=54351 written=90873
|
||
I/O Timings: read=5431.112
|
||
-> Sort (cost=1353.78..1391.63 rows=15138 width=40) (actual time=0.005..0.009 rows=13 loops=1)
|
||
Sort Key: so.ssyr
|
||
Sort Method: quicksort Memory: 26kB
|
||
-> CTE Scan on std so (cost=0.00..302.76 rows=15138 width=40) (actual time=0.001..0.002 rows=15 loops=1)
|
||
-> Materialize (cost=488161492.03..489813607.52 rows=330423099 width=1268) (actual time=64619.055..66543.724 rows=812398 loops=1)
|
||
Buffers: shared hit=35372 read=157188, local hit=5659517 read=1, temp read=54351 written=90873
|
||
I/O Timings: read=5431.112
|
||
-> Sort (cost=488161492.03..488987549.77 rows=330423099 width=1268) (actual time=64619.051..65222.574 rows=812398 loops=1)
|
||
Sort Key: un.oseas
|
||
Sort Method: external merge Disk: 434808kB
|
||
Buffers: shared hit=35372 read=157188, local hit=5659517 read=1, temp read=54351 written=54352
|
||
I/O Timings: read=5431.112
|
||
-> Hash Left Join (cost=30326.40..75489285.22 rows=330423099 width=1268) (actual time=26974.130..61679.511 rows=812398 loops=1)
|
||
Hash Cond: ((un.part = cr.y0part) AND (un.plnt = cr.y0plnt))
|
||
Buffers: shared hit=35372 read=157188, local hit=5659517 read=1
|
||
I/O Timings: read=5431.112
|
||
-> Hash Left Join (cost=22414.65..56426266.97 rows=330423099 width=1262) (actual time=26803.460..61130.886 rows=812398 loops=1)
|
||
Hash Cond: ((un.part = cp.chpart) AND (un.plnt = cp.chplnt))
|
||
Buffers: shared hit=35372 read=151936, local hit=5659517 read=1
|
||
I/O Timings: read=5307.518
|
||
-> Hash Left Join (cost=14299.03..36533966.06 rows=330423099 width=1256) (actual time=26596.173..60544.080 rows=812398 loops=1)
|
||
Hash Cond: ((un.part = cm.cgpart) AND (un.plnt = cm.cgplnt))
|
||
Buffers: shared hit=35372 read=146620, local hit=5659517 read=1
|
||
I/O Timings: read=5163.164
|
||
-> Hash Left Join (cost=7433.88..34026391.85 rows=330423099 width=1250) (actual time=26466.230..59938.193 rows=812398 loops=1)
|
||
Hash Cond: (un.bill_cust = sc.bvcust)
|
||
Buffers: shared hit=35372 read=142113, local hit=5659517 read=1
|
||
I/O Timings: read=5079.788
|
||
-> Hash Left Join (cost=3723.16..29479363.52 rows=330423099 width=1223) (actual time=26455.847..59596.315 rows=812398 loops=1)
|
||
Hash Cond: (un.bill_cust = bc.bvcust)
|
||
Buffers: shared hit=32148 read=142113, local hit=5659517 read=1
|
||
I/O Timings: read=5079.788
|
||
-> Hash Left Join (cost=12.44..24932335.18 rows=330423099 width=1196) (actual time=26376.451..59161.607 rows=812398 loops=1)
|
||
Hash Cond: ((un.ming = mmgp.brmgrp) AND (un.majg = mmgp.brgrp))
|
||
Buffers: shared hit=32148 read=138889, local hit=5659517 read=1
|
||
I/O Timings: read=5012.664
|
||
-> Hash Left Join (cost=7.51..15006668.18 rows=330423099 width=1186) (actual time=26375.626..58843.583 rows=812398 loops=1)
|
||
Hash Cond: (un.majg = majg.bqgrp)
|
||
Buffers: shared hit=32148 read=138888, local hit=5659517 read=1
|
||
I/O Timings: read=5011.904
|
||
-> Hash Left Join (cost=6.24..13569326.43 rows=330423099 width=1176) (actual time=26375.306..58564.379 rows=812398 loops=1)
|
||
Hash Cond: (un.majs = sj.bsmjcd)
|
||
Buffers: shared hit=32148 read=138887, local hit=5659517 read=1
|
||
I/O Timings: read=5011.601
|
||
-> Hash Left Join (cost=6.21..12313718.62 rows=330423099 width=1144) (actual time=26375.285..58278.120 rows=812398 loops=1)
|
||
Hash Cond: ((un.majs = si.bsmjcd) AND (un.mins = si.bsmncd))
|
||
Buffers: shared hit=32147 read=138887, local hit=5659517 read=1
|
||
I/O Timings: read=5011.601
|
||
-> Hash Left Join (cost=3.90..9830091.09 rows=330423099 width=1112) (actual time=26374.932..57946.951 rows=812398 loops=1)
|
||
Hash Cond: (un.quota_rep = repc.rcode)
|
||
Buffers: shared hit=32147 read=138886, local hit=5659517 read=1
|
||
I/O Timings: read=5011.303
|
||
-> CTE Scan on un (cost=0.00..6608461.98 rows=330423099 width=1048) (actual time=26363.408..57457.121 rows=812398 loops=1)
|
||
Buffers: shared hit=32147 read=138860, local hit=5659517 read=1
|
||
I/O Timings: read=5000.713
|
||
-> Hash (cost=2.40..2.40 rows=120 width=96) (actual time=11.512..11.512 rows=120 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 17kB
|
||
Buffers: shared read=26
|
||
I/O Timings: read=10.590
|
||
-> CTE Scan on repc (cost=0.00..2.40 rows=120 width=96) (actual time=4.008..11.473 rows=120 loops=1)
|
||
Buffers: shared read=26
|
||
I/O Timings: read=10.590
|
||
-> Hash (cost=1.32..1.32 rows=66 width=96) (actual time=0.343..0.343 rows=56 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 11kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.297
|
||
-> CTE Scan on si (cost=0.00..1.32 rows=66 width=96) (actual time=0.310..0.330 rows=56 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.297
|
||
-> Hash (cost=0.02..0.02 rows=1 width=64) (actual time=0.014..0.014 rows=11 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
Buffers: shared hit=1
|
||
-> CTE Scan on sj (cost=0.00..0.02 rows=1 width=64) (actual time=0.006..0.012 rows=11 loops=1)
|
||
Buffers: shared hit=1
|
||
-> Hash (cost=1.12..1.12 rows=12 width=14) (actual time=0.316..0.316 rows=12 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.303
|
||
-> Seq Scan on majg (cost=0.00..1.12 rows=12 width=14) (actual time=0.309..0.310 rows=12 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.303
|
||
-> Hash (cost=2.57..2.57 rows=157 width=18) (actual time=0.818..0.818 rows=157 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.760
|
||
-> Seq Scan on mmgp (cost=0.00..2.57 rows=157 width=18) (actual time=0.771..0.787 rows=157 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.760
|
||
-> Hash (cost=3440.32..3440.32 rows=21632 width=35) (actual time=79.377..79.377 rows=21632 loops=1)
|
||
Buckets: 32768 Batches: 1 Memory Usage: 1721kB
|
||
Buffers: shared read=3224
|
||
I/O Timings: read=67.124
|
||
-> Seq Scan on cust bc (cost=0.00..3440.32 rows=21632 width=35) (actual time=1.226..74.190 rows=21632 loops=1)
|
||
Buffers: shared read=3224
|
||
I/O Timings: read=67.124
|
||
-> Hash (cost=3440.32..3440.32 rows=21632 width=35) (actual time=10.361..10.361 rows=21632 loops=1)
|
||
Buckets: 32768 Batches: 1 Memory Usage: 1721kB
|
||
Buffers: shared hit=3224
|
||
-> Seq Scan on cust sc (cost=0.00..3440.32 rows=21632 width=35) (actual time=0.007..6.549 rows=21632 loops=1)
|
||
Buffers: shared hit=3224
|
||
-> Hash (cost=5450.26..5450.26 rows=94326 width=29) (actual time=129.891..129.891 rows=94326 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 6699kB
|
||
Buffers: shared read=4507
|
||
I/O Timings: read=83.376
|
||
-> Seq Scan on icstm cm (cost=0.00..5450.26 rows=94326 width=29) (actual time=1.628..106.590 rows=94326 loops=1)
|
||
Buffers: shared read=4507
|
||
I/O Timings: read=83.376
|
||
-> Hash (cost=6435.85..6435.85 rows=111985 width=20) (actual time=207.238..207.238 rows=111985 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 6768kB
|
||
Buffers: shared read=5316
|
||
I/O Timings: read=144.354
|
||
-> Seq Scan on icstp cp (cost=0.00..6435.85 rows=111985 width=20) (actual time=12.877..174.296 rows=111985 loops=1)
|
||
Buffers: shared read=5316
|
||
I/O Timings: read=144.354
|
||
-> Hash (cost=6315.90..6315.90 rows=106390 width=27) (actual time=167.190..167.190 rows=106390 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7334kB
|
||
Buffers: shared read=5252
|
||
I/O Timings: read=123.594
|
||
-> Seq Scan on icstr cr (cost=0.00..6315.90 rows=106390 width=27) (actual time=1.618..138.920 rows=106390 loops=1)
|
||
Buffers: shared read=5252
|
||
I/O Timings: read=123.594
|
||
-> CTE Scan on agg a (cost=0.00..37859720740.70 rows=1892986037035 width=1520) (actual time=112425.683..119325.832 rows=809656 loops=1)
|
||
Buffers: shared hit=35380 read=157188, local hit=5659519 read=1, temp read=169586 written=302217
|
||
I/O Timings: read=5431.112
|
||
-> CTE Scan on agg a_1 (cost=0.00..43089094668.02 rows=14197395278 width=1520) (actual time=10.640..1070.930 rows=298533 loops=1)
|
||
Filter: ((ocytd OR scytd) AND (version = ANY ('{Actual,Forecast}'::text[])))
|
||
Rows Removed by Filter: 511123
|
||
Buffers: temp read=57858 written=1
|
||
-> CTE Scan on agg a_2 (cost=0.00..43089094668.02 rows=14197395278 width=1520) (actual time=24.901..1109.287 rows=270191 loops=1)
|
||
Filter: ((ocytd OR scytd) AND (version = ANY ('{Actual,Budget}'::text[])))
|
||
Rows Removed by Filter: 539465
|
||
Buffers: temp read=57858
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
<td>7</td>
|
||
<td>27s560ms</td>
|
||
<td id="slowest-individual-queries-examples-rank-7">
|
||
<div id="query-d-7-7" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-14 17:15:07 ]</pre>
|
||
<div id="query-d-explain-7-7" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Parallel%20Seq%20Scan%20on%20osmf%20osm%20%20%28cost%3D0.00..30498.70%20rows%3D308%20width%3D42%29%20%28actual%20time%3D0.033..24368.549%20rows%3D190996%20loops%3D1%29%0A%09%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20Rows%20Removed%20by%20Filter%3A%20227%0A%09%20%20Buffers%3A%20shared%20hit%3D12201%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Parallel Seq Scan on osmf osm (cost=0.00..30498.70 rows=308 width=42) (actual time=0.033..24368.549 rows=190996 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 227
|
||
Buffers: shared hit=12201
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
<td>8</td>
|
||
<td>27s559ms</td>
|
||
<td id="slowest-individual-queries-examples-rank-8">
|
||
<div id="query-d-8-8" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-14 17:15:07 ]</pre>
|
||
<div id="query-d-explain-8-8" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Parallel%20Seq%20Scan%20on%20osmf%20osm%20%20%28cost%3D0.00..30498.70%20rows%3D308%20width%3D42%29%20%28actual%20time%3D0.018..23110.458%20rows%3D167047%20loops%3D1%29%0A%09%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20Rows%20Removed%20by%20Filter%3A%20120%0A%09%20%20Buffers%3A%20shared%20hit%3D10779%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Parallel Seq Scan on osmf osm (cost=0.00..30498.70 rows=308 width=42) (actual time=0.018..23110.458 rows=167047 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 120
|
||
Buffers: shared hit=10779
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
<td>9</td>
|
||
<td>25s847ms</td>
|
||
<td id="slowest-individual-queries-examples-rank-9">
|
||
<div id="query-d-9-9" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMP OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> GREATEST <span class="br0">(</span>OSM<span class="sy0">.</span>adj_requestdate<span class="sy0">,</span>
|
||
<span class="kw1"><span class="kw2">current_date</span></span><span class="br0">)</span> <span class="kw1">BETWEEN</span> SD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">WHERE</span>
|
||
OM <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'F'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 17:30:45 - <b>Database:</b> ubm - <b>User:</b> report - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> [unknown] ]</pre>
|
||
<div id="query-d-explain-9-9" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Sort%20%20%28cost%3D113023.45..113023.95%20rows%3D200%20width%3D232%29%20%28actual%20time%3D25846.751..25846.759%20rows%3D129%20loops%3D1%29%0A%09%20%20Sort%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2043kB%0A%09%20%20Buffers%3A%20shared%20hit%3D20260%20read%3D95070%20written%3D3367%2C%20local%20hit%3D221449%20read%3D1%0A%09%20%20I%2FO%20Timings%3A%20read%3D23324.429%20write%3D75.759%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D46404.12..112987.32%20rows%3D496%20width%3D232%29%20%28actual%20time%3D25114.996..25846.141%20rows%3D151%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20257%20read%3D95070%20written%3D3367%2C%20local%20hit%3D221449%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D23324.429%20write%3D75.759%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D46404.12..46410.90%20rows%3D129%20width%3D232%29%20%28actual%20time%3D25114.995..25208.334%20rows%3D81%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20125%20read%3D37204%20written%3D3367%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D23025.573%20write%3D75.759%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D46404.12..46404.45%20rows%3D129%20width%3D182%29%20%28actual%20time%3D25114.970..25120.224%20rows%3D105549%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2017915kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20125%20read%3D37204%20written%3D3367%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D23025.573%20write%3D75.759%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1445.79..46399.60%20rows%3D129%20width%3D182%29%20%28actual%20time%3D37.452..24985.218%20rows%3D105549%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20125%20read%3D37204%20written%3D3367%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D23025.573%20write%3D75.759%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1445.65..46391.77%20rows%3D7%20width%3D110%29%20%28actual%20time%3D37.425..24330.405%20rows%3D105573%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20125%20read%3D37204%20written%3D3367%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D23025.565%20write%3D75.759%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..4.18%20rows%3D1%20width%3D108%29%20%28actual%20time%3D0.021..0.037%20rows%3D38%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28cm%20%3D%20%27F%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20136%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20osmp%20osm%20%20%28cost%3D1445.65..46387.13%20rows%3D46%20width%3D39%29%20%28actual%20time%3D1.955..638.928%20rows%3D2778%20loops%3D38%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2070%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D56851%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20125%20read%3D37204%20written%3D3367%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D23025.565%20write%3D75.759%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20osmp_fspr%20%20%28cost%3D0.00..1445.64%20rows%3D27895%20width%3D0%29%20%28actual%20time%3D1.650..1.650%20rows%3D2848%20loops%3D38%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D108%20read%3D370%20written%3D62%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D51.006%20write%3D0.514%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.005..0.005%20rows%3D1%20loops%3D105573%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D211097%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.008%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D66549.72..66568.99%20rows%3D367%20width%3D232%29%20%28actual%20time%3D630.211..637.789%20rows%3D70%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D132%20read%3D57866%2C%20local%20hit%3D10350%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D298.856%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D66549.72..66550.64%20rows%3D367%20width%3D178%29%20%28actual%20time%3D630.192..630.748%20rows%3D5174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20920kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D132%20read%3D57866%2C%20local%20hit%3D10350%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D298.856%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1004.74..66534.08%20rows%3D367%20width%3D178%29%20%28actual%20time%3D593.533..627.538%20rows%3D5174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20od_1.sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20od_1.edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%20895102%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D132%20read%3D57866%2C%20local%20hit%3D10350%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D298.856%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20od_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D80%29%20%28actual%20time%3D0.013..0.081%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D1004.74..66472.54%20rows%3D19%20width%3D106%29%20%28actual%20time%3D0.030..3.144%20rows%3D5174%20loops%3D174%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D132%20read%3D57866%2C%20local%20hit%3D10348%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D298.856%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D1004.74..66472.44%20rows%3D19%20width%3D106%29%20%28actual%20time%3D5.277..509.890%20rows%3D5174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D132%20read%3D57866%2C%20local%20hit%3D10348%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D298.856%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..66465.04%20rows%3D1%20width%3D34%29%20%28actual%20time%3D5.247..458.234%20rows%3D5174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D132%20read%3D57866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D298.856%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20osm_1%20%20%28cost%3D0.00..65464.94%20rows%3D1%20width%3D34%29%20%28actual%20time%3D1.669..482.765%20rows%3D1725%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20259938%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D132%20read%3D57866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D298.856%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20gld%20sd_1%20%20%28cost%3D4.74..7.21%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.009..0.009%20rows%3D1%20loops%3D5174%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3E%3D%20sdat%29%20AND%20%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D5174%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D10348%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20dats%20%20%28cost%3D0.00..4.73%20rows%3D19%20width%3D0%29%20%28actual%20time%3D0.007..0.007%20rows%3D1%20loops%3D5174%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3E%3D%20sdat%29%20AND%20%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D5174%0A%09%20%20-%3E%20%20HashAggregate%20%20%28cost%3D25.98..28.48%20rows%3D200%20width%3D232%29%20%28actual%20time%3D25846.428..25846.522%20rows%3D129%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Group%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20257%20read%3D95070%20written%3D3367%2C%20local%20hit%3D221449%20read%3D1%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D23324.429%20write%3D75.759%0A%09%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..11.16%20rows%3D494%20width%3D232%29%20%28actual%20time%3D25115.000..25846.302%20rows%3D129%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28om%20%3C%3E%20%27F%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2022%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20257%20read%3D95070%20written%3D3367%2C%20local%20hit%3D221449%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D23324.429%20write%3D75.759%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Sort (cost=113023.45..113023.95 rows=200 width=232) (actual time=25846.751..25846.759 rows=129 loops=1)
|
||
Sort Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Sort Method: quicksort Memory: 43kB
|
||
Buffers: shared hit=20260 read=95070 written=3367, local hit=221449 read=1
|
||
I/O Timings: read=23324.429 write=75.759
|
||
CTE un
|
||
-> Append (cost=46404.12..112987.32 rows=496 width=232) (actual time=25114.996..25846.141 rows=151 loops=1)
|
||
Buffers: shared hit=20257 read=95070 written=3367, local hit=221449 read=1
|
||
I/O Timings: read=23324.429 write=75.759
|
||
-> GroupAggregate (cost=46404.12..46410.90 rows=129 width=232) (actual time=25114.995..25208.334 rows=81 loops=1)
|
||
Group Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Buffers: shared hit=20125 read=37204 written=3367, local hit=211099 read=1
|
||
I/O Timings: read=23025.573 write=75.759
|
||
-> Sort (cost=46404.12..46404.45 rows=129 width=182) (actual time=25114.970..25120.224 rows=105549 loops=1)
|
||
Sort Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 17915kB
|
||
Buffers: shared hit=20125 read=37204 written=3367, local hit=211099 read=1
|
||
I/O Timings: read=23025.573 write=75.759
|
||
-> Nested Loop (cost=1445.79..46399.60 rows=129 width=182) (actual time=37.452..24985.218 rows=105549 loops=1)
|
||
Buffers: shared hit=20125 read=37204 written=3367, local hit=211099 read=1
|
||
I/O Timings: read=23025.573 write=75.759
|
||
-> Nested Loop (cost=1445.65..46391.77 rows=7 width=110) (actual time=37.425..24330.405 rows=105573 loops=1)
|
||
Buffers: shared hit=20125 read=37204 written=3367, local hit=2
|
||
I/O Timings: read=23025.565 write=75.759
|
||
-> Seq Scan on gld sd (cost=0.00..4.18 rows=1 width=108) (actual time=0.021..0.037 rows=38 loops=1)
|
||
Filter: (cm = 'F'::text)
|
||
Rows Removed by Filter: 136
|
||
Buffers: local hit=2
|
||
-> Bitmap Heap Scan on osmp osm (cost=1445.65..46387.13 rows=46 width=39) (actual time=1.955..638.928 rows=2778 loops=38)
|
||
Recheck Cond: (fspr = sd.fspr)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 70
|
||
Heap Blocks: exact=56851
|
||
Buffers: shared hit=20125 read=37204 written=3367
|
||
I/O Timings: read=23025.565 write=75.759
|
||
-> Bitmap Index Scan on osmp_fspr (cost=0.00..1445.64 rows=27895 width=0) (actual time=1.650..1.650 rows=2848 loops=38)
|
||
Index Cond: (fspr = sd.fspr)
|
||
Buffers: shared hit=108 read=370 written=62
|
||
I/O Timings: read=51.006 write=0.514
|
||
-> Index Scan using dats on gld od (cost=0.14..0.93 rows=19 width=80) (actual time=0.005..0.005 rows=1 loops=105573)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=211097 read=1
|
||
I/O Timings: read=0.008
|
||
-> GroupAggregate (cost=66549.72..66568.99 rows=367 width=232) (actual time=630.211..637.789 rows=70 loops=1)
|
||
Group Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Buffers: shared hit=132 read=57866, local hit=10350
|
||
I/O Timings: read=298.856
|
||
-> Sort (cost=66549.72..66550.64 rows=367 width=178) (actual time=630.192..630.748 rows=5174 loops=1)
|
||
Sort Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 920kB
|
||
Buffers: shared hit=132 read=57866, local hit=10350
|
||
I/O Timings: read=298.856
|
||
-> Nested Loop (cost=1004.74..66534.08 rows=367 width=178) (actual time=593.533..627.538 rows=5174 loops=1)
|
||
Join Filter: ((osm_1.adj_orderdate >= od_1.sdat) AND (osm_1.adj_orderdate <= od_1.edat))
|
||
Rows Removed by Join Filter: 895102
|
||
Buffers: shared hit=132 read=57866, local hit=10350
|
||
I/O Timings: read=298.856
|
||
-> Seq Scan on gld od_1 (cost=0.00..3.74 rows=174 width=80) (actual time=0.013..0.081 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Materialize (cost=1004.74..66472.54 rows=19 width=106) (actual time=0.030..3.144 rows=5174 loops=174)
|
||
Buffers: shared hit=132 read=57866, local hit=10348
|
||
I/O Timings: read=298.856
|
||
-> Nested Loop Left Join (cost=1004.74..66472.44 rows=19 width=106) (actual time=5.277..509.890 rows=5174 loops=1)
|
||
Buffers: shared hit=132 read=57866, local hit=10348
|
||
I/O Timings: read=298.856
|
||
-> Gather (cost=1000.00..66465.04 rows=1 width=34) (actual time=5.247..458.234 rows=5174 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=132 read=57866
|
||
I/O Timings: read=298.856
|
||
-> Parallel Seq Scan on osm osm_1 (cost=0.00..65464.94 rows=1 width=34) (actual time=1.669..482.765 rows=1725 loops=3)
|
||
Filter: ((calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (flag = 'REMAINDER'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 259938
|
||
Buffers: shared hit=132 read=57866
|
||
I/O Timings: read=298.856
|
||
-> Bitmap Heap Scan on gld sd_1 (cost=4.74..7.21 rows=19 width=80) (actual time=0.009..0.009 rows=1 loops=5174)
|
||
Recheck Cond: ((GREATEST(osm_1.adj_requestdate, CURRENT_DATE) >= sdat) AND (GREATEST(osm_1.adj_requestdate, CURRENT_DATE) <= edat))
|
||
Heap Blocks: exact=5174
|
||
Buffers: local hit=10348
|
||
-> Bitmap Index Scan on dats (cost=0.00..4.73 rows=19 width=0) (actual time=0.007..0.007 rows=1 loops=5174)
|
||
Index Cond: ((GREATEST(osm_1.adj_requestdate, CURRENT_DATE) >= sdat) AND (GREATEST(osm_1.adj_requestdate, CURRENT_DATE) <= edat))
|
||
Buffers: local hit=5174
|
||
-> HashAggregate (cost=25.98..28.48 rows=200 width=232) (actual time=25846.428..25846.522 rows=129 loops=1)
|
||
Group Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Buffers: shared hit=20257 read=95070 written=3367, local hit=221449 read=1
|
||
I/O Timings: read=23324.429 write=75.759
|
||
-> CTE Scan on un (cost=0.00..11.16 rows=494 width=232) (actual time=25115.000..25846.302 rows=129 loops=1)
|
||
Filter: (om <> 'F'::text)
|
||
Rows Removed by Filter: 22
|
||
Buffers: shared hit=20257 read=95070 written=3367, local hit=221449 read=1
|
||
I/O Timings: read=23324.429 write=75.759
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
<td>10</td>
|
||
<td>23s808ms</td>
|
||
<td id="slowest-individual-queries-examples-rank-10">
|
||
<div id="query-d-10-10" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMP OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> GREATEST <span class="br0">(</span>OSM<span class="sy0">.</span>adj_requestdate<span class="sy0">,</span>
|
||
<span class="kw1"><span class="kw2">current_date</span></span><span class="br0">)</span> <span class="kw1">BETWEEN</span> SD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">WHERE</span>
|
||
OM <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'F'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-14 17:09:40 - <b>Database:</b> ubm - <b>User:</b> report - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> [unknown] ]</pre>
|
||
<div id="query-d-explain-10-10" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Sort%20%20%28cost%3D113712.54..113713.04%20rows%3D200%20width%3D232%29%20%28actual%20time%3D23807.981..23807.985%20rows%3D128%20loops%3D1%29%0A%09%20%20Sort%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2043kB%0A%09%20%20Buffers%3A%20shared%20hit%3D24173%20read%3D91157%2C%20local%20hit%3D222025%20read%3D1%0A%09%20%20I%2FO%20Timings%3A%20read%3D26284.166%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D46404.12..113676.42%20rows%3D496%20width%3D232%29%20%28actual%20time%3D20688.511..23807.529%20rows%3D150%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D24170%20read%3D91157%2C%20local%20hit%3D222025%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D26284.166%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D46404.12..46410.90%20rows%3D129%20width%3D232%29%20%28actual%20time%3D20688.510..20789.478%20rows%3D81%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D21002%20read%3D36327%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D18300.701%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D46404.12..46404.45%20rows%3D129%20width%3D182%29%20%28actual%20time%3D20688.486..20694.576%20rows%3D105549%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2017915kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D21002%20read%3D36327%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D18300.701%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1445.79..46399.60%20rows%3D129%20width%3D182%29%20%28actual%20time%3D37.496..20515.988%20rows%3D105549%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D21002%20read%3D36327%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D18300.701%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1445.65..46391.77%20rows%3D7%20width%3D110%29%20%28actual%20time%3D37.467..19809.839%20rows%3D105573%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D21002%20read%3D36327%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D18300.692%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..4.18%20rows%3D1%20width%3D108%29%20%28actual%20time%3D0.020..0.038%20rows%3D38%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28cm%20%3D%20%27F%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20136%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20osmp%20osm%20%20%28cost%3D1445.65..46387.13%20rows%3D46%20width%3D39%29%20%28actual%20time%3D2.140..520.028%20rows%3D2778%20loops%3D38%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2070%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D56851%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D21002%20read%3D36327%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D18300.692%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20osmp_fspr%20%20%28cost%3D0.00..1445.64%20rows%3D27895%20width%3D0%29%20%28actual%20time%3D1.908..1.908%20rows%3D2848%20loops%3D38%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D110%20read%3D368%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D57.208%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.005..0.005%20rows%3D1%20loops%3D105573%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D211097%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.009%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D67238.81..67258.08%20rows%3D367%20width%3D232%29%20%28actual%20time%3D3013.320..3018.033%20rows%3D69%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3168%20read%3D54830%2C%20local%20hit%3D10926%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7983.465%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D67238.81..67239.73%20rows%3D367%20width%3D178%29%20%28actual%20time%3D3013.300..3013.513%20rows%3D5462%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20961kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3168%20read%3D54830%2C%20local%20hit%3D10926%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7983.465%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1004.74..67223.18%20rows%3D367%20width%3D178%29%20%28actual%20time%3D2972.945..3010.611%20rows%3D5462%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20od_1.sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20od_1.edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%20944926%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3168%20read%3D54830%2C%20local%20hit%3D10926%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7983.465%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20od_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D80%29%20%28actual%20time%3D0.017..0.072%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D1004.74..67161.63%20rows%3D19%20width%3D106%29%20%28actual%20time%3D13.102..16.813%20rows%3D5462%20loops%3D174%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3168%20read%3D54830%2C%20local%20hit%3D10924%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7983.465%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D1004.74..67161.54%20rows%3D19%20width%3D106%29%20%28actual%20time%3D2279.747..2880.350%20rows%3D5462%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3168%20read%3D54830%2C%20local%20hit%3D10924%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7983.465%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..67154.13%20rows%3D1%20width%3D34%29%20%28actual%20time%3D2279.720..2819.147%20rows%3D5462%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3168%20read%3D54830%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7983.465%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20osm_1%20%20%28cost%3D0.00..66154.03%20rows%3D1%20width%3D34%29%20%28actual%20time%3D2269.482..2837.169%20rows%3D1821%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20259313%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3168%20read%3D54830%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7983.465%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20gld%20sd_1%20%20%28cost%3D4.74..7.21%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.008..0.008%20rows%3D1%20loops%3D5462%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3E%3D%20sdat%29%20AND%20%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D5462%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D10924%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20dats%20%20%28cost%3D0.00..4.73%20rows%3D19%20width%3D0%29%20%28actual%20time%3D0.007..0.007%20rows%3D1%20loops%3D5462%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3E%3D%20sdat%29%20AND%20%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D5462%0A%09%20%20-%3E%20%20HashAggregate%20%20%28cost%3D25.98..28.48%20rows%3D200%20width%3D232%29%20%28actual%20time%3D23807.814..23807.857%20rows%3D128%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Group%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D24170%20read%3D91157%2C%20local%20hit%3D222025%20read%3D1%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D26284.166%0A%09%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..11.16%20rows%3D494%20width%3D232%29%20%28actual%20time%3D20688.515..23807.691%20rows%3D128%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28om%20%3C%3E%20%27F%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2022%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D24170%20read%3D91157%2C%20local%20hit%3D222025%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D26284.166%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Sort (cost=113712.54..113713.04 rows=200 width=232) (actual time=23807.981..23807.985 rows=128 loops=1)
|
||
Sort Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Sort Method: quicksort Memory: 43kB
|
||
Buffers: shared hit=24173 read=91157, local hit=222025 read=1
|
||
I/O Timings: read=26284.166
|
||
CTE un
|
||
-> Append (cost=46404.12..113676.42 rows=496 width=232) (actual time=20688.511..23807.529 rows=150 loops=1)
|
||
Buffers: shared hit=24170 read=91157, local hit=222025 read=1
|
||
I/O Timings: read=26284.166
|
||
-> GroupAggregate (cost=46404.12..46410.90 rows=129 width=232) (actual time=20688.510..20789.478 rows=81 loops=1)
|
||
Group Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Buffers: shared hit=21002 read=36327, local hit=211099 read=1
|
||
I/O Timings: read=18300.701
|
||
-> Sort (cost=46404.12..46404.45 rows=129 width=182) (actual time=20688.486..20694.576 rows=105549 loops=1)
|
||
Sort Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 17915kB
|
||
Buffers: shared hit=21002 read=36327, local hit=211099 read=1
|
||
I/O Timings: read=18300.701
|
||
-> Nested Loop (cost=1445.79..46399.60 rows=129 width=182) (actual time=37.496..20515.988 rows=105549 loops=1)
|
||
Buffers: shared hit=21002 read=36327, local hit=211099 read=1
|
||
I/O Timings: read=18300.701
|
||
-> Nested Loop (cost=1445.65..46391.77 rows=7 width=110) (actual time=37.467..19809.839 rows=105573 loops=1)
|
||
Buffers: shared hit=21002 read=36327, local hit=2
|
||
I/O Timings: read=18300.692
|
||
-> Seq Scan on gld sd (cost=0.00..4.18 rows=1 width=108) (actual time=0.020..0.038 rows=38 loops=1)
|
||
Filter: (cm = 'F'::text)
|
||
Rows Removed by Filter: 136
|
||
Buffers: local hit=2
|
||
-> Bitmap Heap Scan on osmp osm (cost=1445.65..46387.13 rows=46 width=39) (actual time=2.140..520.028 rows=2778 loops=38)
|
||
Recheck Cond: (fspr = sd.fspr)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 70
|
||
Heap Blocks: exact=56851
|
||
Buffers: shared hit=21002 read=36327
|
||
I/O Timings: read=18300.692
|
||
-> Bitmap Index Scan on osmp_fspr (cost=0.00..1445.64 rows=27895 width=0) (actual time=1.908..1.908 rows=2848 loops=38)
|
||
Index Cond: (fspr = sd.fspr)
|
||
Buffers: shared hit=110 read=368
|
||
I/O Timings: read=57.208
|
||
-> Index Scan using dats on gld od (cost=0.14..0.93 rows=19 width=80) (actual time=0.005..0.005 rows=1 loops=105573)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=211097 read=1
|
||
I/O Timings: read=0.009
|
||
-> GroupAggregate (cost=67238.81..67258.08 rows=367 width=232) (actual time=3013.320..3018.033 rows=69 loops=1)
|
||
Group Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Buffers: shared hit=3168 read=54830, local hit=10926
|
||
I/O Timings: read=7983.465
|
||
-> Sort (cost=67238.81..67239.73 rows=367 width=178) (actual time=3013.300..3013.513 rows=5462 loops=1)
|
||
Sort Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 961kB
|
||
Buffers: shared hit=3168 read=54830, local hit=10926
|
||
I/O Timings: read=7983.465
|
||
-> Nested Loop (cost=1004.74..67223.18 rows=367 width=178) (actual time=2972.945..3010.611 rows=5462 loops=1)
|
||
Join Filter: ((osm_1.adj_orderdate >= od_1.sdat) AND (osm_1.adj_orderdate <= od_1.edat))
|
||
Rows Removed by Join Filter: 944926
|
||
Buffers: shared hit=3168 read=54830, local hit=10926
|
||
I/O Timings: read=7983.465
|
||
-> Seq Scan on gld od_1 (cost=0.00..3.74 rows=174 width=80) (actual time=0.017..0.072 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Materialize (cost=1004.74..67161.63 rows=19 width=106) (actual time=13.102..16.813 rows=5462 loops=174)
|
||
Buffers: shared hit=3168 read=54830, local hit=10924
|
||
I/O Timings: read=7983.465
|
||
-> Nested Loop Left Join (cost=1004.74..67161.54 rows=19 width=106) (actual time=2279.747..2880.350 rows=5462 loops=1)
|
||
Buffers: shared hit=3168 read=54830, local hit=10924
|
||
I/O Timings: read=7983.465
|
||
-> Gather (cost=1000.00..67154.13 rows=1 width=34) (actual time=2279.720..2819.147 rows=5462 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=3168 read=54830
|
||
I/O Timings: read=7983.465
|
||
-> Parallel Seq Scan on osm osm_1 (cost=0.00..66154.03 rows=1 width=34) (actual time=2269.482..2837.169 rows=1821 loops=3)
|
||
Filter: ((calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (flag = 'REMAINDER'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 259313
|
||
Buffers: shared hit=3168 read=54830
|
||
I/O Timings: read=7983.465
|
||
-> Bitmap Heap Scan on gld sd_1 (cost=4.74..7.21 rows=19 width=80) (actual time=0.008..0.008 rows=1 loops=5462)
|
||
Recheck Cond: ((GREATEST(osm_1.adj_requestdate, CURRENT_DATE) >= sdat) AND (GREATEST(osm_1.adj_requestdate, CURRENT_DATE) <= edat))
|
||
Heap Blocks: exact=5462
|
||
Buffers: local hit=10924
|
||
-> Bitmap Index Scan on dats (cost=0.00..4.73 rows=19 width=0) (actual time=0.007..0.007 rows=1 loops=5462)
|
||
Index Cond: ((GREATEST(osm_1.adj_requestdate, CURRENT_DATE) >= sdat) AND (GREATEST(osm_1.adj_requestdate, CURRENT_DATE) <= edat))
|
||
Buffers: local hit=5462
|
||
-> HashAggregate (cost=25.98..28.48 rows=200 width=232) (actual time=23807.814..23807.857 rows=128 loops=1)
|
||
Group Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Buffers: shared hit=24170 read=91157, local hit=222025 read=1
|
||
I/O Timings: read=26284.166
|
||
-> CTE Scan on un (cost=0.00..11.16 rows=494 width=232) (actual time=20688.515..23807.691 rows=128 loops=1)
|
||
Filter: (om <> 'F'::text)
|
||
Rows Removed by Filter: 22
|
||
Buffers: shared hit=24170 read=91157, local hit=222025 read=1
|
||
I/O Timings: read=26284.166
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
<td>11</td>
|
||
<td>21s242ms</td>
|
||
<td id="slowest-individual-queries-examples-rank-11">
|
||
<div id="query-d-11-11" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 17:30:39 - <b>Database:</b> ubm - <b>User:</b> report - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> [unknown] ]</pre>
|
||
<div id="query-d-explain-11-11" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Sort%20%20%28cost%3D99922.38..99922.88%20rows%3D200%20width%3D232%29%20%28actual%20time%3D21211.683..21211.708%20rows%3D317%20loops%3D1%29%0A%09%20%20Sort%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2069kB%0A%09%20%20Buffers%3A%20shared%20hit%3D4%20read%3D84336%20written%3D124%2C%20local%20hit%3D2068827%20read%3D1%0A%09%20%20I%2FO%20Timings%3A%20read%3D47930.799%20write%3D1.505%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D32534.94..99887.14%20rows%3D502%20width%3D232%29%20%28actual%20time%3D5942.671..21209.531%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D84336%20written%3D124%2C%20local%20hit%3D2068827%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D47930.799%20write%3D1.505%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D32534.94..32547.80%20rows%3D245%20width%3D232%29%20%28actual%20time%3D5942.670..6367.056%20rows%3D197%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%20written%3D122%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10489.172%20write%3D1.431%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D32534.94..32535.55%20rows%3D245%20width%3D185%29%20%28actual%20time%3D5942.642..5990.837%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2069497kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%20written%3D122%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10489.172%20write%3D1.431%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..32525.21%20rows%3D245%20width%3D185%29%20%28actual%20time%3D3.834..5526.120%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cm%20%3D%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%20written%3D122%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10489.172%20write%3D1.431%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..31588.56%20rows%3D738%20width%3D113%29%20%28actual%20time%3D3.809..3558.965%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%20written%3D122%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10489.166%20write%3D1.431%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..31572.50%20rows%3D738%20width%3D42%29%20%28actual%20time%3D3.660..3400.209%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%20written%3D122%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10489.166%20write%3D1.431%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osmf%20osm%20%20%28cost%3D0.00..30498.70%20rows%3D308%20width%3D42%29%20%28actual%20time%3D0.781..3631.234%20rows%3D135605%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20119%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%20written%3D122%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10489.166%20write%3D1.431%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.083..0.083%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.013..0.049%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od%20%20%28cost%3D0.14..0.94%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813627%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.006%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D67318.31..67331.81%20rows%3D257%20width%3D232%29%20%28actual%20time%3D14757.926..14842.413%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%20written%3D2%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D37441.627%20write%3D0.074%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D67318.31..67318.96%20rows%3D257%20width%3D178%29%20%28actual%20time%3D14757.905..14766.226%20rows%3D94732%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2016394kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%20written%3D2%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D37441.627%20write%3D0.074%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..67308.03%20rows%3D257%20width%3D178%29%20%28actual%20time%3D65.185..14658.975%20rows%3D94732%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28%28osm_1.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28osm_1.flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%20532866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%20written%3D2%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D37441.627%20write%3D0.074%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..65849.40%20rows%3D1114%20width%3D122%29%20%28actual%20time%3D65.171..12232.663%20rows%3D628518%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.fspr%20%3D%20sd_1.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%20written%3D2%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D37441.627%20write%3D0.074%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..65829.04%20rows%3D1114%20width%3D51%29%20%28actual%20time%3D65.104..11994.997%20rows%3D628518%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%20written%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D37441.627%20write%3D0.074%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20osm_1%20%20%28cost%3D0.00..64717.64%20rows%3D464%20width%3D51%29%20%28actual%20time%3D56.186..12707.976%20rows%3D209506%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2052157%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%20written%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D37441.627%20write%3D0.074%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.055..0.055%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.009..0.031%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od_1%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D628518%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1255196%0A%09%20%20-%3E%20%20HashAggregate%20%20%28cost%3D25.10..27.60%20rows%3D200%20width%3D232%29%20%28actual%20time%3D21210.361..21210.698%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Group%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D84336%20written%3D124%2C%20local%20hit%3D2068827%20read%3D1%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D47930.799%20write%3D1.505%0A%09%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..10.04%20rows%3D502%20width%3D232%29%20%28actual%20time%3D5942.675..21209.793%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D84336%20written%3D124%2C%20local%20hit%3D2068827%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D47930.799%20write%3D1.505%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Sort (cost=99922.38..99922.88 rows=200 width=232) (actual time=21211.683..21211.708 rows=317 loops=1)
|
||
Sort Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Sort Method: quicksort Memory: 69kB
|
||
Buffers: shared hit=4 read=84336 written=124, local hit=2068827 read=1
|
||
I/O Timings: read=47930.799 write=1.505
|
||
CTE un
|
||
-> Append (cost=32534.94..99887.14 rows=502 width=232) (actual time=5942.671..21209.531 rows=317 loops=1)
|
||
Buffers: shared hit=1 read=84336 written=124, local hit=2068827 read=1
|
||
I/O Timings: read=47930.799 write=1.505
|
||
-> GroupAggregate (cost=32534.94..32547.80 rows=245 width=232) (actual time=5942.670..6367.056 rows=197 loops=1)
|
||
Group Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Buffers: shared read=26345 written=122, local hit=813629 read=1
|
||
I/O Timings: read=10489.172 write=1.431
|
||
-> Sort (cost=32534.94..32535.55 rows=245 width=185) (actual time=5942.642..5990.837 rows=406814 loops=1)
|
||
Sort Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 69497kB
|
||
Buffers: shared read=26345 written=122, local hit=813629 read=1
|
||
I/O Timings: read=10489.172 write=1.431
|
||
-> Nested Loop (cost=1006.06..32525.21 rows=245 width=185) (actual time=3.834..5526.120 rows=406814 loops=1)
|
||
Join Filter: ((od.cy = 'C'::text) OR (sd.cy = 'C'::text) OR (sd.cm = 'F'::text))
|
||
Buffers: shared read=26345 written=122, local hit=813629 read=1
|
||
I/O Timings: read=10489.172 write=1.431
|
||
-> Hash Left Join (cost=1005.91..31588.56 rows=738 width=113) (actual time=3.809..3558.965 rows=406814 loops=1)
|
||
Hash Cond: (osm.fspr = sd.fspr)
|
||
Buffers: shared read=26345 written=122, local hit=2
|
||
I/O Timings: read=10489.166 write=1.431
|
||
-> Gather (cost=1000.00..31572.50 rows=738 width=42) (actual time=3.660..3400.209 rows=406814 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared read=26345 written=122
|
||
I/O Timings: read=10489.166 write=1.431
|
||
-> Parallel Seq Scan on osmf osm (cost=0.00..30498.70 rows=308 width=42) (actual time=0.781..3631.234 rows=135605 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 119
|
||
Buffers: shared read=26345 written=122
|
||
I/O Timings: read=10489.166 write=1.431
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.083..0.083 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd (cost=0.00..3.74 rows=174 width=108) (actual time=0.013..0.049 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od (cost=0.14..0.94 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=406814)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=813627 read=1
|
||
I/O Timings: read=0.006
|
||
-> GroupAggregate (cost=67318.31..67331.81 rows=257 width=232) (actual time=14757.926..14842.413 rows=120 loops=1)
|
||
Group Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Buffers: shared hit=1 read=57991 written=2, local hit=1255198
|
||
I/O Timings: read=37441.627 write=0.074
|
||
-> Sort (cost=67318.31..67318.96 rows=257 width=178) (actual time=14757.905..14766.226 rows=94732 loops=1)
|
||
Sort Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 16394kB
|
||
Buffers: shared hit=1 read=57991 written=2, local hit=1255198
|
||
I/O Timings: read=37441.627 write=0.074
|
||
-> Nested Loop (cost=1006.06..67308.03 rows=257 width=178) (actual time=65.185..14658.975 rows=94732 loops=1)
|
||
Join Filter: ((od_1.cy = 'C'::text) OR (sd_1.cy = 'C'::text) OR ((osm_1.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (osm_1.flag = 'REMAINDER'::text)))
|
||
Rows Removed by Join Filter: 532866
|
||
Buffers: shared hit=1 read=57991 written=2, local hit=1255198
|
||
I/O Timings: read=37441.627 write=0.074
|
||
-> Hash Left Join (cost=1005.91..65849.40 rows=1114 width=122) (actual time=65.171..12232.663 rows=628518 loops=1)
|
||
Hash Cond: (osm_1.fspr = sd_1.fspr)
|
||
Buffers: shared hit=1 read=57991 written=2, local hit=2
|
||
I/O Timings: read=37441.627 write=0.074
|
||
-> Gather (cost=1000.00..65829.04 rows=1114 width=51) (actual time=65.104..11994.997 rows=628518 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=1 read=57991 written=2
|
||
I/O Timings: read=37441.627 write=0.074
|
||
-> Parallel Seq Scan on osm osm_1 (cost=0.00..64717.64 rows=464 width=51) (actual time=56.186..12707.976 rows=209506 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 52157
|
||
Buffers: shared hit=1 read=57991 written=2
|
||
I/O Timings: read=37441.627 write=0.074
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.055..0.055 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_1 (cost=0.00..3.74 rows=174 width=108) (actual time=0.009..0.031 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od_1 (cost=0.14..0.93 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=628518)
|
||
Index Cond: ((osm_1.adj_orderdate >= sdat) AND (osm_1.adj_orderdate <= edat))
|
||
Buffers: local hit=1255196
|
||
-> HashAggregate (cost=25.10..27.60 rows=200 width=232) (actual time=21210.361..21210.698 rows=317 loops=1)
|
||
Group Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Buffers: shared hit=1 read=84336 written=124, local hit=2068827 read=1
|
||
I/O Timings: read=47930.799 write=1.505
|
||
-> CTE Scan on un (cost=0.00..10.04 rows=502 width=232) (actual time=5942.675..21209.793 rows=317 loops=1)
|
||
Buffers: shared hit=1 read=84336 written=124, local hit=2068827 read=1
|
||
I/O Timings: read=47930.799 write=1.505
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
<td>12</td>
|
||
<td>20s978ms</td>
|
||
<td id="slowest-individual-queries-examples-rank-12">
|
||
<div id="query-d-12-12" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 00:50:56 - <b>Database:</b> ubm - <b>User:</b> report - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> [unknown] ]</pre>
|
||
<div id="query-d-explain-12-12" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Sort%20%20%28cost%3D100695.96..100696.46%20rows%3D200%20width%3D232%29%20%28actual%20time%3D20966.035..20966.048%20rows%3D317%20loops%3D1%29%0A%09%20%20Sort%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2069kB%0A%09%20%20Buffers%3A%20shared%20hit%3D34962%20read%3D49378%2C%20local%20hit%3D2068057%20read%3D1%0A%09%20%20I%2FO%20Timings%3A%20read%3D13976.237%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D32534.94..100659.46%20rows%3D527%20width%3D232%29%20%28actual%20time%3D11106.509..20964.625%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D34959%20read%3D49378%2C%20local%20hit%3D2068057%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D13976.237%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D32534.94..32547.80%20rows%3D245%20width%3D232%29%20%28actual%20time%3D11106.508..12179.134%20rows%3D197%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.011%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D32534.94..32535.55%20rows%3D245%20width%3D185%29%20%28actual%20time%3D11106.482..11206.114%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2069497kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.011%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..32525.21%20rows%3D245%20width%3D185%29%20%28actual%20time%3D44.964..9990.465%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cm%20%3D%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.011%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..31588.56%20rows%3D738%20width%3D113%29%20%28actual%20time%3D44.931..5527.200%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..31572.50%20rows%3D738%20width%3D42%29%20%28actual%20time%3D44.776..5096.175%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osmf%20osm%20%20%28cost%3D0.00..30498.70%20rows%3D308%20width%3D42%29%20%28actual%20time%3D0.024..211.973%20rows%3D135605%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20119%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.138..0.138%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.015..0.075%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od%20%20%28cost%3D0.14..0.94%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.009..0.010%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813627%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.011%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D68088.95..68103.76%20rows%3D282%20width%3D232%29%20%28actual%20time%3D8646.936..8785.428%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D8614%20read%3D49378%2C%20local%20hit%3D1254428%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D13976.227%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D68088.95..68089.66%20rows%3D282%20width%3D178%29%20%28actual%20time%3D8646.892..8657.832%20rows%3D94347%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2016340kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D8614%20read%3D49378%2C%20local%20hit%3D1254428%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D13976.227%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..68077.48%20rows%3D282%20width%3D178%29%20%28actual%20time%3D5.392..8512.755%20rows%3D94347%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28%28osm_1.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28osm_1.flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%20532866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D8614%20read%3D49378%2C%20local%20hit%3D1254428%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D13976.227%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..66481.58%20rows%3D1220%20width%3D122%29%20%28actual%20time%3D5.370..5411.006%20rows%3D628133%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.fspr%20%3D%20sd_1.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D8614%20read%3D49378%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D13976.227%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..66459.83%20rows%3D1220%20width%3D51%29%20%28actual%20time%3D5.260..5127.669%20rows%3D628133%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D8614%20read%3D49378%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D13976.227%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20osm_1%20%20%28cost%3D0.00..65337.83%20rows%3D508%20width%3D51%29%20%28actual%20time%3D11.068..4902.983%20rows%3D209378%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2052132%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D8614%20read%3D49378%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D13976.227%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.086..0.086%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.015..0.048%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od_1%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D628133%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1254426%0A%09%20%20-%3E%20%20HashAggregate%20%20%28cost%3D26.35..28.85%20rows%3D200%20width%3D232%29%20%28actual%20time%3D20965.583..20965.696%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Group%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D34959%20read%3D49378%2C%20local%20hit%3D2068057%20read%3D1%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D13976.237%0A%09%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..10.54%20rows%3D527%20width%3D232%29%20%28actual%20time%3D11106.512..20964.985%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D34959%20read%3D49378%2C%20local%20hit%3D2068057%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D13976.237%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Sort (cost=100695.96..100696.46 rows=200 width=232) (actual time=20966.035..20966.048 rows=317 loops=1)
|
||
Sort Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Sort Method: quicksort Memory: 69kB
|
||
Buffers: shared hit=34962 read=49378, local hit=2068057 read=1
|
||
I/O Timings: read=13976.237
|
||
CTE un
|
||
-> Append (cost=32534.94..100659.46 rows=527 width=232) (actual time=11106.509..20964.625 rows=317 loops=1)
|
||
Buffers: shared hit=34959 read=49378, local hit=2068057 read=1
|
||
I/O Timings: read=13976.237
|
||
-> GroupAggregate (cost=32534.94..32547.80 rows=245 width=232) (actual time=11106.508..12179.134 rows=197 loops=1)
|
||
Group Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Buffers: shared hit=26345, local hit=813629 read=1
|
||
I/O Timings: read=0.011
|
||
-> Sort (cost=32534.94..32535.55 rows=245 width=185) (actual time=11106.482..11206.114 rows=406814 loops=1)
|
||
Sort Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 69497kB
|
||
Buffers: shared hit=26345, local hit=813629 read=1
|
||
I/O Timings: read=0.011
|
||
-> Nested Loop (cost=1006.06..32525.21 rows=245 width=185) (actual time=44.964..9990.465 rows=406814 loops=1)
|
||
Join Filter: ((od.cy = 'C'::text) OR (sd.cy = 'C'::text) OR (sd.cm = 'F'::text))
|
||
Buffers: shared hit=26345, local hit=813629 read=1
|
||
I/O Timings: read=0.011
|
||
-> Hash Left Join (cost=1005.91..31588.56 rows=738 width=113) (actual time=44.931..5527.200 rows=406814 loops=1)
|
||
Hash Cond: (osm.fspr = sd.fspr)
|
||
Buffers: shared hit=26345, local hit=2
|
||
-> Gather (cost=1000.00..31572.50 rows=738 width=42) (actual time=44.776..5096.175 rows=406814 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=26345
|
||
-> Parallel Seq Scan on osmf osm (cost=0.00..30498.70 rows=308 width=42) (actual time=0.024..211.973 rows=135605 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 119
|
||
Buffers: shared hit=26345
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.138..0.138 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd (cost=0.00..3.74 rows=174 width=108) (actual time=0.015..0.075 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od (cost=0.14..0.94 rows=19 width=80) (actual time=0.009..0.010 rows=1 loops=406814)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=813627 read=1
|
||
I/O Timings: read=0.011
|
||
-> GroupAggregate (cost=68088.95..68103.76 rows=282 width=232) (actual time=8646.936..8785.428 rows=120 loops=1)
|
||
Group Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Buffers: shared hit=8614 read=49378, local hit=1254428
|
||
I/O Timings: read=13976.227
|
||
-> Sort (cost=68088.95..68089.66 rows=282 width=178) (actual time=8646.892..8657.832 rows=94347 loops=1)
|
||
Sort Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 16340kB
|
||
Buffers: shared hit=8614 read=49378, local hit=1254428
|
||
I/O Timings: read=13976.227
|
||
-> Nested Loop (cost=1006.06..68077.48 rows=282 width=178) (actual time=5.392..8512.755 rows=94347 loops=1)
|
||
Join Filter: ((od_1.cy = 'C'::text) OR (sd_1.cy = 'C'::text) OR ((osm_1.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (osm_1.flag = 'REMAINDER'::text)))
|
||
Rows Removed by Join Filter: 532866
|
||
Buffers: shared hit=8614 read=49378, local hit=1254428
|
||
I/O Timings: read=13976.227
|
||
-> Hash Left Join (cost=1005.91..66481.58 rows=1220 width=122) (actual time=5.370..5411.006 rows=628133 loops=1)
|
||
Hash Cond: (osm_1.fspr = sd_1.fspr)
|
||
Buffers: shared hit=8614 read=49378, local hit=2
|
||
I/O Timings: read=13976.227
|
||
-> Gather (cost=1000.00..66459.83 rows=1220 width=51) (actual time=5.260..5127.669 rows=628133 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=8614 read=49378
|
||
I/O Timings: read=13976.227
|
||
-> Parallel Seq Scan on osm osm_1 (cost=0.00..65337.83 rows=508 width=51) (actual time=11.068..4902.983 rows=209378 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 52132
|
||
Buffers: shared hit=8614 read=49378
|
||
I/O Timings: read=13976.227
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.086..0.086 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_1 (cost=0.00..3.74 rows=174 width=108) (actual time=0.015..0.048 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od_1 (cost=0.14..0.93 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=628133)
|
||
Index Cond: ((osm_1.adj_orderdate >= sdat) AND (osm_1.adj_orderdate <= edat))
|
||
Buffers: local hit=1254426
|
||
-> HashAggregate (cost=26.35..28.85 rows=200 width=232) (actual time=20965.583..20965.696 rows=317 loops=1)
|
||
Group Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Buffers: shared hit=34959 read=49378, local hit=2068057 read=1
|
||
I/O Timings: read=13976.237
|
||
-> CTE Scan on un (cost=0.00..10.54 rows=527 width=232) (actual time=11106.512..20964.985 rows=317 loops=1)
|
||
Buffers: shared hit=34959 read=49378, local hit=2068057 read=1
|
||
I/O Timings: read=13976.237
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
<td>13</td>
|
||
<td>18s342ms</td>
|
||
<td id="slowest-individual-queries-examples-rank-13">
|
||
<div id="query-d-13-13" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMP OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> GREATEST <span class="br0">(</span>OSM<span class="sy0">.</span>adj_requestdate<span class="sy0">,</span>
|
||
<span class="kw1"><span class="kw2">current_date</span></span><span class="br0">)</span> <span class="kw1">BETWEEN</span> SD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">WHERE</span>
|
||
OM <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'F'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-14 17:21:12 - <b>Database:</b> ubm - <b>User:</b> report - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> [unknown] ]</pre>
|
||
<div id="query-d-explain-13-13" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Sort%20%20%28cost%3D113712.54..113713.04%20rows%3D200%20width%3D232%29%20%28actual%20time%3D18341.790..18341.795%20rows%3D128%20loops%3D1%29%0A%09%20%20Sort%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2043kB%0A%09%20%20Buffers%3A%20shared%20hit%3D24593%20read%3D90737%2C%20local%20hit%3D222025%20read%3D1%0A%09%20%20I%2FO%20Timings%3A%20read%3D16381.140%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D46404.12..113676.42%20rows%3D496%20width%3D232%29%20%28actual%20time%3D17686.530..18341.413%20rows%3D150%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D24590%20read%3D90737%2C%20local%20hit%3D222025%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D16381.140%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D46404.12..46410.90%20rows%3D129%20width%3D232%29%20%28actual%20time%3D17686.530..17780.512%20rows%3D81%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20982%20read%3D36347%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D16170.335%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D46404.12..46404.45%20rows%3D129%20width%3D182%29%20%28actual%20time%3D17686.507..17691.642%20rows%3D105549%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2017915kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20982%20read%3D36347%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D16170.335%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1445.79..46399.60%20rows%3D129%20width%3D182%29%20%28actual%20time%3D336.691..17577.973%20rows%3D105549%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20982%20read%3D36347%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D16170.335%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1445.65..46391.77%20rows%3D7%20width%3D110%29%20%28actual%20time%3D336.406..17026.558%20rows%3D105573%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20982%20read%3D36347%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D16170.091%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..4.18%20rows%3D1%20width%3D108%29%20%28actual%20time%3D0.019..0.035%20rows%3D38%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28cm%20%3D%20%27F%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20136%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20osmp%20osm%20%20%28cost%3D1445.65..46387.13%20rows%3D46%20width%3D39%29%20%28actual%20time%3D9.729..447.136%20rows%3D2778%20loops%3D38%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2070%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D56851%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20982%20read%3D36347%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D16170.091%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20osmp_fspr%20%20%28cost%3D0.00..1445.64%20rows%3D27895%20width%3D0%29%20%28actual%20time%3D6.416..6.416%20rows%3D2848%20loops%3D38%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D110%20read%3D368%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D223.920%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D105573%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D211097%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.244%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D67238.81..67258.08%20rows%3D367%20width%3D232%29%20%28actual%20time%3D556.403..560.886%20rows%3D69%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3608%20read%3D54390%2C%20local%20hit%3D10926%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D210.804%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D67238.81..67239.73%20rows%3D367%20width%3D178%29%20%28actual%20time%3D556.386..556.605%20rows%3D5462%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20961kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3608%20read%3D54390%2C%20local%20hit%3D10926%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D210.804%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1004.74..67223.18%20rows%3D367%20width%3D178%29%20%28actual%20time%3D518.705..553.668%20rows%3D5462%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20od_1.sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20od_1.edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%20944926%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3608%20read%3D54390%2C%20local%20hit%3D10926%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D210.804%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20od_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D80%29%20%28actual%20time%3D0.013..0.055%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D1004.74..67161.63%20rows%3D19%20width%3D106%29%20%28actual%20time%3D2.013..2.722%20rows%3D5462%20loops%3D174%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3608%20read%3D54390%2C%20local%20hit%3D10924%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D210.804%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D1004.74..67161.54%20rows%3D19%20width%3D106%29%20%28actual%20time%3D350.244..437.677%20rows%3D5462%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3608%20read%3D54390%2C%20local%20hit%3D10924%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D210.804%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..67154.13%20rows%3D1%20width%3D34%29%20%28actual%20time%3D350.219..407.718%20rows%3D5462%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3608%20read%3D54390%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D210.804%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20osm_1%20%20%28cost%3D0.00..66154.03%20rows%3D1%20width%3D34%29%20%28actual%20time%3D333.708..384.567%20rows%3D1821%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20259313%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3608%20read%3D54390%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D210.804%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20gld%20sd_1%20%20%28cost%3D4.74..7.21%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.005..0.005%20rows%3D1%20loops%3D5462%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3E%3D%20sdat%29%20AND%20%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D5462%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D10924%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20dats%20%20%28cost%3D0.00..4.73%20rows%3D19%20width%3D0%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D5462%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3E%3D%20sdat%29%20AND%20%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D5462%0A%09%20%20-%3E%20%20HashAggregate%20%20%28cost%3D25.98..28.48%20rows%3D200%20width%3D232%29%20%28actual%20time%3D18341.605..18341.654%20rows%3D128%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Group%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D24590%20read%3D90737%2C%20local%20hit%3D222025%20read%3D1%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D16381.140%0A%09%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..11.16%20rows%3D494%20width%3D232%29%20%28actual%20time%3D17686.534..18341.509%20rows%3D128%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28om%20%3C%3E%20%27F%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2022%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D24590%20read%3D90737%2C%20local%20hit%3D222025%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D16381.140%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Sort (cost=113712.54..113713.04 rows=200 width=232) (actual time=18341.790..18341.795 rows=128 loops=1)
|
||
Sort Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Sort Method: quicksort Memory: 43kB
|
||
Buffers: shared hit=24593 read=90737, local hit=222025 read=1
|
||
I/O Timings: read=16381.140
|
||
CTE un
|
||
-> Append (cost=46404.12..113676.42 rows=496 width=232) (actual time=17686.530..18341.413 rows=150 loops=1)
|
||
Buffers: shared hit=24590 read=90737, local hit=222025 read=1
|
||
I/O Timings: read=16381.140
|
||
-> GroupAggregate (cost=46404.12..46410.90 rows=129 width=232) (actual time=17686.530..17780.512 rows=81 loops=1)
|
||
Group Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Buffers: shared hit=20982 read=36347, local hit=211099 read=1
|
||
I/O Timings: read=16170.335
|
||
-> Sort (cost=46404.12..46404.45 rows=129 width=182) (actual time=17686.507..17691.642 rows=105549 loops=1)
|
||
Sort Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 17915kB
|
||
Buffers: shared hit=20982 read=36347, local hit=211099 read=1
|
||
I/O Timings: read=16170.335
|
||
-> Nested Loop (cost=1445.79..46399.60 rows=129 width=182) (actual time=336.691..17577.973 rows=105549 loops=1)
|
||
Buffers: shared hit=20982 read=36347, local hit=211099 read=1
|
||
I/O Timings: read=16170.335
|
||
-> Nested Loop (cost=1445.65..46391.77 rows=7 width=110) (actual time=336.406..17026.558 rows=105573 loops=1)
|
||
Buffers: shared hit=20982 read=36347, local hit=2
|
||
I/O Timings: read=16170.091
|
||
-> Seq Scan on gld sd (cost=0.00..4.18 rows=1 width=108) (actual time=0.019..0.035 rows=38 loops=1)
|
||
Filter: (cm = 'F'::text)
|
||
Rows Removed by Filter: 136
|
||
Buffers: local hit=2
|
||
-> Bitmap Heap Scan on osmp osm (cost=1445.65..46387.13 rows=46 width=39) (actual time=9.729..447.136 rows=2778 loops=38)
|
||
Recheck Cond: (fspr = sd.fspr)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 70
|
||
Heap Blocks: exact=56851
|
||
Buffers: shared hit=20982 read=36347
|
||
I/O Timings: read=16170.091
|
||
-> Bitmap Index Scan on osmp_fspr (cost=0.00..1445.64 rows=27895 width=0) (actual time=6.416..6.416 rows=2848 loops=38)
|
||
Index Cond: (fspr = sd.fspr)
|
||
Buffers: shared hit=110 read=368
|
||
I/O Timings: read=223.920
|
||
-> Index Scan using dats on gld od (cost=0.14..0.93 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=105573)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=211097 read=1
|
||
I/O Timings: read=0.244
|
||
-> GroupAggregate (cost=67238.81..67258.08 rows=367 width=232) (actual time=556.403..560.886 rows=69 loops=1)
|
||
Group Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Buffers: shared hit=3608 read=54390, local hit=10926
|
||
I/O Timings: read=210.804
|
||
-> Sort (cost=67238.81..67239.73 rows=367 width=178) (actual time=556.386..556.605 rows=5462 loops=1)
|
||
Sort Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 961kB
|
||
Buffers: shared hit=3608 read=54390, local hit=10926
|
||
I/O Timings: read=210.804
|
||
-> Nested Loop (cost=1004.74..67223.18 rows=367 width=178) (actual time=518.705..553.668 rows=5462 loops=1)
|
||
Join Filter: ((osm_1.adj_orderdate >= od_1.sdat) AND (osm_1.adj_orderdate <= od_1.edat))
|
||
Rows Removed by Join Filter: 944926
|
||
Buffers: shared hit=3608 read=54390, local hit=10926
|
||
I/O Timings: read=210.804
|
||
-> Seq Scan on gld od_1 (cost=0.00..3.74 rows=174 width=80) (actual time=0.013..0.055 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Materialize (cost=1004.74..67161.63 rows=19 width=106) (actual time=2.013..2.722 rows=5462 loops=174)
|
||
Buffers: shared hit=3608 read=54390, local hit=10924
|
||
I/O Timings: read=210.804
|
||
-> Nested Loop Left Join (cost=1004.74..67161.54 rows=19 width=106) (actual time=350.244..437.677 rows=5462 loops=1)
|
||
Buffers: shared hit=3608 read=54390, local hit=10924
|
||
I/O Timings: read=210.804
|
||
-> Gather (cost=1000.00..67154.13 rows=1 width=34) (actual time=350.219..407.718 rows=5462 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=3608 read=54390
|
||
I/O Timings: read=210.804
|
||
-> Parallel Seq Scan on osm osm_1 (cost=0.00..66154.03 rows=1 width=34) (actual time=333.708..384.567 rows=1821 loops=3)
|
||
Filter: ((calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (flag = 'REMAINDER'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 259313
|
||
Buffers: shared hit=3608 read=54390
|
||
I/O Timings: read=210.804
|
||
-> Bitmap Heap Scan on gld sd_1 (cost=4.74..7.21 rows=19 width=80) (actual time=0.005..0.005 rows=1 loops=5462)
|
||
Recheck Cond: ((GREATEST(osm_1.adj_requestdate, CURRENT_DATE) >= sdat) AND (GREATEST(osm_1.adj_requestdate, CURRENT_DATE) <= edat))
|
||
Heap Blocks: exact=5462
|
||
Buffers: local hit=10924
|
||
-> Bitmap Index Scan on dats (cost=0.00..4.73 rows=19 width=0) (actual time=0.004..0.004 rows=1 loops=5462)
|
||
Index Cond: ((GREATEST(osm_1.adj_requestdate, CURRENT_DATE) >= sdat) AND (GREATEST(osm_1.adj_requestdate, CURRENT_DATE) <= edat))
|
||
Buffers: local hit=5462
|
||
-> HashAggregate (cost=25.98..28.48 rows=200 width=232) (actual time=18341.605..18341.654 rows=128 loops=1)
|
||
Group Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Buffers: shared hit=24590 read=90737, local hit=222025 read=1
|
||
I/O Timings: read=16381.140
|
||
-> CTE Scan on un (cost=0.00..11.16 rows=494 width=232) (actual time=17686.534..18341.509 rows=128 loops=1)
|
||
Filter: (om <> 'F'::text)
|
||
Rows Removed by Filter: 22
|
||
Buffers: shared hit=24590 read=90737, local hit=222025 read=1
|
||
I/O Timings: read=16381.140
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
<td>14</td>
|
||
<td>16s584ms</td>
|
||
<td id="slowest-individual-queries-examples-rank-14">
|
||
<div id="query-d-14-14" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">DELETE</span> <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm osm
|
||
<span class="kw1">WHERE</span> <span class="kw1">EXISTS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1"><span class="kw2">cast</span></span><span class="br0">(</span><span class="kw1">NULL</span> <span class="kw1">AS</span> INT<span class="br0">)</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1">DISTINCT</span> "diinv#"
|
||
<span class="kw1">FROM</span>
|
||
import<span class="sy0">.</span>osmi
|
||
<span class="kw1">WHERE</span>
|
||
"ddord#" <span class="sy0">=</span> <span class="nu0">0</span><span class="br0">)</span> n
|
||
<span class="kw1">WHERE</span>
|
||
n<span class="sy0">.</span> "diinv#" <span class="sy0">=</span> osm<span class="sy0">.</span> "diinv#"<span class="br0">)</span>;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 00:49:30 - <b>Database:</b> ubm - <b>User:</b> ptrowbridge_md5 - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> psql ]</pre>
|
||
<div id="query-d-explain-14-14" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Delete%20on%20osm%20%20%28cost%3D2579.44..36736.43%20rows%3D16%20width%3D36%29%20%28actual%20time%3D16584.934..16584.934%20rows%3D0%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D1558922%20read%3D6078%20dirtied%3D71%0A%09%20%20I%2FO%20Timings%3A%20read%3D735.005%0A%09%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D2579.44..36736.43%20rows%3D16%20width%3D36%29%20%28actual%20time%3D99.141..16583.640%20rows%3D159%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1558763%20read%3D6078%20dirtied%3D66%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D735.005%0A%09%20%20%20%20%20%20%20%20-%3E%20%20Subquery%20Scan%20on%20n%20%20%28cost%3D2579.01..2579.03%20rows%3D1%20width%3D36%29%20%28actual%20time%3D5.671..7.407%20rows%3D223%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2579%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Unique%20%20%28cost%3D2579.01..2579.02%20rows%3D1%20width%3D6%29%20%28actual%20time%3D5.664..6.608%20rows%3D223%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2579%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D2579.01..2579.02%20rows%3D1%20width%3D6%29%20%28actual%20time%3D5.662..5.909%20rows%3D252%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20osmi.%22diinv%23%22%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2036kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2579%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmi%20%20%28cost%3D0.00..2579.00%20rows%3D1%20width%3D6%29%20%28actual%20time%3D0.047..5.580%20rows%3D252%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%22ddord%23%22%20%3D%20%270%27%3A%3Anumeric%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2025396%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2579%0A%09%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20osm_pk%20on%20osm%20%20%28cost%3D0.42..34157.24%20rows%3D16%20width%3D12%29%20%28actual%20time%3D24.619..74.328%20rows%3D1%20loops%3D223%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%22diinv%23%22%20%3D%20n.%22diinv%23%22%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1556184%20read%3D6078%20dirtied%3D66%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D735.005%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Delete on osm (cost=2579.44..36736.43 rows=16 width=36) (actual time=16584.934..16584.934 rows=0 loops=1)
|
||
Buffers: shared hit=1558922 read=6078 dirtied=71
|
||
I/O Timings: read=735.005
|
||
-> Nested Loop (cost=2579.44..36736.43 rows=16 width=36) (actual time=99.141..16583.640 rows=159 loops=1)
|
||
Buffers: shared hit=1558763 read=6078 dirtied=66
|
||
I/O Timings: read=735.005
|
||
-> Subquery Scan on n (cost=2579.01..2579.03 rows=1 width=36) (actual time=5.671..7.407 rows=223 loops=1)
|
||
Buffers: shared hit=2579
|
||
-> Unique (cost=2579.01..2579.02 rows=1 width=6) (actual time=5.664..6.608 rows=223 loops=1)
|
||
Buffers: shared hit=2579
|
||
-> Sort (cost=2579.01..2579.02 rows=1 width=6) (actual time=5.662..5.909 rows=252 loops=1)
|
||
Sort Key: osmi."diinv#"
|
||
Sort Method: quicksort Memory: 36kB
|
||
Buffers: shared hit=2579
|
||
-> Seq Scan on osmi (cost=0.00..2579.00 rows=1 width=6) (actual time=0.047..5.580 rows=252 loops=1)
|
||
Filter: ("ddord#" = '0'::numeric)
|
||
Rows Removed by Filter: 25396
|
||
Buffers: shared hit=2579
|
||
-> Index Scan using osm_pk on osm (cost=0.42..34157.24 rows=16 width=12) (actual time=24.619..74.328 rows=1 loops=223)
|
||
Index Cond: ("diinv#" = n."diinv#")
|
||
Buffers: shared hit=1556184 read=6078 dirtied=66
|
||
I/O Timings: read=735.005
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
<td>15</td>
|
||
<td>14s707ms</td>
|
||
<td id="slowest-individual-queries-examples-rank-15">
|
||
<div id="query-d-15-15" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 17:30:39 ]</pre>
|
||
<div id="query-d-explain-15-15" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Parallel%20Seq%20Scan%20on%20osm%20%20%28cost%3D0.00..64717.64%20rows%3D464%20width%3D51%29%20%28actual%20time%3D60.452..13291.376%20rows%3D311798%20loops%3D1%29%0A%09%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20Rows%20Removed%20by%20Filter%3A%2078830%0A%09%20%20Buffers%3A%20shared%20read%3D28119%0A%09%20%20I%2FO%20Timings%3A%20read%3D12959.156%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Parallel Seq Scan on osm (cost=0.00..64717.64 rows=464 width=51) (actual time=60.452..13291.376 rows=311798 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 78830
|
||
Buffers: shared read=28119
|
||
I/O Timings: read=12959.156
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
<td>16</td>
|
||
<td>14s703ms</td>
|
||
<td id="slowest-individual-queries-examples-rank-16">
|
||
<div id="query-d-16-16" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-15 17:30:39 ]</pre>
|
||
<div id="query-d-explain-16-16" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Parallel%20Seq%20Scan%20on%20osm%20%20%28cost%3D0.00..64717.64%20rows%3D464%20width%3D51%29%20%28actual%20time%3D43.842..13321.716%20rows%3D311459%20loops%3D1%29%0A%09%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20Rows%20Removed%20by%20Filter%3A%2076258%0A%09%20%20Buffers%3A%20shared%20hit%3D1%20read%3D27922%20written%3D2%0A%09%20%20I%2FO%20Timings%3A%20read%3D12990.013%20write%3D0.074%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Parallel Seq Scan on osm (cost=0.00..64717.64 rows=464 width=51) (actual time=43.842..13321.716 rows=311459 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 76258
|
||
Buffers: shared hit=1 read=27922 written=2
|
||
I/O Timings: read=12990.013 write=0.074
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
<td>17</td>
|
||
<td>13s556ms</td>
|
||
<td id="slowest-individual-queries-examples-rank-17">
|
||
<div id="query-d-17-17" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-14 17:09:25 - <b>Database:</b> ubm - <b>User:</b> report - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> [unknown] ]</pre>
|
||
<div id="query-d-explain-17-17" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Sort%20%20%28cost%3D100695.96..100696.46%20rows%3D200%20width%3D232%29%20%28actual%20time%3D13556.122..13556.143%20rows%3D317%20loops%3D1%29%0A%09%20%20Sort%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2069kB%0A%09%20%20Buffers%3A%20shared%20hit%3D29386%20read%3D54954%2C%20local%20hit%3D2066721%20read%3D1%0A%09%20%20I%2FO%20Timings%3A%20read%3D22022.804%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D32534.94..100659.46%20rows%3D527%20width%3D232%29%20%28actual%20time%3D2423.610..13554.284%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D29383%20read%3D54954%2C%20local%20hit%3D2066721%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D22022.804%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D32534.94..32547.80%20rows%3D245%20width%3D232%29%20%28actual%20time%3D2423.609..2805.689%20rows%3D197%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.017%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D32534.94..32535.55%20rows%3D245%20width%3D185%29%20%28actual%20time%3D2423.587..2464.362%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2069497kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.017%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..32525.21%20rows%3D245%20width%3D185%29%20%28actual%20time%3D1.445..2052.334%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cm%20%3D%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.017%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..31588.56%20rows%3D738%20width%3D113%29%20%28actual%20time%3D1.407..615.418%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..31572.50%20rows%3D738%20width%3D42%29%20%28actual%20time%3D1.271..501.468%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osmf%20osm%20%20%28cost%3D0.00..30498.70%20rows%3D308%20width%3D42%29%20%28actual%20time%3D0.021..99.366%20rows%3D135605%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20119%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.123..0.125%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.010..0.040%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od%20%20%28cost%3D0.14..0.94%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813627%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.017%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D68088.95..68103.76%20rows%3D282%20width%3D232%29%20%28actual%20time%3D10608.602..10748.536%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3038%20read%3D54954%2C%20local%20hit%3D1253092%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D22022.787%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D68088.95..68089.66%20rows%3D282%20width%3D178%29%20%28actual%20time%3D10608.560..10626.817%20rows%3D93679%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2016246kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3038%20read%3D54954%2C%20local%20hit%3D1253092%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D22022.787%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..68077.48%20rows%3D282%20width%3D178%29%20%28actual%20time%3D17.729..10405.013%20rows%3D93679%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28%28osm_1.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28osm_1.flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%20532866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3038%20read%3D54954%2C%20local%20hit%3D1253092%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D22022.787%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..66481.58%20rows%3D1220%20width%3D122%29%20%28actual%20time%3D17.712..7561.990%20rows%3D627465%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.fspr%20%3D%20sd_1.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3038%20read%3D54954%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D22022.787%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..66459.83%20rows%3D1220%20width%3D51%29%20%28actual%20time%3D17.642..7272.901%20rows%3D627465%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3038%20read%3D54954%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D22022.787%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20osm_1%20%20%28cost%3D0.00..65337.83%20rows%3D508%20width%3D51%29%20%28actual%20time%3D10.170..7586.736%20rows%3D209155%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2051978%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3038%20read%3D54954%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D22022.787%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.057..0.057%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.010..0.032%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od_1%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D627465%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1253090%0A%09%20%20-%3E%20%20HashAggregate%20%20%28cost%3D26.35..28.85%20rows%3D200%20width%3D232%29%20%28actual%20time%3D13555.499..13555.686%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Group%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D29383%20read%3D54954%2C%20local%20hit%3D2066721%20read%3D1%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D22022.804%0A%09%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..10.54%20rows%3D527%20width%3D232%29%20%28actual%20time%3D2423.614..13554.682%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D29383%20read%3D54954%2C%20local%20hit%3D2066721%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D22022.804%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Sort (cost=100695.96..100696.46 rows=200 width=232) (actual time=13556.122..13556.143 rows=317 loops=1)
|
||
Sort Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Sort Method: quicksort Memory: 69kB
|
||
Buffers: shared hit=29386 read=54954, local hit=2066721 read=1
|
||
I/O Timings: read=22022.804
|
||
CTE un
|
||
-> Append (cost=32534.94..100659.46 rows=527 width=232) (actual time=2423.610..13554.284 rows=317 loops=1)
|
||
Buffers: shared hit=29383 read=54954, local hit=2066721 read=1
|
||
I/O Timings: read=22022.804
|
||
-> GroupAggregate (cost=32534.94..32547.80 rows=245 width=232) (actual time=2423.609..2805.689 rows=197 loops=1)
|
||
Group Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Buffers: shared hit=26345, local hit=813629 read=1
|
||
I/O Timings: read=0.017
|
||
-> Sort (cost=32534.94..32535.55 rows=245 width=185) (actual time=2423.587..2464.362 rows=406814 loops=1)
|
||
Sort Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 69497kB
|
||
Buffers: shared hit=26345, local hit=813629 read=1
|
||
I/O Timings: read=0.017
|
||
-> Nested Loop (cost=1006.06..32525.21 rows=245 width=185) (actual time=1.445..2052.334 rows=406814 loops=1)
|
||
Join Filter: ((od.cy = 'C'::text) OR (sd.cy = 'C'::text) OR (sd.cm = 'F'::text))
|
||
Buffers: shared hit=26345, local hit=813629 read=1
|
||
I/O Timings: read=0.017
|
||
-> Hash Left Join (cost=1005.91..31588.56 rows=738 width=113) (actual time=1.407..615.418 rows=406814 loops=1)
|
||
Hash Cond: (osm.fspr = sd.fspr)
|
||
Buffers: shared hit=26345, local hit=2
|
||
-> Gather (cost=1000.00..31572.50 rows=738 width=42) (actual time=1.271..501.468 rows=406814 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=26345
|
||
-> Parallel Seq Scan on osmf osm (cost=0.00..30498.70 rows=308 width=42) (actual time=0.021..99.366 rows=135605 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 119
|
||
Buffers: shared hit=26345
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.123..0.125 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd (cost=0.00..3.74 rows=174 width=108) (actual time=0.010..0.040 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od (cost=0.14..0.94 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=406814)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=813627 read=1
|
||
I/O Timings: read=0.017
|
||
-> GroupAggregate (cost=68088.95..68103.76 rows=282 width=232) (actual time=10608.602..10748.536 rows=120 loops=1)
|
||
Group Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Buffers: shared hit=3038 read=54954, local hit=1253092
|
||
I/O Timings: read=22022.787
|
||
-> Sort (cost=68088.95..68089.66 rows=282 width=178) (actual time=10608.560..10626.817 rows=93679 loops=1)
|
||
Sort Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 16246kB
|
||
Buffers: shared hit=3038 read=54954, local hit=1253092
|
||
I/O Timings: read=22022.787
|
||
-> Nested Loop (cost=1006.06..68077.48 rows=282 width=178) (actual time=17.729..10405.013 rows=93679 loops=1)
|
||
Join Filter: ((od_1.cy = 'C'::text) OR (sd_1.cy = 'C'::text) OR ((osm_1.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (osm_1.flag = 'REMAINDER'::text)))
|
||
Rows Removed by Join Filter: 532866
|
||
Buffers: shared hit=3038 read=54954, local hit=1253092
|
||
I/O Timings: read=22022.787
|
||
-> Hash Left Join (cost=1005.91..66481.58 rows=1220 width=122) (actual time=17.712..7561.990 rows=627465 loops=1)
|
||
Hash Cond: (osm_1.fspr = sd_1.fspr)
|
||
Buffers: shared hit=3038 read=54954, local hit=2
|
||
I/O Timings: read=22022.787
|
||
-> Gather (cost=1000.00..66459.83 rows=1220 width=51) (actual time=17.642..7272.901 rows=627465 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=3038 read=54954
|
||
I/O Timings: read=22022.787
|
||
-> Parallel Seq Scan on osm osm_1 (cost=0.00..65337.83 rows=508 width=51) (actual time=10.170..7586.736 rows=209155 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 51978
|
||
Buffers: shared hit=3038 read=54954
|
||
I/O Timings: read=22022.787
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.057..0.057 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_1 (cost=0.00..3.74 rows=174 width=108) (actual time=0.010..0.032 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od_1 (cost=0.14..0.93 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=627465)
|
||
Index Cond: ((osm_1.adj_orderdate >= sdat) AND (osm_1.adj_orderdate <= edat))
|
||
Buffers: local hit=1253090
|
||
-> HashAggregate (cost=26.35..28.85 rows=200 width=232) (actual time=13555.499..13555.686 rows=317 loops=1)
|
||
Group Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Buffers: shared hit=29383 read=54954, local hit=2066721 read=1
|
||
I/O Timings: read=22022.804
|
||
-> CTE Scan on un (cost=0.00..10.54 rows=527 width=232) (actual time=2423.614..13554.682 rows=317 loops=1)
|
||
Buffers: shared hit=29383 read=54954, local hit=2066721 read=1
|
||
I/O Timings: read=22022.804
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
<td>18</td>
|
||
<td>12s281ms</td>
|
||
<td id="slowest-individual-queries-examples-rank-18">
|
||
<div id="query-d-18-18" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-14 17:21:01 - <b>Database:</b> ubm - <b>User:</b> report - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> [unknown] ]</pre>
|
||
<div id="query-d-explain-18-18" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Sort%20%20%28cost%3D100695.96..100696.46%20rows%3D200%20width%3D232%29%20%28actual%20time%3D12281.541..12281.555%20rows%3D317%20loops%3D1%29%0A%09%20%20Sort%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2069kB%0A%09%20%20Buffers%3A%20shared%20hit%3D3482%20read%3D80858%20dirtied%3D3478%2C%20local%20hit%3D2066721%20read%3D1%0A%09%20%20I%2FO%20Timings%3A%20read%3D20311.283%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D32534.94..100659.46%20rows%3D527%20width%3D232%29%20%28actual%20time%3D3453.641..12280.132%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3479%20read%3D80858%20dirtied%3D3478%2C%20local%20hit%3D2066721%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D20311.283%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D32534.94..32547.80%20rows%3D245%20width%3D232%29%20%28actual%20time%3D3453.640..3952.327%20rows%3D197%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2285.213%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D32534.94..32535.55%20rows%3D245%20width%3D185%29%20%28actual%20time%3D3453.601..3511.523%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2069497kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2285.213%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..32525.21%20rows%3D245%20width%3D185%29%20%28actual%20time%3D5.988..3065.499%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cm%20%3D%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2285.213%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..31588.56%20rows%3D738%20width%3D113%29%20%28actual%20time%3D5.952..1146.761%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2285.196%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..31572.50%20rows%3D738%20width%3D42%29%20%28actual%20time%3D5.851..991.768%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2285.196%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osmf%20osm%20%20%28cost%3D0.00..30498.70%20rows%3D308%20width%3D42%29%20%28actual%20time%3D7.005..891.537%20rows%3D135605%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20119%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2285.196%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.072..0.072%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.014..0.041%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od%20%20%28cost%3D0.14..0.94%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813627%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.017%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D68088.95..68103.76%20rows%3D282%20width%3D232%29%20%28actual%20time%3D8247.608..8327.739%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3479%20read%3D54513%20dirtied%3D3478%2C%20local%20hit%3D1253092%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D18026.070%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D68088.95..68089.66%20rows%3D282%20width%3D178%29%20%28actual%20time%3D8247.589..8255.395%20rows%3D93679%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2016246kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3479%20read%3D54513%20dirtied%3D3478%2C%20local%20hit%3D1253092%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D18026.070%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..68077.48%20rows%3D282%20width%3D178%29%20%28actual%20time%3D31.734..8170.368%20rows%3D93679%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28%28osm_1.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28osm_1.flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%20532866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3479%20read%3D54513%20dirtied%3D3478%2C%20local%20hit%3D1253092%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D18026.070%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..66481.58%20rows%3D1220%20width%3D122%29%20%28actual%20time%3D31.701..5807.059%20rows%3D627465%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.fspr%20%3D%20sd_1.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3479%20read%3D54513%20dirtied%3D3478%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D18026.070%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..66459.83%20rows%3D1220%20width%3D51%29%20%28actual%20time%3D31.495..5563.385%20rows%3D627465%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3479%20read%3D54513%20dirtied%3D3478%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D18026.070%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20osm_1%20%20%28cost%3D0.00..65337.83%20rows%3D508%20width%3D51%29%20%28actual%20time%3D21.425..6223.191%20rows%3D209155%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2051978%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3479%20read%3D54513%20dirtied%3D3478%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D18026.070%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.143..0.143%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.019..0.061%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od_1%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D627465%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1253090%0A%09%20%20-%3E%20%20HashAggregate%20%20%28cost%3D26.35..28.85%20rows%3D200%20width%3D232%29%20%28actual%20time%3D12281.089..12281.196%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Group%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3479%20read%3D80858%20dirtied%3D3478%2C%20local%20hit%3D2066721%20read%3D1%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D20311.283%0A%09%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..10.54%20rows%3D527%20width%3D232%29%20%28actual%20time%3D3453.645..12280.486%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3479%20read%3D80858%20dirtied%3D3478%2C%20local%20hit%3D2066721%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D20311.283%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Sort (cost=100695.96..100696.46 rows=200 width=232) (actual time=12281.541..12281.555 rows=317 loops=1)
|
||
Sort Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Sort Method: quicksort Memory: 69kB
|
||
Buffers: shared hit=3482 read=80858 dirtied=3478, local hit=2066721 read=1
|
||
I/O Timings: read=20311.283
|
||
CTE un
|
||
-> Append (cost=32534.94..100659.46 rows=527 width=232) (actual time=3453.641..12280.132 rows=317 loops=1)
|
||
Buffers: shared hit=3479 read=80858 dirtied=3478, local hit=2066721 read=1
|
||
I/O Timings: read=20311.283
|
||
-> GroupAggregate (cost=32534.94..32547.80 rows=245 width=232) (actual time=3453.640..3952.327 rows=197 loops=1)
|
||
Group Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Buffers: shared read=26345, local hit=813629 read=1
|
||
I/O Timings: read=2285.213
|
||
-> Sort (cost=32534.94..32535.55 rows=245 width=185) (actual time=3453.601..3511.523 rows=406814 loops=1)
|
||
Sort Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 69497kB
|
||
Buffers: shared read=26345, local hit=813629 read=1
|
||
I/O Timings: read=2285.213
|
||
-> Nested Loop (cost=1006.06..32525.21 rows=245 width=185) (actual time=5.988..3065.499 rows=406814 loops=1)
|
||
Join Filter: ((od.cy = 'C'::text) OR (sd.cy = 'C'::text) OR (sd.cm = 'F'::text))
|
||
Buffers: shared read=26345, local hit=813629 read=1
|
||
I/O Timings: read=2285.213
|
||
-> Hash Left Join (cost=1005.91..31588.56 rows=738 width=113) (actual time=5.952..1146.761 rows=406814 loops=1)
|
||
Hash Cond: (osm.fspr = sd.fspr)
|
||
Buffers: shared read=26345, local hit=2
|
||
I/O Timings: read=2285.196
|
||
-> Gather (cost=1000.00..31572.50 rows=738 width=42) (actual time=5.851..991.768 rows=406814 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared read=26345
|
||
I/O Timings: read=2285.196
|
||
-> Parallel Seq Scan on osmf osm (cost=0.00..30498.70 rows=308 width=42) (actual time=7.005..891.537 rows=135605 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 119
|
||
Buffers: shared read=26345
|
||
I/O Timings: read=2285.196
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.072..0.072 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd (cost=0.00..3.74 rows=174 width=108) (actual time=0.014..0.041 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od (cost=0.14..0.94 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=406814)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=813627 read=1
|
||
I/O Timings: read=0.017
|
||
-> GroupAggregate (cost=68088.95..68103.76 rows=282 width=232) (actual time=8247.608..8327.739 rows=120 loops=1)
|
||
Group Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Buffers: shared hit=3479 read=54513 dirtied=3478, local hit=1253092
|
||
I/O Timings: read=18026.070
|
||
-> Sort (cost=68088.95..68089.66 rows=282 width=178) (actual time=8247.589..8255.395 rows=93679 loops=1)
|
||
Sort Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 16246kB
|
||
Buffers: shared hit=3479 read=54513 dirtied=3478, local hit=1253092
|
||
I/O Timings: read=18026.070
|
||
-> Nested Loop (cost=1006.06..68077.48 rows=282 width=178) (actual time=31.734..8170.368 rows=93679 loops=1)
|
||
Join Filter: ((od_1.cy = 'C'::text) OR (sd_1.cy = 'C'::text) OR ((osm_1.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (osm_1.flag = 'REMAINDER'::text)))
|
||
Rows Removed by Join Filter: 532866
|
||
Buffers: shared hit=3479 read=54513 dirtied=3478, local hit=1253092
|
||
I/O Timings: read=18026.070
|
||
-> Hash Left Join (cost=1005.91..66481.58 rows=1220 width=122) (actual time=31.701..5807.059 rows=627465 loops=1)
|
||
Hash Cond: (osm_1.fspr = sd_1.fspr)
|
||
Buffers: shared hit=3479 read=54513 dirtied=3478, local hit=2
|
||
I/O Timings: read=18026.070
|
||
-> Gather (cost=1000.00..66459.83 rows=1220 width=51) (actual time=31.495..5563.385 rows=627465 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=3479 read=54513 dirtied=3478
|
||
I/O Timings: read=18026.070
|
||
-> Parallel Seq Scan on osm osm_1 (cost=0.00..65337.83 rows=508 width=51) (actual time=21.425..6223.191 rows=209155 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 51978
|
||
Buffers: shared hit=3479 read=54513 dirtied=3478
|
||
I/O Timings: read=18026.070
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.143..0.143 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_1 (cost=0.00..3.74 rows=174 width=108) (actual time=0.019..0.061 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od_1 (cost=0.14..0.93 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=627465)
|
||
Index Cond: ((osm_1.adj_orderdate >= sdat) AND (osm_1.adj_orderdate <= edat))
|
||
Buffers: local hit=1253090
|
||
-> HashAggregate (cost=26.35..28.85 rows=200 width=232) (actual time=12281.089..12281.196 rows=317 loops=1)
|
||
Group Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Buffers: shared hit=3479 read=80858 dirtied=3478, local hit=2066721 read=1
|
||
I/O Timings: read=20311.283
|
||
-> CTE Scan on un (cost=0.00..10.54 rows=527 width=232) (actual time=3453.645..12280.486 rows=317 loops=1)
|
||
Buffers: shared hit=3479 read=80858 dirtied=3478, local hit=2066721 read=1
|
||
I/O Timings: read=20311.283
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
<td>19</td>
|
||
<td>10s935ms</td>
|
||
<td id="slowest-individual-queries-examples-rank-19">
|
||
<div id="query-d-19-19" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-18 10:06:54 - <b>Database:</b> ubm - <b>User:</b> report - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> [unknown] ]</pre>
|
||
<div id="query-d-explain-19-19" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Sort%20%20%28cost%3D99922.38..99922.88%20rows%3D200%20width%3D232%29%20%28actual%20time%3D10935.222..10935.243%20rows%3D317%20loops%3D1%29%0A%09%20%20Sort%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2069kB%0A%09%20%20Buffers%3A%20shared%20hit%3D28739%20read%3D55601%2C%20local%20hit%3D2068827%20read%3D1%0A%09%20%20I%2FO%20Timings%3A%20read%3D141.169%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D32534.94..99887.14%20rows%3D502%20width%3D232%29%20%28actual%20time%3D5060.751..10933.585%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D28736%20read%3D55601%2C%20local%20hit%3D2068827%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D141.169%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D32534.94..32547.80%20rows%3D245%20width%3D232%29%20%28actual%20time%3D5060.750..6055.287%20rows%3D197%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.004%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D32534.94..32535.55%20rows%3D245%20width%3D185%29%20%28actual%20time%3D5060.730..5194.382%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2069497kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.004%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..32525.21%20rows%3D245%20width%3D185%29%20%28actual%20time%3D1.212..4434.425%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cm%20%3D%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.004%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..31588.56%20rows%3D738%20width%3D113%29%20%28actual%20time%3D1.197..2705.824%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..31572.50%20rows%3D738%20width%3D42%29%20%28actual%20time%3D1.136..2556.469%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osmf%20osm%20%20%28cost%3D0.00..30498.70%20rows%3D308%20width%3D42%29%20%28actual%20time%3D0.018..114.801%20rows%3D135605%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20119%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.053..0.053%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.005..0.028%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od%20%20%28cost%3D0.14..0.94%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813627%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.004%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D67318.31..67331.81%20rows%3D257%20width%3D232%29%20%28actual%20time%3D4765.996..4878.228%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2391%20read%3D55601%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D141.165%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D67318.31..67318.96%20rows%3D257%20width%3D178%29%20%28actual%20time%3D4765.969..4779.799%20rows%3D94732%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2016394kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2391%20read%3D55601%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D141.165%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..67308.03%20rows%3D257%20width%3D178%29%20%28actual%20time%3D2.962..4672.656%20rows%3D94732%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28%28osm_1.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28osm_1.flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%20532866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2391%20read%3D55601%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D141.165%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..65849.40%20rows%3D1114%20width%3D122%29%20%28actual%20time%3D2.719..2606.200%20rows%3D628518%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.fspr%20%3D%20sd_1.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2391%20read%3D55601%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D141.165%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..65829.04%20rows%3D1114%20width%3D51%29%20%28actual%20time%3D2.603..2182.415%20rows%3D628518%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2391%20read%3D55601%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D141.165%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20osm_1%20%20%28cost%3D0.00..64717.64%20rows%3D464%20width%3D51%29%20%28actual%20time%3D0.034..233.358%20rows%3D209506%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2052157%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2391%20read%3D55601%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D141.165%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.095..0.095%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.013..0.056%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od_1%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D628518%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1255196%0A%09%20%20-%3E%20%20HashAggregate%20%20%28cost%3D25.10..27.60%20rows%3D200%20width%3D232%29%20%28actual%20time%3D10934.569..10934.735%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Group%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D28736%20read%3D55601%2C%20local%20hit%3D2068827%20read%3D1%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D141.169%0A%09%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..10.04%20rows%3D502%20width%3D232%29%20%28actual%20time%3D5060.754..10933.963%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D28736%20read%3D55601%2C%20local%20hit%3D2068827%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D141.169%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Sort (cost=99922.38..99922.88 rows=200 width=232) (actual time=10935.222..10935.243 rows=317 loops=1)
|
||
Sort Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Sort Method: quicksort Memory: 69kB
|
||
Buffers: shared hit=28739 read=55601, local hit=2068827 read=1
|
||
I/O Timings: read=141.169
|
||
CTE un
|
||
-> Append (cost=32534.94..99887.14 rows=502 width=232) (actual time=5060.751..10933.585 rows=317 loops=1)
|
||
Buffers: shared hit=28736 read=55601, local hit=2068827 read=1
|
||
I/O Timings: read=141.169
|
||
-> GroupAggregate (cost=32534.94..32547.80 rows=245 width=232) (actual time=5060.750..6055.287 rows=197 loops=1)
|
||
Group Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Buffers: shared hit=26345, local hit=813629 read=1
|
||
I/O Timings: read=0.004
|
||
-> Sort (cost=32534.94..32535.55 rows=245 width=185) (actual time=5060.730..5194.382 rows=406814 loops=1)
|
||
Sort Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 69497kB
|
||
Buffers: shared hit=26345, local hit=813629 read=1
|
||
I/O Timings: read=0.004
|
||
-> Nested Loop (cost=1006.06..32525.21 rows=245 width=185) (actual time=1.212..4434.425 rows=406814 loops=1)
|
||
Join Filter: ((od.cy = 'C'::text) OR (sd.cy = 'C'::text) OR (sd.cm = 'F'::text))
|
||
Buffers: shared hit=26345, local hit=813629 read=1
|
||
I/O Timings: read=0.004
|
||
-> Hash Left Join (cost=1005.91..31588.56 rows=738 width=113) (actual time=1.197..2705.824 rows=406814 loops=1)
|
||
Hash Cond: (osm.fspr = sd.fspr)
|
||
Buffers: shared hit=26345, local hit=2
|
||
-> Gather (cost=1000.00..31572.50 rows=738 width=42) (actual time=1.136..2556.469 rows=406814 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=26345
|
||
-> Parallel Seq Scan on osmf osm (cost=0.00..30498.70 rows=308 width=42) (actual time=0.018..114.801 rows=135605 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 119
|
||
Buffers: shared hit=26345
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.053..0.053 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd (cost=0.00..3.74 rows=174 width=108) (actual time=0.005..0.028 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od (cost=0.14..0.94 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=406814)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=813627 read=1
|
||
I/O Timings: read=0.004
|
||
-> GroupAggregate (cost=67318.31..67331.81 rows=257 width=232) (actual time=4765.996..4878.228 rows=120 loops=1)
|
||
Group Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Buffers: shared hit=2391 read=55601, local hit=1255198
|
||
I/O Timings: read=141.165
|
||
-> Sort (cost=67318.31..67318.96 rows=257 width=178) (actual time=4765.969..4779.799 rows=94732 loops=1)
|
||
Sort Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 16394kB
|
||
Buffers: shared hit=2391 read=55601, local hit=1255198
|
||
I/O Timings: read=141.165
|
||
-> Nested Loop (cost=1006.06..67308.03 rows=257 width=178) (actual time=2.962..4672.656 rows=94732 loops=1)
|
||
Join Filter: ((od_1.cy = 'C'::text) OR (sd_1.cy = 'C'::text) OR ((osm_1.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (osm_1.flag = 'REMAINDER'::text)))
|
||
Rows Removed by Join Filter: 532866
|
||
Buffers: shared hit=2391 read=55601, local hit=1255198
|
||
I/O Timings: read=141.165
|
||
-> Hash Left Join (cost=1005.91..65849.40 rows=1114 width=122) (actual time=2.719..2606.200 rows=628518 loops=1)
|
||
Hash Cond: (osm_1.fspr = sd_1.fspr)
|
||
Buffers: shared hit=2391 read=55601, local hit=2
|
||
I/O Timings: read=141.165
|
||
-> Gather (cost=1000.00..65829.04 rows=1114 width=51) (actual time=2.603..2182.415 rows=628518 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=2391 read=55601
|
||
I/O Timings: read=141.165
|
||
-> Parallel Seq Scan on osm osm_1 (cost=0.00..64717.64 rows=464 width=51) (actual time=0.034..233.358 rows=209506 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 52157
|
||
Buffers: shared hit=2391 read=55601
|
||
I/O Timings: read=141.165
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.095..0.095 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_1 (cost=0.00..3.74 rows=174 width=108) (actual time=0.013..0.056 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od_1 (cost=0.14..0.93 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=628518)
|
||
Index Cond: ((osm_1.adj_orderdate >= sdat) AND (osm_1.adj_orderdate <= edat))
|
||
Buffers: local hit=1255196
|
||
-> HashAggregate (cost=25.10..27.60 rows=200 width=232) (actual time=10934.569..10934.735 rows=317 loops=1)
|
||
Group Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Buffers: shared hit=28736 read=55601, local hit=2068827 read=1
|
||
I/O Timings: read=141.169
|
||
-> CTE Scan on un (cost=0.00..10.04 rows=502 width=232) (actual time=5060.754..10933.963 rows=317 loops=1)
|
||
Buffers: shared hit=28736 read=55601, local hit=2068827 read=1
|
||
I/O Timings: read=141.169
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
<td>20</td>
|
||
<td>10s695ms</td>
|
||
<td id="slowest-individual-queries-examples-rank-20">
|
||
<div id="query-d-20-20" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
<pre>[ <b>Date:</b> 2019-03-18 10:06:52 - <b>Database:</b> ubm - <b>User:</b> report - <b>Remote:</b> USHCC10107.GBL.HC-companies.com - <b>Application:</b> [unknown] ]</pre>
|
||
<div id="query-d-explain-20-20" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Sort%20%20%28cost%3D99922.38..99922.88%20rows%3D200%20width%3D232%29%20%28actual%20time%3D10689.845..10689.860%20rows%3D317%20loops%3D1%29%0A%09%20%20Sort%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2069kB%0A%09%20%20Buffers%3A%20shared%20hit%3D28334%20read%3D56003%2C%20local%20hit%3D2068827%20read%3D1%0A%09%20%20I%2FO%20Timings%3A%20read%3D116.017%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D32534.94..99887.14%20rows%3D502%20width%3D232%29%20%28actual%20time%3D3391.868..10681.595%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D28334%20read%3D56003%2C%20local%20hit%3D2068827%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D116.017%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D32534.94..32547.80%20rows%3D245%20width%3D232%29%20%28actual%20time%3D3391.867..4415.240%20rows%3D197%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.009%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D32534.94..32535.55%20rows%3D245%20width%3D185%29%20%28actual%20time%3D3391.847..3496.465%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2069497kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.009%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..32525.21%20rows%3D245%20width%3D185%29%20%28actual%20time%3D1.350..2775.860%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cm%20%3D%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.009%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..31588.56%20rows%3D738%20width%3D113%29%20%28actual%20time%3D1.313..1179.345%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..31572.50%20rows%3D738%20width%3D42%29%20%28actual%20time%3D1.240..1046.018%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osmf%20osm%20%20%28cost%3D0.00..30498.70%20rows%3D308%20width%3D42%29%20%28actual%20time%3D0.014..109.458%20rows%3D135605%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20119%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.061..0.062%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.008..0.034%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od%20%20%28cost%3D0.14..0.94%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813627%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.009%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D67318.31..67331.81%20rows%3D257%20width%3D232%29%20%28actual%20time%3D6073.565..6266.298%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1989%20read%3D56003%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D116.008%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D67318.31..67318.96%20rows%3D257%20width%3D178%29%20%28actual%20time%3D6073.544..6091.287%20rows%3D94732%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2016394kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1989%20read%3D56003%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D116.008%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..67308.03%20rows%3D257%20width%3D178%29%20%28actual%20time%3D2.958..5927.325%20rows%3D94732%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28%28osm_1.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28osm_1.flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%20532866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1989%20read%3D56003%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D116.008%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..65849.40%20rows%3D1114%20width%3D122%29%20%28actual%20time%3D2.927..3753.366%20rows%3D628518%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.fspr%20%3D%20sd_1.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1989%20read%3D56003%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D116.008%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..65829.04%20rows%3D1114%20width%3D51%29%20%28actual%20time%3D2.864..3530.159%20rows%3D628518%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1989%20read%3D56003%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D116.008%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20osm_1%20%20%28cost%3D0.00..64717.64%20rows%3D464%20width%3D51%29%20%28actual%20time%3D0.049..218.145%20rows%3D209506%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2052157%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1989%20read%3D56003%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D116.008%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.052..0.052%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.007..0.030%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od_1%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D628518%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1255196%0A%09%20%20-%3E%20%20HashAggregate%20%20%28cost%3D25.10..27.60%20rows%3D200%20width%3D232%29%20%28actual%20time%3D10689.360..10689.485%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Group%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D28334%20read%3D56003%2C%20local%20hit%3D2068827%20read%3D1%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D116.017%0A%09%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..10.04%20rows%3D502%20width%3D232%29%20%28actual%20time%3D3391.870..10681.897%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D28334%20read%3D56003%2C%20local%20hit%3D2068827%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D116.017%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Sort (cost=99922.38..99922.88 rows=200 width=232) (actual time=10689.845..10689.860 rows=317 loops=1)
|
||
Sort Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Sort Method: quicksort Memory: 69kB
|
||
Buffers: shared hit=28334 read=56003, local hit=2068827 read=1
|
||
I/O Timings: read=116.017
|
||
CTE un
|
||
-> Append (cost=32534.94..99887.14 rows=502 width=232) (actual time=3391.868..10681.595 rows=317 loops=1)
|
||
Buffers: shared hit=28334 read=56003, local hit=2068827 read=1
|
||
I/O Timings: read=116.017
|
||
-> GroupAggregate (cost=32534.94..32547.80 rows=245 width=232) (actual time=3391.867..4415.240 rows=197 loops=1)
|
||
Group Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Buffers: shared hit=26345, local hit=813629 read=1
|
||
I/O Timings: read=0.009
|
||
-> Sort (cost=32534.94..32535.55 rows=245 width=185) (actual time=3391.847..3496.465 rows=406814 loops=1)
|
||
Sort Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 69497kB
|
||
Buffers: shared hit=26345, local hit=813629 read=1
|
||
I/O Timings: read=0.009
|
||
-> Nested Loop (cost=1006.06..32525.21 rows=245 width=185) (actual time=1.350..2775.860 rows=406814 loops=1)
|
||
Join Filter: ((od.cy = 'C'::text) OR (sd.cy = 'C'::text) OR (sd.cm = 'F'::text))
|
||
Buffers: shared hit=26345, local hit=813629 read=1
|
||
I/O Timings: read=0.009
|
||
-> Hash Left Join (cost=1005.91..31588.56 rows=738 width=113) (actual time=1.313..1179.345 rows=406814 loops=1)
|
||
Hash Cond: (osm.fspr = sd.fspr)
|
||
Buffers: shared hit=26345, local hit=2
|
||
-> Gather (cost=1000.00..31572.50 rows=738 width=42) (actual time=1.240..1046.018 rows=406814 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=26345
|
||
-> Parallel Seq Scan on osmf osm (cost=0.00..30498.70 rows=308 width=42) (actual time=0.014..109.458 rows=135605 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 119
|
||
Buffers: shared hit=26345
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.061..0.062 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd (cost=0.00..3.74 rows=174 width=108) (actual time=0.008..0.034 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od (cost=0.14..0.94 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=406814)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=813627 read=1
|
||
I/O Timings: read=0.009
|
||
-> GroupAggregate (cost=67318.31..67331.81 rows=257 width=232) (actual time=6073.565..6266.298 rows=120 loops=1)
|
||
Group Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Buffers: shared hit=1989 read=56003, local hit=1255198
|
||
I/O Timings: read=116.008
|
||
-> Sort (cost=67318.31..67318.96 rows=257 width=178) (actual time=6073.544..6091.287 rows=94732 loops=1)
|
||
Sort Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 16394kB
|
||
Buffers: shared hit=1989 read=56003, local hit=1255198
|
||
I/O Timings: read=116.008
|
||
-> Nested Loop (cost=1006.06..67308.03 rows=257 width=178) (actual time=2.958..5927.325 rows=94732 loops=1)
|
||
Join Filter: ((od_1.cy = 'C'::text) OR (sd_1.cy = 'C'::text) OR ((osm_1.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (osm_1.flag = 'REMAINDER'::text)))
|
||
Rows Removed by Join Filter: 532866
|
||
Buffers: shared hit=1989 read=56003, local hit=1255198
|
||
I/O Timings: read=116.008
|
||
-> Hash Left Join (cost=1005.91..65849.40 rows=1114 width=122) (actual time=2.927..3753.366 rows=628518 loops=1)
|
||
Hash Cond: (osm_1.fspr = sd_1.fspr)
|
||
Buffers: shared hit=1989 read=56003, local hit=2
|
||
I/O Timings: read=116.008
|
||
-> Gather (cost=1000.00..65829.04 rows=1114 width=51) (actual time=2.864..3530.159 rows=628518 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=1989 read=56003
|
||
I/O Timings: read=116.008
|
||
-> Parallel Seq Scan on osm osm_1 (cost=0.00..64717.64 rows=464 width=51) (actual time=0.049..218.145 rows=209506 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 52157
|
||
Buffers: shared hit=1989 read=56003
|
||
I/O Timings: read=116.008
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.052..0.052 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_1 (cost=0.00..3.74 rows=174 width=108) (actual time=0.007..0.030 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od_1 (cost=0.14..0.93 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=628518)
|
||
Index Cond: ((osm_1.adj_orderdate >= sdat) AND (osm_1.adj_orderdate <= edat))
|
||
Buffers: local hit=1255196
|
||
-> HashAggregate (cost=25.10..27.60 rows=200 width=232) (actual time=10689.360..10689.485 rows=317 loops=1)
|
||
Group Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Buffers: shared hit=28334 read=56003, local hit=2068827 read=1
|
||
I/O Timings: read=116.017
|
||
-> CTE Scan on un (cost=0.00..10.04 rows=502 width=232) (actual time=3391.870..10681.897 rows=317 loops=1)
|
||
Buffers: shared hit=28334 read=56003, local hit=2068827 read=1
|
||
I/O Timings: read=116.017
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div><!-- end of slowest-individual-queries -->
|
||
|
||
<div class="analysis-item row" id="time-consuming-queries">
|
||
<h2><i class="glyphicon icon-time"></i> Time consuming queries</h2>
|
||
<div class="col-md-12">
|
||
<table class="table table-striped" id="time-consuming-queries-table">
|
||
<thead>
|
||
<tr>
|
||
<th>Rank</th>
|
||
<th>Total duration</th>
|
||
<th>Times executed</th>
|
||
<th>Min duration</th>
|
||
<th>Max duration</th>
|
||
<th>Avg duration</th>
|
||
<th>Query</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
|
||
<tr>
|
||
<td>1</td>
|
||
<td>9m44s</td>
|
||
<td>3
|
||
<p><a href="#Atime_consuming_queries_details_1" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>2m30s</td>
|
||
<td>4m7s</td>
|
||
<td>3m14s</td>
|
||
<td id="time-consuming-queries-examples-details-rank-1">
|
||
<div id="query-e-1" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Atime_consuming_queries_details_1" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #1</small></h3>
|
||
<div id="time_consuming_queries_details_1" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Atime_consuming_queries_details_1').on("shown.bs.collapse",function(){
|
||
var bars_35 = [['00:00',1],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',1],['15:00',0],['16:00',1],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_35 = [['00:00',247216],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',150711],['15:00',0],['16:00',186692],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var time_consuming_queries_details_1 = create_bargraph('time_consuming_queries_details_1', '', 'Queries', [ bars_35, lines_35 ], 'Avg. duration');
|
||
});
|
||
create_download_button(35, 'btn btn-default btn-xs');
|
||
add_download_button_event(35, 'time_consuming_queries_details_1');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 15</td><td>00</td><td>1</td><td>4m7s</td><td>4m7s</td></tr><tr><td></td><td>14</td><td>1</td><td>2m30s</td><td>2m30s</td></tr><tr><td></td><td>16</td><td>1</td><td>3m6s</td><td>3m6s</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Atime_consuming_queries_details_1">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-1">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-1">User(s) involved</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-1">App(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="time-consuming-queries-user-involved-rank-1" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> ptrowbridge_md5 - <b>Total duration:</b> 9m44s - <b>Times executed:</b> 3 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-1">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="time-consuming-queries-app-involved-rank-1" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> psql - <b>Total duration:</b> 9m44s - <b>Times executed:</b> 3 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-1">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="time-consuming-queries-examples-rank-1" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-e-1-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 00:53:37
|
||
<b>Duration:</b> 4m7s
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-e-explain-1-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Insert%20on%20osm_ppfa_varto_mv%20%20%28cost%3D0.25..10.25%20rows%3D1000%20width%3D1520%29%20%28actual%20time%3D247216.314..247216.314%20rows%3D0%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D1716294%20read%3D197994%20dirtied%3D106936%20written%3D127%2C%20local%20hit%3D5658761%20read%3D4%20dirtied%3D2%2C%20temp%20read%3D384787%20written%3D401694%0A%09%20%20I%2FO%20Timings%3A%20read%3D8265.132%20write%3D1.395%0A%09%20%20-%3E%20%20Function%20Scan%20on%20osm_ppfa_varto%20%20%28cost%3D0.25..10.25%20rows%3D1000%20width%3D1520%29%20%28actual%20time%3D209413.211..214181.385%20rows%3D1377873%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D106558%20read%3D91107%20dirtied%3D50%2C%20local%20hit%3D5658761%20read%3D4%20dirtied%3D2%2C%20temp%20read%3D384787%20written%3D401694%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8253.083%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Insert on osm_ppfa_varto_mv (cost=0.25..10.25 rows=1000 width=1520) (actual time=247216.314..247216.314 rows=0 loops=1)
|
||
Buffers: shared hit=1716294 read=197994 dirtied=106936 written=127, local hit=5658761 read=4 dirtied=2, temp read=384787 written=401694
|
||
I/O Timings: read=8265.132 write=1.395
|
||
-> Function Scan on osm_ppfa_varto (cost=0.25..10.25 rows=1000 width=1520) (actual time=209413.211..214181.385 rows=1377873 loops=1)
|
||
Buffers: shared hit=106558 read=91107 dirtied=50, local hit=5658761 read=4 dirtied=2, temp read=384787 written=401694
|
||
I/O Timings: read=8253.083
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-e-1-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 16:48:41
|
||
<b>Duration:</b> 3m6s
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-e-explain-1-2" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Insert%20on%20osm_ppfa_varto_mv%20%20%28cost%3D0.25..10.25%20rows%3D1000%20width%3D1520%29%20%28actual%20time%3D186692.239..186692.239%20rows%3D0%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D1652058%20read%3D262701%20dirtied%3D107023%20written%3D340%2C%20local%20hit%3D5660301%20read%3D4%20dirtied%3D2%2C%20temp%20read%3D384981%20written%3D401910%0A%09%20%20I%2FO%20Timings%3A%20read%3D5890.327%20write%3D3.241%0A%09%20%20-%3E%20%20Function%20Scan%20on%20osm_ppfa_varto%20%20%28cost%3D0.25..10.25%20rows%3D1000%20width%3D1520%29%20%28actual%20time%3D152354.359..164471.890%20rows%3D1378962%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D40911%20read%3D155742%20dirtied%3D65%2C%20local%20hit%3D5660301%20read%3D4%20dirtied%3D2%2C%20temp%20read%3D384981%20written%3D401910%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5888.364%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Insert on osm_ppfa_varto_mv (cost=0.25..10.25 rows=1000 width=1520) (actual time=186692.239..186692.239 rows=0 loops=1)
|
||
Buffers: shared hit=1652058 read=262701 dirtied=107023 written=340, local hit=5660301 read=4 dirtied=2, temp read=384981 written=401910
|
||
I/O Timings: read=5890.327 write=3.241
|
||
-> Function Scan on osm_ppfa_varto (cost=0.25..10.25 rows=1000 width=1520) (actual time=152354.359..164471.890 rows=1378962 loops=1)
|
||
Buffers: shared hit=40911 read=155742 dirtied=65, local hit=5660301 read=4 dirtied=2, temp read=384981 written=401910
|
||
I/O Timings: read=5888.364
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-e-1-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 14:09:42
|
||
<b>Duration:</b> 2m30s
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-e-explain-1-3" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Insert%20on%20osm_ppfa_varto_mv%20%20%28cost%3D0.25..10.25%20rows%3D1000%20width%3D1520%29%20%28actual%20time%3D150711.860..150711.860%20rows%3D0%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D1649817%20read%3D264466%20dirtied%3D106965%20written%3D88%2C%20local%20hit%3D5659525%20read%3D4%20dirtied%3D2%2C%20temp%20read%3D384879%20written%3D401797%0A%09%20%20I%2FO%20Timings%3A%20read%3D5508.081%20write%3D14.599%0A%09%20%20-%3E%20%20Function%20Scan%20on%20osm_ppfa_varto%20%20%28cost%3D0.25..10.25%20rows%3D1000%20width%3D1520%29%20%28actual%20time%3D127165.594..135951.084%20rows%3D1378380%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D39318%20read%3D157546%20dirtied%3D46%2C%20local%20hit%3D5659525%20read%3D4%20dirtied%3D2%2C%20temp%20read%3D384879%20written%3D401797%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5507.907%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Insert on osm_ppfa_varto_mv (cost=0.25..10.25 rows=1000 width=1520) (actual time=150711.860..150711.860 rows=0 loops=1)
|
||
Buffers: shared hit=1649817 read=264466 dirtied=106965 written=88, local hit=5659525 read=4 dirtied=2, temp read=384879 written=401797
|
||
I/O Timings: read=5508.081 write=14.599
|
||
-> Function Scan on osm_ppfa_varto (cost=0.25..10.25 rows=1000 width=1520) (actual time=127165.594..135951.084 rows=1378380 loops=1)
|
||
Buffers: shared hit=39318 read=157546 dirtied=46, local hit=5659525 read=4 dirtied=2, temp read=384879 written=401797
|
||
I/O Timings: read=5507.907
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-1">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>2</td>
|
||
<td>7m50s</td>
|
||
<td>3
|
||
<p><a href="#Atime_consuming_queries_details_2" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>2m2s</td>
|
||
<td>3m19s</td>
|
||
<td>2m36s</td>
|
||
<td id="time-consuming-queries-examples-details-rank-2">
|
||
<div id="query-e-2" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i>pl <span class="sy0">/</span> pgsql <span class="kw1">FUNCTION</span> rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>
|
||
<span class="kw2">line</span> ? at <span class="kw1">RETURN</span> querywith <span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span>segments<span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span> seg <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> x<span class="sy0">.</span>glec <span class="sy0">,</span>x<span class="sy0">.</span>segm <span class="kw1">FROM</span> <span class="br0">(</span> <span class="kw1">VALUES</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="br0">)</span> x<span class="br0">(</span>glec<span class="sy0">,</span> segm<span class="br0">)</span> <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span>branding flag<span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span> <span class="sy0">,</span>mg <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> x<span class="sy0">.</span>f1<span class="sy0">,</span> x<span class="sy0">.</span>ming<span class="sy0">,</span> x<span class="sy0">.</span>grp <span class="kw1">FROM</span> <span class="br0">(</span> <span class="kw1">VALUES</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="br0">)</span> <span class="kw1">AS</span> x <span class="br0">(</span>f1<span class="sy0">,</span> ming<span class="sy0">,</span> grp<span class="br0">)</span> <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span>directors<span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span> <span class="sy0">,</span>repc <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> <span class="kw2">ltrim</span><span class="br0">(</span><span class="kw2">rtrim</span><span class="br0">(</span>c<span class="sy0">.</span>a9<span class="br0">)</span><span class="br0">)</span> rcode <span class="sy0">,</span><span class="kw2">ltrim</span><span class="br0">(</span><span class="kw2">rtrim</span><span class="br0">(</span>c<span class="sy0">.</span>a9<span class="br0">)</span><span class="br0">)</span> <span class="sy0">|</span><span class="sy0">|</span> ? <span class="sy0">|</span><span class="sy0">|</span> c<span class="sy0">.</span>a30 repp <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>q<span class="sy0">.</span>dir<span class="sy0">,</span>?<span class="br0">)</span> director <span class="kw1">FROM</span> lgdat<span class="sy0">.</span>code c <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> rlarp<span class="sy0">.</span>qrh q <span class="kw1">ON</span> q<span class="sy0">.</span>qr <span class="sy0">=</span> <span class="kw2">ltrim</span><span class="br0">(</span><span class="kw2">rtrim</span><span class="br0">(</span>c<span class="sy0">.</span>a9<span class="br0">)</span><span class="br0">)</span> <span class="kw1">WHERE</span> c<span class="sy0">.</span>a2 <span class="sy0">=</span> ? <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>mold descriptions <span class="sy0">,</span>md <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> u<span class="sy0">.</span>mold <span class="sy0">,</span><span class="kw2">max</span><span class="br0">(</span>u<span class="sy0">.</span>descr<span class="br0">)</span> descr <span class="kw1">FROM</span> <span class="br0">(</span> <span class="kw1">SELECT</span> <span class="kw2">substr</span><span class="br0">(</span>m<span class="sy0">.</span>avpart<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> mold <span class="sy0">,</span><span class="kw2">max</span><span class="br0">(</span>m<span class="sy0">.</span>avdes1<span class="br0">)</span> descr <span class="kw1">FROM</span> lgdat<span class="sy0">.</span>stkmm m <span class="kw1">WHERE</span> <span class="kw2">length</span><span class="br0">(</span>m<span class="sy0">.</span>avpart<span class="br0">)</span> <span class="sy0">></span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>m<span class="sy0">.</span>avgled<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> <span class="kw2">substr</span><span class="br0">(</span>m<span class="sy0">.</span>avpart<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">UNION</span> <span class="kw1">ALL</span> <span class="kw1">SELECT</span> <span class="kw2">substr</span><span class="br0">(</span>p<span class="sy0">.</span>awpart<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> mold <span class="sy0">,</span><span class="kw2">max</span><span class="br0">(</span>p<span class="sy0">.</span>awdes1<span class="br0">)</span> descr <span class="kw1">FROM</span> lgdat<span class="sy0">.</span>stkmp p <span class="kw1">WHERE</span> <span class="kw2">length</span><span class="br0">(</span>p<span class="sy0">.</span>awpart<span class="br0">)</span> <span class="sy0">></span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>p<span class="sy0">.</span>awgled<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> <span class="kw2">substr</span><span class="br0">(</span>p<span class="sy0">.</span>awpart<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="br0">)</span> u <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> u<span class="sy0">.</span>mold <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span>sales major codes<span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span> <span class="sy0">,</span>sj <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> <span class="sy0">*</span> <span class="kw1">FROM</span> lgdat<span class="sy0">.</span>mmsl <span class="kw1">WHERE</span> <span class="kw2">coalesce</span><span class="br0">(</span>bsmncd<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">=</span> ? <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span>sales minor codes<span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span> <span class="sy0">,</span>si <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> <span class="sy0">*</span> <span class="kw1">FROM</span> lgdat<span class="sy0">.</span>mmsl <span class="kw1">WHERE</span> <span class="kw2">coalesce</span><span class="br0">(</span>bsmncd<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">></span> ? <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="kw2">date</span> ranges per season<span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span> <span class="sy0">,</span>seas <span class="kw1">AS</span><span class="br0">(</span> <span class="kw1">SELECT</span> ssyr <span class="sy0">,</span><span class="kw2">daterange</span><span class="br0">(</span><span class="kw2">min</span><span class="br0">(</span>sdat<span class="br0">)</span><span class="sy0">,</span><span class="kw2">max</span><span class="br0">(</span>edat<span class="br0">)</span><span class="sy0">,</span>?<span class="br0">)</span> dr <span class="sy0">,</span><span class="kw2">current_date</span> <span class="sy0"><</span>@ <span class="kw2">daterange</span><span class="br0">(</span><span class="kw2">min</span><span class="br0">(</span>sdat<span class="br0">)</span><span class="sy0">,</span><span class="kw2">max</span><span class="br0">(</span>edat<span class="br0">)</span><span class="sy0">,</span>?<span class="br0">)</span> cy <span class="kw1">FROM</span> gld <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> ssyr <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> ssyr <span class="kw1">DESC</span> <span class="br0">)</span> <span class="sy0">,</span>intv <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> <span class="kw1"><span class="kw2">current_date</span></span> <span class="sy0">-</span> <span class="kw2">lower</span><span class="br0">(</span>dr<span class="br0">)</span> dy <span class="kw1">FROM</span> seas <span class="kw1">WHERE</span> cy <span class="sy0">=</span> <span class="kw1">TRUE</span> <span class="br0">)</span> <span class="sy0">,</span>std <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> s<span class="sy0">.</span>ssyr <span class="sy0">,</span>s<span class="sy0">.</span>dr <span class="sy0">,</span>s<span class="sy0">.</span>cy <span class="sy0">,</span><span class="kw2">daterange</span><span class="br0">(</span><span class="kw2">lower</span><span class="br0">(</span>dr<span class="br0">)</span><span class="sy0">,</span>dy <span class="sy0">+</span> <span class="kw2">lower</span><span class="br0">(</span>dr<span class="br0">)</span><span class="sy0">,</span>?<span class="br0">)</span> ytd <span class="kw1">FROM</span> seas s <span class="kw1">CROSS</span> <span class="kw1">JOIN</span> intv <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span>union actual <span class="kw1">AND</span> forecast<span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span> <span class="sy0">,</span>un <span class="kw1">AS</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>plan <span class="kw1">SELECT</span> ? <span class="kw1">AS</span> <span class="kw2">version</span> <span class="sy0">,</span>? iter <span class="sy0">,</span>od<span class="sy0">.</span>ssyr oseas <span class="sy0">,</span>osm<span class="sy0">.</span>adj_orderdate <span class="kw1">AS</span> odate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr sseas <span class="sy0">,</span>least<span class="br0">(</span>greatest<span class="br0">(</span>osm<span class="sy0">.</span>adj_shipdate<span class="sy0">,</span>sd<span class="sy0">.</span>sdat<span class="br0">)</span><span class="sy0">,</span>sd<span class="sy0">.</span>edat<span class="br0">)</span> sdate <span class="sy0">,</span>rd<span class="sy0">.</span>ssyr rseas <span class="sy0">,</span>osm<span class="sy0">.</span>adj_requestdate rdate <span class="sy0">-</span><span class="sy0">-</span>if the <span class="kw1">ORDER</span> period <span class="kw1">IS</span> <span class="kw1">NULL</span><span class="sy0">,</span> <span class="kw1">THEN</span> there isn?f?f?t one<span class="sy0">,</span> just assign <span class="kw1">TO</span> invoice period <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> oy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> sy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>rd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> ry <span class="sy0">,</span>osm<span class="sy0">.</span>plnt <span class="sy0">,</span>osm<span class="sy0">.</span>account <span class="sy0">,</span>osm<span class="sy0">.</span>bill_cust <span class="sy0">,</span>osm<span class="sy0">.</span>shipgrp <span class="sy0">,</span>osm<span class="sy0">.</span>ship_cust <span class="sy0">,</span>osm<span class="sy0">.</span>chan <span class="sy0">,</span>l<span class="sy0">.</span>retail <span class="sy0">,</span>l<span class="sy0">.</span>retailsub <span class="sy0">,</span>osm<span class="sy0">.</span>promo <span class="sy0">,</span>osm<span class="sy0">.</span>majg <span class="sy0">,</span>osm<span class="sy0">.</span>ming <span class="sy0">,</span>osm<span class="sy0">.</span>majs <span class="sy0">,</span>osm<span class="sy0">.</span>mins <span class="sy0">,</span>osm<span class="sy0">.</span>part <span class="sy0">,</span>osm<span class="sy0">.</span>part <span class="sy0">|</span><span class="sy0">|</span> ? <span class="sy0">|</span><span class="sy0">|</span> <span class="kw2">rtrim</span><span class="br0">(</span><span class="kw2">coalesce</span><span class="br0">(</span>m<span class="sy0">.</span>avdes1<span class="sy0">,</span>p<span class="sy0">.</span>awdes1<span class="br0">)</span><span class="br0">)</span> part_descr <span class="sy0">,</span>f<span class="sy0">.</span>f3<span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>f<span class="sy0">.</span>descr part_family <span class="sy0">,</span><span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>md<span class="sy0">.</span>descr part_group <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>mg<span class="sy0">.</span>grp<span class="sy0">,</span>?<span class="br0">)</span> branding <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>seg<span class="sy0">.</span>segm<span class="sy0">,</span>?<span class="br0">)</span> segm <span class="sy0">,</span>osm<span class="sy0">.</span>quota_rep <span class="sy0">,</span>case osm<span class="sy0">.</span>fspr <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> osm<span class="sy0">.</span>calc_status <span class="kw1">END</span> calc_status <span class="sy0">,</span>osm<span class="sy0">.</span>c_rate <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_qty <span class="br0">)</span> qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_val_loc <span class="sy0">*</span> osm<span class="sy0">.</span>r_rate<span class="br0">)</span> sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_cst_loc <span class="sy0">*</span> osm<span class="sy0">.</span>c_rate<span class="br0">)</span> stdcost <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_cst_loc_cur <span class="sy0">*</span> osm<span class="sy0">.</span>c_rate<span class="br0">)</span> stdcost_cur <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_qty <span class="sy0">*</span> <span class="kw2">coalesce</span><span class="br0">(</span>m<span class="sy0">.</span>avnwht<span class="sy0">,</span>p<span class="sy0">.</span>awnwht<span class="br0">)</span> <span class="sy0">*</span> <span class="kw1">CASE</span> <span class="kw2">coalesce</span><span class="br0">(</span>m<span class="sy0">.</span>avnwun<span class="sy0">,</span> p<span class="sy0">.</span>awnwun<span class="br0">)</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> ?<span class="sy0">.</span>? <span class="kw1">ELSE</span> ? <span class="kw1">END</span><span class="br0">)</span> pounds <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osmp osm <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld sd <span class="kw1">ON</span> osm<span class="sy0">.</span>fspr <span class="sy0">=</span> sd<span class="sy0">.</span>fspr <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld od <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_orderdate <span class="kw1">BETWEEN</span> od<span class="sy0">.</span>sdat <span class="kw1">AND</span> od<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld rd <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_requestdate <span class="kw1">BETWEEN</span> rd<span class="sy0">.</span>sdat <span class="kw1">AND</span> rd<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> seg <span class="kw1">ON</span> seg<span class="sy0">.</span>glec <span class="sy0">=</span> osm<span class="sy0">.</span>glec <span class="sy0">-</span><span class="sy0">-</span>and seg<span class="sy0">.</span>segm <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mg <span class="kw1">ON</span> mg<span class="sy0">.</span>f1 <span class="sy0">=</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">AND</span> mg<span class="sy0">.</span>ming <span class="sy0">=</span> osm<span class="sy0">.</span>ming <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> rlarp<span class="sy0">.</span><span class="kw2">family</span> f <span class="kw1">ON</span> f<span class="sy0">.</span>f3 <span class="sy0">=</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>stkmm m <span class="kw1">ON</span> m<span class="sy0">.</span>avpart <span class="sy0">=</span> osm<span class="sy0">.</span>part <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>stkmp p <span class="kw1">ON</span> p<span class="sy0">.</span>awpart <span class="sy0">=</span> osm<span class="sy0">.</span>part <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> md <span class="kw1">ON</span> md<span class="sy0">.</span>mold <span class="sy0">=</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> rlarp<span class="sy0">.</span>ffchnl l <span class="kw1">ON</span> l<span class="sy0">.</span>bill <span class="sy0">=</span> osm<span class="sy0">.</span>bill_class <span class="kw1">AND</span> l<span class="sy0">.</span>ship <span class="sy0">=</span> osm<span class="sy0">.</span>ship_class <span class="kw1">WHERE</span> osm<span class="sy0">.</span>fs_line <span class="sy0">=</span> ? <span class="kw1">AND</span> osm<span class="sy0">.</span>calc_status <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>glec<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">AND</span> osm<span class="sy0">.</span><span class="kw2">version</span> <span class="sy0">=</span> ? <span class="kw1">AND</span> <span class="br0">(</span> osm<span class="sy0">.</span>fspr <span class="sy0">></span><span class="sy0">=</span> ? <span class="kw1">OR</span> osm<span class="sy0">.</span>adj_orderdate <span class="sy0">></span><span class="sy0">=</span> ? <span class="br0">)</span> <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> <span class="sy0">-</span><span class="sy0">-</span><span class="kw2">version</span> <span class="sy0">-</span><span class="sy0">-</span>iter od<span class="sy0">.</span>ssyr <span class="sy0">,</span>osm<span class="sy0">.</span>adj_orderdate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr <span class="sy0">,</span>least<span class="br0">(</span>greatest<span class="br0">(</span>osm<span class="sy0">.</span>adj_shipdate<span class="sy0">,</span>sd<span class="sy0">.</span>sdat<span class="br0">)</span><span class="sy0">,</span>sd<span class="sy0">.</span>edat<span class="br0">)</span> <span class="sy0">,</span>rd<span class="sy0">.</span>ssyr <span class="sy0">,</span>osm<span class="sy0">.</span>adj_requestdate <span class="sy0">-</span><span class="sy0">-</span>if the <span class="kw1">ORDER</span> period <span class="kw1">IS</span> <span class="kw1">NULL</span><span class="sy0">,</span> <span class="kw1">THEN</span> there isn?f?f?t one<span class="sy0">,</span> just assign <span class="kw1">TO</span> invoice period <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>rd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span>osm<span class="sy0">.</span>plnt <span class="sy0">,</span>osm<span class="sy0">.</span>account <span class="sy0">,</span>osm<span class="sy0">.</span>bill_cust <span class="sy0">,</span>osm<span class="sy0">.</span>shipgrp <span class="sy0">,</span>osm<span class="sy0">.</span>ship_cust <span class="sy0">,</span>osm<span class="sy0">.</span>chan <span class="sy0">,</span>l<span class="sy0">.</span>retail <span class="sy0">,</span>l<span class="sy0">.</span>retailsub <span class="sy0">,</span>osm<span class="sy0">.</span>promo <span class="sy0">,</span>osm<span class="sy0">.</span>majg <span class="sy0">,</span>osm<span class="sy0">.</span>ming <span class="sy0">,</span>osm<span class="sy0">.</span>majs <span class="sy0">,</span>osm<span class="sy0">.</span>mins <span class="sy0">,</span>osm<span class="sy0">.</span>part <span class="sy0">,</span>osm<span class="sy0">.</span>part <span class="sy0">|</span><span class="sy0">|</span> ? <span class="sy0">|</span><span class="sy0">|</span> <span class="kw2">rtrim</span><span class="br0">(</span><span class="kw2">coalesce</span><span class="br0">(</span>m<span class="sy0">.</span>avdes1<span class="sy0">,</span>p<span class="sy0">.</span>awdes1<span class="br0">)</span><span class="br0">)</span> <span class="sy0">,</span>f<span class="sy0">.</span>f3<span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>f<span class="sy0">.</span>descr <span class="sy0">,</span><span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>md<span class="sy0">.</span>descr <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>mg<span class="sy0">.</span>grp<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>seg<span class="sy0">.</span>segm<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span>osm<span class="sy0">.</span>quota_rep <span class="sy0">,</span>case osm<span class="sy0">.</span>fspr <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> osm<span class="sy0">.</span>calc_status <span class="kw1">END</span> <span class="sy0">,</span>osm<span class="sy0">.</span>c_rate <span class="kw1">UNION</span> <span class="kw1">ALL</span> <span class="sy0">-</span><span class="sy0">-</span>staged forecast <span class="kw1">SELECT</span> ? <span class="kw1">AS</span> <span class="kw2">version</span> <span class="sy0">,</span>? iter <span class="sy0">,</span>od<span class="sy0">.</span>ssyr oseas <span class="sy0">,</span>osm<span class="sy0">.</span>adj_orderdate odate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr sseas <span class="sy0">,</span>least<span class="br0">(</span>greatest<span class="br0">(</span>osm<span class="sy0">.</span>adj_shipdate<span class="sy0">,</span>sd<span class="sy0">.</span>sdat<span class="br0">)</span><span class="sy0">,</span>sd<span class="sy0">.</span>edat<span class="br0">)</span> sdate <span class="sy0">,</span>rd<span class="sy0">.</span>ssyr rseas <span class="sy0">,</span>osm<span class="sy0">.</span>adj_requestdate rdate <span class="sy0">-</span><span class="sy0">-</span>if the <span class="kw1">ORDER</span> period <span class="kw1">IS</span> <span class="kw1">NULL</span><span class="sy0">,</span> <span class="kw1">THEN</span> there isn?f?f?t one<span class="sy0">,</span> just assign <span class="kw1">TO</span> invoice period <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> oy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> sy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>rd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> ry <span class="sy0">,</span>osm<span class="sy0">.</span>plnt <span class="sy0">,</span>osm<span class="sy0">.</span>account <span class="sy0">,</span>osm<span class="sy0">.</span>bill_cust <span class="sy0">,</span>osm<span class="sy0">.</span>shipgrp <span class="sy0">,</span>osm<span class="sy0">.</span>ship_cust <span class="sy0">,</span>osm<span class="sy0">.</span>chan <span class="sy0">,</span>l<span class="sy0">.</span>retail <span class="sy0">,</span>l<span class="sy0">.</span>retailsub <span class="sy0">,</span>osm<span class="sy0">.</span>promo <span class="sy0">,</span>osm<span class="sy0">.</span>majg <span class="sy0">,</span>osm<span class="sy0">.</span>ming <span class="sy0">,</span>osm<span class="sy0">.</span>majs <span class="sy0">,</span>osm<span class="sy0">.</span>mins <span class="sy0">,</span>osm<span class="sy0">.</span>part <span class="sy0">,</span>osm<span class="sy0">.</span>part <span class="sy0">|</span><span class="sy0">|</span> ? <span class="sy0">|</span><span class="sy0">|</span> <span class="kw2">rtrim</span><span class="br0">(</span><span class="kw2">coalesce</span><span class="br0">(</span>m<span class="sy0">.</span>avdes1<span class="sy0">,</span>p<span class="sy0">.</span>awdes1<span class="br0">)</span><span class="br0">)</span> part_descr <span class="sy0">,</span>f<span class="sy0">.</span>f3<span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>f<span class="sy0">.</span>descr part_family <span class="sy0">,</span><span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>md<span class="sy0">.</span>descr part_group <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>mg<span class="sy0">.</span>grp<span class="sy0">,</span>?<span class="br0">)</span> branding <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>seg<span class="sy0">.</span>segm<span class="sy0">,</span>?<span class="br0">)</span> segm <span class="sy0">,</span>osm<span class="sy0">.</span>quota_rep <span class="sy0">,</span>case osm<span class="sy0">.</span>fspr <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> osm<span class="sy0">.</span>calc_status <span class="kw1">END</span> calc_status <span class="sy0">,</span>osm<span class="sy0">.</span>c_rate <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_qty <span class="br0">)</span> qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_val_loc <span class="sy0">*</span> osm<span class="sy0">.</span>r_rate<span class="br0">)</span> sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_cst_loc <span class="sy0">*</span> osm<span class="sy0">.</span>c_rate<span class="br0">)</span> stdcost <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_cst_loc_cur <span class="sy0">*</span> osm<span class="sy0">.</span>c_rate<span class="br0">)</span> stdcost_cur <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_qty <span class="sy0">*</span> <span class="kw2">coalesce</span><span class="br0">(</span>m<span class="sy0">.</span>avnwht<span class="sy0">,</span>p<span class="sy0">.</span>awnwht<span class="br0">)</span> <span class="sy0">*</span> <span class="kw1">CASE</span> <span class="kw2">coalesce</span><span class="br0">(</span>m<span class="sy0">.</span>avnwun<span class="sy0">,</span> p<span class="sy0">.</span>awnwun<span class="br0">)</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> ?<span class="sy0">.</span>? <span class="kw1">ELSE</span> ? <span class="kw1">END</span><span class="br0">)</span> pounds <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osmf osm <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld sd <span class="kw1">ON</span> osm<span class="sy0">.</span>fspr <span class="sy0">=</span> sd<span class="sy0">.</span>fspr <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld od <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_orderdate <span class="kw1">BETWEEN</span> od<span class="sy0">.</span>sdat <span class="kw1">AND</span> od<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld rd <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_requestdate <span class="kw1">BETWEEN</span> rd<span class="sy0">.</span>sdat <span class="kw1">AND</span> rd<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> seg <span class="kw1">ON</span> seg<span class="sy0">.</span>glec <span class="sy0">=</span> osm<span class="sy0">.</span>glec <span class="sy0">-</span><span class="sy0">-</span>and seg<span class="sy0">.</span>segm <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mg <span class="kw1">ON</span> mg<span class="sy0">.</span>f1 <span class="sy0">=</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">AND</span> mg<span class="sy0">.</span>ming <span class="sy0">=</span> osm<span class="sy0">.</span>ming <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> rlarp<span class="sy0">.</span><span class="kw2">family</span> f <span class="kw1">ON</span> f<span class="sy0">.</span>f3 <span class="sy0">=</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>stkmm m <span class="kw1">ON</span> m<span class="sy0">.</span>avpart <span class="sy0">=</span> osm<span class="sy0">.</span>part <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>stkmp p <span class="kw1">ON</span> p<span class="sy0">.</span>awpart <span class="sy0">=</span> osm<span class="sy0">.</span>part <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> md <span class="kw1">ON</span> md<span class="sy0">.</span>mold <span class="sy0">=</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> rlarp<span class="sy0">.</span>ffchnl l <span class="kw1">ON</span> l<span class="sy0">.</span>bill <span class="sy0">=</span> osm<span class="sy0">.</span>bill_class <span class="kw1">AND</span> l<span class="sy0">.</span>ship <span class="sy0">=</span> osm<span class="sy0">.</span>ship_class <span class="kw1">WHERE</span> osm<span class="sy0">.</span>fs_line <span class="sy0">=</span> ? <span class="kw1">AND</span> osm<span class="sy0">.</span>calc_status <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>glec<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">AND</span> osm<span class="sy0">.</span><span class="kw2">version</span> <span class="sy0">=</span> ? <span class="kw1">AND</span> <span class="br0">(</span> osm<span class="sy0">.</span>fspr <span class="sy0">></span><span class="sy0">=</span> ? <span class="kw1">OR</span> osm<span class="sy0">.</span>adj_orderdate <span class="sy0">></span><span class="sy0">=</span> ? <span class="br0">)</span> <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> <span class="sy0">-</span><span class="sy0">-</span><span class="kw2">version</span> <span class="sy0">-</span><span class="sy0">-</span>iter od<span class="sy0">.</span>ssyr <span class="sy0">,</span>osm<span class="sy0">.</span>adj_orderdate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr <span class="sy0">,</span>least<span class="br0">(</span>greatest<span class="br0">(</span>osm<span class="sy0">.</span>adj_shipdate<span class="sy0">,</span>sd<span class="sy0">.</span>sdat<span class="br0">)</span><span class="sy0">,</span>sd<span class="sy0">.</span>edat<span class="br0">)</span> <span class="sy0">,</span>rd<span class="sy0">.</span>ssyr <span class="sy0">,</span>osm<span class="sy0">.</span>adj_requestdate <span class="sy0">-</span><span class="sy0">-</span>if the <span class="kw1">ORDER</span> period <span class="kw1">IS</span> <span class="kw1">NULL</span><span class="sy0">,</span> <span class="kw1">THEN</span> there isn?f?f?t one<span class="sy0">,</span> just assign <span class="kw1">TO</span> invoice period <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>rd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span>osm<span class="sy0">.</span>plnt <span class="sy0">,</span>osm<span class="sy0">.</span>account <span class="sy0">,</span>osm<span class="sy0">.</span>bill_cust <span class="sy0">,</span>osm<span class="sy0">.</span>shipgrp <span class="sy0">,</span>osm<span class="sy0">.</span>ship_cust <span class="sy0">,</span>osm<span class="sy0">.</span>chan <span class="sy0">,</span>l<span class="sy0">.</span>retail <span class="sy0">,</span>l<span class="sy0">.</span>retailsub <span class="sy0">,</span>osm<span class="sy0">.</span>promo <span class="sy0">,</span>osm<span class="sy0">.</span>majg <span class="sy0">,</span>osm<span class="sy0">.</span>ming <span class="sy0">,</span>osm<span class="sy0">.</span>majs <span class="sy0">,</span>osm<span class="sy0">.</span>mins <span class="sy0">,</span>osm<span class="sy0">.</span>part <span class="sy0">,</span>osm<span class="sy0">.</span>part <span class="sy0">|</span><span class="sy0">|</span> ? <span class="sy0">|</span><span class="sy0">|</span> <span class="kw2">rtrim</span><span class="br0">(</span><span class="kw2">coalesce</span><span class="br0">(</span>m<span class="sy0">.</span>avdes1<span class="sy0">,</span>p<span class="sy0">.</span>awdes1<span class="br0">)</span><span class="br0">)</span> <span class="sy0">,</span>f<span class="sy0">.</span>f3<span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>f<span class="sy0">.</span>descr <span class="sy0">,</span><span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>md<span class="sy0">.</span>descr <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>mg<span class="sy0">.</span>grp<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>seg<span class="sy0">.</span>segm<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span>osm<span class="sy0">.</span>quota_rep <span class="sy0">,</span>case osm<span class="sy0">.</span>fspr <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> osm<span class="sy0">.</span>calc_status <span class="kw1">END</span> <span class="sy0">,</span>osm<span class="sy0">.</span>c_rate <span class="kw1">UNION</span> <span class="kw1">ALL</span> <span class="sy0">-</span><span class="sy0">-</span>actual <span class="kw1">SELECT</span> ? <span class="kw1">AS</span> <span class="kw2">version</span> <span class="sy0">,</span>? iter <span class="sy0">,</span>od<span class="sy0">.</span>ssyr oseas <span class="sy0">,</span>osm<span class="sy0">.</span>adj_orderdate odate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr sseas <span class="sy0">,</span>least<span class="br0">(</span>greatest<span class="br0">(</span>osm<span class="sy0">.</span>adj_shipdate<span class="sy0">,</span>sd<span class="sy0">.</span>sdat<span class="br0">)</span><span class="sy0">,</span>sd<span class="sy0">.</span>edat<span class="br0">)</span> sdate <span class="sy0">,</span>rd<span class="sy0">.</span>ssyr rseas <span class="sy0">,</span>osm<span class="sy0">.</span>adj_requestdate rdate <span class="sy0">-</span><span class="sy0">-</span>if the <span class="kw1">ORDER</span> period <span class="kw1">IS</span> <span class="kw1">NULL</span><span class="sy0">,</span> <span class="kw1">THEN</span> there isn?f?f?t one<span class="sy0">,</span> just assign <span class="kw1">TO</span> invoice period <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> oy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> sy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>rd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> ry <span class="sy0">,</span>osm<span class="sy0">.</span>plnt <span class="sy0">,</span>osm<span class="sy0">.</span>account <span class="sy0">,</span>osm<span class="sy0">.</span>bill_cust <span class="sy0">,</span>osm<span class="sy0">.</span>shipgrp <span class="sy0">,</span>osm<span class="sy0">.</span>ship_cust <span class="sy0">,</span>osm<span class="sy0">.</span>chan <span class="sy0">,</span>l<span class="sy0">.</span>retail <span class="sy0">,</span>l<span class="sy0">.</span>retailsub <span class="sy0">,</span>osm<span class="sy0">.</span>promo <span class="sy0">,</span>osm<span class="sy0">.</span>majg <span class="sy0">,</span>osm<span class="sy0">.</span>ming <span class="sy0">,</span>osm<span class="sy0">.</span>majs <span class="sy0">,</span>osm<span class="sy0">.</span>mins <span class="sy0">,</span>osm<span class="sy0">.</span>part <span class="sy0">,</span>osm<span class="sy0">.</span>part <span class="sy0">|</span><span class="sy0">|</span> ? <span class="sy0">|</span><span class="sy0">|</span> <span class="kw2">rtrim</span><span class="br0">(</span><span class="kw2">coalesce</span><span class="br0">(</span>m<span class="sy0">.</span>avdes1<span class="sy0">,</span>p<span class="sy0">.</span>awdes1<span class="br0">)</span><span class="br0">)</span> part_descr <span class="sy0">,</span>f<span class="sy0">.</span>f3<span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>f<span class="sy0">.</span>descr part_family <span class="sy0">,</span><span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>md<span class="sy0">.</span>descr part_group <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>mg<span class="sy0">.</span>grp<span class="sy0">,</span>?<span class="br0">)</span> branding <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>seg<span class="sy0">.</span>segm<span class="sy0">,</span>?<span class="br0">)</span> segm <span class="sy0">,</span>osm<span class="sy0">.</span>quota_rep <span class="sy0">,</span>case osm<span class="sy0">.</span>fspr <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> osm<span class="sy0">.</span>calc_status <span class="kw1">END</span> calc_status <span class="sy0">,</span>osm<span class="sy0">.</span>c_rate <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_qty <span class="br0">)</span> qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_val_loc <span class="sy0">*</span> osm<span class="sy0">.</span>r_rate<span class="br0">)</span> sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_cst_loc <span class="sy0">*</span> osm<span class="sy0">.</span>c_rate<span class="br0">)</span> stdcost <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_cst_loc_cur <span class="sy0">*</span> osm<span class="sy0">.</span>c_rate<span class="br0">)</span> stdcost_cur <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_qty <span class="sy0">*</span> <span class="kw2">coalesce</span><span class="br0">(</span>m<span class="sy0">.</span>avnwht<span class="sy0">,</span>p<span class="sy0">.</span>awnwht<span class="br0">)</span> <span class="sy0">*</span> <span class="kw1">CASE</span> <span class="kw2">coalesce</span><span class="br0">(</span>m<span class="sy0">.</span>avnwun<span class="sy0">,</span> p<span class="sy0">.</span>awnwun<span class="br0">)</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> ?<span class="sy0">.</span>? <span class="kw1">ELSE</span> ? <span class="kw1">END</span><span class="br0">)</span> pounds <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm osm <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld sd <span class="kw1">ON</span> osm<span class="sy0">.</span>fspr <span class="sy0">=</span> sd<span class="sy0">.</span>fspr <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld od <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_orderdate <span class="kw1">BETWEEN</span> od<span class="sy0">.</span>sdat <span class="kw1">AND</span> od<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld rd <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_requestdate <span class="kw1">BETWEEN</span> rd<span class="sy0">.</span>sdat <span class="kw1">AND</span> rd<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> seg <span class="kw1">ON</span> seg<span class="sy0">.</span>glec <span class="sy0">=</span> osm<span class="sy0">.</span>glec <span class="sy0">-</span><span class="sy0">-</span>and seg<span class="sy0">.</span>segm <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mg <span class="kw1">ON</span> mg<span class="sy0">.</span>f1 <span class="sy0">=</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">AND</span> mg<span class="sy0">.</span>ming <span class="sy0">=</span> osm<span class="sy0">.</span>ming <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> rlarp<span class="sy0">.</span><span class="kw2">family</span> f <span class="kw1">ON</span> f<span class="sy0">.</span>f3 <span class="sy0">=</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>stkmm m <span class="kw1">ON</span> m<span class="sy0">.</span>avpart <span class="sy0">=</span> osm<span class="sy0">.</span>part <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>stkmp p <span class="kw1">ON</span> p<span class="sy0">.</span>awpart <span class="sy0">=</span> osm<span class="sy0">.</span>part <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> md <span class="kw1">ON</span> md<span class="sy0">.</span>mold <span class="sy0">=</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> rlarp<span class="sy0">.</span>ffchnl l <span class="kw1">ON</span> l<span class="sy0">.</span>bill <span class="sy0">=</span> osm<span class="sy0">.</span>bill_class <span class="kw1">AND</span> l<span class="sy0">.</span>ship <span class="sy0">=</span> osm<span class="sy0">.</span>ship_class <span class="kw1">WHERE</span> osm<span class="sy0">.</span>fs_line <span class="sy0">=</span> ? <span class="sy0">-</span><span class="sy0">-</span>and <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>glec<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">AND</span> osm<span class="sy0">.</span>calc_status <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">AND</span> <span class="br0">(</span> osm<span class="sy0">.</span>fspr <span class="sy0">></span><span class="sy0">=</span> ? <span class="kw1">OR</span> osm<span class="sy0">.</span>adj_orderdate <span class="sy0">></span><span class="sy0">=</span> ? <span class="br0">)</span> <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> <span class="sy0">-</span><span class="sy0">-</span><span class="kw2">version</span> od<span class="sy0">.</span>ssyr <span class="sy0">,</span>osm<span class="sy0">.</span>adj_orderdate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr <span class="sy0">,</span>least<span class="br0">(</span>greatest<span class="br0">(</span>osm<span class="sy0">.</span>adj_shipdate<span class="sy0">,</span>sd<span class="sy0">.</span>sdat<span class="br0">)</span><span class="sy0">,</span>sd<span class="sy0">.</span>edat<span class="br0">)</span> <span class="sy0">,</span>rd<span class="sy0">.</span>ssyr <span class="sy0">,</span>osm<span class="sy0">.</span>adj_requestdate <span class="sy0">-</span><span class="sy0">-</span>if the <span class="kw1">ORDER</span> period <span class="kw1">IS</span> <span class="kw1">NULL</span><span class="sy0">,</span> <span class="kw1">THEN</span> there isn?f?f?t one<span class="sy0">,</span> just assign <span class="kw1">TO</span> invoice period <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>rd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span>osm<span class="sy0">.</span>plnt <span class="sy0">,</span>osm<span class="sy0">.</span>account <span class="sy0">,</span>osm<span class="sy0">.</span>bill_cust <span class="sy0">,</span>osm<span class="sy0">.</span>shipgrp <span class="sy0">,</span>osm<span class="sy0">.</span>ship_cust <span class="sy0">,</span>osm<span class="sy0">.</span>chan <span class="sy0">,</span>l<span class="sy0">.</span>retail <span class="sy0">,</span>l<span class="sy0">.</span>retailsub <span class="sy0">,</span>osm<span class="sy0">.</span>promo <span class="sy0">,</span>osm<span class="sy0">.</span>majg <span class="sy0">,</span>osm<span class="sy0">.</span>ming <span class="sy0">,</span>osm<span class="sy0">.</span>majs <span class="sy0">,</span>osm<span class="sy0">.</span>mins <span class="sy0">,</span>osm<span class="sy0">.</span>part <span class="sy0">,</span>osm<span class="sy0">.</span>part <span class="sy0">|</span><span class="sy0">|</span> ? <span class="sy0">|</span><span class="sy0">|</span> <span class="kw2">rtrim</span><span class="br0">(</span><span class="kw2">coalesce</span><span class="br0">(</span>m<span class="sy0">.</span>avdes1<span class="sy0">,</span>p<span class="sy0">.</span>awdes1<span class="br0">)</span><span class="br0">)</span> <span class="sy0">,</span>f<span class="sy0">.</span>f3<span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>f<span class="sy0">.</span>descr <span class="sy0">,</span><span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>md<span class="sy0">.</span>descr <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>mg<span class="sy0">.</span>grp<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>seg<span class="sy0">.</span>segm<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span>osm<span class="sy0">.</span>quota_rep <span class="sy0">,</span>case osm<span class="sy0">.</span>fspr <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> osm<span class="sy0">.</span>calc_status <span class="kw1">END</span> <span class="sy0">,</span>osm<span class="sy0">.</span>c_rate <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span>aggregate actual <span class="kw1">AND</span> forecast<span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span> <span class="sy0">,</span>agg <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> un<span class="sy0">.</span><span class="kw2">version</span>::text "version" <span class="sy0">,</span>un<span class="sy0">.</span>iter::text "iter" <span class="sy0">,</span>un<span class="sy0">.</span>oseas::numeric oseas <span class="sy0">,</span>un<span class="sy0">.</span>odate::date odate <span class="sy0">,</span>un<span class="sy0">.</span>sseas::numeric sseas <span class="sy0">,</span>un<span class="sy0">.</span>sdate::date sdate <span class="sy0">,</span>un<span class="sy0">.</span>rseas::numeric rseas <span class="sy0">,</span>un<span class="sy0">.</span>rdate::date rdate <span class="sy0">,</span>un<span class="sy0">.</span>om::text om <span class="sy0">,</span>un<span class="sy0">.</span>sm::text sm <span class="sy0">,</span>un<span class="sy0">.</span>rm::text rm <span class="sy0">,</span>un<span class="sy0">.</span>oy::text oy <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span>odate <span class="sy0"><</span>@ _ytd<span class="br0">)</span>::boolean ocytd <span class="sy0">-</span><span class="sy0">-</span>current year <span class="kw1">TO</span> <span class="kw2">date</span> <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span>odate <span class="sy0"><</span>@ so<span class="sy0">.</span>ytd<span class="br0">)</span>::boolean oytd <span class="sy0">-</span><span class="sy0">-</span>year <span class="kw1">TO</span> <span class="kw2">date</span> recast <span class="kw1">FOR</span> prior<span class="sy0">/</span>forecast periods <span class="sy0">,</span>un<span class="sy0">.</span>sy::text sy <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span>sdate <span class="sy0"><</span>@ _ytd<span class="br0">)</span>::boolean scytd <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span>sdate <span class="sy0"><</span>@ ss<span class="sy0">.</span>ytd<span class="br0">)</span>::boolean sytd <span class="sy0">-</span><span class="sy0">-</span>had this <span class="kw1">ORDER</span> been placed yet? <span class="br0">(</span>current day prior year <span class="kw1">IS</span> greater than the <span class="kw1">ORDER</span> <span class="kw2">date</span><span class="br0">)</span> <span class="sy0">,</span>case <span class="kw1">WHEN</span> <span class="br0">(</span><span class="kw2">upper</span><span class="br0">(</span>so<span class="sy0">.</span>ytd<span class="br0">)</span> <span class="sy0">-</span> <span class="kw2">interval</span> ?<span class="br0">)</span> <span class="sy0">></span><span class="sy0">=</span> un<span class="sy0">.</span>odate <span class="kw1">THEN</span> <span class="sy0">-</span><span class="sy0">-</span>was the <span class="kw1">ORDER</span> <span class="kw1">OPEN</span> at this <span class="kw2">time</span> <span class="kw1">LAST</span> year? <span class="br0">(</span><span class="kw1">FOR</span> orders that were placed <span class="kw1"><span class="kw1">BY</span></span> this <span class="kw2">time</span><span class="sy0">,</span> was the ship <span class="kw2">date</span> greater <span class="kw1">THEN</span> the <span class="kw1">ORDER</span> <span class="kw2">date</span><span class="br0">)</span> <span class="kw1">CASE</span> <span class="kw1">WHEN</span> <span class="br0">(</span><span class="br0">(</span>un<span class="sy0">.</span>sdate <span class="sy0">></span> <span class="br0">(</span><span class="kw2">upper</span><span class="br0">(</span>so<span class="sy0">.</span>ytd<span class="br0">)</span> <span class="sy0">-</span> <span class="kw2">interval</span> ?<span class="br0">)</span><span class="br0">)</span> <span class="kw1">OR</span> <span class="br0">(</span>un<span class="sy0">.</span>sy <span class="sy0">=</span> ?<span class="br0">)</span><span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>for orders that were placed <span class="kw1">AND</span> <span class="kw1">OPEN</span> at this <span class="kw2">time</span> <span class="kw1">LAST</span> year<span class="sy0">,</span> was the <span class="kw1">ORDER</span> considered past due? <span class="br0">(</span>current <span class="kw2">date</span> prior year <span class="sy0">></span> request <span class="kw2">date</span><span class="br0">)</span> <span class="kw1">THEN</span> <span class="kw1">CASE</span> <span class="kw1">WHEN</span> <span class="br0">(</span><span class="kw2">upper</span><span class="br0">(</span>so<span class="sy0">.</span>ytd<span class="br0">)</span> <span class="sy0">-</span> <span class="kw2">interval</span> ?<span class="br0">)</span> <span class="sy0">></span> un<span class="sy0">.</span>rdate <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> ? <span class="kw1">END</span> <span class="kw1">ELSE</span> ? <span class="kw1">END</span> <span class="kw1">ELSE</span> ? <span class="kw1">END</span> status_py <span class="sy0">,</span>un<span class="sy0">.</span>ry::text ry <span class="sy0">,</span>un<span class="sy0">.</span>plnt::text plnt <span class="sy0">,</span>un<span class="sy0">.</span>account::text bill_group <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span>bill_cust <span class="sy0">|</span><span class="sy0">|</span> ? <span class="sy0">|</span><span class="sy0">|</span> <span class="kw2">rtrim</span><span class="br0">(</span>bc<span class="sy0">.</span>bvname<span class="br0">)</span><span class="br0">)</span>::text bill_cust <span class="sy0">,</span>bc<span class="sy0">.</span>bvctry bill_ctry <span class="sy0">,</span>bc<span class="sy0">.</span>bvprcd bill_prov <span class="sy0">,</span>un<span class="sy0">.</span>shipgrp::text ship_group <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span>ship_cust <span class="sy0">|</span><span class="sy0">|</span> ? <span class="sy0">|</span><span class="sy0">|</span> <span class="kw2">rtrim</span><span class="br0">(</span>sc<span class="sy0">.</span>bvname<span class="br0">)</span><span class="br0">)</span>::text ship_cust <span class="sy0">,</span>sc<span class="sy0">.</span>bvctry ship_ctry <span class="sy0">,</span>sc<span class="sy0">.</span>bvprcd ship_prov <span class="sy0">,</span>un<span class="sy0">.</span>chan::text chan <span class="sy0">,</span>case un<span class="sy0">.</span>segm <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> un<span class="sy0">.</span>retail <span class="kw1">ELSE</span> un<span class="sy0">.</span>chan <span class="kw1">END</span>::text mod_chan <span class="sy0">,</span>case un<span class="sy0">.</span>segm <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> un<span class="sy0">.</span>retailsub <span class="kw1">ELSE</span> ? <span class="kw1">END</span>::text mod_chansub <span class="sy0">,</span>un<span class="sy0">.</span>promo::text promo <span class="sy0">,</span>un<span class="sy0">.</span>majg<span class="sy0">|</span><span class="sy0">|</span><span class="kw2">coalesce</span><span class="br0">(</span>?<span class="sy0">|</span><span class="sy0">|</span>bqdes<span class="sy0">,</span>?<span class="br0">)</span>::text majg <span class="sy0">,</span>un<span class="sy0">.</span>ming<span class="sy0">|</span><span class="sy0">|</span><span class="kw2">coalesce</span><span class="br0">(</span>?<span class="sy0">|</span><span class="sy0">|</span>brdes<span class="sy0">,</span>?<span class="br0">)</span>::text ming <span class="sy0">,</span>un<span class="sy0">.</span>majs<span class="sy0">|</span><span class="sy0">|</span><span class="kw2">coalesce</span><span class="br0">(</span>?<span class="sy0">|</span><span class="sy0">|</span>sj<span class="sy0">.</span>bsdes1<span class="sy0">,</span>?<span class="br0">)</span>::text majs <span class="sy0">,</span>un<span class="sy0">.</span>mins<span class="sy0">|</span><span class="sy0">|</span><span class="kw2">coalesce</span><span class="br0">(</span>?<span class="sy0">|</span><span class="sy0">|</span>si<span class="sy0">.</span>bsdes1<span class="sy0">,</span>?<span class="br0">)</span>::text mins <span class="sy0">,</span>un<span class="sy0">.</span>part::text part <span class="sy0">,</span>un<span class="sy0">.</span>part_descr::text part_descr <span class="sy0">,</span>un<span class="sy0">.</span>part_family::text part_family <span class="sy0">,</span>un<span class="sy0">.</span>part_group::text part_group <span class="sy0">,</span>un<span class="sy0">.</span>branding::text branding <span class="sy0">,</span>un<span class="sy0">.</span>segm::text segm <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>repc<span class="sy0">.</span>repp<span class="sy0">,</span>un<span class="sy0">.</span>quota_rep<span class="br0">)</span>::text quota_rep <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>repc<span class="sy0">.</span>director<span class="sy0">,</span>un<span class="sy0">.</span>quota_rep<span class="br0">)</span>::text director <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>un<span class="sy0">.</span>qty<span class="br0">)</span>::numeric qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>un<span class="sy0">.</span>sales<span class="br0">)</span>::numeric sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>un<span class="sy0">.</span>stdcost<span class="br0">)</span>::numeric stdcost <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>un<span class="sy0">.</span>qty <span class="sy0">*</span> <span class="kw2">coalesce</span><span class="br0">(</span>cm<span class="sy0">.</span>cgstcs<span class="sy0">,</span> cp<span class="sy0">.</span>chstcs<span class="sy0">,</span> cr<span class="sy0">.</span>y0stcs<span class="br0">)</span> <span class="sy0">*</span> un<span class="sy0">.</span>c_rate<span class="br0">)</span>::numeric stdcost_cur <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>un<span class="sy0">.</span>pounds<span class="br0">)</span>::numeric pounds <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span><span class="kw2">version</span><span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>un<span class="sy0">.</span>sy<span class="br0">)</span>::text flag_s <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span><span class="kw2">version</span><span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>un<span class="sy0">.</span>oy<span class="br0">)</span>::text flag_o <span class="sy0">,</span>case <span class="kw1">WHEN</span> un<span class="sy0">.</span>calc_status <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span> <span class="kw1">THEN</span> <span class="kw1">CASE</span> <span class="kw1">WHEN</span> un<span class="sy0">.</span>rdate <span class="sy0"><</span> <span class="kw1"><span class="kw2">current_date</span></span> <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> ? <span class="kw1">END</span> <span class="kw1">ELSE</span> un<span class="sy0">.</span>calc_status <span class="kw1">END</span>::text status <span class="sy0">,</span><span class="br0">(</span><span class="kw2">substr</span><span class="br0">(</span>un<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>un<span class="sy0">.</span>branding<span class="br0">)</span>::text "options" <span class="sy0">,</span>?::text grandtotal <span class="kw1">FROM</span> un <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> repc <span class="kw1">ON</span> repc<span class="sy0">.</span>rcode <span class="sy0">=</span> un<span class="sy0">.</span>quota_rep <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> si <span class="kw1">ON</span> si<span class="sy0">.</span>bsmjcd <span class="sy0">=</span> un<span class="sy0">.</span>majs <span class="kw1">AND</span> si<span class="sy0">.</span>bsmncd <span class="sy0">=</span> un<span class="sy0">.</span>mins <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> sj <span class="kw1">ON</span> sj<span class="sy0">.</span>bsmjcd <span class="sy0">=</span> un<span class="sy0">.</span>majs <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>majg <span class="kw1">ON</span> bqgrp <span class="sy0">=</span> un<span class="sy0">.</span>majg <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>mmgp <span class="kw1">ON</span> brmgrp <span class="sy0">=</span> un<span class="sy0">.</span>ming <span class="kw1">AND</span> brgrp <span class="sy0">=</span> un<span class="sy0">.</span>majg <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>cust bc <span class="kw1">ON</span> bc<span class="sy0">.</span>bvcust <span class="sy0">=</span> un<span class="sy0">.</span>bill_cust <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>cust sc <span class="kw1">ON</span> sc<span class="sy0">.</span>bvcust <span class="sy0">=</span> un<span class="sy0">.</span>bill_cust <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>icstm cm <span class="kw1">ON</span> cm<span class="sy0">.</span>cgpart <span class="sy0">=</span> un<span class="sy0">.</span>part <span class="kw1">AND</span> cm<span class="sy0">.</span>cgplnt <span class="sy0">=</span> un<span class="sy0">.</span>plnt <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>icstp cp <span class="kw1">ON</span> cp<span class="sy0">.</span>chpart <span class="sy0">=</span> un<span class="sy0">.</span>part <span class="kw1">AND</span> cp<span class="sy0">.</span>chplnt <span class="sy0">=</span> un<span class="sy0">.</span>plnt <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>icstr cr <span class="kw1">ON</span> cr<span class="sy0">.</span>y0part <span class="sy0">=</span> un<span class="sy0">.</span>part <span class="kw1">AND</span> cr<span class="sy0">.</span>y0plnt <span class="sy0">=</span> un<span class="sy0">.</span>plnt <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> std so <span class="kw1">ON</span> so<span class="sy0">.</span>ssyr <span class="sy0">=</span> un<span class="sy0">.</span>oseas <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> std ss <span class="kw1">ON</span> ss<span class="sy0">.</span>ssyr <span class="sy0">=</span> un<span class="sy0">.</span>sseas <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> un<span class="sy0">.</span><span class="kw2">version</span>::text <span class="sy0">,</span>un<span class="sy0">.</span>iter::text <span class="sy0">,</span>un<span class="sy0">.</span>oseas::numeric <span class="sy0">,</span>un<span class="sy0">.</span>odate::date <span class="sy0">,</span>un<span class="sy0">.</span>sseas::numeric <span class="sy0">,</span>un<span class="sy0">.</span>sdate::date <span class="sy0">,</span>un<span class="sy0">.</span>rseas::numeric <span class="sy0">,</span>un<span class="sy0">.</span>rdate::date <span class="sy0">,</span>un<span class="sy0">.</span>om::text <span class="sy0">,</span>un<span class="sy0">.</span>sm::text <span class="sy0">,</span>un<span class="sy0">.</span>rm::text <span class="sy0">,</span>un<span class="sy0">.</span>oy::text <span class="sy0">-</span><span class="sy0">-</span>current year <span class="kw1">TO</span> <span class="kw2">date</span> <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span>odate <span class="sy0"><</span>@ _ytd<span class="br0">)</span>::boolean <span class="sy0">-</span><span class="sy0">-</span>year <span class="kw1">TO</span> <span class="kw2">date</span> recast <span class="kw1">FOR</span> prior<span class="sy0">/</span>forecast periods <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span>odate <span class="sy0"><</span>@ so<span class="sy0">.</span>ytd<span class="br0">)</span>::boolean <span class="sy0">,</span>un<span class="sy0">.</span>sy::text <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span>sdate <span class="sy0"><</span>@ _ytd<span class="br0">)</span>::boolean <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span>sdate <span class="sy0"><</span>@ ss<span class="sy0">.</span>ytd<span class="br0">)</span>::boolean <span class="sy0">,</span>case <span class="kw1">WHEN</span> <span class="br0">(</span><span class="kw2">upper</span><span class="br0">(</span>so<span class="sy0">.</span>ytd<span class="br0">)</span> <span class="sy0">-</span> <span class="kw2">interval</span> ?<span class="br0">)</span> <span class="sy0">></span><span class="sy0">=</span> un<span class="sy0">.</span>odate <span class="kw1">THEN</span> <span class="sy0">-</span><span class="sy0">-</span>was the <span class="kw1">ORDER</span> <span class="kw1">OPEN</span> at this <span class="kw2">time</span> <span class="kw1">LAST</span> year? <span class="br0">(</span><span class="kw1">FOR</span> orders that were placed <span class="kw1"><span class="kw1">BY</span></span> this <span class="kw2">time</span><span class="sy0">,</span> was the ship <span class="kw2">date</span> greater <span class="kw1">THEN</span> the <span class="kw1">ORDER</span> <span class="kw2">date</span><span class="br0">)</span> <span class="kw1">CASE</span> <span class="kw1">WHEN</span> <span class="br0">(</span><span class="br0">(</span>un<span class="sy0">.</span>sdate <span class="sy0">></span> <span class="br0">(</span><span class="kw2">upper</span><span class="br0">(</span>so<span class="sy0">.</span>ytd<span class="br0">)</span> <span class="sy0">-</span> <span class="kw2">interval</span> ?<span class="br0">)</span><span class="br0">)</span> <span class="kw1">OR</span> <span class="br0">(</span>un<span class="sy0">.</span>sy <span class="sy0">=</span> ?<span class="br0">)</span><span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>for orders that were placed <span class="kw1">AND</span> <span class="kw1">OPEN</span> at this <span class="kw2">time</span> <span class="kw1">LAST</span> year<span class="sy0">,</span> was the <span class="kw1">ORDER</span> considered past due? <span class="br0">(</span>current <span class="kw2">date</span> prior year <span class="sy0">></span> request <span class="kw2">date</span><span class="br0">)</span> <span class="kw1">THEN</span> <span class="kw1">CASE</span> <span class="kw1">WHEN</span> <span class="br0">(</span><span class="kw2">upper</span><span class="br0">(</span>so<span class="sy0">.</span>ytd<span class="br0">)</span> <span class="sy0">-</span> <span class="kw2">interval</span> ?<span class="br0">)</span> <span class="sy0">></span> un<span class="sy0">.</span>rdate <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> ? <span class="kw1">END</span> <span class="kw1">ELSE</span> ? <span class="kw1">END</span> <span class="kw1">ELSE</span> ? <span class="kw1">END</span> <span class="sy0">,</span>un<span class="sy0">.</span>ry::text <span class="sy0">,</span>un<span class="sy0">.</span>plnt::text <span class="sy0">,</span>un<span class="sy0">.</span>account::text <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span>bill_cust <span class="sy0">|</span><span class="sy0">|</span> ? <span class="sy0">|</span><span class="sy0">|</span> <span class="kw2">rtrim</span><span class="br0">(</span>bc<span class="sy0">.</span>bvname<span class="br0">)</span><span class="br0">)</span>::text <span class="sy0">,</span>bc<span class="sy0">.</span>bvctry <span class="sy0">,</span>bc<span class="sy0">.</span>bvprcd <span class="sy0">,</span>un<span class="sy0">.</span>shipgrp::text <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span>ship_cust <span class="sy0">|</span><span class="sy0">|</span> ? <span class="sy0">|</span><span class="sy0">|</span> <span class="kw2">rtrim</span><span class="br0">(</span>sc<span class="sy0">.</span>bvname<span class="br0">)</span><span class="br0">)</span>::text <span class="sy0">,</span>sc<span class="sy0">.</span>bvctry <span class="sy0">,</span>sc<span class="sy0">.</span>bvprcd <span class="sy0">,</span>un<span class="sy0">.</span>chan::text <span class="sy0">,</span>case un<span class="sy0">.</span>segm <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> un<span class="sy0">.</span>retail <span class="kw1">ELSE</span> un<span class="sy0">.</span>chan <span class="kw1">END</span>::text <span class="sy0">,</span>case un<span class="sy0">.</span>segm <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> un<span class="sy0">.</span>retailsub <span class="kw1">ELSE</span> ? <span class="kw1">END</span>::text <span class="sy0">,</span>un<span class="sy0">.</span>promo::text <span class="sy0">,</span>un<span class="sy0">.</span>majg<span class="sy0">|</span><span class="sy0">|</span><span class="kw2">coalesce</span><span class="br0">(</span>?<span class="sy0">|</span><span class="sy0">|</span>bqdes<span class="sy0">,</span>?<span class="br0">)</span>::text <span class="sy0">,</span>un<span class="sy0">.</span>ming<span class="sy0">|</span><span class="sy0">|</span><span class="kw2">coalesce</span><span class="br0">(</span>?<span class="sy0">|</span><span class="sy0">|</span>brdes<span class="sy0">,</span>?<span class="br0">)</span>::text <span class="sy0">,</span>un<span class="sy0">.</span>majs<span class="sy0">|</span><span class="sy0">|</span><span class="kw2">coalesce</span><span class="br0">(</span>?<span class="sy0">|</span><span class="sy0">|</span>sj<span class="sy0">.</span>bsdes1<span class="sy0">,</span>?<span class="br0">)</span>::text <span class="sy0">,</span>un<span class="sy0">.</span>mins<span class="sy0">|</span><span class="sy0">|</span><span class="kw2">coalesce</span><span class="br0">(</span>?<span class="sy0">|</span><span class="sy0">|</span>si<span class="sy0">.</span>bsdes1<span class="sy0">,</span>?<span class="br0">)</span>::text <span class="sy0">,</span>un<span class="sy0">.</span>part::text <span class="sy0">,</span>un<span class="sy0">.</span>part_descr::text <span class="sy0">,</span>un<span class="sy0">.</span>part_family::text <span class="sy0">,</span>un<span class="sy0">.</span>part_group::text <span class="sy0">,</span>un<span class="sy0">.</span>branding::text <span class="sy0">,</span>un<span class="sy0">.</span>segm::text <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>repc<span class="sy0">.</span>repp<span class="sy0">,</span>un<span class="sy0">.</span>quota_rep<span class="br0">)</span>::text <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>repc<span class="sy0">.</span>director<span class="sy0">,</span>un<span class="sy0">.</span>quota_rep<span class="br0">)</span>::text <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span><span class="kw2">version</span><span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>un<span class="sy0">.</span>sy<span class="br0">)</span>::text <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span><span class="kw2">version</span><span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>un<span class="sy0">.</span>oy<span class="br0">)</span>::text <span class="sy0">,</span>case <span class="kw1">WHEN</span> un<span class="sy0">.</span>calc_status <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span> <span class="kw1">THEN</span> <span class="kw1">CASE</span> <span class="kw1">WHEN</span> un<span class="sy0">.</span>rdate <span class="sy0"><</span> <span class="kw1"><span class="kw2">current_date</span></span> <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> ? <span class="kw1">END</span> <span class="kw1">ELSE</span> un<span class="sy0">.</span>calc_status <span class="kw1">END</span>::text <span class="sy0">,</span><span class="br0">(</span><span class="kw2">substr</span><span class="br0">(</span>un<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>un<span class="sy0">.</span>branding<span class="br0">)</span>::text <span class="sy0">,</span>?::text <span class="br0">)</span> <span class="kw1">SELECT</span> a<span class="sy0">.</span><span class="kw2">version</span> <span class="sy0">,</span>a<span class="sy0">.</span>iter <span class="sy0">,</span>a<span class="sy0">.</span>oseas <span class="sy0">,</span>a<span class="sy0">.</span>odate <span class="sy0">,</span>a<span class="sy0">.</span>sseas <span class="sy0">,</span>a<span class="sy0">.</span>sdate <span class="sy0">,</span>a<span class="sy0">.</span>rseas <span class="sy0">,</span>a<span class="sy0">.</span>rdate <span class="sy0">,</span>a<span class="sy0">.</span>om <span class="sy0">,</span>a<span class="sy0">.</span>sm <span class="sy0">,</span>a<span class="sy0">.</span>rm <span class="sy0">,</span>a<span class="sy0">.</span>oy <span class="sy0">,</span>a<span class="sy0">.</span>ocytd <span class="sy0">,</span>a<span class="sy0">.</span>oytd <span class="sy0">,</span>a<span class="sy0">.</span>sy <span class="sy0">,</span>a<span class="sy0">.</span>scytd <span class="sy0">,</span>a<span class="sy0">.</span>sytd <span class="sy0">,</span>a<span class="sy0">.</span>status_py <span class="sy0">,</span>a<span class="sy0">.</span>ry <span class="sy0">,</span>a<span class="sy0">.</span>plnt <span class="sy0">,</span>a<span class="sy0">.</span>bill_group <span class="sy0">,</span>a<span class="sy0">.</span>bill_cust <span class="sy0">,</span>a<span class="sy0">.</span>bill_ctry <span class="sy0">,</span>a<span class="sy0">.</span>bill_prov <span class="sy0">,</span>a<span class="sy0">.</span>ship_group <span class="sy0">,</span>a<span class="sy0">.</span>ship_cust <span class="sy0">,</span>a<span class="sy0">.</span>ship_ctry <span class="sy0">,</span>a<span class="sy0">.</span>ship_prov <span class="sy0">,</span>a<span class="sy0">.</span>chan <span class="sy0">,</span>a<span class="sy0">.</span>mod_chan <span class="sy0">,</span>a<span class="sy0">.</span>mod_chansub <span class="sy0">,</span>a<span class="sy0">.</span>promo <span class="sy0">,</span>a<span class="sy0">.</span>majg <span class="sy0">,</span>a<span class="sy0">.</span>ming <span class="sy0">,</span>a<span class="sy0">.</span>majs <span class="sy0">,</span>a<span class="sy0">.</span>mins <span class="sy0">,</span>a<span class="sy0">.</span>part <span class="sy0">,</span>a<span class="sy0">.</span>part_descr <span class="sy0">,</span>a<span class="sy0">.</span>part_family <span class="sy0">,</span>a<span class="sy0">.</span>part_group <span class="sy0">,</span>a<span class="sy0">.</span>branding <span class="sy0">,</span>a<span class="sy0">.</span>segm <span class="sy0">,</span>a<span class="sy0">.</span>quota_rep <span class="sy0">,</span>a<span class="sy0">.</span>director <span class="sy0">,</span>a<span class="sy0">.</span>qty <span class="sy0">,</span>a<span class="sy0">.</span>sales <span class="sy0">,</span>a<span class="sy0">.</span>stdcost <span class="sy0">,</span>a<span class="sy0">.</span>stdcost_cur <span class="sy0">,</span>a<span class="sy0">.</span>pounds <span class="sy0">,</span>a<span class="sy0">.</span>flag_s <span class="sy0">,</span>a<span class="sy0">.</span>flag_o <span class="sy0">,</span>a<span class="sy0">.</span>status <span class="sy0">,</span>a<span class="sy0">.</span>options <span class="sy0">,</span>a<span class="sy0">.</span>grandtotal <span class="kw1">FROM</span> agg a <span class="kw1">UNION</span> <span class="kw1">ALL</span> <span class="kw1">SELECT</span> ? <span class="kw1">AS</span> <span class="kw2">version</span> <span class="sy0">,</span>? <span class="kw1">AS</span> iter <span class="sy0">,</span>a<span class="sy0">.</span>oseas <span class="sy0">,</span>a<span class="sy0">.</span>odate <span class="sy0">,</span>a<span class="sy0">.</span>sseas <span class="sy0">,</span>a<span class="sy0">.</span>sdate <span class="sy0">,</span>a<span class="sy0">.</span>rseas <span class="sy0">,</span>a<span class="sy0">.</span>rdate <span class="sy0">,</span>a<span class="sy0">.</span>om <span class="sy0">,</span>a<span class="sy0">.</span>sm <span class="sy0">,</span>a<span class="sy0">.</span>rm <span class="sy0">,</span>a<span class="sy0">.</span>oy <span class="sy0">,</span>a<span class="sy0">.</span>ocytd <span class="sy0">,</span>a<span class="sy0">.</span>oytd <span class="sy0">,</span>a<span class="sy0">.</span>sy <span class="sy0">,</span>a<span class="sy0">.</span>scytd <span class="sy0">,</span>a<span class="sy0">.</span>sytd <span class="sy0">,</span>a<span class="sy0">.</span>status_py <span class="sy0">,</span>a<span class="sy0">.</span>ry <span class="sy0">,</span>a<span class="sy0">.</span>plnt <span class="sy0">,</span>a<span class="sy0">.</span>bill_group <span class="sy0">,</span>a<span class="sy0">.</span>bill_cust <span class="sy0">,</span>a<span class="sy0">.</span>bill_ctry <span class="sy0">,</span>a<span class="sy0">.</span>bill_prov <span class="sy0">,</span>a<span class="sy0">.</span>ship_group <span class="sy0">,</span>a<span class="sy0">.</span>ship_cust <span class="sy0">,</span>a<span class="sy0">.</span>ship_ctry <span class="sy0">,</span>a<span class="sy0">.</span>ship_prov <span class="sy0">,</span>a<span class="sy0">.</span>chan <span class="sy0">,</span>a<span class="sy0">.</span>mod_chan <span class="sy0">,</span>a<span class="sy0">.</span>mod_chansub <span class="sy0">,</span>a<span class="sy0">.</span>promo <span class="sy0">,</span>a<span class="sy0">.</span>majg <span class="sy0">,</span>a<span class="sy0">.</span>ming <span class="sy0">,</span>a<span class="sy0">.</span>majs <span class="sy0">,</span>a<span class="sy0">.</span>mins <span class="sy0">,</span>a<span class="sy0">.</span>part <span class="sy0">,</span>a<span class="sy0">.</span>part_descr <span class="sy0">,</span>a<span class="sy0">.</span>part_family <span class="sy0">,</span>a<span class="sy0">.</span>part_group <span class="sy0">,</span>a<span class="sy0">.</span>branding <span class="sy0">,</span>a<span class="sy0">.</span>segm <span class="sy0">,</span>a<span class="sy0">.</span>quota_rep <span class="sy0">,</span>a<span class="sy0">.</span>director <span class="sy0">,</span>case a<span class="sy0">.</span><span class="kw2">version</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> a<span class="sy0">.</span>qty <span class="kw1">ELSE</span> <span class="sy0">-</span>a<span class="sy0">.</span>qty <span class="kw1">END</span>::numeric qty <span class="sy0">,</span>case a<span class="sy0">.</span><span class="kw2">version</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> a<span class="sy0">.</span>sales <span class="kw1">ELSE</span> <span class="sy0">-</span>a<span class="sy0">.</span>sales <span class="kw1">END</span>::numeric sales <span class="sy0">,</span>case a<span class="sy0">.</span><span class="kw2">version</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> a<span class="sy0">.</span>stdcost <span class="kw1">ELSE</span> <span class="sy0">-</span>a<span class="sy0">.</span>stdcost <span class="kw1">END</span>::numeric stdcost <span class="sy0">,</span>case a<span class="sy0">.</span><span class="kw2">version</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> a<span class="sy0">.</span>stdcost_cur <span class="kw1">ELSE</span> <span class="sy0">-</span>a<span class="sy0">.</span>stdcost_cur <span class="kw1">END</span>::numeric stdcost_cur <span class="sy0">,</span>case a<span class="sy0">.</span><span class="kw2">version</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> a<span class="sy0">.</span>pounds <span class="kw1">ELSE</span> <span class="sy0">-</span>a<span class="sy0">.</span>pounds <span class="kw1">END</span>::numeric pounds <span class="sy0">,</span>?<span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>a<span class="sy0">.</span>scytd flag_s <span class="sy0">,</span>?<span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>a<span class="sy0">.</span>ocytd flag_o <span class="sy0">,</span>a<span class="sy0">.</span>status <span class="sy0">,</span>a<span class="sy0">.</span>options <span class="sy0">,</span>a<span class="sy0">.</span>grandtotal <span class="kw1">FROM</span> agg a <span class="kw1">WHERE</span> a<span class="sy0">.</span><span class="kw2">version</span> <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span> <span class="kw1">AND</span> <span class="br0">(</span>a<span class="sy0">.</span>ocytd <span class="kw1">OR</span> a<span class="sy0">.</span>scytd<span class="br0">)</span> <span class="kw1">UNION</span> <span class="kw1">ALL</span> <span class="kw1">SELECT</span> ? <span class="kw1">AS</span> <span class="kw2">version</span> <span class="sy0">,</span>? <span class="kw1">AS</span> iter <span class="sy0">,</span>a<span class="sy0">.</span>oseas <span class="sy0">,</span>a<span class="sy0">.</span>odate <span class="sy0">,</span>a<span class="sy0">.</span>sseas <span class="sy0">,</span>a<span class="sy0">.</span>sdate <span class="sy0">,</span>a<span class="sy0">.</span>rseas <span class="sy0">,</span>a<span class="sy0">.</span>rdate <span class="sy0">,</span>a<span class="sy0">.</span>om <span class="sy0">,</span>a<span class="sy0">.</span>sm <span class="sy0">,</span>a<span class="sy0">.</span>rm <span class="sy0">,</span>a<span class="sy0">.</span>oy <span class="sy0">,</span>a<span class="sy0">.</span>ocytd <span class="sy0">,</span>a<span class="sy0">.</span>oytd <span class="sy0">,</span>a<span class="sy0">.</span>sy <span class="sy0">,</span>a<span class="sy0">.</span>scytd <span class="sy0">,</span>a<span class="sy0">.</span>sytd <span class="sy0">,</span>a<span class="sy0">.</span>status_py <span class="sy0">,</span>a<span class="sy0">.</span>ry <span class="sy0">,</span>a<span class="sy0">.</span>plnt <span class="sy0">,</span>a<span class="sy0">.</span>bill_group <span class="sy0">,</span>a<span class="sy0">.</span>bill_cust <span class="sy0">,</span>a<span class="sy0">.</span>bill_ctry <span class="sy0">,</span>a<span class="sy0">.</span>bill_prov <span class="sy0">,</span>a<span class="sy0">.</span>ship_group <span class="sy0">,</span>a<span class="sy0">.</span>ship_cust <span class="sy0">,</span>a<span class="sy0">.</span>ship_ctry <span class="sy0">,</span>a<span class="sy0">.</span>ship_prov <span class="sy0">,</span>a<span class="sy0">.</span>chan <span class="sy0">,</span>a<span class="sy0">.</span>mod_chan <span class="sy0">,</span>a<span class="sy0">.</span>mod_chansub <span class="sy0">,</span>a<span class="sy0">.</span>promo <span class="sy0">,</span>a<span class="sy0">.</span>majg <span class="sy0">,</span>a<span class="sy0">.</span>ming <span class="sy0">,</span>a<span class="sy0">.</span>majs <span class="sy0">,</span>a<span class="sy0">.</span>mins <span class="sy0">,</span>a<span class="sy0">.</span>part <span class="sy0">,</span>a<span class="sy0">.</span>part_descr <span class="sy0">,</span>a<span class="sy0">.</span>part_family <span class="sy0">,</span>a<span class="sy0">.</span>part_group <span class="sy0">,</span>a<span class="sy0">.</span>branding <span class="sy0">,</span>a<span class="sy0">.</span>segm <span class="sy0">,</span>a<span class="sy0">.</span>quota_rep <span class="sy0">,</span>a<span class="sy0">.</span>director <span class="sy0">,</span>case a<span class="sy0">.</span><span class="kw2">version</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> a<span class="sy0">.</span>qty <span class="kw1">ELSE</span> <span class="sy0">-</span>a<span class="sy0">.</span>qty <span class="kw1">END</span>::numeric qty <span class="sy0">,</span>case a<span class="sy0">.</span><span class="kw2">version</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> a<span class="sy0">.</span>sales <span class="kw1">ELSE</span> <span class="sy0">-</span>a<span class="sy0">.</span>sales <span class="kw1">END</span>::numeric sales <span class="sy0">,</span>case a<span class="sy0">.</span><span class="kw2">version</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> a<span class="sy0">.</span>stdcost <span class="kw1">ELSE</span> <span class="sy0">-</span>a<span class="sy0">.</span>stdcost <span class="kw1">END</span>::numeric stdcost <span class="sy0">,</span>case a<span class="sy0">.</span><span class="kw2">version</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> a<span class="sy0">.</span>stdcost_cur <span class="kw1">ELSE</span> <span class="sy0">-</span>a<span class="sy0">.</span>stdcost_cur <span class="kw1">END</span>::numeric stdcost_cur <span class="sy0">,</span>case a<span class="sy0">.</span><span class="kw2">version</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> a<span class="sy0">.</span>pounds <span class="kw1">ELSE</span> <span class="sy0">-</span>a<span class="sy0">.</span>pounds <span class="kw1">END</span>::numeric pounds <span class="sy0">,</span>?<span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>a<span class="sy0">.</span>scytd flag_s <span class="sy0">,</span>?<span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>a<span class="sy0">.</span>ocytd flag_o <span class="sy0">,</span>a<span class="sy0">.</span>status <span class="sy0">,</span>a<span class="sy0">.</span>options <span class="sy0">,</span>a<span class="sy0">.</span>grandtotal <span class="kw1">FROM</span> agg a <span class="kw1">WHERE</span> a<span class="sy0">.</span><span class="kw2">version</span> <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span> <span class="kw1">AND</span> <span class="br0">(</span>a<span class="sy0">.</span>ocytd <span class="kw1">OR</span> a<span class="sy0">.</span>scytd<span class="br0">)</span> ;
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Atime_consuming_queries_details_2" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #2</small></h3>
|
||
<div id="time_consuming_queries_details_2" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Atime_consuming_queries_details_2').on("shown.bs.collapse",function(){
|
||
var bars_36 = [['00:00',1],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',1],['15:00',0],['16:00',1],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_36 = [['00:00',199113],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',122635],['15:00',0],['16:00',148329],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var time_consuming_queries_details_2 = create_bargraph('time_consuming_queries_details_2', '', 'Queries', [ bars_36, lines_36 ], 'Avg. duration');
|
||
});
|
||
create_download_button(36, 'btn btn-default btn-xs');
|
||
add_download_button_event(36, 'time_consuming_queries_details_2');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 15</td><td>00</td><td>1</td><td>3m19s</td><td>3m19s</td></tr><tr><td></td><td>14</td><td>1</td><td>2m2s</td><td>2m2s</td></tr><tr><td></td><td>16</td><td>1</td><td>2m28s</td><td>2m28s</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Atime_consuming_queries_details_2">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-2">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-2">User(s) involved</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-2">App(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="time-consuming-queries-user-involved-rank-2" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> ptrowbridge_md5 - <b>Total duration:</b> 7m50s - <b>Times executed:</b> 3 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-2">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="time-consuming-queries-app-involved-rank-2" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> psql - <b>Total duration:</b> 7m50s - <b>Times executed:</b> 3 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-2">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="time-consuming-queries-examples-rank-2" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-e-2-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i>PL/pgSQL function rlarp.osm_ppfa_varto() line 69 at RETURN QUERYWITH
|
||
---------------------------------------segments--------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
SEG AS (
|
||
SELECT
|
||
x.GLEC
|
||
,x.SEGM
|
||
FROM
|
||
(
|
||
VALUES
|
||
('1CU','Retail'),
|
||
('1GR','Greenhouse'),
|
||
('1NU','Nursery'),
|
||
('1RE','Retail'),
|
||
('2WI','Greenhouse'),
|
||
('3BM','Other'),
|
||
('3CO','Other'),
|
||
('3PE','Other'),
|
||
('3PP','Other'),
|
||
('4CO','Other'),
|
||
('4RA','Other'),
|
||
('9MI','Other'),
|
||
('9SA','Other'),
|
||
('9TO','Other')
|
||
) X(GLEC, SEGM)
|
||
)
|
||
---------------------------------------branding flag---------------------------------------------------------------------------------------------------------------------------------------------------
|
||
,MG AS (
|
||
SELECT
|
||
X.F1, X.MING, X.GRP
|
||
FROM
|
||
(
|
||
VALUES
|
||
('L','000','Branded'),
|
||
('L','B10','Branded'),
|
||
('L','B11','Branded'),
|
||
('L','B52','Branded'),
|
||
('L','C10','Branded'),
|
||
('L','D12','Branded'),
|
||
('L','M11','Branded'),
|
||
('L','P12','Branded'),
|
||
('L','P13','Branded'),
|
||
('L','S10','Branded'),
|
||
('L','Y10','Branded'),
|
||
('L','Y11','Branded'),
|
||
('L','Y12','Branded'),
|
||
('P','B10','Branded'),
|
||
('P','B11','Branded'),
|
||
('P','B52','Branded')
|
||
) AS X (F1, MING, GRP)
|
||
)
|
||
---------------------------------------directors-------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
,REPC AS (
|
||
SELECT
|
||
LTRIM(RTRIM(C.A9)) RCODE
|
||
,LTRIM(RTRIM(C.A9)) || ' - ' || C.A30 REPP
|
||
,COALESCE(Q.DIR,'Other') DIRECTOR
|
||
FROM
|
||
LGDAT.CODE C
|
||
LEFT OUTER JOIN RLARP.QRH Q ON
|
||
Q.QR = LTRIM(RTRIM(C.A9))
|
||
WHERE
|
||
C.A2 = 'MM'
|
||
)
|
||
--MOLD DESCRIPTIONS
|
||
,MD AS (
|
||
SELECT
|
||
U.MOLD
|
||
,MAX(U.DESCR) DESCR
|
||
FROM
|
||
(
|
||
SELECT
|
||
SUBSTR(M.AVPART,1,8) MOLD
|
||
,MAX(M.AVDES1) DESCR
|
||
FROM
|
||
LGDAT.STKMM M
|
||
WHERE
|
||
LENGTH(M.AVPART) > 8
|
||
AND SUBSTR(M.AVGLED,1,1) <= '2'
|
||
GROUP BY
|
||
SUBSTR(M.AVPART,1,8)
|
||
UNION ALL
|
||
SELECT
|
||
SUBSTR(P.AWPART,1,8) MOLD
|
||
,MAX(P.AWDES1) DESCR
|
||
FROM
|
||
LGDAT.STKMP P
|
||
WHERE
|
||
LENGTH(P.AWPART) > 8
|
||
AND SUBSTR(P.AWGLED,1,1) <= '2'
|
||
GROUP BY
|
||
SUBSTR(P.AWPART,1,8)
|
||
) U
|
||
GROUP BY
|
||
U.MOLD
|
||
)
|
||
----------------------------------------------------sales major codes----------------------------------------------------------------------------------------------------------------------------------
|
||
,SJ AS (
|
||
SELECT * FROM LGDAT.MMSL WHERE COALESCE(BSMNCD,'') = ''
|
||
)
|
||
----------------------------------------------------sales minor codes----------------------------------------------------------------------------------------------------------------------------------
|
||
,SI AS (
|
||
SELECT * FROM LGDAT.MMSL WHERE COALESCE(BSMNCD,'') <> ''
|
||
)
|
||
----------------------------------------------------date ranges per season------------------------------------------------------------------------------------------------------------------------------
|
||
,seas AS(
|
||
SELECT
|
||
ssyr
|
||
,daterange(MIN(sdat),MAX(edat),'[]') dr
|
||
,current_date <@ daterange(MIN(sdat),MAX(edat),'[]') cy
|
||
FROM
|
||
gld
|
||
GROUP BY
|
||
ssyr
|
||
ORDER BY
|
||
ssyr DESC
|
||
)
|
||
,intv AS (
|
||
SELECT current_date - lower(dr) dy from seas where cy = true
|
||
)
|
||
,std AS (
|
||
SELECT
|
||
s.ssyr
|
||
,s.dr
|
||
,s.cy
|
||
,daterange(lower(dr),dy + LOWER(dr),'[]') ytd
|
||
FROM
|
||
seas s
|
||
CROSS JOIN intv
|
||
)
|
||
---------------------------------------union actual and forecast---------------------------------------------------------------------------------------------------------------------------------------
|
||
,UN AS (
|
||
--plan
|
||
SELECT
|
||
'Budget' AS VERSION
|
||
,'Budget' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE as ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(m.avDES1,p.awDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(m.avNWHT,p.awNWHT) * CASE COALESCE(m.avNWUN, p.awNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSMP OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.VERSION = 'b19'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1901'
|
||
OR OSM.ADJ_ORDERDATE >= '2018-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
--ITER
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(m.avDES1,p.awDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
UNION ALL
|
||
--staged forecast
|
||
SELECT
|
||
'Forecast' AS VERSION
|
||
,'Forecast' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(M.AVNWHT,P.AWNWHT) * CASE COALESCE(M.AVNWUN, P.AWNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSMF OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.VERSION = '5p7'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1901'
|
||
OR OSM.ADJ_ORDERDATE >= '2018-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
--ITER
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
UNION ALL
|
||
--actual
|
||
SELECT
|
||
'Actual' AS VERSION
|
||
,'Actual' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(M.AVNWHT,P.AWNWHT) * CASE COALESCE(M.AVNWUN, P.AWNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSM OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
--AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1606'
|
||
OR OSM.ADJ_ORDERDATE >= '2016-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
)
|
||
---------------------------------------aggregate actual and forecast-----------------------------------------------------------------------------------------------------------------------------------
|
||
,AGG AS (
|
||
SELECT
|
||
un.VERSION::text "version"
|
||
,un.ITER::text "iter"
|
||
,un.OSEAS::numeric oseas
|
||
,un.ODATE::date odate
|
||
,un.SSEAS::numeric sseas
|
||
,un.SDATE::date sdate
|
||
,un.RSEAS::numeric rseas
|
||
,un.RDATE::date rdate
|
||
,un.OM::text om
|
||
,un.SM::text sm
|
||
,un.RM::text rm
|
||
,un.OY::text oy
|
||
,(un.odate <@ _ytd)::boolean ocytd --current year to date
|
||
,(un.odate <@ so.ytd)::boolean oytd --year to date recast for prior/forecast periods
|
||
,un.SY::text sy
|
||
,(un.sdate <@ _ytd)::boolean scytd
|
||
,(un.sdate <@ ss.ytd)::boolean sytd
|
||
--had this order been placed yet? (current day prior year is greater than the order date)
|
||
,CASE WHEN (upper(so.ytd) - interval '1 day') >= un.odate THEN
|
||
--was the order open at this time last year? (for orders that were placed by this time, was the ship date greater then the order date)
|
||
CASE WHEN ((un.sdate > (upper(so.ytd) - interval '1 day')) OR (un.SY = 'F'))
|
||
--for orders that were placed and open at this time last year, was the order considered past due? (current date prior year > request date)
|
||
THEN
|
||
CASE WHEN (upper(so.ytd) - interval '1 day') > un.rdate
|
||
THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE 'Shipped'
|
||
END
|
||
ELSE 'Not Yet Placed'
|
||
END status_py
|
||
,un.RY::text ry
|
||
,un.PLNT::text plnt
|
||
,un.ACCOUNT::text bill_group
|
||
,(un.BILL_CUST || ' - ' || RTRIM(BC.BVNAME))::text bill_cust
|
||
,bc.bvctry bill_ctry
|
||
,bc.bvprcd bill_prov
|
||
,un.SHIPGRP::text ship_group
|
||
,(un.SHIP_CUST || ' - ' || RTRIM(SC.BVNAME))::text ship_cust
|
||
,sc.bvctry ship_ctry
|
||
,sc.bvprcd ship_prov
|
||
,un.CHAN::text chan
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAIL
|
||
ELSE un.CHAN
|
||
END::text mod_chan
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAILSUB
|
||
ELSE ''
|
||
END::text mod_chansub
|
||
,un.PROMO::text promo
|
||
,un.MAJG||COALESCE(' - '||BQDES,'')::text majg
|
||
,un.MING||COALESCE(' - '||BRDES,'')::text ming
|
||
,un.MAJS||COALESCE(' - '||SJ.BSDES1,'')::text majs
|
||
,un.MINS||COALESCE(' - '||SI.BSDES1,'')::text mins
|
||
,un.PART::text part
|
||
,un.PART_DESCR::text part_descr
|
||
,un.PART_FAMILY::text part_family
|
||
,un.PART_GROUP::text part_group
|
||
,un.BRANDING::text branding
|
||
,un.SEGM::text segm
|
||
,COALESCE(REPC.REPP,un.QUOTA_REP)::text quota_rep
|
||
,COALESCE(REPC.DIRECTOR,un.QUOTA_REP)::text director
|
||
,SUM(un.QTY)::numeric qty
|
||
,SUM(un.SALES)::numeric sales
|
||
,SUM(un.STDCOST)::numeric stdcost
|
||
,SUM(un.QTY * COALESCE(cm.cgstcs, cp.chstcs, cr.y0stcs) * un.c_rate)::numeric stdcost_cur
|
||
,SUM(un.POUNDS)::numeric pounds
|
||
,(un.VERSION||'-'||un.SY)::text flag_s
|
||
,(un.VERSION||'-'||un.OY)::text flag_o
|
||
,CASE
|
||
WHEN un.calc_status IN ('BACKORDER','OPEN') THEN
|
||
CASE
|
||
WHEN un.rdate < current_date THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE un.calc_status
|
||
END::text status
|
||
,(SUBSTR(UN.PART,9,3)||'-'||un.BRANDING)::text "options"
|
||
,'Grand Total'::text grandtotal
|
||
FROM
|
||
UN
|
||
LEFT OUTER JOIN REPC ON
|
||
REPC.RCODE = un.QUOTA_REP
|
||
LEFT OUTER JOIN SI ON
|
||
SI.BSMJCD = UN.MAJS
|
||
AND SI.BSMNCD = UN.MINS
|
||
LEFT OUTER JOIN SJ ON
|
||
SJ.BSMJCD = UN.MAJS
|
||
LEFT OUTER JOIN LGDAT.MAJG ON
|
||
BQGRP = un.MAJG
|
||
LEFT OUTER JOIN LGDAT.MMGP ON
|
||
BRMGRP = un.MING
|
||
AND BRGRP = un.MAJG
|
||
LEFT OUTER JOIN LGDAT.CUST BC ON
|
||
BC.BVCUST = UN.BILL_CUST
|
||
LEFT OUTER JOIN LGDAT.CUST SC ON
|
||
SC.BVCUST = UN.BILL_CUST
|
||
LEFT OUTER JOIN LGDAT.ICSTM cm ON
|
||
cm.cgpart = un.part
|
||
AND cm.cgplnt = un.plnt
|
||
LEFT OUTER JOIN LGDAT.ICSTP cp ON
|
||
cp.chpart = un.part
|
||
AND cp.chplnt = un.plnt
|
||
LEFT OUTER JOIN LGDAT.ICSTR cr ON
|
||
cr.y0part = un.part
|
||
AND cr.y0plnt = un.plnt
|
||
LEFT OUTER JOIN STD so ON
|
||
so.ssyr = un.oseas
|
||
LEFT OUTER JOIN STD ss ON
|
||
ss.ssyr = un.sseas
|
||
GROUP BY
|
||
un.VERSION::text
|
||
,un.ITER::text
|
||
,un.OSEAS::numeric
|
||
,un.ODATE::date
|
||
,un.SSEAS::numeric
|
||
,un.SDATE::date
|
||
,un.RSEAS::numeric
|
||
,un.RDATE::date
|
||
,un.OM::text
|
||
,un.SM::text
|
||
,un.RM::text
|
||
,un.OY::text
|
||
--current year to date
|
||
,(un.odate <@ _ytd)::boolean
|
||
--year to date recast for prior/forecast periods
|
||
,(un.odate <@ so.ytd)::boolean
|
||
,un.SY::text
|
||
,(un.sdate <@ _ytd)::boolean
|
||
,(un.sdate <@ ss.ytd)::boolean
|
||
,CASE WHEN (upper(so.ytd) - interval '1 day') >= un.odate THEN
|
||
--was the order open at this time last year? (for orders that were placed by this time, was the ship date greater then the order date)
|
||
CASE WHEN ((un.sdate > (upper(so.ytd) - interval '1 day')) OR (un.SY = 'F'))
|
||
--for orders that were placed and open at this time last year, was the order considered past due? (current date prior year > request date)
|
||
THEN
|
||
CASE WHEN (upper(so.ytd) - interval '1 day') > un.rdate
|
||
THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE 'Shipped'
|
||
END
|
||
ELSE 'Not Yet Placed'
|
||
END
|
||
,un.RY::text
|
||
,un.PLNT::text
|
||
,un.ACCOUNT::text
|
||
,(un.BILL_CUST || ' - ' || RTRIM(BC.BVNAME))::text
|
||
,bc.bvctry
|
||
,bc.bvprcd
|
||
,un.SHIPGRP::text
|
||
,(un.SHIP_CUST || ' - ' || RTRIM(SC.BVNAME))::text
|
||
,sc.bvctry
|
||
,sc.bvprcd
|
||
,un.CHAN::text
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAIL
|
||
ELSE un.CHAN
|
||
END::text
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAILSUB
|
||
ELSE ''
|
||
END::text
|
||
,un.PROMO::text
|
||
,un.MAJG||COALESCE(' - '||BQDES,'')::text
|
||
,un.MING||COALESCE(' - '||BRDES,'')::text
|
||
,un.MAJS||COALESCE(' - '||SJ.BSDES1,'')::text
|
||
,un.MINS||COALESCE(' - '||SI.BSDES1,'')::text
|
||
,un.PART::text
|
||
,un.PART_DESCR::text
|
||
,un.PART_FAMILY::text
|
||
,un.PART_GROUP::text
|
||
,un.BRANDING::text
|
||
,un.SEGM::text
|
||
,COALESCE(REPC.REPP,un.QUOTA_REP)::text
|
||
,COALESCE(REPC.DIRECTOR,un.QUOTA_REP)::text
|
||
,(un.VERSION||'-'||un.SY)::text
|
||
,(un.VERSION||'-'||un.OY)::text
|
||
,CASE
|
||
WHEN un.calc_status IN ('BACKORDER','OPEN') THEN
|
||
CASE
|
||
WHEN un.rdate < current_date THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE un.calc_status
|
||
END::text
|
||
,(SUBSTR(UN.PART,9,3)||'-'||un.BRANDING)::text
|
||
,'Grand Total'::text
|
||
)
|
||
SELECT
|
||
a.version
|
||
,a.iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,a.qty
|
||
,a.sales
|
||
,a.stdcost
|
||
,a.stdcost_cur
|
||
,a.pounds
|
||
,a.flag_s
|
||
,a.flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
agg a
|
||
UNION ALL
|
||
SELECT
|
||
'Var to Fcst' as version
|
||
,'Var to Fcst' as iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.QTY ELSE -a.QTY END::numeric QTY
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.SALES ELSE -a.SALES END::numeric SALES
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST ELSE -a.STDCOST END::numeric STDCOST
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST_CUR ELSE -a.STDCOST_CUR END::numeric STDCOST_CUR
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.POUNDS ELSE -a.POUNDS END::numeric POUNDS
|
||
,'Var to Fcst'||'-'||a.scytd flag_s
|
||
,'Var to Fcst'||'-'||a.ocytd flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
AGG a
|
||
WHERE
|
||
a.VERSION IN ('Actual','Forecast')
|
||
AND (a.ocytd OR a.scytd)
|
||
|
||
UNION ALL
|
||
SELECT
|
||
'Var to Bdgt' as version
|
||
,'Var to Bdgt' as iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.QTY ELSE -a.QTY END::numeric QTY
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.SALES ELSE -a.SALES END::numeric SALES
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST ELSE -a.STDCOST END::numeric STDCOST
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST_CUR ELSE -a.STDCOST_CUR END::numeric STDCOST_CUR
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.POUNDS ELSE -a.POUNDS END::numeric POUNDS
|
||
,'Var to Bdgt'||'-'||a.scytd flag_s
|
||
,'Var to Bdgt'||'-'||a.ocytd flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
AGG a
|
||
WHERE
|
||
a.VERSION IN ('Actual','Budget')
|
||
AND (a.ocytd OR a.scytd)
|
||
;</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 00:52:54
|
||
<b>Duration:</b> 3m19s
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-e-explain-2-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Append%20%20%28cost%3D4510966117154.68..4644894879274.93%20rows%3D1921380827591%20width%3D1520%29%20%28actual%20time%3D182826.066..198343.560%20rows%3D1377873%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D101605%20read%3D90963%2C%20local%20hit%3D5658755%20read%3D1%2C%20temp%20read%3D285245%20written%3D302150%0A%09%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20CTE%20seg%0A%09%20%20%20%20-%3E%20%20Values%20Scan%20on%20%22%2AVALUES%2A%22%20%20%28cost%3D0.00..0.18%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.001..0.004%20rows%3D14%20loops%3D1%29%0A%09%20%20CTE%20mg%0A%09%20%20%20%20-%3E%20%20Values%20Scan%20on%20%22%2AVALUES%2A_1%22%20%20%28cost%3D0.00..0.20%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.002..0.006%20rows%3D16%20loops%3D1%29%0A%09%20%20CTE%20repc%0A%09%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11.47..123.28%20rows%3D120%20width%3D96%29%20%28actual%20time%3D2.591..12.439%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28ltrim%28rtrim%28c.a9%29%29%20%3D%20q.qr%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D11.445%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20code%20c%20%20%28cost%3D9.21..118.86%20rows%3D120%20width%3D25%29%20%28actual%20time%3D2.207..11.727%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28a2%20%3D%20%27MM%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D21%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D25%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D11.107%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20pk_code%20%20%28cost%3D0.00..9.18%20rows%3D120%20width%3D0%29%20%28actual%20time%3D1.684..1.684%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28a2%20%3D%20%27MM%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1.575%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.56..1.56%20rows%3D56%20width%3D12%29%20%28actual%20time%3D0.368..0.368%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2011kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.337%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20qrh%20q%20%20%28cost%3D0.00..1.56%20rows%3D56%20width%3D12%29%20%28actual%20time%3D0.349..0.355%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.337%0A%09%20%20CTE%20md%0A%09%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D11936.00..11938.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D95.558..96.083%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20%28substr%28m.avpart%2C%201%2C%208%29%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Append%20%20%28cost%3D8137.31..11870.54%20rows%3D13091%20width%3D64%29%20%28actual%20time%3D83.235..94.596%20rows%3D3375%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D8137.31..8249.94%20rows%3D9010%20width%3D64%29%20%28actual%20time%3D83.233..84.126%20rows%3D3285%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20substr%28m.avpart%2C%201%2C%208%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m%20%20%28cost%3D0.00..8092.26%20rows%3D9010%20width%3D59%29%20%28actual%20time%3D0.012..41.548%20rows%3D76269%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28length%28avpart%29%20%3E%208%29%20AND%20%28substr%28avgled%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%204728%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D3373.23..3424.24%20rows%3D4081%20width%3D64%29%20%28actual%20time%3D10.241..10.276%20rows%3D90%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20substr%28p.awpart%2C%201%2C%208%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p%20%20%28cost%3D0.00..3352.82%20rows%3D4081%20width%3D52%29%20%28actual%20time%3D0.579..10.168%20rows%3D142%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28length%28awpart%29%20%3E%208%29%20AND%20%28substr%28awgled%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2036557%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20CTE%20sj%0A%09%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmsl%20%20%28cost%3D0.00..1.84%20rows%3D1%20width%3D22%29%20%28actual%20time%3D0.006..0.010%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28COALESCE%28bsmncd%2C%20%27%27%3A%3Atext%29%20%3D%20%27%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2056%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20CTE%20si%0A%09%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmsl%20mmsl_1%20%20%28cost%3D0.00..1.84%20rows%3D66%20width%3D22%29%20%28actual%20time%3D0.342..0.348%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28COALESCE%28bsmncd%2C%20%27%27%3A%3Atext%29%20%3C%3E%20%27%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2011%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.330%0A%09%20%20CTE%20seas%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D10.22..16.31%20rows%3D174%20width%3D41%29%20%28actual%20time%3D0.064..0.094%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20gld.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D10.22..10.65%20rows%3D174%20width%3D16%29%20%28actual%20time%3D0.052..0.059%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20gld.ssyr%20DESC%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2033kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D16%29%20%28actual%20time%3D0.010..0.029%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20CTE%20intv%0A%09%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seas%20%20%28cost%3D0.00..4.13%20rows%3D87%20width%3D4%29%20%28actual%20time%3D0.077..0.078%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20cy%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2014%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20CTE%20std%0A%09%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D0.00..457.62%20rows%3D15138%20width%3D73%29%20%28actual%20time%3D0.080..0.112%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20intv%20%20%28cost%3D0.00..1.74%20rows%3D87%20width%3D4%29%20%28actual%20time%3D0.078..0.079%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seas%20s%20%20%28cost%3D0.00..3.48%20rows%3D174%20width%3D41%29%20%28actual%20time%3D0.000..0.026%20rows%3D15%20loops%3D1%29%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D50003223.80..255856479.46%20rows%3D330423099%20width%3D697%29%20%28actual%20time%3D34264.289..81644.471%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D98372%20read%3D72635%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7746.456%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D50003223.80..63823292.65%20rows%3D83757993%20width%3D701%29%20%28actual%20time%3D34264.288..36465.643%20rows%3D212793%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20osm.adj_orderdate%2C%20sd.ssyr%2C%20%28LEAST%28GREATEST%28osm.adj_shipdate%2C%20sd.sdat%29%2C%20sd.edat%29%29%2C%20rd.ssyr%2C%20osm.adj_requestdate%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm.plnt%2C%20osm.account%2C%20osm.bill_cust%2C%20osm.shipgrp%2C%20osm.ship_cust%2C%20osm.chan%2C%20l.retail%2C%20l.retailsub%2C%20osm.promo%2C%20osm.majg%2C%20osm.ming%2C%20osm.majs%2C%20osm.mins%2C%20osm.part%2C%20%28%28%28osm.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_1.avdes1%2C%20p_1.awdes1%29%29%29%29%2C%20%28%28%28f.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f.descr%29%29%2C%20%28%28%28substr%28osm.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md.descr%29%29%2C%20%28COALESCE%28mg.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm.quota_rep%2C%20%28CASE%20osm.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm.calc_status%20END%29%2C%20osm.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D45043%20read%3D23493%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3613.602%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D50003223.80..50212618.79%20rows%3D83757993%20width%3D594%29%20%28actual%20time%3D34264.218..34431.899%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20osm.adj_orderdate%2C%20sd.ssyr%2C%20%28LEAST%28GREATEST%28osm.adj_shipdate%2C%20sd.sdat%29%2C%20sd.edat%29%29%2C%20rd.ssyr%2C%20osm.adj_requestdate%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm.plnt%2C%20osm.account%2C%20osm.bill_cust%2C%20osm.shipgrp%2C%20osm.ship_cust%2C%20osm.chan%2C%20l.retail%2C%20l.retailsub%2C%20osm.promo%2C%20osm.majg%2C%20osm.ming%2C%20osm.majs%2C%20osm.mins%2C%20osm.part%2C%20%28%28%28osm.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_1.avdes1%2C%20p_1.awdes1%29%29%29%29%2C%20%28%28%28f.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f.descr%29%29%2C%20%28%28%28substr%28osm.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md.descr%29%29%2C%20%28COALESCE%28mg.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm.quota_rep%2C%20%28CASE%20osm.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm.calc_status%20END%29%2C%20osm.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20352782kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D45043%20read%3D23493%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3613.602%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..16650773.71%20rows%3D83757993%20width%3D594%29%20%28actual%20time%3D523.585..12806.506%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm.bill_class%20%3D%20l.bill%29%20AND%20%28osm.ship_class%20%3D%20l.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D45040%20read%3D23493%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3613.602%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..10583311.94%20rows%3D83757993%20width%3D583%29%20%28actual%20time%3D522.937..12019.634%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm.part%2C%201%2C%208%29%20%3D%20md.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D45040%20read%3D23491%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3613.055%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..5348430.88%20rows%3D83757993%20width%3D551%29%20%28actual%20time%3D425.063..11458.763%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.part%20%3D%20p_1.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35984%20read%3D23491%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3613.055%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..5125106.33%20rows%3D83757993%20width%3D527%29%20%28actual%20time%3D313.496..11101.481%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35982%20read%3D20885%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3534.677%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..337594.45%20rows%3D4332310%20width%3D455%29%20%28actual%20time%3D313.488..8642.098%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35982%20read%3D20885%2C%20local%20hit%3D1281897%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3534.677%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..89964.52%20rows%3D224085%20width%3D383%29%20%28actual%20time%3D313.453..5992.381%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.part%20%3D%20m_1.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35982%20read%3D20885%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3534.662%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..81103.81%20rows%3D224085%20width%3D348%29%20%28actual%20time%3D12.984..5414.171%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm.part%2C%201%2C%203%29%20%3D%20f.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35980%20read%3D14439%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3281.743%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..77718.84%20rows%3D224085%20width%3D324%29%20%28actual%20time%3D0.106..4996.296%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm.part%2C%2016%2C%201%29%20%3D%20mg.f1%29%20AND%20%28osm.ming%20%3D%20mg.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35980%20read%3D14430%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3269.024%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..75750.09%20rows%3D224085%20width%3D292%29%20%28actual%20time%3D0.084..4563.487%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.glec%20%3D%20seg.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35980%20read%3D14430%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3269.024%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..72674.81%20rows%3D224085%20width%3D264%29%20%28actual%20time%3D0.070..4318.873%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35980%20read%3D14430%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3269.024%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmp%20osm%20%20%28cost%3D0.00..69587.73%20rows%3D224085%20width%3D184%29%20%28actual%20time%3D0.017..4055.770%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28version%20%3D%20%27b19%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271901%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272018-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2057051%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35980%20read%3D14430%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3269.024%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.048..0.048%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.003..0.024%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.011..0.011%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.002..0.008%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.015..0.015%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.003..0.012%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D12.868..12.868%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D12.719%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D12.733..12.786%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D12.719%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D300.407..300.407%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D6446%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D252.919%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_1%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D0.600..277.166%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D6446%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D252.919%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D641010%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1281895%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.015%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D641010%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1281894%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D108.057..108.057%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D2606%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D78.378%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_1%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D1.096..89.328%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D2606%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D78.378%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D97.843..97.843%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D95.561..97.114%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.629..0.629%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.546%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.574..0.596%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.546%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D33445583.00..42801951.72%20rows%3D56705265%20width%3D699%29%20%28actual%20time%3D21899.780..27106.566%20rows%3D250477%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20osm_1.adj_orderdate%2C%20sd_1.ssyr%2C%20%28LEAST%28GREATEST%28osm_1.adj_shipdate%2C%20sd_1.sdat%29%2C%20sd_1.edat%29%29%2C%20rd_1.ssyr%2C%20osm_1.adj_requestdate%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_1.plnt%2C%20osm_1.account%2C%20osm_1.bill_cust%2C%20osm_1.shipgrp%2C%20osm_1.ship_cust%2C%20osm_1.chan%2C%20l_1.retail%2C%20l_1.retailsub%2C%20osm_1.promo%2C%20osm_1.majg%2C%20osm_1.ming%2C%20osm_1.majs%2C%20osm_1.mins%2C%20osm_1.part%2C%20%28%28%28osm_1.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_2.avdes1%2C%20p_2.awdes1%29%29%29%29%2C%20%28%28%28f_1.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_1.descr%29%29%2C%20%28%28%28substr%28osm_1.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_1.descr%29%29%2C%20%28COALESCE%28mg_1.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_1.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_1.quota_rep%2C%20%28CASE%20osm_1.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_1.calc_status%20END%29%2C%20osm_1.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35412%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D33445583.00..33587346.16%20rows%3D56705265%20width%3D595%29%20%28actual%20time%3D21899.740..22369.501%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20osm_1.adj_orderdate%2C%20sd_1.ssyr%2C%20%28LEAST%28GREATEST%28osm_1.adj_shipdate%2C%20sd_1.sdat%29%2C%20sd_1.edat%29%29%2C%20rd_1.ssyr%2C%20osm_1.adj_requestdate%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_1.plnt%2C%20osm_1.account%2C%20osm_1.bill_cust%2C%20osm_1.shipgrp%2C%20osm_1.ship_cust%2C%20osm_1.chan%2C%20l_1.retail%2C%20l_1.retailsub%2C%20osm_1.promo%2C%20osm_1.majg%2C%20osm_1.ming%2C%20osm_1.majs%2C%20osm_1.mins%2C%20osm_1.part%2C%20%28%28%28osm_1.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_2.avdes1%2C%20p_2.awdes1%29%29%29%29%2C%20%28%28%28f_1.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_1.descr%29%29%2C%20%28%28%28substr%28osm_1.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_1.descr%29%29%2C%20%28COALESCE%28mg_1.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_1.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_1.quota_rep%2C%20%28CASE%20osm_1.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_1.calc_status%20END%29%2C%20osm_1.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20222052kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35412%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..11025086.80%20rows%3D56705265%20width%3D595%29%20%28actual%20time%3D82.385..8358.833%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm_1.bill_class%20%3D%20l_1.bill%29%20AND%20%28osm_1.ship_class%20%3D%20l_1.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35412%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..6967724.27%20rows%3D55168846%20width%3D584%29%20%28actual%20time%3D82.294..7619.217%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_1.part%2C%201%2C%208%29%20%3D%20md_1.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35410%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..3519664.90%20rows%3D55168846%20width%3D552%29%20%28actual%20time%3D81.174..7139.198%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.part%20%3D%20p_2.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35410%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..3371395.52%20rows%3D55168846%20width%3D528%29%20%28actual%20time%3D50.759..6837.840%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32802%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..217901.28%20rows%3D2853561%20width%3D456%29%20%28actual%20time%3D50.749..4566.299%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32802%2C%20local%20hit%3D813630%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..54789.49%20rows%3D147598%20width%3D384%29%20%28actual%20time%3D50.729..2196.620%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.part%20%3D%20m_2.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32802%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..46129.57%20rows%3D147598%20width%3D349%29%20%28actual%20time%3D0.257..1813.794%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_1.part%2C%201%2C%203%29%20%3D%20f_1.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26354%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..43891.91%20rows%3D147598%20width%3D325%29%20%28actual%20time%3D0.121..1436.906%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm_1.part%2C%2016%2C%201%29%20%3D%20mg_1.f1%29%20AND%20%28osm_1.ming%20%3D%20mg_1.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..42594.49%20rows%3D147598%20width%3D293%29%20%28actual%20time%3D0.110..1056.449%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.glec%20%3D%20seg_1.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..40564.57%20rows%3D147598%20width%3D265%29%20%28actual%20time%3D0.098..857.465%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.fspr%20%3D%20sd_1.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmf%20osm_1%20%20%28cost%3D0.00..38529.18%20rows%3D147598%20width%3D185%29%20%28actual%20time%3D0.026..619.289%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28version%20%3D%20%275p7%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271901%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272018-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.065..0.065%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.008..0.035%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.007..0.007%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20seg_1%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.002..0.004%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.007..0.007%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20mg_1%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.001..0.003%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.131..0.131%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f_1%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.010..0.054%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D50.417..50.417%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_2%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D0.005..27.523%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od_1%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.005..0.005%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813628%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd_1%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.005%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813628%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D30.201..30.201%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_2%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D0.009..17.401%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D1.104..1.104%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20md_1%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.002..0.386%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.063..0.063%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l_1%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.011..0.032%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D112931514.84..144274888.60%20rows%3D189959841%20width%3D695%29%20%28actual%20time%3D16710.998..17936.290%20rows%3D348959%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_2.ssyr%2C%20osm_2.adj_orderdate%2C%20sd_2.ssyr%2C%20%28LEAST%28GREATEST%28osm_2.adj_shipdate%2C%20sd_2.sdat%29%2C%20sd_2.edat%29%29%2C%20rd_2.ssyr%2C%20osm_2.adj_requestdate%2C%20%28COALESCE%28od_2.cm%2C%20sd_2.cm%29%29%2C%20%28COALESCE%28sd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_2.cy%2C%20sd_2.cy%29%29%2C%20%28COALESCE%28sd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_2.plnt%2C%20osm_2.account%2C%20osm_2.bill_cust%2C%20osm_2.shipgrp%2C%20osm_2.ship_cust%2C%20osm_2.chan%2C%20l_2.retail%2C%20l_2.retailsub%2C%20osm_2.promo%2C%20osm_2.majg%2C%20osm_2.ming%2C%20osm_2.majs%2C%20osm_2.mins%2C%20osm_2.part%2C%20%28%28%28osm_2.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_3.avdes1%2C%20p_3.awdes1%29%29%29%29%2C%20%28%28%28f_2.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_2.descr%29%29%2C%20%28%28%28substr%28osm_2.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_2.descr%29%29%2C%20%28COALESCE%28mg_2.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_2.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_2.quota_rep%2C%20%28CASE%20osm_2.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_2.calc_status%20END%29%2C%20osm_2.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D17917%20read%3D49142%2C%20local%20hit%3D1467704%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D112931514.84..113406414.44%20rows%3D189959841%20width%3D584%29%20%28actual%20time%3D16710.946..16814.969%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_2.ssyr%2C%20osm_2.adj_orderdate%2C%20sd_2.ssyr%2C%20%28LEAST%28GREATEST%28osm_2.adj_shipdate%2C%20sd_2.sdat%29%2C%20sd_2.edat%29%29%2C%20rd_2.ssyr%2C%20osm_2.adj_requestdate%2C%20%28COALESCE%28od_2.cm%2C%20sd_2.cm%29%29%2C%20%28COALESCE%28sd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_2.cy%2C%20sd_2.cy%29%29%2C%20%28COALESCE%28sd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_2.plnt%2C%20osm_2.account%2C%20osm_2.bill_cust%2C%20osm_2.shipgrp%2C%20osm_2.ship_cust%2C%20osm_2.chan%2C%20l_2.retail%2C%20l_2.retailsub%2C%20osm_2.promo%2C%20osm_2.majg%2C%20osm_2.ming%2C%20osm_2.majs%2C%20osm_2.mins%2C%20osm_2.part%2C%20%28%28%28osm_2.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_3.avdes1%2C%20p_3.awdes1%29%29%29%29%2C%20%28%28%28f_2.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_2.descr%29%29%2C%20%28%28%28substr%28osm_2.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_2.descr%29%29%2C%20%28COALESCE%28mg_2.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_2.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_2.quota_rep%2C%20%28CASE%20osm_2.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_2.calc_status%20END%29%2C%20osm_2.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20201623kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D17917%20read%3D49142%2C%20local%20hit%3D1467704%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..37465936.67%20rows%3D189959841%20width%3D584%29%20%28actual%20time%3D154.009..11372.141%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm_2.bill_class%20%3D%20l_2.bill%29%20AND%20%28osm_2.ship_class%20%3D%20l_2.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D17917%20read%3D49142%2C%20local%20hit%3D1467704%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..23902628.82%20rows%3D189959841%20width%3D574%29%20%28actual%20time%3D153.913..10698.691%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_2.part%2C%201%2C%208%29%20%3D%20md_2.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D17915%20read%3D49142%2C%20local%20hit%3D1467704%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..12030132.26%20rows%3D189959841%20width%3D542%29%20%28actual%20time%3D148.767..10299.042%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.part%20%3D%20p_3.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D17915%20read%3D49142%2C%20local%20hit%3D1467704%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..11527995.69%20rows%3D189959841%20width%3D518%29%20%28actual%20time%3D102.067..10041.030%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D15307%20read%3D49142%2C%20local%20hit%3D1467704%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..670498.91%20rows%3D9825509%20width%3D446%29%20%28actual%20time%3D102.059..8236.690%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D15307%20read%3D49142%2C%20local%20hit%3D733854%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..108904.23%20rows%3D508216%20width%3D374%29%20%28actual%20time%3D102.031..6271.278%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.part%20%3D%20m_3.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D15307%20read%3D49142%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..99297.64%20rows%3D508216%20width%3D339%29%20%28actual%20time%3D6.361..5913.268%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_2.part%2C%201%2C%203%29%20%3D%20f_2.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D8859%20read%3D49142%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..91650.71%20rows%3D508216%20width%3D315%29%20%28actual%20time%3D6.219..5568.521%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm_2.part%2C%2016%2C%201%29%20%3D%20mg_2.f1%29%20AND%20%28osm_2.ming%20%3D%20mg_2.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D8850%20read%3D49142%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..87189.88%20rows%3D508216%20width%3D283%29%20%28actual%20time%3D6.207..5231.289%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.glec%20%3D%20seg_2.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D8850%20read%3D49142%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..80265.15%20rows%3D508216%20width%3D255%29%20%28actual%20time%3D6.193..5042.515%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.fspr%20%3D%20sd_2.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D8850%20read%3D49142%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osm%20osm_2%20%20%28cost%3D0.00..73663.10%20rows%3D508216%20width%3D175%29%20%28actual%20time%3D6.115..4852.376%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271606%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272016-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20417318%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D8850%20read%3D49142%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.064..0.064%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_2%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.009..0.036%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.006..0.006%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20seg_2%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.002..0.003%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.006..0.006%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20mg_2%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.001..0.002%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.131..0.131%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f_2%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.010..0.051%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D95.611..95.611%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_3%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D0.005..42.484%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od_2%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D367211%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_2.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_2.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D733852%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd_2%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D367211%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_2.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm_2.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D733850%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D46.657..46.657%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_3%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D0.010..23.613%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D5.110..5.110%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20md_2%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.002..0.405%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.068..0.068%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l_2%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.021..0.039%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20CTE%20agg%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D3990139087947.22..4510710248131.84%20rows%3D1892986037035%20width%3D1404%29%20%28actual%20time%3D182825.587..189012.716%20rows%3D809487%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20un.version%2C%20un.iter%2C%20%28%28un.oseas%29%3A%3Anumeric%29%2C%20un.odate%2C%20%28%28un.sseas%29%3A%3Anumeric%29%2C%20un.sdate%2C%20%28%28un.rseas%29%3A%3Anumeric%29%2C%20un.rdate%2C%20un.om%2C%20un.sm%2C%20un.rm%2C%20un.oy%2C%20%28%28un.odate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.odate%20%3C%40%20so.ytd%29%29%2C%20un.sy%2C%20%28%28un.sdate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.sdate%20%3C%40%20ss.ytd%29%29%2C%20%28CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%3D%20un.odate%29%20THEN%20CASE%20WHEN%20%28%28un.sdate%20%3E%20%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%29%20OR%20%28un.sy%20%3D%20%27F%27%3A%3Atext%29%29%20THEN%20CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%20un.rdate%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20%27Shipped%27%3A%3Atext%20END%20ELSE%20%27Not%20Yet%20Placed%27%3A%3Atext%20END%29%2C%20un.ry%2C%20un.plnt%2C%20un.account%2C%20%28%28%28un.bill_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28bc.bvname%29%29%29%2C%20bc.bvctry%2C%20bc.bvprcd%2C%20un.shipgrp%2C%20%28%28%28un.ship_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28sc.bvname%29%29%29%2C%20sc.bvctry%2C%20sc.bvprcd%2C%20un.chan%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retail%20ELSE%20un.chan%20END%29%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retailsub%20ELSE%20%27%27%3A%3Atext%20END%29%2C%20un.promo%2C%20%28%28un.majg%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20majg.bqdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.ming%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20mmgp.brdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.majs%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20sj.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.mins%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20si.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20un.part%2C%20un.part_descr%2C%20un.part_family%2C%20un.part_group%2C%20un.branding%2C%20un.segm%2C%20%28COALESCE%28repc.repp%2C%20un.quota_rep%29%29%2C%20%28COALESCE%28repc.director%2C%20un.quota_rep%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.sy%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.oy%29%29%2C%20%28CASE%20WHEN%20%28un.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20THEN%20CASE%20WHEN%20%28un.rdate%20%3C%20CURRENT_DATE%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20un.calc_status%20END%29%2C%20%28%28%28substr%28un.part%2C%209%2C%203%29%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.branding%29%29%2C%20%27Grand%20Total%27%3A%3Atext%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101605%20read%3D90963%2C%20local%20hit%3D5658755%20read%3D1%2C%20temp%20read%3D169551%20written%3D244303%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D3990139087947.22..3994871553039.80%20rows%3D1892986037035%20width%3D1346%29%20%28actual%20time%3D182817.706..183828.314%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.version%2C%20un.iter%2C%20%28%28un.oseas%29%3A%3Anumeric%29%2C%20un.odate%2C%20%28%28un.sseas%29%3A%3Anumeric%29%2C%20un.sdate%2C%20%28%28un.rseas%29%3A%3Anumeric%29%2C%20un.rdate%2C%20un.om%2C%20un.sm%2C%20un.rm%2C%20un.oy%2C%20%28%28un.odate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.odate%20%3C%40%20so.ytd%29%29%2C%20un.sy%2C%20%28%28un.sdate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.sdate%20%3C%40%20ss.ytd%29%29%2C%20%28CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%3D%20un.odate%29%20THEN%20CASE%20WHEN%20%28%28un.sdate%20%3E%20%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%29%20OR%20%28un.sy%20%3D%20%27F%27%3A%3Atext%29%29%20THEN%20CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%20un.rdate%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20%27Shipped%27%3A%3Atext%20END%20ELSE%20%27Not%20Yet%20Placed%27%3A%3Atext%20END%29%2C%20un.ry%2C%20un.plnt%2C%20un.account%2C%20%28%28%28un.bill_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28bc.bvname%29%29%29%2C%20bc.bvctry%2C%20bc.bvprcd%2C%20un.shipgrp%2C%20%28%28%28un.ship_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28sc.bvname%29%29%29%2C%20sc.bvctry%2C%20sc.bvprcd%2C%20un.chan%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retail%20ELSE%20un.chan%20END%29%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retailsub%20ELSE%20%27%27%3A%3Atext%20END%29%2C%20un.promo%2C%20%28%28un.majg%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20majg.bqdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.ming%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20mmgp.brdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.majs%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20sj.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.mins%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20si.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20un.part%2C%20un.part_descr%2C%20un.part_family%2C%20un.part_group%2C%20un.branding%2C%20un.segm%2C%20%28COALESCE%28repc.repp%2C%20un.quota_rep%29%29%2C%20%28COALESCE%28repc.director%2C%20un.quota_rep%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.sy%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.oy%29%29%2C%20%28CASE%20WHEN%20%28un.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20THEN%20CASE%20WHEN%20%28un.rdate%20%3C%20CURRENT_DATE%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20un.calc_status%20END%29%2C%20%28%28%28substr%28un.part%2C%209%2C%203%29%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.branding%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20475848kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101605%20read%3D90963%2C%20local%20hit%3D5658755%20read%3D1%2C%20temp%20read%3D169551%20written%3D244303%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Merge%20Right%20Join%20%20%28cost%3D33563712447.31..265517026370.70%20rows%3D1892986037035%20width%3D1346%29%20%28actual%20time%3D117209.936..123600.017%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Merge%20Cond%3A%20%28ss.ssyr%20%3D%20un.sseas%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D90963%2C%20local%20hit%3D5658755%20read%3D1%2C%20temp%20read%3D110070%20written%3D184821%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D1353.78..1391.63%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.122..0.740%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20ss.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20std%20ss%20%20%28cost%3D0.00..302.76%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.081..0.117%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D33563711093.53..33688759715.34%20rows%3D25009724363%20width%3D1300%29%20%28actual%20time%3D117198.447..119674.219%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D90963%2C%20local%20hit%3D5658753%20read%3D1%2C%20temp%20read%3D110070%20written%3D184821%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D33563711093.53..33626235404.44%20rows%3D25009724363%20width%3D1300%29%20%28actual%20time%3D117198.083..117976.508%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.sseas%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20445840kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D90963%2C%20local%20hit%3D5658753%20read%3D1%2C%20temp%20read%3D110070%20written%3D146582%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Merge%20Right%20Join%20%20%28cost%3D488162845.81..864134844.69%20rows%3D25009724363%20width%3D1300%29%20%28actual%20time%3D105501.163..109753.807%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Merge%20Cond%3A%20%28so.ssyr%20%3D%20un.oseas%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D90963%2C%20local%20hit%3D5658753%20read%3D1%2C%20temp%20read%3D54340%20written%3D90851%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D1353.78..1391.63%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.005..0.009%20rows%3D13%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20so.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20std%20so%20%20%28cost%3D0.00..302.76%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.000..0.002%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D488161492.03..489813607.52%20rows%3D330423099%20width%3D1268%29%20%28actual%20time%3D105468.884..108956.573%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D90963%2C%20local%20hit%3D5658753%20read%3D1%2C%20temp%20read%3D54340%20written%3D90851%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D488161492.03..488987549.77%20rows%3D330423099%20width%3D1268%29%20%28actual%20time%3D105419.215..105977.954%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.oseas%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20434720kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D90963%2C%20local%20hit%3D5658753%20read%3D1%2C%20temp%20read%3D54340%20written%3D54341%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30326.40..75489285.22%20rows%3D330423099%20width%3D1268%29%20%28actual%20time%3D34892.831..94537.687%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cr.y0part%29%20AND%20%28un.plnt%20%3D%20cr.y0plnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D90963%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D22414.65..56426266.97%20rows%3D330423099%20width%3D1262%29%20%28actual%20time%3D34668.780..93298.840%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cp.chpart%29%20AND%20%28un.plnt%20%3D%20cp.chplnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D85711%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8003.465%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D14299.03..36533966.06%20rows%3D330423099%20width%3D1256%29%20%28actual%20time%3D34522.917..92143.759%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cm.cgpart%29%20AND%20%28un.plnt%20%3D%20cm.cgplnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D80395%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7920.833%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D7433.88..34026391.85%20rows%3D330423099%20width%3D1250%29%20%28actual%20time%3D34383.160..90732.988%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.bill_cust%20%3D%20sc.bvcust%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D75888%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7833.063%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D3723.16..29479363.52%20rows%3D330423099%20width%3D1223%29%20%28actual%20time%3D34366.365..89923.315%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.bill_cust%20%3D%20bc.bvcust%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D98373%20read%3D75888%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7833.063%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D12.44..24932335.18%20rows%3D330423099%20width%3D1196%29%20%28actual%20time%3D34277.988..88987.624%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.ming%20%3D%20mmgp.brmgrp%29%20AND%20%28un.majg%20%3D%20mmgp.brgrp%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D98373%20read%3D72664%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7758.824%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D7.51..15006668.18%20rows%3D330423099%20width%3D1186%29%20%28actual%20time%3D34277.622..88269.216%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.majg%20%3D%20majg.bqgrp%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D98373%20read%3D72663%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7758.524%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.24..13569326.43%20rows%3D330423099%20width%3D1176%29%20%28actual%20time%3D34277.304..87627.015%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.majs%20%3D%20sj.bsmjcd%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D98373%20read%3D72662%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7758.231%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.21..12313718.62%20rows%3D330423099%20width%3D1144%29%20%28actual%20time%3D34277.281..87019.163%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.majs%20%3D%20si.bsmjcd%29%20AND%20%28un.mins%20%3D%20si.bsmncd%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D98372%20read%3D72662%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7758.231%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D3.90..9830091.09%20rows%3D330423099%20width%3D1112%29%20%28actual%20time%3D34276.887..86204.919%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.quota_rep%20%3D%20repc.rcode%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D98372%20read%3D72661%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7757.901%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..6608461.98%20rows%3D330423099%20width%3D1048%29%20%28actual%20time%3D34264.293..85100.705%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D98372%20read%3D72635%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7746.456%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2.40..2.40%20rows%3D120%20width%3D96%29%20%28actual%20time%3D12.582..12.582%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2017kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D11.445%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20repc%20%20%28cost%3D0.00..2.40%20rows%3D120%20width%3D96%29%20%28actual%20time%3D2.594..12.537%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D11.445%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.32..1.32%20rows%3D66%20width%3D96%29%20%28actual%20time%3D0.382..0.382%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2011kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.330%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20si%20%20%28cost%3D0.00..1.32%20rows%3D66%20width%3D96%29%20%28actual%20time%3D0.344..0.363%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.330%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.02..0.02%20rows%3D1%20width%3D64%29%20%28actual%20time%3D0.016..0.016%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20sj%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D64%29%20%28actual%20time%3D0.007..0.013%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.12..1.12%20rows%3D12%20width%3D14%29%20%28actual%20time%3D0.312..0.312%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.293%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20majg%20%20%28cost%3D0.00..1.12%20rows%3D12%20width%3D14%29%20%28actual%20time%3D0.301..0.303%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.293%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2.57..2.57%20rows%3D157%20width%3D18%29%20%28actual%20time%3D0.359..0.359%20rows%3D157%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.300%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmgp%20%20%28cost%3D0.00..2.57%20rows%3D157%20width%3D18%29%20%28actual%20time%3D0.309..0.326%20rows%3D157%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.300%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3440.32..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D88.356..88.356%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2032768%20%20Batches%3A%201%20%20Memory%20Usage%3A%201721kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D74.239%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20cust%20bc%20%20%28cost%3D0.00..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D0.900..82.368%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D74.239%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3440.32..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D16.771..16.771%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2032768%20%20Batches%3A%201%20%20Memory%20Usage%3A%201721kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20cust%20sc%20%20%28cost%3D0.00..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D0.007..10.557%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D5450.26..5450.26%20rows%3D94326%20width%3D29%29%20%28actual%20time%3D139.654..139.654%20rows%3D94326%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%206699kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4507%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D87.770%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstm%20cm%20%20%28cost%3D0.00..5450.26%20rows%3D94326%20width%3D29%29%20%28actual%20time%3D1.271..114.520%20rows%3D94326%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4507%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D87.770%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D6435.85..6435.85%20rows%3D111985%20width%3D20%29%20%28actual%20time%3D145.806..145.806%20rows%3D111985%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%206768kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5316%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D82.632%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstp%20cp%20%20%28cost%3D0.00..6435.85%20rows%3D111985%20width%3D20%29%20%28actual%20time%3D3.411..114.774%20rows%3D111985%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5316%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D82.632%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D6315.90..6315.90%20rows%3D106390%20width%3D27%29%20%28actual%20time%3D223.650..223.650%20rows%3D106390%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207334kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5252%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D175.960%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstr%20cr%20%20%28cost%3D0.00..6315.90%20rows%3D106390%20width%3D27%29%20%28actual%20time%3D1.134..193.496%20rows%3D106390%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5252%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D175.960%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a%20%20%28cost%3D0.00..37859720740.70%20rows%3D1892986037035%20width%3D1520%29%20%28actual%20time%3D182825.842..192275.884%20rows%3D809487%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101605%20read%3D90963%2C%20local%20hit%3D5658755%20read%3D1%2C%20temp%20read%3D169551%20written%3D302149%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a_1%20%20%28cost%3D0.00..43089094668.02%20rows%3D14197395278%20width%3D1520%29%20%28actual%20time%3D336.760..2113.121%20rows%3D298364%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Filter%3A%20%28%28ocytd%20OR%20scytd%29%20AND%20%28version%20%3D%20ANY%20%28%27%7BActual%2CForecast%7D%27%3A%3Atext%5B%5D%29%29%29%0A%09%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20511123%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20temp%20read%3D57847%20written%3D1%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a_2%20%20%28cost%3D0.00..43089094668.02%20rows%3D14197395278%20width%3D1520%29%20%28actual%20time%3D218.764..3615.793%20rows%3D270022%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Filter%3A%20%28%28ocytd%20OR%20scytd%29%20AND%20%28version%20%3D%20ANY%20%28%27%7BActual%2CBudget%7D%27%3A%3Atext%5B%5D%29%29%29%0A%09%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20539465%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20temp%20read%3D57847%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Append (cost=4510966117154.68..4644894879274.93 rows=1921380827591 width=1520) (actual time=182826.066..198343.560 rows=1377873 loops=1)
|
||
Buffers: shared hit=101605 read=90963, local hit=5658755 read=1, temp read=285245 written=302150
|
||
I/O Timings: read=8179.425
|
||
CTE seg
|
||
-> Values Scan on "*VALUES*" (cost=0.00..0.18 rows=14 width=64) (actual time=0.001..0.004 rows=14 loops=1)
|
||
CTE mg
|
||
-> Values Scan on "*VALUES*_1" (cost=0.00..0.20 rows=16 width=96) (actual time=0.002..0.006 rows=16 loops=1)
|
||
CTE repc
|
||
-> Hash Left Join (cost=11.47..123.28 rows=120 width=96) (actual time=2.591..12.439 rows=120 loops=1)
|
||
Hash Cond: (ltrim(rtrim(c.a9)) = q.qr)
|
||
Buffers: shared read=26
|
||
I/O Timings: read=11.445
|
||
-> Bitmap Heap Scan on code c (cost=9.21..118.86 rows=120 width=25) (actual time=2.207..11.727 rows=120 loops=1)
|
||
Recheck Cond: (a2 = 'MM'::text)
|
||
Heap Blocks: exact=21
|
||
Buffers: shared read=25
|
||
I/O Timings: read=11.107
|
||
-> Bitmap Index Scan on pk_code (cost=0.00..9.18 rows=120 width=0) (actual time=1.684..1.684 rows=120 loops=1)
|
||
Index Cond: (a2 = 'MM'::text)
|
||
Buffers: shared read=4
|
||
I/O Timings: read=1.575
|
||
-> Hash (cost=1.56..1.56 rows=56 width=12) (actual time=0.368..0.368 rows=56 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 11kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.337
|
||
-> Seq Scan on qrh q (cost=0.00..1.56 rows=56 width=12) (actual time=0.349..0.355 rows=56 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.337
|
||
CTE md
|
||
-> HashAggregate (cost=11936.00..11938.00 rows=200 width=64) (actual time=95.558..96.083 rows=3368 loops=1)
|
||
Group Key: (substr(m.avpart, 1, 8))
|
||
Buffers: shared hit=9056
|
||
-> Append (cost=8137.31..11870.54 rows=13091 width=64) (actual time=83.235..94.596 rows=3375 loops=1)
|
||
Buffers: shared hit=9056
|
||
-> HashAggregate (cost=8137.31..8249.94 rows=9010 width=64) (actual time=83.233..84.126 rows=3285 loops=1)
|
||
Group Key: substr(m.avpart, 1, 8)
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m (cost=0.00..8092.26 rows=9010 width=59) (actual time=0.012..41.548 rows=76269 loops=1)
|
||
Filter: ((length(avpart) > 8) AND (substr(avgled, 1, 1) <= '2'::text))
|
||
Rows Removed by Filter: 4728
|
||
Buffers: shared hit=6448
|
||
-> HashAggregate (cost=3373.23..3424.24 rows=4081 width=64) (actual time=10.241..10.276 rows=90 loops=1)
|
||
Group Key: substr(p.awpart, 1, 8)
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p (cost=0.00..3352.82 rows=4081 width=52) (actual time=0.579..10.168 rows=142 loops=1)
|
||
Filter: ((length(awpart) > 8) AND (substr(awgled, 1, 1) <= '2'::text))
|
||
Rows Removed by Filter: 36557
|
||
Buffers: shared hit=2608
|
||
CTE sj
|
||
-> Seq Scan on mmsl (cost=0.00..1.84 rows=1 width=22) (actual time=0.006..0.010 rows=11 loops=1)
|
||
Filter: (COALESCE(bsmncd, ''::text) = ''::text)
|
||
Rows Removed by Filter: 56
|
||
Buffers: shared hit=1
|
||
CTE si
|
||
-> Seq Scan on mmsl mmsl_1 (cost=0.00..1.84 rows=66 width=22) (actual time=0.342..0.348 rows=56 loops=1)
|
||
Filter: (COALESCE(bsmncd, ''::text) <> ''::text)
|
||
Rows Removed by Filter: 11
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.330
|
||
CTE seas
|
||
-> GroupAggregate (cost=10.22..16.31 rows=174 width=41) (actual time=0.064..0.094 rows=15 loops=1)
|
||
Group Key: gld.ssyr
|
||
Buffers: local hit=2
|
||
-> Sort (cost=10.22..10.65 rows=174 width=16) (actual time=0.052..0.059 rows=174 loops=1)
|
||
Sort Key: gld.ssyr DESC
|
||
Sort Method: quicksort Memory: 33kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld (cost=0.00..3.74 rows=174 width=16) (actual time=0.010..0.029 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
CTE intv
|
||
-> CTE Scan on seas (cost=0.00..4.13 rows=87 width=4) (actual time=0.077..0.078 rows=1 loops=1)
|
||
Filter: cy
|
||
Rows Removed by Filter: 14
|
||
Buffers: local hit=2
|
||
CTE std
|
||
-> Nested Loop (cost=0.00..457.62 rows=15138 width=73) (actual time=0.080..0.112 rows=15 loops=1)
|
||
Buffers: local hit=2
|
||
-> CTE Scan on intv (cost=0.00..1.74 rows=87 width=4) (actual time=0.078..0.079 rows=1 loops=1)
|
||
Buffers: local hit=2
|
||
-> CTE Scan on seas s (cost=0.00..3.48 rows=174 width=41) (actual time=0.000..0.026 rows=15 loops=1)
|
||
CTE un
|
||
-> Append (cost=50003223.80..255856479.46 rows=330423099 width=697) (actual time=34264.289..81644.471 rows=812229 loops=1)
|
||
Buffers: shared hit=98372 read=72635, local hit=5658753 read=1
|
||
I/O Timings: read=7746.456
|
||
-> GroupAggregate (cost=50003223.80..63823292.65 rows=83757993 width=701) (actual time=34264.288..36465.643 rows=212793 loops=1)
|
||
Group Key: od.ssyr, osm.adj_orderdate, sd.ssyr, (LEAST(GREATEST(osm.adj_shipdate, sd.sdat), sd.edat)), rd.ssyr, osm.adj_requestdate, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(rd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text)), (COALESCE(rd.cy, 'F'::text)), osm.plnt, osm.account, osm.bill_cust, osm.shipgrp, osm.ship_cust, osm.chan, l.retail, l.retailsub, osm.promo, osm.majg, osm.ming, osm.majs, osm.mins, osm.part, (((osm.part || ' - '::text) || rtrim(COALESCE(m_1.avdes1, p_1.awdes1)))), (((f.f3 || ' - '::text) || f.descr)), (((substr(osm.part, 1, 8) || ' - '::text) || md.descr)), (COALESCE(mg.grp, 'Unbranded'::text)), (COALESCE(seg.segm, 'Other'::text)), osm.quota_rep, (CASE osm.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm.calc_status END), osm.c_rate
|
||
Buffers: shared hit=45043 read=23493, local hit=2563791 read=1
|
||
I/O Timings: read=3613.602
|
||
-> Sort (cost=50003223.80..50212618.79 rows=83757993 width=594) (actual time=34264.218..34431.899 rows=641010 loops=1)
|
||
Sort Key: od.ssyr, osm.adj_orderdate, sd.ssyr, (LEAST(GREATEST(osm.adj_shipdate, sd.sdat), sd.edat)), rd.ssyr, osm.adj_requestdate, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(rd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text)), (COALESCE(rd.cy, 'F'::text)), osm.plnt, osm.account, osm.bill_cust, osm.shipgrp, osm.ship_cust, osm.chan, l.retail, l.retailsub, osm.promo, osm.majg, osm.ming, osm.majs, osm.mins, osm.part, (((osm.part || ' - '::text) || rtrim(COALESCE(m_1.avdes1, p_1.awdes1)))), (((f.f3 || ' - '::text) || f.descr)), (((substr(osm.part, 1, 8) || ' - '::text) || md.descr)), (COALESCE(mg.grp, 'Unbranded'::text)), (COALESCE(seg.segm, 'Other'::text)), osm.quota_rep, (CASE osm.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm.calc_status END), osm.c_rate
|
||
Sort Method: quicksort Memory: 352782kB
|
||
Buffers: shared hit=45043 read=23493, local hit=2563791 read=1
|
||
I/O Timings: read=3613.602
|
||
-> Hash Left Join (cost=11749.79..16650773.71 rows=83757993 width=594) (actual time=523.585..12806.506 rows=641010 loops=1)
|
||
Hash Cond: ((osm.bill_class = l.bill) AND (osm.ship_class = l.ship))
|
||
Buffers: shared hit=45040 read=23493, local hit=2563791 read=1
|
||
I/O Timings: read=3613.602
|
||
-> Hash Left Join (cost=11744.32..10583311.94 rows=83757993 width=583) (actual time=522.937..12019.634 rows=641010 loops=1)
|
||
Hash Cond: (substr(osm.part, 1, 8) = md.mold)
|
||
Buffers: shared hit=45040 read=23491, local hit=2563791 read=1
|
||
I/O Timings: read=3613.055
|
||
-> Hash Left Join (cost=11737.82..5348430.88 rows=83757993 width=551) (actual time=425.063..11458.763 rows=641010 loops=1)
|
||
Hash Cond: (osm.part = p_1.awpart)
|
||
Buffers: shared hit=35984 read=23491, local hit=2563791 read=1
|
||
I/O Timings: read=3613.055
|
||
-> Nested Loop Left Join (cost=8303.37..5125106.33 rows=83757993 width=527) (actual time=313.496..11101.481 rows=641010 loops=1)
|
||
Buffers: shared hit=35982 read=20885, local hit=2563791 read=1
|
||
I/O Timings: read=3534.677
|
||
-> Nested Loop Left Join (cost=8303.23..337594.45 rows=4332310 width=455) (actual time=313.488..8642.098 rows=641010 loops=1)
|
||
Buffers: shared hit=35982 read=20885, local hit=1281897 read=1
|
||
I/O Timings: read=3534.677
|
||
-> Hash Left Join (cost=8303.08..89964.52 rows=224085 width=383) (actual time=313.453..5992.381 rows=641010 loops=1)
|
||
Hash Cond: (osm.part = m_1.avpart)
|
||
Buffers: shared hit=35982 read=20885, local hit=2
|
||
I/O Timings: read=3534.662
|
||
-> Hash Left Join (cost=30.62..81103.81 rows=224085 width=348) (actual time=12.984..5414.171 rows=641010 loops=1)
|
||
Hash Cond: (substr(osm.part, 1, 3) = f.f3)
|
||
Buffers: shared hit=35980 read=14439, local hit=2
|
||
I/O Timings: read=3281.743
|
||
-> Hash Left Join (cost=6.93..77718.84 rows=224085 width=324) (actual time=0.106..4996.296 rows=641010 loops=1)
|
||
Hash Cond: ((substr(osm.part, 16, 1) = mg.f1) AND (osm.ming = mg.ming))
|
||
Buffers: shared hit=35980 read=14430, local hit=2
|
||
I/O Timings: read=3269.024
|
||
-> Hash Left Join (cost=6.37..75750.09 rows=224085 width=292) (actual time=0.084..4563.487 rows=641010 loops=1)
|
||
Hash Cond: (osm.glec = seg.glec)
|
||
Buffers: shared hit=35980 read=14430, local hit=2
|
||
I/O Timings: read=3269.024
|
||
-> Hash Left Join (cost=5.92..72674.81 rows=224085 width=264) (actual time=0.070..4318.873 rows=641010 loops=1)
|
||
Hash Cond: (osm.fspr = sd.fspr)
|
||
Buffers: shared hit=35980 read=14430, local hit=2
|
||
I/O Timings: read=3269.024
|
||
-> Seq Scan on osmp osm (cost=0.00..69587.73 rows=224085 width=184) (actual time=0.017..4055.770 rows=641010 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND (version = 'b19'::text) AND (substr(glec, 1, 1) <= '2'::text) AND ((fspr >= '1901'::text) OR (adj_orderdate >= '2018-06-01'::date)))
|
||
Rows Removed by Filter: 57051
|
||
Buffers: shared hit=35980 read=14430
|
||
I/O Timings: read=3269.024
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.048..0.048 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd (cost=0.00..3.74 rows=174 width=112) (actual time=0.003..0.024 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.011..0.011 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg (cost=0.00..0.28 rows=14 width=64) (actual time=0.002..0.008 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.015..0.015 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg (cost=0.00..0.32 rows=16 width=96) (actual time=0.003..0.012 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=12.868..12.868 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared read=9
|
||
I/O Timings: read=12.719
|
||
-> Seq Scan on family f (cost=0.00..15.53 rows=653 width=24) (actual time=12.733..12.786 rows=653 loops=1)
|
||
Buffers: shared read=9
|
||
I/O Timings: read=12.719
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=300.407..300.407 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=2 read=6446
|
||
I/O Timings: read=252.919
|
||
-> Seq Scan on stkmm m_1 (cost=0.00..7258.87 rows=81087 width=54) (actual time=0.600..277.166 rows=80997 loops=1)
|
||
Buffers: shared hit=2 read=6446
|
||
I/O Timings: read=252.919
|
||
-> Index Scan using se_dat on gld od (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=641010)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=1281895 read=1
|
||
I/O Timings: read=0.015
|
||
-> Index Scan using se_dat on gld rd (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=641010)
|
||
Index Cond: ((osm.adj_requestdate >= sdat) AND (osm.adj_requestdate <= edat))
|
||
Buffers: local hit=1281894
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=108.057..108.057 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2 read=2606
|
||
I/O Timings: read=78.378
|
||
-> Seq Scan on stkmp p_1 (cost=0.00..2975.31 rows=36731 width=33) (actual time=1.096..89.328 rows=36699 loops=1)
|
||
Buffers: shared hit=2 read=2606
|
||
I/O Timings: read=78.378
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=97.843..97.843 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
Buffers: shared hit=9056
|
||
-> CTE Scan on md (cost=0.00..4.00 rows=200 width=64) (actual time=95.561..97.114 rows=3368 loops=1)
|
||
Buffers: shared hit=9056
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.629..0.629 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared read=2
|
||
I/O Timings: read=0.546
|
||
-> Seq Scan on ffchnl l (cost=0.00..3.39 rows=139 width=25) (actual time=0.574..0.596 rows=139 loops=1)
|
||
Buffers: shared read=2
|
||
I/O Timings: read=0.546
|
||
-> GroupAggregate (cost=33445583.00..42801951.72 rows=56705265 width=699) (actual time=21899.780..27106.566 rows=250477 loops=1)
|
||
Group Key: od_1.ssyr, osm_1.adj_orderdate, sd_1.ssyr, (LEAST(GREATEST(osm_1.adj_shipdate, sd_1.sdat), sd_1.edat)), rd_1.ssyr, osm_1.adj_requestdate, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(rd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text)), (COALESCE(rd_1.cy, 'F'::text)), osm_1.plnt, osm_1.account, osm_1.bill_cust, osm_1.shipgrp, osm_1.ship_cust, osm_1.chan, l_1.retail, l_1.retailsub, osm_1.promo, osm_1.majg, osm_1.ming, osm_1.majs, osm_1.mins, osm_1.part, (((osm_1.part || ' - '::text) || rtrim(COALESCE(m_2.avdes1, p_2.awdes1)))), (((f_1.f3 || ' - '::text) || f_1.descr)), (((substr(osm_1.part, 1, 8) || ' - '::text) || md_1.descr)), (COALESCE(mg_1.grp, 'Unbranded'::text)), (COALESCE(seg_1.segm, 'Other'::text)), osm_1.quota_rep, (CASE osm_1.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_1.calc_status END), osm_1.c_rate
|
||
Buffers: shared hit=35412, local hit=1627258
|
||
-> Sort (cost=33445583.00..33587346.16 rows=56705265 width=595) (actual time=21899.740..22369.501 rows=406814 loops=1)
|
||
Sort Key: od_1.ssyr, osm_1.adj_orderdate, sd_1.ssyr, (LEAST(GREATEST(osm_1.adj_shipdate, sd_1.sdat), sd_1.edat)), rd_1.ssyr, osm_1.adj_requestdate, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(rd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text)), (COALESCE(rd_1.cy, 'F'::text)), osm_1.plnt, osm_1.account, osm_1.bill_cust, osm_1.shipgrp, osm_1.ship_cust, osm_1.chan, l_1.retail, l_1.retailsub, osm_1.promo, osm_1.majg, osm_1.ming, osm_1.majs, osm_1.mins, osm_1.part, (((osm_1.part || ' - '::text) || rtrim(COALESCE(m_2.avdes1, p_2.awdes1)))), (((f_1.f3 || ' - '::text) || f_1.descr)), (((substr(osm_1.part, 1, 8) || ' - '::text) || md_1.descr)), (COALESCE(mg_1.grp, 'Unbranded'::text)), (COALESCE(seg_1.segm, 'Other'::text)), osm_1.quota_rep, (CASE osm_1.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_1.calc_status END), osm_1.c_rate
|
||
Sort Method: quicksort Memory: 222052kB
|
||
Buffers: shared hit=35412, local hit=1627258
|
||
-> Hash Left Join (cost=11749.79..11025086.80 rows=56705265 width=595) (actual time=82.385..8358.833 rows=406814 loops=1)
|
||
Hash Cond: ((osm_1.bill_class = l_1.bill) AND (osm_1.ship_class = l_1.ship))
|
||
Buffers: shared hit=35412, local hit=1627258
|
||
-> Hash Left Join (cost=11744.32..6967724.27 rows=55168846 width=584) (actual time=82.294..7619.217 rows=406814 loops=1)
|
||
Hash Cond: (substr(osm_1.part, 1, 8) = md_1.mold)
|
||
Buffers: shared hit=35410, local hit=1627258
|
||
-> Hash Left Join (cost=11737.82..3519664.90 rows=55168846 width=552) (actual time=81.174..7139.198 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.part = p_2.awpart)
|
||
Buffers: shared hit=35410, local hit=1627258
|
||
-> Nested Loop Left Join (cost=8303.37..3371395.52 rows=55168846 width=528) (actual time=50.759..6837.840 rows=406814 loops=1)
|
||
Buffers: shared hit=32802, local hit=1627258
|
||
-> Nested Loop Left Join (cost=8303.23..217901.28 rows=2853561 width=456) (actual time=50.749..4566.299 rows=406814 loops=1)
|
||
Buffers: shared hit=32802, local hit=813630
|
||
-> Hash Left Join (cost=8303.08..54789.49 rows=147598 width=384) (actual time=50.729..2196.620 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.part = m_2.avpart)
|
||
Buffers: shared hit=32802, local hit=2
|
||
-> Hash Left Join (cost=30.62..46129.57 rows=147598 width=349) (actual time=0.257..1813.794 rows=406814 loops=1)
|
||
Hash Cond: (substr(osm_1.part, 1, 3) = f_1.f3)
|
||
Buffers: shared hit=26354, local hit=2
|
||
-> Hash Left Join (cost=6.93..43891.91 rows=147598 width=325) (actual time=0.121..1436.906 rows=406814 loops=1)
|
||
Hash Cond: ((substr(osm_1.part, 16, 1) = mg_1.f1) AND (osm_1.ming = mg_1.ming))
|
||
Buffers: shared hit=26345, local hit=2
|
||
-> Hash Left Join (cost=6.37..42594.49 rows=147598 width=293) (actual time=0.110..1056.449 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.glec = seg_1.glec)
|
||
Buffers: shared hit=26345, local hit=2
|
||
-> Hash Left Join (cost=5.92..40564.57 rows=147598 width=265) (actual time=0.098..857.465 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.fspr = sd_1.fspr)
|
||
Buffers: shared hit=26345, local hit=2
|
||
-> Seq Scan on osmf osm_1 (cost=0.00..38529.18 rows=147598 width=185) (actual time=0.026..619.289 rows=406814 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND (version = '5p7'::text) AND (substr(glec, 1, 1) <= '2'::text) AND ((fspr >= '1901'::text) OR (adj_orderdate >= '2018-06-01'::date)))
|
||
Rows Removed by Filter: 358
|
||
Buffers: shared hit=26345
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.065..0.065 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_1 (cost=0.00..3.74 rows=174 width=112) (actual time=0.008..0.035 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.007..0.007 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg seg_1 (cost=0.00..0.28 rows=14 width=64) (actual time=0.002..0.004 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.007..0.007 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg mg_1 (cost=0.00..0.32 rows=16 width=96) (actual time=0.001..0.003 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=0.131..0.131 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared hit=9
|
||
-> Seq Scan on family f_1 (cost=0.00..15.53 rows=653 width=24) (actual time=0.010..0.054 rows=653 loops=1)
|
||
Buffers: shared hit=9
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=50.417..50.417 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m_2 (cost=0.00..7258.87 rows=81087 width=54) (actual time=0.005..27.523 rows=80997 loops=1)
|
||
Buffers: shared hit=6448
|
||
-> Index Scan using se_dat on gld od_1 (cost=0.14..0.92 rows=19 width=80) (actual time=0.005..0.005 rows=1 loops=406814)
|
||
Index Cond: ((osm_1.adj_orderdate >= sdat) AND (osm_1.adj_orderdate <= edat))
|
||
Buffers: local hit=813628
|
||
-> Index Scan using se_dat on gld rd_1 (cost=0.14..0.92 rows=19 width=80) (actual time=0.004..0.005 rows=1 loops=406814)
|
||
Index Cond: ((osm_1.adj_requestdate >= sdat) AND (osm_1.adj_requestdate <= edat))
|
||
Buffers: local hit=813628
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=30.201..30.201 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p_2 (cost=0.00..2975.31 rows=36731 width=33) (actual time=0.009..17.401 rows=36699 loops=1)
|
||
Buffers: shared hit=2608
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=1.104..1.104 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
-> CTE Scan on md md_1 (cost=0.00..4.00 rows=200 width=64) (actual time=0.002..0.386 rows=3368 loops=1)
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.063..0.063 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared hit=2
|
||
-> Seq Scan on ffchnl l_1 (cost=0.00..3.39 rows=139 width=25) (actual time=0.011..0.032 rows=139 loops=1)
|
||
Buffers: shared hit=2
|
||
-> GroupAggregate (cost=112931514.84..144274888.60 rows=189959841 width=695) (actual time=16710.998..17936.290 rows=348959 loops=1)
|
||
Group Key: od_2.ssyr, osm_2.adj_orderdate, sd_2.ssyr, (LEAST(GREATEST(osm_2.adj_shipdate, sd_2.sdat), sd_2.edat)), rd_2.ssyr, osm_2.adj_requestdate, (COALESCE(od_2.cm, sd_2.cm)), (COALESCE(sd_2.cm, 'F'::text)), (COALESCE(rd_2.cm, 'F'::text)), (COALESCE(od_2.cy, sd_2.cy)), (COALESCE(sd_2.cy, 'F'::text)), (COALESCE(rd_2.cy, 'F'::text)), osm_2.plnt, osm_2.account, osm_2.bill_cust, osm_2.shipgrp, osm_2.ship_cust, osm_2.chan, l_2.retail, l_2.retailsub, osm_2.promo, osm_2.majg, osm_2.ming, osm_2.majs, osm_2.mins, osm_2.part, (((osm_2.part || ' - '::text) || rtrim(COALESCE(m_3.avdes1, p_3.awdes1)))), (((f_2.f3 || ' - '::text) || f_2.descr)), (((substr(osm_2.part, 1, 8) || ' - '::text) || md_2.descr)), (COALESCE(mg_2.grp, 'Unbranded'::text)), (COALESCE(seg_2.segm, 'Other'::text)), osm_2.quota_rep, (CASE osm_2.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_2.calc_status END), osm_2.c_rate
|
||
Buffers: shared hit=17917 read=49142, local hit=1467704
|
||
I/O Timings: read=4132.855
|
||
-> Sort (cost=112931514.84..113406414.44 rows=189959841 width=584) (actual time=16710.946..16814.969 rows=367211 loops=1)
|
||
Sort Key: od_2.ssyr, osm_2.adj_orderdate, sd_2.ssyr, (LEAST(GREATEST(osm_2.adj_shipdate, sd_2.sdat), sd_2.edat)), rd_2.ssyr, osm_2.adj_requestdate, (COALESCE(od_2.cm, sd_2.cm)), (COALESCE(sd_2.cm, 'F'::text)), (COALESCE(rd_2.cm, 'F'::text)), (COALESCE(od_2.cy, sd_2.cy)), (COALESCE(sd_2.cy, 'F'::text)), (COALESCE(rd_2.cy, 'F'::text)), osm_2.plnt, osm_2.account, osm_2.bill_cust, osm_2.shipgrp, osm_2.ship_cust, osm_2.chan, l_2.retail, l_2.retailsub, osm_2.promo, osm_2.majg, osm_2.ming, osm_2.majs, osm_2.mins, osm_2.part, (((osm_2.part || ' - '::text) || rtrim(COALESCE(m_3.avdes1, p_3.awdes1)))), (((f_2.f3 || ' - '::text) || f_2.descr)), (((substr(osm_2.part, 1, 8) || ' - '::text) || md_2.descr)), (COALESCE(mg_2.grp, 'Unbranded'::text)), (COALESCE(seg_2.segm, 'Other'::text)), osm_2.quota_rep, (CASE osm_2.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_2.calc_status END), osm_2.c_rate
|
||
Sort Method: quicksort Memory: 201623kB
|
||
Buffers: shared hit=17917 read=49142, local hit=1467704
|
||
I/O Timings: read=4132.855
|
||
-> Hash Left Join (cost=11749.79..37465936.67 rows=189959841 width=584) (actual time=154.009..11372.141 rows=367211 loops=1)
|
||
Hash Cond: ((osm_2.bill_class = l_2.bill) AND (osm_2.ship_class = l_2.ship))
|
||
Buffers: shared hit=17917 read=49142, local hit=1467704
|
||
I/O Timings: read=4132.855
|
||
-> Hash Left Join (cost=11744.32..23902628.82 rows=189959841 width=574) (actual time=153.913..10698.691 rows=367211 loops=1)
|
||
Hash Cond: (substr(osm_2.part, 1, 8) = md_2.mold)
|
||
Buffers: shared hit=17915 read=49142, local hit=1467704
|
||
I/O Timings: read=4132.855
|
||
-> Hash Left Join (cost=11737.82..12030132.26 rows=189959841 width=542) (actual time=148.767..10299.042 rows=367211 loops=1)
|
||
Hash Cond: (osm_2.part = p_3.awpart)
|
||
Buffers: shared hit=17915 read=49142, local hit=1467704
|
||
I/O Timings: read=4132.855
|
||
-> Nested Loop Left Join (cost=8303.37..11527995.69 rows=189959841 width=518) (actual time=102.067..10041.030 rows=367211 loops=1)
|
||
Buffers: shared hit=15307 read=49142, local hit=1467704
|
||
I/O Timings: read=4132.855
|
||
-> Nested Loop Left Join (cost=8303.23..670498.91 rows=9825509 width=446) (actual time=102.059..8236.690 rows=367211 loops=1)
|
||
Buffers: shared hit=15307 read=49142, local hit=733854
|
||
I/O Timings: read=4132.855
|
||
-> Hash Left Join (cost=8303.08..108904.23 rows=508216 width=374) (actual time=102.031..6271.278 rows=367211 loops=1)
|
||
Hash Cond: (osm_2.part = m_3.avpart)
|
||
Buffers: shared hit=15307 read=49142, local hit=2
|
||
I/O Timings: read=4132.855
|
||
-> Hash Left Join (cost=30.62..99297.64 rows=508216 width=339) (actual time=6.361..5913.268 rows=367211 loops=1)
|
||
Hash Cond: (substr(osm_2.part, 1, 3) = f_2.f3)
|
||
Buffers: shared hit=8859 read=49142, local hit=2
|
||
I/O Timings: read=4132.855
|
||
-> Hash Left Join (cost=6.93..91650.71 rows=508216 width=315) (actual time=6.219..5568.521 rows=367211 loops=1)
|
||
Hash Cond: ((substr(osm_2.part, 16, 1) = mg_2.f1) AND (osm_2.ming = mg_2.ming))
|
||
Buffers: shared hit=8850 read=49142, local hit=2
|
||
I/O Timings: read=4132.855
|
||
-> Hash Left Join (cost=6.37..87189.88 rows=508216 width=283) (actual time=6.207..5231.289 rows=367211 loops=1)
|
||
Hash Cond: (osm_2.glec = seg_2.glec)
|
||
Buffers: shared hit=8850 read=49142, local hit=2
|
||
I/O Timings: read=4132.855
|
||
-> Hash Left Join (cost=5.92..80265.15 rows=508216 width=255) (actual time=6.193..5042.515 rows=367211 loops=1)
|
||
Hash Cond: (osm_2.fspr = sd_2.fspr)
|
||
Buffers: shared hit=8850 read=49142, local hit=2
|
||
I/O Timings: read=4132.855
|
||
-> Seq Scan on osm osm_2 (cost=0.00..73663.10 rows=508216 width=175) (actual time=6.115..4852.376 rows=367211 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND ((fspr >= '1606'::text) OR (adj_orderdate >= '2016-06-01'::date)))
|
||
Rows Removed by Filter: 417318
|
||
Buffers: shared hit=8850 read=49142
|
||
I/O Timings: read=4132.855
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.064..0.064 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_2 (cost=0.00..3.74 rows=174 width=112) (actual time=0.009..0.036 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.006..0.006 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg seg_2 (cost=0.00..0.28 rows=14 width=64) (actual time=0.002..0.003 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.006..0.006 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg mg_2 (cost=0.00..0.32 rows=16 width=96) (actual time=0.001..0.002 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=0.131..0.131 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared hit=9
|
||
-> Seq Scan on family f_2 (cost=0.00..15.53 rows=653 width=24) (actual time=0.010..0.051 rows=653 loops=1)
|
||
Buffers: shared hit=9
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=95.611..95.611 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m_3 (cost=0.00..7258.87 rows=81087 width=54) (actual time=0.005..42.484 rows=80997 loops=1)
|
||
Buffers: shared hit=6448
|
||
-> Index Scan using se_dat on gld od_2 (cost=0.14..0.92 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=367211)
|
||
Index Cond: ((osm_2.adj_orderdate >= sdat) AND (osm_2.adj_orderdate <= edat))
|
||
Buffers: local hit=733852
|
||
-> Index Scan using se_dat on gld rd_2 (cost=0.14..0.92 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=367211)
|
||
Index Cond: ((osm_2.adj_requestdate >= sdat) AND (osm_2.adj_requestdate <= edat))
|
||
Buffers: local hit=733850
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=46.657..46.657 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p_3 (cost=0.00..2975.31 rows=36731 width=33) (actual time=0.010..23.613 rows=36699 loops=1)
|
||
Buffers: shared hit=2608
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=5.110..5.110 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
-> CTE Scan on md md_2 (cost=0.00..4.00 rows=200 width=64) (actual time=0.002..0.405 rows=3368 loops=1)
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.068..0.068 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared hit=2
|
||
-> Seq Scan on ffchnl l_2 (cost=0.00..3.39 rows=139 width=25) (actual time=0.021..0.039 rows=139 loops=1)
|
||
Buffers: shared hit=2
|
||
CTE agg
|
||
-> GroupAggregate (cost=3990139087947.22..4510710248131.84 rows=1892986037035 width=1404) (actual time=182825.587..189012.716 rows=809487 loops=1)
|
||
Group Key: un.version, un.iter, ((un.oseas)::numeric), un.odate, ((un.sseas)::numeric), un.sdate, ((un.rseas)::numeric), un.rdate, un.om, un.sm, un.rm, un.oy, ((un.odate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.odate <@ so.ytd)), un.sy, ((un.sdate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.sdate <@ ss.ytd)), (CASE WHEN ((upper(so.ytd) - '1 day'::interval) >= un.odate) THEN CASE WHEN ((un.sdate > (upper(so.ytd) - '1 day'::interval)) OR (un.sy = 'F'::text)) THEN CASE WHEN ((upper(so.ytd) - '1 day'::interval) > un.rdate) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE 'Shipped'::text END ELSE 'Not Yet Placed'::text END), un.ry, un.plnt, un.account, (((un.bill_cust || ' - '::text) || rtrim(bc.bvname))), bc.bvctry, bc.bvprcd, un.shipgrp, (((un.ship_cust || ' - '::text) || rtrim(sc.bvname))), sc.bvctry, sc.bvprcd, un.chan, (CASE un.segm WHEN 'Retail'::text THEN un.retail ELSE un.chan END), (CASE un.segm WHEN 'Retail'::text THEN un.retailsub ELSE ''::text END), un.promo, ((un.majg || COALESCE((' - '::text || majg.bqdes), ''::text))), ((un.ming || COALESCE((' - '::text || mmgp.brdes), ''::text))), ((un.majs || COALESCE((' - '::text || sj.bsdes1), ''::text))), ((un.mins || COALESCE((' - '::text || si.bsdes1), ''::text))), un.part, un.part_descr, un.part_family, un.part_group, un.branding, un.segm, (COALESCE(repc.repp, un.quota_rep)), (COALESCE(repc.director, un.quota_rep)), (((un.version || '-'::text) || un.sy)), (((un.version || '-'::text) || un.oy)), (CASE WHEN (un.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) THEN CASE WHEN (un.rdate < CURRENT_DATE) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE un.calc_status END), (((substr(un.part, 9, 3) || '-'::text) || un.branding)), 'Grand Total'::text
|
||
Buffers: shared hit=101605 read=90963, local hit=5658755 read=1, temp read=169551 written=244303
|
||
I/O Timings: read=8179.425
|
||
-> Sort (cost=3990139087947.22..3994871553039.80 rows=1892986037035 width=1346) (actual time=182817.706..183828.314 rows=812229 loops=1)
|
||
Sort Key: un.version, un.iter, ((un.oseas)::numeric), un.odate, ((un.sseas)::numeric), un.sdate, ((un.rseas)::numeric), un.rdate, un.om, un.sm, un.rm, un.oy, ((un.odate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.odate <@ so.ytd)), un.sy, ((un.sdate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.sdate <@ ss.ytd)), (CASE WHEN ((upper(so.ytd) - '1 day'::interval) >= un.odate) THEN CASE WHEN ((un.sdate > (upper(so.ytd) - '1 day'::interval)) OR (un.sy = 'F'::text)) THEN CASE WHEN ((upper(so.ytd) - '1 day'::interval) > un.rdate) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE 'Shipped'::text END ELSE 'Not Yet Placed'::text END), un.ry, un.plnt, un.account, (((un.bill_cust || ' - '::text) || rtrim(bc.bvname))), bc.bvctry, bc.bvprcd, un.shipgrp, (((un.ship_cust || ' - '::text) || rtrim(sc.bvname))), sc.bvctry, sc.bvprcd, un.chan, (CASE un.segm WHEN 'Retail'::text THEN un.retail ELSE un.chan END), (CASE un.segm WHEN 'Retail'::text THEN un.retailsub ELSE ''::text END), un.promo, ((un.majg || COALESCE((' - '::text || majg.bqdes), ''::text))), ((un.ming || COALESCE((' - '::text || mmgp.brdes), ''::text))), ((un.majs || COALESCE((' - '::text || sj.bsdes1), ''::text))), ((un.mins || COALESCE((' - '::text || si.bsdes1), ''::text))), un.part, un.part_descr, un.part_family, un.part_group, un.branding, un.segm, (COALESCE(repc.repp, un.quota_rep)), (COALESCE(repc.director, un.quota_rep)), (((un.version || '-'::text) || un.sy)), (((un.version || '-'::text) || un.oy)), (CASE WHEN (un.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) THEN CASE WHEN (un.rdate < CURRENT_DATE) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE un.calc_status END), (((substr(un.part, 9, 3) || '-'::text) || un.branding))
|
||
Sort Method: external merge Disk: 475848kB
|
||
Buffers: shared hit=101605 read=90963, local hit=5658755 read=1, temp read=169551 written=244303
|
||
I/O Timings: read=8179.425
|
||
-> Merge Right Join (cost=33563712447.31..265517026370.70 rows=1892986037035 width=1346) (actual time=117209.936..123600.017 rows=812229 loops=1)
|
||
Merge Cond: (ss.ssyr = un.sseas)
|
||
Buffers: shared hit=101597 read=90963, local hit=5658755 read=1, temp read=110070 written=184821
|
||
I/O Timings: read=8179.425
|
||
-> Sort (cost=1353.78..1391.63 rows=15138 width=40) (actual time=0.122..0.740 rows=15 loops=1)
|
||
Sort Key: ss.ssyr
|
||
Sort Method: quicksort Memory: 26kB
|
||
Buffers: local hit=2
|
||
-> CTE Scan on std ss (cost=0.00..302.76 rows=15138 width=40) (actual time=0.081..0.117 rows=15 loops=1)
|
||
Buffers: local hit=2
|
||
-> Materialize (cost=33563711093.53..33688759715.34 rows=25009724363 width=1300) (actual time=117198.447..119674.219 rows=812229 loops=1)
|
||
Buffers: shared hit=101597 read=90963, local hit=5658753 read=1, temp read=110070 written=184821
|
||
I/O Timings: read=8179.425
|
||
-> Sort (cost=33563711093.53..33626235404.44 rows=25009724363 width=1300) (actual time=117198.083..117976.508 rows=812229 loops=1)
|
||
Sort Key: un.sseas
|
||
Sort Method: external merge Disk: 445840kB
|
||
Buffers: shared hit=101597 read=90963, local hit=5658753 read=1, temp read=110070 written=146582
|
||
I/O Timings: read=8179.425
|
||
-> Merge Right Join (cost=488162845.81..864134844.69 rows=25009724363 width=1300) (actual time=105501.163..109753.807 rows=812229 loops=1)
|
||
Merge Cond: (so.ssyr = un.oseas)
|
||
Buffers: shared hit=101597 read=90963, local hit=5658753 read=1, temp read=54340 written=90851
|
||
I/O Timings: read=8179.425
|
||
-> Sort (cost=1353.78..1391.63 rows=15138 width=40) (actual time=0.005..0.009 rows=13 loops=1)
|
||
Sort Key: so.ssyr
|
||
Sort Method: quicksort Memory: 26kB
|
||
-> CTE Scan on std so (cost=0.00..302.76 rows=15138 width=40) (actual time=0.000..0.002 rows=15 loops=1)
|
||
-> Materialize (cost=488161492.03..489813607.52 rows=330423099 width=1268) (actual time=105468.884..108956.573 rows=812229 loops=1)
|
||
Buffers: shared hit=101597 read=90963, local hit=5658753 read=1, temp read=54340 written=90851
|
||
I/O Timings: read=8179.425
|
||
-> Sort (cost=488161492.03..488987549.77 rows=330423099 width=1268) (actual time=105419.215..105977.954 rows=812229 loops=1)
|
||
Sort Key: un.oseas
|
||
Sort Method: external merge Disk: 434720kB
|
||
Buffers: shared hit=101597 read=90963, local hit=5658753 read=1, temp read=54340 written=54341
|
||
I/O Timings: read=8179.425
|
||
-> Hash Left Join (cost=30326.40..75489285.22 rows=330423099 width=1268) (actual time=34892.831..94537.687 rows=812229 loops=1)
|
||
Hash Cond: ((un.part = cr.y0part) AND (un.plnt = cr.y0plnt))
|
||
Buffers: shared hit=101597 read=90963, local hit=5658753 read=1
|
||
I/O Timings: read=8179.425
|
||
-> Hash Left Join (cost=22414.65..56426266.97 rows=330423099 width=1262) (actual time=34668.780..93298.840 rows=812229 loops=1)
|
||
Hash Cond: ((un.part = cp.chpart) AND (un.plnt = cp.chplnt))
|
||
Buffers: shared hit=101597 read=85711, local hit=5658753 read=1
|
||
I/O Timings: read=8003.465
|
||
-> Hash Left Join (cost=14299.03..36533966.06 rows=330423099 width=1256) (actual time=34522.917..92143.759 rows=812229 loops=1)
|
||
Hash Cond: ((un.part = cm.cgpart) AND (un.plnt = cm.cgplnt))
|
||
Buffers: shared hit=101597 read=80395, local hit=5658753 read=1
|
||
I/O Timings: read=7920.833
|
||
-> Hash Left Join (cost=7433.88..34026391.85 rows=330423099 width=1250) (actual time=34383.160..90732.988 rows=812229 loops=1)
|
||
Hash Cond: (un.bill_cust = sc.bvcust)
|
||
Buffers: shared hit=101597 read=75888, local hit=5658753 read=1
|
||
I/O Timings: read=7833.063
|
||
-> Hash Left Join (cost=3723.16..29479363.52 rows=330423099 width=1223) (actual time=34366.365..89923.315 rows=812229 loops=1)
|
||
Hash Cond: (un.bill_cust = bc.bvcust)
|
||
Buffers: shared hit=98373 read=75888, local hit=5658753 read=1
|
||
I/O Timings: read=7833.063
|
||
-> Hash Left Join (cost=12.44..24932335.18 rows=330423099 width=1196) (actual time=34277.988..88987.624 rows=812229 loops=1)
|
||
Hash Cond: ((un.ming = mmgp.brmgrp) AND (un.majg = mmgp.brgrp))
|
||
Buffers: shared hit=98373 read=72664, local hit=5658753 read=1
|
||
I/O Timings: read=7758.824
|
||
-> Hash Left Join (cost=7.51..15006668.18 rows=330423099 width=1186) (actual time=34277.622..88269.216 rows=812229 loops=1)
|
||
Hash Cond: (un.majg = majg.bqgrp)
|
||
Buffers: shared hit=98373 read=72663, local hit=5658753 read=1
|
||
I/O Timings: read=7758.524
|
||
-> Hash Left Join (cost=6.24..13569326.43 rows=330423099 width=1176) (actual time=34277.304..87627.015 rows=812229 loops=1)
|
||
Hash Cond: (un.majs = sj.bsmjcd)
|
||
Buffers: shared hit=98373 read=72662, local hit=5658753 read=1
|
||
I/O Timings: read=7758.231
|
||
-> Hash Left Join (cost=6.21..12313718.62 rows=330423099 width=1144) (actual time=34277.281..87019.163 rows=812229 loops=1)
|
||
Hash Cond: ((un.majs = si.bsmjcd) AND (un.mins = si.bsmncd))
|
||
Buffers: shared hit=98372 read=72662, local hit=5658753 read=1
|
||
I/O Timings: read=7758.231
|
||
-> Hash Left Join (cost=3.90..9830091.09 rows=330423099 width=1112) (actual time=34276.887..86204.919 rows=812229 loops=1)
|
||
Hash Cond: (un.quota_rep = repc.rcode)
|
||
Buffers: shared hit=98372 read=72661, local hit=5658753 read=1
|
||
I/O Timings: read=7757.901
|
||
-> CTE Scan on un (cost=0.00..6608461.98 rows=330423099 width=1048) (actual time=34264.293..85100.705 rows=812229 loops=1)
|
||
Buffers: shared hit=98372 read=72635, local hit=5658753 read=1
|
||
I/O Timings: read=7746.456
|
||
-> Hash (cost=2.40..2.40 rows=120 width=96) (actual time=12.582..12.582 rows=120 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 17kB
|
||
Buffers: shared read=26
|
||
I/O Timings: read=11.445
|
||
-> CTE Scan on repc (cost=0.00..2.40 rows=120 width=96) (actual time=2.594..12.537 rows=120 loops=1)
|
||
Buffers: shared read=26
|
||
I/O Timings: read=11.445
|
||
-> Hash (cost=1.32..1.32 rows=66 width=96) (actual time=0.382..0.382 rows=56 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 11kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.330
|
||
-> CTE Scan on si (cost=0.00..1.32 rows=66 width=96) (actual time=0.344..0.363 rows=56 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.330
|
||
-> Hash (cost=0.02..0.02 rows=1 width=64) (actual time=0.016..0.016 rows=11 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
Buffers: shared hit=1
|
||
-> CTE Scan on sj (cost=0.00..0.02 rows=1 width=64) (actual time=0.007..0.013 rows=11 loops=1)
|
||
Buffers: shared hit=1
|
||
-> Hash (cost=1.12..1.12 rows=12 width=14) (actual time=0.312..0.312 rows=12 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.293
|
||
-> Seq Scan on majg (cost=0.00..1.12 rows=12 width=14) (actual time=0.301..0.303 rows=12 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.293
|
||
-> Hash (cost=2.57..2.57 rows=157 width=18) (actual time=0.359..0.359 rows=157 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.300
|
||
-> Seq Scan on mmgp (cost=0.00..2.57 rows=157 width=18) (actual time=0.309..0.326 rows=157 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.300
|
||
-> Hash (cost=3440.32..3440.32 rows=21632 width=35) (actual time=88.356..88.356 rows=21632 loops=1)
|
||
Buckets: 32768 Batches: 1 Memory Usage: 1721kB
|
||
Buffers: shared read=3224
|
||
I/O Timings: read=74.239
|
||
-> Seq Scan on cust bc (cost=0.00..3440.32 rows=21632 width=35) (actual time=0.900..82.368 rows=21632 loops=1)
|
||
Buffers: shared read=3224
|
||
I/O Timings: read=74.239
|
||
-> Hash (cost=3440.32..3440.32 rows=21632 width=35) (actual time=16.771..16.771 rows=21632 loops=1)
|
||
Buckets: 32768 Batches: 1 Memory Usage: 1721kB
|
||
Buffers: shared hit=3224
|
||
-> Seq Scan on cust sc (cost=0.00..3440.32 rows=21632 width=35) (actual time=0.007..10.557 rows=21632 loops=1)
|
||
Buffers: shared hit=3224
|
||
-> Hash (cost=5450.26..5450.26 rows=94326 width=29) (actual time=139.654..139.654 rows=94326 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 6699kB
|
||
Buffers: shared read=4507
|
||
I/O Timings: read=87.770
|
||
-> Seq Scan on icstm cm (cost=0.00..5450.26 rows=94326 width=29) (actual time=1.271..114.520 rows=94326 loops=1)
|
||
Buffers: shared read=4507
|
||
I/O Timings: read=87.770
|
||
-> Hash (cost=6435.85..6435.85 rows=111985 width=20) (actual time=145.806..145.806 rows=111985 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 6768kB
|
||
Buffers: shared read=5316
|
||
I/O Timings: read=82.632
|
||
-> Seq Scan on icstp cp (cost=0.00..6435.85 rows=111985 width=20) (actual time=3.411..114.774 rows=111985 loops=1)
|
||
Buffers: shared read=5316
|
||
I/O Timings: read=82.632
|
||
-> Hash (cost=6315.90..6315.90 rows=106390 width=27) (actual time=223.650..223.650 rows=106390 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7334kB
|
||
Buffers: shared read=5252
|
||
I/O Timings: read=175.960
|
||
-> Seq Scan on icstr cr (cost=0.00..6315.90 rows=106390 width=27) (actual time=1.134..193.496 rows=106390 loops=1)
|
||
Buffers: shared read=5252
|
||
I/O Timings: read=175.960
|
||
-> CTE Scan on agg a (cost=0.00..37859720740.70 rows=1892986037035 width=1520) (actual time=182825.842..192275.884 rows=809487 loops=1)
|
||
Buffers: shared hit=101605 read=90963, local hit=5658755 read=1, temp read=169551 written=302149
|
||
I/O Timings: read=8179.425
|
||
-> CTE Scan on agg a_1 (cost=0.00..43089094668.02 rows=14197395278 width=1520) (actual time=336.760..2113.121 rows=298364 loops=1)
|
||
Filter: ((ocytd OR scytd) AND (version = ANY ('{Actual,Forecast}'::text[])))
|
||
Rows Removed by Filter: 511123
|
||
Buffers: temp read=57847 written=1
|
||
-> CTE Scan on agg a_2 (cost=0.00..43089094668.02 rows=14197395278 width=1520) (actual time=218.764..3615.793 rows=270022 loops=1)
|
||
Filter: ((ocytd OR scytd) AND (version = ANY ('{Actual,Budget}'::text[])))
|
||
Rows Removed by Filter: 539465
|
||
Buffers: temp read=57847
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-e-2-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i>PL/pgSQL function rlarp.osm_ppfa_varto() line 69 at RETURN QUERYWITH
|
||
---------------------------------------segments--------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
SEG AS (
|
||
SELECT
|
||
x.GLEC
|
||
,x.SEGM
|
||
FROM
|
||
(
|
||
VALUES
|
||
('1CU','Retail'),
|
||
('1GR','Greenhouse'),
|
||
('1NU','Nursery'),
|
||
('1RE','Retail'),
|
||
('2WI','Greenhouse'),
|
||
('3BM','Other'),
|
||
('3CO','Other'),
|
||
('3PE','Other'),
|
||
('3PP','Other'),
|
||
('4CO','Other'),
|
||
('4RA','Other'),
|
||
('9MI','Other'),
|
||
('9SA','Other'),
|
||
('9TO','Other')
|
||
) X(GLEC, SEGM)
|
||
)
|
||
---------------------------------------branding flag---------------------------------------------------------------------------------------------------------------------------------------------------
|
||
,MG AS (
|
||
SELECT
|
||
X.F1, X.MING, X.GRP
|
||
FROM
|
||
(
|
||
VALUES
|
||
('L','000','Branded'),
|
||
('L','B10','Branded'),
|
||
('L','B11','Branded'),
|
||
('L','B52','Branded'),
|
||
('L','C10','Branded'),
|
||
('L','D12','Branded'),
|
||
('L','M11','Branded'),
|
||
('L','P12','Branded'),
|
||
('L','P13','Branded'),
|
||
('L','S10','Branded'),
|
||
('L','Y10','Branded'),
|
||
('L','Y11','Branded'),
|
||
('L','Y12','Branded'),
|
||
('P','B10','Branded'),
|
||
('P','B11','Branded'),
|
||
('P','B52','Branded')
|
||
) AS X (F1, MING, GRP)
|
||
)
|
||
---------------------------------------directors-------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
,REPC AS (
|
||
SELECT
|
||
LTRIM(RTRIM(C.A9)) RCODE
|
||
,LTRIM(RTRIM(C.A9)) || ' - ' || C.A30 REPP
|
||
,COALESCE(Q.DIR,'Other') DIRECTOR
|
||
FROM
|
||
LGDAT.CODE C
|
||
LEFT OUTER JOIN RLARP.QRH Q ON
|
||
Q.QR = LTRIM(RTRIM(C.A9))
|
||
WHERE
|
||
C.A2 = 'MM'
|
||
)
|
||
--MOLD DESCRIPTIONS
|
||
,MD AS (
|
||
SELECT
|
||
U.MOLD
|
||
,MAX(U.DESCR) DESCR
|
||
FROM
|
||
(
|
||
SELECT
|
||
SUBSTR(M.AVPART,1,8) MOLD
|
||
,MAX(M.AVDES1) DESCR
|
||
FROM
|
||
LGDAT.STKMM M
|
||
WHERE
|
||
LENGTH(M.AVPART) > 8
|
||
AND SUBSTR(M.AVGLED,1,1) <= '2'
|
||
GROUP BY
|
||
SUBSTR(M.AVPART,1,8)
|
||
UNION ALL
|
||
SELECT
|
||
SUBSTR(P.AWPART,1,8) MOLD
|
||
,MAX(P.AWDES1) DESCR
|
||
FROM
|
||
LGDAT.STKMP P
|
||
WHERE
|
||
LENGTH(P.AWPART) > 8
|
||
AND SUBSTR(P.AWGLED,1,1) <= '2'
|
||
GROUP BY
|
||
SUBSTR(P.AWPART,1,8)
|
||
) U
|
||
GROUP BY
|
||
U.MOLD
|
||
)
|
||
----------------------------------------------------sales major codes----------------------------------------------------------------------------------------------------------------------------------
|
||
,SJ AS (
|
||
SELECT * FROM LGDAT.MMSL WHERE COALESCE(BSMNCD,'') = ''
|
||
)
|
||
----------------------------------------------------sales minor codes----------------------------------------------------------------------------------------------------------------------------------
|
||
,SI AS (
|
||
SELECT * FROM LGDAT.MMSL WHERE COALESCE(BSMNCD,'') <> ''
|
||
)
|
||
----------------------------------------------------date ranges per season------------------------------------------------------------------------------------------------------------------------------
|
||
,seas AS(
|
||
SELECT
|
||
ssyr
|
||
,daterange(MIN(sdat),MAX(edat),'[]') dr
|
||
,current_date <@ daterange(MIN(sdat),MAX(edat),'[]') cy
|
||
FROM
|
||
gld
|
||
GROUP BY
|
||
ssyr
|
||
ORDER BY
|
||
ssyr DESC
|
||
)
|
||
,intv AS (
|
||
SELECT current_date - lower(dr) dy from seas where cy = true
|
||
)
|
||
,std AS (
|
||
SELECT
|
||
s.ssyr
|
||
,s.dr
|
||
,s.cy
|
||
,daterange(lower(dr),dy + LOWER(dr),'[]') ytd
|
||
FROM
|
||
seas s
|
||
CROSS JOIN intv
|
||
)
|
||
---------------------------------------union actual and forecast---------------------------------------------------------------------------------------------------------------------------------------
|
||
,UN AS (
|
||
--plan
|
||
SELECT
|
||
'Budget' AS VERSION
|
||
,'Budget' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE as ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(m.avDES1,p.awDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(m.avNWHT,p.awNWHT) * CASE COALESCE(m.avNWUN, p.awNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSMP OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.VERSION = 'b19'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1901'
|
||
OR OSM.ADJ_ORDERDATE >= '2018-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
--ITER
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(m.avDES1,p.awDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
UNION ALL
|
||
--staged forecast
|
||
SELECT
|
||
'Forecast' AS VERSION
|
||
,'Forecast' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(M.AVNWHT,P.AWNWHT) * CASE COALESCE(M.AVNWUN, P.AWNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSMF OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.VERSION = '5p7'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1901'
|
||
OR OSM.ADJ_ORDERDATE >= '2018-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
--ITER
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
UNION ALL
|
||
--actual
|
||
SELECT
|
||
'Actual' AS VERSION
|
||
,'Actual' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(M.AVNWHT,P.AWNWHT) * CASE COALESCE(M.AVNWUN, P.AWNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSM OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
--AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1606'
|
||
OR OSM.ADJ_ORDERDATE >= '2016-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
)
|
||
---------------------------------------aggregate actual and forecast-----------------------------------------------------------------------------------------------------------------------------------
|
||
,AGG AS (
|
||
SELECT
|
||
un.VERSION::text "version"
|
||
,un.ITER::text "iter"
|
||
,un.OSEAS::numeric oseas
|
||
,un.ODATE::date odate
|
||
,un.SSEAS::numeric sseas
|
||
,un.SDATE::date sdate
|
||
,un.RSEAS::numeric rseas
|
||
,un.RDATE::date rdate
|
||
,un.OM::text om
|
||
,un.SM::text sm
|
||
,un.RM::text rm
|
||
,un.OY::text oy
|
||
,(un.odate <@ _ytd)::boolean ocytd --current year to date
|
||
,(un.odate <@ so.ytd)::boolean oytd --year to date recast for prior/forecast periods
|
||
,un.SY::text sy
|
||
,(un.sdate <@ _ytd)::boolean scytd
|
||
,(un.sdate <@ ss.ytd)::boolean sytd
|
||
--had this order been placed yet? (current day prior year is greater than the order date)
|
||
,CASE WHEN (upper(so.ytd) - interval '1 day') >= un.odate THEN
|
||
--was the order open at this time last year? (for orders that were placed by this time, was the ship date greater then the order date)
|
||
CASE WHEN ((un.sdate > (upper(so.ytd) - interval '1 day')) OR (un.SY = 'F'))
|
||
--for orders that were placed and open at this time last year, was the order considered past due? (current date prior year > request date)
|
||
THEN
|
||
CASE WHEN (upper(so.ytd) - interval '1 day') > un.rdate
|
||
THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE 'Shipped'
|
||
END
|
||
ELSE 'Not Yet Placed'
|
||
END status_py
|
||
,un.RY::text ry
|
||
,un.PLNT::text plnt
|
||
,un.ACCOUNT::text bill_group
|
||
,(un.BILL_CUST || ' - ' || RTRIM(BC.BVNAME))::text bill_cust
|
||
,bc.bvctry bill_ctry
|
||
,bc.bvprcd bill_prov
|
||
,un.SHIPGRP::text ship_group
|
||
,(un.SHIP_CUST || ' - ' || RTRIM(SC.BVNAME))::text ship_cust
|
||
,sc.bvctry ship_ctry
|
||
,sc.bvprcd ship_prov
|
||
,un.CHAN::text chan
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAIL
|
||
ELSE un.CHAN
|
||
END::text mod_chan
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAILSUB
|
||
ELSE ''
|
||
END::text mod_chansub
|
||
,un.PROMO::text promo
|
||
,un.MAJG||COALESCE(' - '||BQDES,'')::text majg
|
||
,un.MING||COALESCE(' - '||BRDES,'')::text ming
|
||
,un.MAJS||COALESCE(' - '||SJ.BSDES1,'')::text majs
|
||
,un.MINS||COALESCE(' - '||SI.BSDES1,'')::text mins
|
||
,un.PART::text part
|
||
,un.PART_DESCR::text part_descr
|
||
,un.PART_FAMILY::text part_family
|
||
,un.PART_GROUP::text part_group
|
||
,un.BRANDING::text branding
|
||
,un.SEGM::text segm
|
||
,COALESCE(REPC.REPP,un.QUOTA_REP)::text quota_rep
|
||
,COALESCE(REPC.DIRECTOR,un.QUOTA_REP)::text director
|
||
,SUM(un.QTY)::numeric qty
|
||
,SUM(un.SALES)::numeric sales
|
||
,SUM(un.STDCOST)::numeric stdcost
|
||
,SUM(un.QTY * COALESCE(cm.cgstcs, cp.chstcs, cr.y0stcs) * un.c_rate)::numeric stdcost_cur
|
||
,SUM(un.POUNDS)::numeric pounds
|
||
,(un.VERSION||'-'||un.SY)::text flag_s
|
||
,(un.VERSION||'-'||un.OY)::text flag_o
|
||
,CASE
|
||
WHEN un.calc_status IN ('BACKORDER','OPEN') THEN
|
||
CASE
|
||
WHEN un.rdate < current_date THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE un.calc_status
|
||
END::text status
|
||
,(SUBSTR(UN.PART,9,3)||'-'||un.BRANDING)::text "options"
|
||
,'Grand Total'::text grandtotal
|
||
FROM
|
||
UN
|
||
LEFT OUTER JOIN REPC ON
|
||
REPC.RCODE = un.QUOTA_REP
|
||
LEFT OUTER JOIN SI ON
|
||
SI.BSMJCD = UN.MAJS
|
||
AND SI.BSMNCD = UN.MINS
|
||
LEFT OUTER JOIN SJ ON
|
||
SJ.BSMJCD = UN.MAJS
|
||
LEFT OUTER JOIN LGDAT.MAJG ON
|
||
BQGRP = un.MAJG
|
||
LEFT OUTER JOIN LGDAT.MMGP ON
|
||
BRMGRP = un.MING
|
||
AND BRGRP = un.MAJG
|
||
LEFT OUTER JOIN LGDAT.CUST BC ON
|
||
BC.BVCUST = UN.BILL_CUST
|
||
LEFT OUTER JOIN LGDAT.CUST SC ON
|
||
SC.BVCUST = UN.BILL_CUST
|
||
LEFT OUTER JOIN LGDAT.ICSTM cm ON
|
||
cm.cgpart = un.part
|
||
AND cm.cgplnt = un.plnt
|
||
LEFT OUTER JOIN LGDAT.ICSTP cp ON
|
||
cp.chpart = un.part
|
||
AND cp.chplnt = un.plnt
|
||
LEFT OUTER JOIN LGDAT.ICSTR cr ON
|
||
cr.y0part = un.part
|
||
AND cr.y0plnt = un.plnt
|
||
LEFT OUTER JOIN STD so ON
|
||
so.ssyr = un.oseas
|
||
LEFT OUTER JOIN STD ss ON
|
||
ss.ssyr = un.sseas
|
||
GROUP BY
|
||
un.VERSION::text
|
||
,un.ITER::text
|
||
,un.OSEAS::numeric
|
||
,un.ODATE::date
|
||
,un.SSEAS::numeric
|
||
,un.SDATE::date
|
||
,un.RSEAS::numeric
|
||
,un.RDATE::date
|
||
,un.OM::text
|
||
,un.SM::text
|
||
,un.RM::text
|
||
,un.OY::text
|
||
--current year to date
|
||
,(un.odate <@ _ytd)::boolean
|
||
--year to date recast for prior/forecast periods
|
||
,(un.odate <@ so.ytd)::boolean
|
||
,un.SY::text
|
||
,(un.sdate <@ _ytd)::boolean
|
||
,(un.sdate <@ ss.ytd)::boolean
|
||
,CASE WHEN (upper(so.ytd) - interval '1 day') >= un.odate THEN
|
||
--was the order open at this time last year? (for orders that were placed by this time, was the ship date greater then the order date)
|
||
CASE WHEN ((un.sdate > (upper(so.ytd) - interval '1 day')) OR (un.SY = 'F'))
|
||
--for orders that were placed and open at this time last year, was the order considered past due? (current date prior year > request date)
|
||
THEN
|
||
CASE WHEN (upper(so.ytd) - interval '1 day') > un.rdate
|
||
THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE 'Shipped'
|
||
END
|
||
ELSE 'Not Yet Placed'
|
||
END
|
||
,un.RY::text
|
||
,un.PLNT::text
|
||
,un.ACCOUNT::text
|
||
,(un.BILL_CUST || ' - ' || RTRIM(BC.BVNAME))::text
|
||
,bc.bvctry
|
||
,bc.bvprcd
|
||
,un.SHIPGRP::text
|
||
,(un.SHIP_CUST || ' - ' || RTRIM(SC.BVNAME))::text
|
||
,sc.bvctry
|
||
,sc.bvprcd
|
||
,un.CHAN::text
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAIL
|
||
ELSE un.CHAN
|
||
END::text
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAILSUB
|
||
ELSE ''
|
||
END::text
|
||
,un.PROMO::text
|
||
,un.MAJG||COALESCE(' - '||BQDES,'')::text
|
||
,un.MING||COALESCE(' - '||BRDES,'')::text
|
||
,un.MAJS||COALESCE(' - '||SJ.BSDES1,'')::text
|
||
,un.MINS||COALESCE(' - '||SI.BSDES1,'')::text
|
||
,un.PART::text
|
||
,un.PART_DESCR::text
|
||
,un.PART_FAMILY::text
|
||
,un.PART_GROUP::text
|
||
,un.BRANDING::text
|
||
,un.SEGM::text
|
||
,COALESCE(REPC.REPP,un.QUOTA_REP)::text
|
||
,COALESCE(REPC.DIRECTOR,un.QUOTA_REP)::text
|
||
,(un.VERSION||'-'||un.SY)::text
|
||
,(un.VERSION||'-'||un.OY)::text
|
||
,CASE
|
||
WHEN un.calc_status IN ('BACKORDER','OPEN') THEN
|
||
CASE
|
||
WHEN un.rdate < current_date THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE un.calc_status
|
||
END::text
|
||
,(SUBSTR(UN.PART,9,3)||'-'||un.BRANDING)::text
|
||
,'Grand Total'::text
|
||
)
|
||
SELECT
|
||
a.version
|
||
,a.iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,a.qty
|
||
,a.sales
|
||
,a.stdcost
|
||
,a.stdcost_cur
|
||
,a.pounds
|
||
,a.flag_s
|
||
,a.flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
agg a
|
||
UNION ALL
|
||
SELECT
|
||
'Var to Fcst' as version
|
||
,'Var to Fcst' as iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.QTY ELSE -a.QTY END::numeric QTY
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.SALES ELSE -a.SALES END::numeric SALES
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST ELSE -a.STDCOST END::numeric STDCOST
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST_CUR ELSE -a.STDCOST_CUR END::numeric STDCOST_CUR
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.POUNDS ELSE -a.POUNDS END::numeric POUNDS
|
||
,'Var to Fcst'||'-'||a.scytd flag_s
|
||
,'Var to Fcst'||'-'||a.ocytd flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
AGG a
|
||
WHERE
|
||
a.VERSION IN ('Actual','Forecast')
|
||
AND (a.ocytd OR a.scytd)
|
||
|
||
UNION ALL
|
||
SELECT
|
||
'Var to Bdgt' as version
|
||
,'Var to Bdgt' as iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.QTY ELSE -a.QTY END::numeric QTY
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.SALES ELSE -a.SALES END::numeric SALES
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST ELSE -a.STDCOST END::numeric STDCOST
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST_CUR ELSE -a.STDCOST_CUR END::numeric STDCOST_CUR
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.POUNDS ELSE -a.POUNDS END::numeric POUNDS
|
||
,'Var to Bdgt'||'-'||a.scytd flag_s
|
||
,'Var to Bdgt'||'-'||a.ocytd flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
AGG a
|
||
WHERE
|
||
a.VERSION IN ('Actual','Budget')
|
||
AND (a.ocytd OR a.scytd)
|
||
;</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 16:48:07
|
||
<b>Duration:</b> 2m28s
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-e-explain-2-2" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Append%20%20%28cost%3D4309162605406.33..4437117814888.42%20rows%3D1835682510591%20width%3D1520%29%20%28actual%20time%3D130217.190..147603.781%20rows%3D1378962%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D37003%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660295%20read%3D1%2C%20temp%20read%3D285365%20written%3D302292%0A%09%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20CTE%20seg%0A%09%20%20%20%20-%3E%20%20Values%20Scan%20on%20%22%2AVALUES%2A%22%20%20%28cost%3D0.00..0.18%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.003..0.006%20rows%3D14%20loops%3D1%29%0A%09%20%20CTE%20mg%0A%09%20%20%20%20-%3E%20%20Values%20Scan%20on%20%22%2AVALUES%2A_1%22%20%20%28cost%3D0.00..0.20%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.003..0.011%20rows%3D16%20loops%3D1%29%0A%09%20%20CTE%20repc%0A%09%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11.47..123.28%20rows%3D120%20width%3D96%29%20%28actual%20time%3D7.419..15.669%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28ltrim%28rtrim%28c.a9%29%29%20%3D%20q.qr%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D25%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D14.644%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20code%20c%20%20%28cost%3D9.21..118.86%20rows%3D120%20width%3D25%29%20%28actual%20time%3D7.351..15.256%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28a2%20%3D%20%27MM%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D21%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D25%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D14.644%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20pk_code%20%20%28cost%3D0.00..9.18%20rows%3D120%20width%3D0%29%20%28actual%20time%3D6.872..6.872%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28a2%20%3D%20%27MM%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D6.737%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.56..1.56%20rows%3D56%20width%3D12%29%20%28actual%20time%3D0.044..0.044%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2011kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20qrh%20q%20%20%28cost%3D0.00..1.56%20rows%3D56%20width%3D12%29%20%28actual%20time%3D0.016..0.024%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20CTE%20md%0A%09%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D11936.00..11938.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D109.370..109.781%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20%28substr%28m.avpart%2C%201%2C%208%29%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Append%20%20%28cost%3D8137.31..11870.54%20rows%3D13091%20width%3D64%29%20%28actual%20time%3D98.760..108.518%20rows%3D3375%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D8137.31..8249.94%20rows%3D9010%20width%3D64%29%20%28actual%20time%3D98.758..99.319%20rows%3D3285%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20substr%28m.avpart%2C%201%2C%208%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m%20%20%28cost%3D0.00..8092.26%20rows%3D9010%20width%3D59%29%20%28actual%20time%3D0.016..53.186%20rows%3D76269%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28length%28avpart%29%20%3E%208%29%20AND%20%28substr%28avgled%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%204728%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D3373.23..3424.24%20rows%3D4081%20width%3D64%29%20%28actual%20time%3D8.960..8.993%20rows%3D90%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20substr%28p.awpart%2C%201%2C%208%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p%20%20%28cost%3D0.00..3352.82%20rows%3D4081%20width%3D52%29%20%28actual%20time%3D0.460..8.898%20rows%3D142%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28length%28awpart%29%20%3E%208%29%20AND%20%28substr%28awgled%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2036557%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20CTE%20sj%0A%09%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmsl%20%20%28cost%3D0.00..1.84%20rows%3D1%20width%3D22%29%20%28actual%20time%3D0.005..0.011%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28COALESCE%28bsmncd%2C%20%27%27%3A%3Atext%29%20%3D%20%27%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2056%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20CTE%20si%0A%09%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmsl%20mmsl_1%20%20%28cost%3D0.00..1.84%20rows%3D66%20width%3D22%29%20%28actual%20time%3D1.513..1.521%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28COALESCE%28bsmncd%2C%20%27%27%3A%3Atext%29%20%3C%3E%20%27%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2011%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1.503%0A%09%20%20CTE%20seas%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D10.22..16.31%20rows%3D174%20width%3D41%29%20%28actual%20time%3D0.067..0.097%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20gld.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D10.22..10.65%20rows%3D174%20width%3D16%29%20%28actual%20time%3D0.052..0.059%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20gld.ssyr%20DESC%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2033kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D16%29%20%28actual%20time%3D0.010..0.030%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20CTE%20intv%0A%09%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seas%20%20%28cost%3D0.00..4.13%20rows%3D87%20width%3D4%29%20%28actual%20time%3D0.078..0.079%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20cy%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2014%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20CTE%20std%0A%09%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D0.00..457.62%20rows%3D15138%20width%3D73%29%20%28actual%20time%3D0.081..0.114%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20intv%20%20%28cost%3D0.00..1.74%20rows%3D87%20width%3D4%29%20%28actual%20time%3D0.078..0.079%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seas%20s%20%20%28cost%3D0.00..3.48%20rows%3D174%20width%3D41%29%20%28actual%20time%3D0.000..0.027%20rows%3D15%20loops%3D1%29%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D50003223.80..244355794.95%20rows%3D315685415%20width%3D697%29%20%28actual%20time%3D24427.622..55248.745%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D33769%20read%3D137238%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5418.990%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D50003223.80..63823292.65%20rows%3D83757993%20width%3D701%29%20%28actual%20time%3D24427.621..26180.035%20rows%3D212793%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20osm.adj_orderdate%2C%20sd.ssyr%2C%20%28LEAST%28GREATEST%28osm.adj_shipdate%2C%20sd.sdat%29%2C%20sd.edat%29%29%2C%20rd.ssyr%2C%20osm.adj_requestdate%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm.plnt%2C%20osm.account%2C%20osm.bill_cust%2C%20osm.shipgrp%2C%20osm.ship_cust%2C%20osm.chan%2C%20l.retail%2C%20l.retailsub%2C%20osm.promo%2C%20osm.majg%2C%20osm.ming%2C%20osm.majs%2C%20osm.mins%2C%20osm.part%2C%20%28%28%28osm.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_1.avdes1%2C%20p_1.awdes1%29%29%29%29%2C%20%28%28%28f.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f.descr%29%29%2C%20%28%28%28substr%28osm.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md.descr%29%29%2C%20%28COALESCE%28mg.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm.quota_rep%2C%20%28CASE%20osm.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm.calc_status%20END%29%2C%20osm.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9106%20read%3D59430%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2239.382%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D50003223.80..50212618.79%20rows%3D83757993%20width%3D594%29%20%28actual%20time%3D24427.582..24584.713%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20osm.adj_orderdate%2C%20sd.ssyr%2C%20%28LEAST%28GREATEST%28osm.adj_shipdate%2C%20sd.sdat%29%2C%20sd.edat%29%29%2C%20rd.ssyr%2C%20osm.adj_requestdate%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm.plnt%2C%20osm.account%2C%20osm.bill_cust%2C%20osm.shipgrp%2C%20osm.ship_cust%2C%20osm.chan%2C%20l.retail%2C%20l.retailsub%2C%20osm.promo%2C%20osm.majg%2C%20osm.ming%2C%20osm.majs%2C%20osm.mins%2C%20osm.part%2C%20%28%28%28osm.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_1.avdes1%2C%20p_1.awdes1%29%29%29%29%2C%20%28%28%28f.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f.descr%29%29%2C%20%28%28%28substr%28osm.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md.descr%29%29%2C%20%28COALESCE%28mg.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm.quota_rep%2C%20%28CASE%20osm.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm.calc_status%20END%29%2C%20osm.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20352782kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9106%20read%3D59430%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2239.382%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..16650773.71%20rows%3D83757993%20width%3D594%29%20%28actual%20time%3D594.631..11450.131%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm.bill_class%20%3D%20l.bill%29%20AND%20%28osm.ship_class%20%3D%20l.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9103%20read%3D59430%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2239.382%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..10583311.94%20rows%3D83757993%20width%3D583%29%20%28actual%20time%3D594.565..10651.699%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm.part%2C%201%2C%208%29%20%3D%20md.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9101%20read%3D59430%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2239.382%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..5348430.88%20rows%3D83757993%20width%3D551%29%20%28actual%20time%3D483.328..10064.882%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.part%20%3D%20p_1.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D45%20read%3D59430%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2239.382%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..5125106.33%20rows%3D83757993%20width%3D527%29%20%28actual%20time%3D372.833..9705.810%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D43%20read%3D56824%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2158.329%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..337594.45%20rows%3D4332310%20width%3D455%29%20%28actual%20time%3D372.826..7154.118%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D43%20read%3D56824%2C%20local%20hit%3D1281897%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2158.329%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..89964.52%20rows%3D224085%20width%3D383%29%20%28actual%20time%3D372.784..4519.221%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.part%20%3D%20m_1.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D43%20read%3D56824%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2158.311%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..81103.81%20rows%3D224085%20width%3D348%29%20%28actual%20time%3D1.380..3884.310%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm.part%2C%201%2C%203%29%20%3D%20f.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D41%20read%3D50378%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1843.013%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..77718.84%20rows%3D224085%20width%3D324%29%20%28actual%20time%3D1.257..3476.551%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm.part%2C%2016%2C%201%29%20%3D%20mg.f1%29%20AND%20%28osm.ming%20%3D%20mg.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32%20read%3D50378%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1843.013%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..75750.09%20rows%3D224085%20width%3D292%29%20%28actual%20time%3D1.228..3039.988%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.glec%20%3D%20seg.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32%20read%3D50378%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1843.013%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..72674.81%20rows%3D224085%20width%3D264%29%20%28actual%20time%3D1.210..2805.095%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32%20read%3D50378%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1843.013%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmp%20osm%20%20%28cost%3D0.00..69587.73%20rows%3D224085%20width%3D184%29%20%28actual%20time%3D1.134..2545.900%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28version%20%3D%20%27b19%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271901%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272018-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2057051%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32%20read%3D50378%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1843.013%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.058..0.058%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.010..0.033%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.013..0.013%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.005..0.011%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.018..0.018%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.003..0.015%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.118..0.118%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.017..0.054%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D371.346..371.346%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D6446%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D315.299%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_1%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D1.087..344.662%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D6446%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D315.299%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D641010%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1281895%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.018%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D641010%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1281894%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D110.296..110.296%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D2606%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D81.053%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_1%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D0.977..97.487%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D2606%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D81.053%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D111.215..111.215%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D109.374..110.690%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.051..0.051%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.012..0.026%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D33445583.00..42801951.72%20rows%3D56705265%20width%3D699%29%20%28actual%20time%3D16460.682..17590.319%20rows%3D250477%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20osm_1.adj_orderdate%2C%20sd_1.ssyr%2C%20%28LEAST%28GREATEST%28osm_1.adj_shipdate%2C%20sd_1.sdat%29%2C%20sd_1.edat%29%29%2C%20rd_1.ssyr%2C%20osm_1.adj_requestdate%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_1.plnt%2C%20osm_1.account%2C%20osm_1.bill_cust%2C%20osm_1.shipgrp%2C%20osm_1.ship_cust%2C%20osm_1.chan%2C%20l_1.retail%2C%20l_1.retailsub%2C%20osm_1.promo%2C%20osm_1.majg%2C%20osm_1.ming%2C%20osm_1.majs%2C%20osm_1.mins%2C%20osm_1.part%2C%20%28%28%28osm_1.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_2.avdes1%2C%20p_2.awdes1%29%29%29%29%2C%20%28%28%28f_1.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_1.descr%29%29%2C%20%28%28%28substr%28osm_1.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_1.descr%29%29%2C%20%28COALESCE%28mg_1.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_1.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_1.quota_rep%2C%20%28CASE%20osm_1.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_1.calc_status%20END%29%2C%20osm_1.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9067%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D33445583.00..33587346.16%20rows%3D56705265%20width%3D595%29%20%28actual%20time%3D16460.650..16563.021%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20osm_1.adj_orderdate%2C%20sd_1.ssyr%2C%20%28LEAST%28GREATEST%28osm_1.adj_shipdate%2C%20sd_1.sdat%29%2C%20sd_1.edat%29%29%2C%20rd_1.ssyr%2C%20osm_1.adj_requestdate%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_1.plnt%2C%20osm_1.account%2C%20osm_1.bill_cust%2C%20osm_1.shipgrp%2C%20osm_1.ship_cust%2C%20osm_1.chan%2C%20l_1.retail%2C%20l_1.retailsub%2C%20osm_1.promo%2C%20osm_1.majg%2C%20osm_1.ming%2C%20osm_1.majs%2C%20osm_1.mins%2C%20osm_1.part%2C%20%28%28%28osm_1.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_2.avdes1%2C%20p_2.awdes1%29%29%29%29%2C%20%28%28%28f_1.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_1.descr%29%29%2C%20%28%28%28substr%28osm_1.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_1.descr%29%29%2C%20%28COALESCE%28mg_1.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_1.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_1.quota_rep%2C%20%28CASE%20osm_1.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_1.calc_status%20END%29%2C%20osm_1.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20222052kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9067%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..11025086.80%20rows%3D56705265%20width%3D595%29%20%28actual%20time%3D61.424..7759.480%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm_1.bill_class%20%3D%20l_1.bill%29%20AND%20%28osm_1.ship_class%20%3D%20l_1.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9067%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..6967724.27%20rows%3D55168846%20width%3D584%29%20%28actual%20time%3D61.349..7305.324%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_1.part%2C%201%2C%208%29%20%3D%20md_1.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9065%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..3519664.90%20rows%3D55168846%20width%3D552%29%20%28actual%20time%3D60.509..6993.509%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.part%20%3D%20p_2.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9065%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..3371395.52%20rows%3D55168846%20width%3D528%29%20%28actual%20time%3D43.514..6803.629%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6457%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..217901.28%20rows%3D2853561%20width%3D456%29%20%28actual%20time%3D43.508..5300.883%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6457%20read%3D26345%2C%20local%20hit%3D813630%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..54789.49%20rows%3D147598%20width%3D384%29%20%28actual%20time%3D43.490..3729.138%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.part%20%3D%20m_2.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6457%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..46129.57%20rows%3D147598%20width%3D349%29%20%28actual%20time%3D5.697..3467.540%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_1.part%2C%201%2C%203%29%20%3D%20f_1.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..43891.91%20rows%3D147598%20width%3D325%29%20%28actual%20time%3D5.585..3211.131%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm_1.part%2C%2016%2C%201%29%20%3D%20mg_1.f1%29%20AND%20%28osm_1.ming%20%3D%20mg_1.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..42594.49%20rows%3D147598%20width%3D293%29%20%28actual%20time%3D5.575..2952.469%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.glec%20%3D%20seg_1.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..40564.57%20rows%3D147598%20width%3D265%29%20%28actual%20time%3D5.564..2812.752%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.fspr%20%3D%20sd_1.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmf%20osm_1%20%20%28cost%3D0.00..38529.18%20rows%3D147598%20width%3D185%29%20%28actual%20time%3D5.391..2669.916%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28version%20%3D%20%275p7%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271901%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272018-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.158..0.158%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.080..0.111%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.006..0.006%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20seg_1%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.002..0.004%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.005..0.005%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20mg_1%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.001..0.002%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.108..0.108%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f_1%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.010..0.047%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D37.738..37.738%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_2%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D0.007..22.454%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od_1%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813628%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd_1%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813628%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D16.826..16.826%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_2%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D0.007..9.949%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.825..0.825%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20md_1%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.002..0.290%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.045..0.045%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l_1%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.008..0.022%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D104083613.45..132995269.35%20rows%3D175222157%20width%3D695%29%20%28actual%20time%3D10242.201..11403.381%20rows%3D349322%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_2.ssyr%2C%20osm_2.adj_orderdate%2C%20sd_2.ssyr%2C%20%28LEAST%28GREATEST%28osm_2.adj_shipdate%2C%20sd_2.sdat%29%2C%20sd_2.edat%29%29%2C%20rd_2.ssyr%2C%20osm_2.adj_requestdate%2C%20%28COALESCE%28od_2.cm%2C%20sd_2.cm%29%29%2C%20%28COALESCE%28sd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_2.cy%2C%20sd_2.cy%29%29%2C%20%28COALESCE%28sd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_2.plnt%2C%20osm_2.account%2C%20osm_2.bill_cust%2C%20osm_2.shipgrp%2C%20osm_2.ship_cust%2C%20osm_2.chan%2C%20l_2.retail%2C%20l_2.retailsub%2C%20osm_2.promo%2C%20osm_2.majg%2C%20osm_2.ming%2C%20osm_2.majs%2C%20osm_2.mins%2C%20osm_2.part%2C%20%28%28%28osm_2.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_3.avdes1%2C%20p_3.awdes1%29%29%29%29%2C%20%28%28%28f_2.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_2.descr%29%29%2C%20%28%28%28substr%28osm_2.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_2.descr%29%29%2C%20%28COALESCE%28mg_2.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_2.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_2.quota_rep%2C%20%28CASE%20osm_2.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_2.calc_status%20END%29%2C%20osm_2.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D15596%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D1469244%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D104083613.45..104521668.84%20rows%3D175222157%20width%3D584%29%20%28actual%20time%3D10242.147..10337.649%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_2.ssyr%2C%20osm_2.adj_orderdate%2C%20sd_2.ssyr%2C%20%28LEAST%28GREATEST%28osm_2.adj_shipdate%2C%20sd_2.sdat%29%2C%20sd_2.edat%29%29%2C%20rd_2.ssyr%2C%20osm_2.adj_requestdate%2C%20%28COALESCE%28od_2.cm%2C%20sd_2.cm%29%29%2C%20%28COALESCE%28sd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_2.cy%2C%20sd_2.cy%29%29%2C%20%28COALESCE%28sd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_2.plnt%2C%20osm_2.account%2C%20osm_2.bill_cust%2C%20osm_2.shipgrp%2C%20osm_2.ship_cust%2C%20osm_2.chan%2C%20l_2.retail%2C%20l_2.retailsub%2C%20osm_2.promo%2C%20osm_2.majg%2C%20osm_2.ming%2C%20osm_2.majs%2C%20osm_2.mins%2C%20osm_2.part%2C%20%28%28%28osm_2.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_3.avdes1%2C%20p_3.awdes1%29%29%29%29%2C%20%28%28%28f_2.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_2.descr%29%29%2C%20%28%28%28substr%28osm_2.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_2.descr%29%29%2C%20%28COALESCE%28mg_2.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_2.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_2.quota_rep%2C%20%28CASE%20osm_2.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_2.calc_status%20END%29%2C%20osm_2.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20201821kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D15596%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D1469244%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..34574966.31%20rows%3D175222157%20width%3D584%29%20%28actual%20time%3D54.045..5505.369%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm_2.bill_class%20%3D%20l_2.bill%29%20AND%20%28osm_2.ship_class%20%3D%20l_2.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D15596%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D1469244%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..22053510.74%20rows%3D175222157%20width%3D572%29%20%28actual%20time%3D53.991..5099.469%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_2.part%2C%201%2C%208%29%20%3D%20md_2.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D15594%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D1469244%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..11102119.43%20rows%3D175222157%20width%3D540%29%20%28actual%20time%3D53.191..4854.338%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.part%20%3D%20p_3.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D15594%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D1469244%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..10638673.75%20rows%3D175222157%20width%3D516%29%20%28actual%20time%3D37.296..4707.080%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D12986%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D1469244%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..623511.84%20rows%3D9063215%20width%3D444%29%20%28actual%20time%3D37.291..3491.892%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D12986%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D734624%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..105486.21%20rows%3D468787%20width%3D372%29%20%28actual%20time%3D37.263..2223.924%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.part%20%3D%20m_3.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D12986%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..95983.12%20rows%3D468787%20width%3D337%29%20%28actual%20time%3D0.270..2039.720%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_2.part%2C%201%2C%203%29%20%3D%20f_2.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6538%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..88927.62%20rows%3D468787%20width%3D313%29%20%28actual%20time%3D0.129..1823.936%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm_2.part%2C%2016%2C%201%29%20%3D%20mg_2.f1%29%20AND%20%28osm_2.ming%20%3D%20mg_2.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6529%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..84811.93%20rows%3D468787%20width%3D281%29%20%28actual%20time%3D0.119..1623.505%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.glec%20%3D%20seg_2.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6529%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..78421.13%20rows%3D468787%20width%3D253%29%20%28actual%20time%3D0.111..1504.191%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.fspr%20%3D%20sd_2.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6529%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osm%20osm_2%20%20%28cost%3D0.00..72340.04%20rows%3D468787%20width%3D173%29%20%28actual%20time%3D0.052..1372.311%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271606%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272016-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20417392%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6529%20read%3D51463%20dirtied%3D4%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.053..0.053%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_2%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.007..0.029%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.006..0.006%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20seg_2%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.002..0.003%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.006..0.006%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20mg_2%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.001..0.002%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.136..0.136%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f_2%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.008..0.047%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D36.937..36.937%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_3%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D0.006..22.525%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od_2%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D367596%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_2.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_2.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D734622%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd_2%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D367596%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_2.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm_2.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D734620%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D15.858..15.858%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_3%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D0.007..9.906%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.788..0.788%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20md_2%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.002..0.291%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.043..0.043%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l_2%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.007..0.021%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20CTE%20agg%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D3811565832720.57..4308918237067.99%20rows%3D1808554197627%20width%3D1404%29%20%28actual%20time%3D130217.184..134929.396%20rows%3D809850%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20un.version%2C%20un.iter%2C%20%28%28un.oseas%29%3A%3Anumeric%29%2C%20un.odate%2C%20%28%28un.sseas%29%3A%3Anumeric%29%2C%20un.sdate%2C%20%28%28un.rseas%29%3A%3Anumeric%29%2C%20un.rdate%2C%20un.om%2C%20un.sm%2C%20un.rm%2C%20un.oy%2C%20%28%28un.odate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.odate%20%3C%40%20so.ytd%29%29%2C%20un.sy%2C%20%28%28un.sdate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.sdate%20%3C%40%20ss.ytd%29%29%2C%20%28CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%3D%20un.odate%29%20THEN%20CASE%20WHEN%20%28%28un.sdate%20%3E%20%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%29%20OR%20%28un.sy%20%3D%20%27F%27%3A%3Atext%29%29%20THEN%20CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%20un.rdate%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20%27Shipped%27%3A%3Atext%20END%20ELSE%20%27Not%20Yet%20Placed%27%3A%3Atext%20END%29%2C%20un.ry%2C%20un.plnt%2C%20un.account%2C%20%28%28%28un.bill_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28bc.bvname%29%29%29%2C%20bc.bvctry%2C%20bc.bvprcd%2C%20un.shipgrp%2C%20%28%28%28un.ship_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28sc.bvname%29%29%29%2C%20sc.bvctry%2C%20sc.bvprcd%2C%20un.chan%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retail%20ELSE%20un.chan%20END%29%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retailsub%20ELSE%20%27%27%3A%3Atext%20END%29%2C%20un.promo%2C%20%28%28un.majg%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20majg.bqdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.ming%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20mmgp.brdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.majs%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20sj.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.mins%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20si.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20un.part%2C%20un.part_descr%2C%20un.part_family%2C%20un.part_group%2C%20un.branding%2C%20un.segm%2C%20%28COALESCE%28repc.repp%2C%20un.quota_rep%29%29%2C%20%28COALESCE%28repc.director%2C%20un.quota_rep%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.sy%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.oy%29%29%2C%20%28CASE%20WHEN%20%28un.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20THEN%20CASE%20WHEN%20%28un.rdate%20%3C%20CURRENT_DATE%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20un.calc_status%20END%29%2C%20%28%28%28substr%28un.part%2C%209%2C%203%29%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.branding%29%29%2C%20%27Grand%20Total%27%3A%3Atext%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D37003%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660295%20read%3D1%2C%20temp%20read%3D169623%20written%3D244421%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D3811565832720.57..3816087218214.63%20rows%3D1808554197627%20width%3D1346%29%20%28actual%20time%3D130217.139..131170.872%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.version%2C%20un.iter%2C%20%28%28un.oseas%29%3A%3Anumeric%29%2C%20un.odate%2C%20%28%28un.sseas%29%3A%3Anumeric%29%2C%20un.sdate%2C%20%28%28un.rseas%29%3A%3Anumeric%29%2C%20un.rdate%2C%20un.om%2C%20un.sm%2C%20un.rm%2C%20un.oy%2C%20%28%28un.odate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.odate%20%3C%40%20so.ytd%29%29%2C%20un.sy%2C%20%28%28un.sdate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.sdate%20%3C%40%20ss.ytd%29%29%2C%20%28CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%3D%20un.odate%29%20THEN%20CASE%20WHEN%20%28%28un.sdate%20%3E%20%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%29%20OR%20%28un.sy%20%3D%20%27F%27%3A%3Atext%29%29%20THEN%20CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%20un.rdate%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20%27Shipped%27%3A%3Atext%20END%20ELSE%20%27Not%20Yet%20Placed%27%3A%3Atext%20END%29%2C%20un.ry%2C%20un.plnt%2C%20un.account%2C%20%28%28%28un.bill_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28bc.bvname%29%29%29%2C%20bc.bvctry%2C%20bc.bvprcd%2C%20un.shipgrp%2C%20%28%28%28un.ship_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28sc.bvname%29%29%29%2C%20sc.bvctry%2C%20sc.bvprcd%2C%20un.chan%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retail%20ELSE%20un.chan%20END%29%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retailsub%20ELSE%20%27%27%3A%3Atext%20END%29%2C%20un.promo%2C%20%28%28un.majg%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20majg.bqdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.ming%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20mmgp.brdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.majs%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20sj.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.mins%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20si.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20un.part%2C%20un.part_descr%2C%20un.part_family%2C%20un.part_group%2C%20un.branding%2C%20un.segm%2C%20%28COALESCE%28repc.repp%2C%20un.quota_rep%29%29%2C%20%28COALESCE%28repc.director%2C%20un.quota_rep%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.sy%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.oy%29%29%2C%20%28CASE%20WHEN%20%28un.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20THEN%20CASE%20WHEN%20%28un.rdate%20%3C%20CURRENT_DATE%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20un.calc_status%20END%29%2C%20%28%28%28substr%28un.part%2C%209%2C%203%29%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.branding%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20476048kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D37003%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660295%20read%3D1%2C%20temp%20read%3D169623%20written%3D244421%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Merge%20Right%20Join%20%20%28cost%3D32058721370.12..253666346227.77%20rows%3D1808554197627%20width%3D1346%29%20%28actual%20time%3D79725.467..85819.348%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Merge%20Cond%3A%20%28ss.ssyr%20%3D%20un.sseas%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660295%20read%3D1%2C%20temp%20read%3D110117%20written%3D184914%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D1353.78..1391.63%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.123..0.131%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20ss.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20std%20ss%20%20%28cost%3D0.00..302.76%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.082..0.119%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D32058720016.34..32178191161.64%20rows%3D23894229061%20width%3D1300%29%20%28actual%20time%3D79718.116..82479.293%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%2C%20temp%20read%3D110117%20written%3D184914%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D32058720016.34..32118455588.99%20rows%3D23894229061%20width%3D1300%29%20%28actual%20time%3D79718.091..80948.227%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.sseas%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20446032kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%2C%20temp%20read%3D110117%20written%3D146652%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Merge%20Right%20Join%20%20%28cost%3D466287095.31..825489820.45%20rows%3D23894229061%20width%3D1300%29%20%28actual%20time%3D67066.711..71526.574%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Merge%20Cond%3A%20%28so.ssyr%20%3D%20un.oseas%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%2C%20temp%20read%3D54363%20written%3D90897%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D1353.78..1391.63%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.004..0.008%20rows%3D13%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20so.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20std%20so%20%20%28cost%3D0.00..302.76%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.000..0.002%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D466285741.52..467864168.60%20rows%3D315685415%20width%3D1268%29%20%28actual%20time%3D67055.329..70663.573%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%2C%20temp%20read%3D54363%20written%3D90897%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D466285741.52..467074955.06%20rows%3D315685415%20width%3D1268%29%20%28actual%20time%3D67050.634..68022.803%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.oseas%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20434904kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%2C%20temp%20read%3D54363%20written%3D54364%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30326.40..72123629.81%20rows%3D315685415%20width%3D1268%29%20%28actual%20time%3D24989.685..60611.536%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cr.y0part%29%20AND%20%28un.plnt%20%3D%20cr.y0plnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D22414.65..53910516.25%20rows%3D315685415%20width%3D1262%29%20%28actual%20time%3D24857.162..60071.090%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cp.chpart%29%20AND%20%28un.plnt%20%3D%20cp.chplnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D150313%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5704.175%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D14299.03..34905098.97%20rows%3D315685415%20width%3D1256%29%20%28actual%20time%3D24690.716..59482.739%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cm.cgpart%29%20AND%20%28un.plnt%20%3D%20cm.cgplnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D144997%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5598.963%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D7433.88..32509062.54%20rows%3D315685415%20width%3D1250%29%20%28actual%20time%3D24542.324..58815.424%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.bill_cust%20%3D%20sc.bvcust%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D140490%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5507.001%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D3723.16..28164677.36%20rows%3D315685415%20width%3D1223%29%20%28actual%20time%3D24531.977..58466.240%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.bill_cust%20%3D%20bc.bvcust%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D33771%20read%3D140490%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5507.001%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D12.44..23820292.19%20rows%3D315685415%20width%3D1196%29%20%28actual%20time%3D24445.824..58031.724%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.ming%20%3D%20mmgp.brmgrp%29%20AND%20%28un.majg%20%3D%20mmgp.brgrp%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D33771%20read%3D137266%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5435.817%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D7.51..14337334.16%20rows%3D315685415%20width%3D1186%29%20%28actual%20time%3D24445.412..57697.186%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.majg%20%3D%20majg.bqgrp%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D33771%20read%3D137265%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5435.479%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.24..12964101.34%20rows%3D315685415%20width%3D1176%29%20%28actual%20time%3D24445.051..57415.327%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.majs%20%3D%20sj.bsmjcd%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D33771%20read%3D137264%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5435.137%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.21..11764496.73%20rows%3D315685415%20width%3D1144%29%20%28actual%20time%3D24445.027..57139.761%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.majs%20%3D%20si.bsmjcd%29%20AND%20%28un.mins%20%3D%20si.bsmncd%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D33770%20read%3D137264%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5435.137%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D3.90..9391645.00%20rows%3D315685415%20width%3D1112%29%20%28actual%20time%3D24443.462..56809.926%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.quota_rep%20%3D%20repc.rcode%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D33770%20read%3D137263%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5433.634%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..6313708.30%20rows%3D315685415%20width%3D1048%29%20%28actual%20time%3D24427.626..56309.934%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D33769%20read%3D137238%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5418.990%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2.40..2.40%20rows%3D120%20width%3D96%29%20%28actual%20time%3D15.823..15.823%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2017kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D25%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D14.644%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20repc%20%20%28cost%3D0.00..2.40%20rows%3D120%20width%3D96%29%20%28actual%20time%3D7.422..15.771%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D25%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D14.644%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.32..1.32%20rows%3D66%20width%3D96%29%20%28actual%20time%3D1.556..1.556%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2011kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1.503%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20si%20%20%28cost%3D0.00..1.32%20rows%3D66%20width%3D96%29%20%28actual%20time%3D1.516..1.541%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1.503%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.02..0.02%20rows%3D1%20width%3D64%29%20%28actual%20time%3D0.017..0.017%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20sj%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D64%29%20%28actual%20time%3D0.006..0.014%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.12..1.12%20rows%3D12%20width%3D14%29%20%28actual%20time%3D0.357..0.357%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.342%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20majg%20%20%28cost%3D0.00..1.12%20rows%3D12%20width%3D14%29%20%28actual%20time%3D0.349..0.351%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.342%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2.57..2.57%20rows%3D157%20width%3D18%29%20%28actual%20time%3D0.404..0.404%20rows%3D157%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.338%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmgp%20%20%28cost%3D0.00..2.57%20rows%3D157%20width%3D18%29%20%28actual%20time%3D0.350..0.369%20rows%3D157%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.338%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3440.32..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D86.128..86.128%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2032768%20%20Batches%3A%201%20%20Memory%20Usage%3A%201721kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D71.184%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20cust%20bc%20%20%28cost%3D0.00..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D1.719..80.386%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D71.184%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3440.32..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D10.320..10.320%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2032768%20%20Batches%3A%201%20%20Memory%20Usage%3A%201721kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20cust%20sc%20%20%28cost%3D0.00..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D0.007..6.682%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D5450.26..5450.26%20rows%3D94326%20width%3D29%29%20%28actual%20time%3D148.322..148.322%20rows%3D94326%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%206699kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4507%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D91.962%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstm%20cm%20%20%28cost%3D0.00..5450.26%20rows%3D94326%20width%3D29%29%20%28actual%20time%3D1.674..121.636%20rows%3D94326%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4507%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D91.962%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D6435.85..6435.85%20rows%3D111985%20width%3D20%29%20%28actual%20time%3D166.382..166.382%20rows%3D111985%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%206768kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5316%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D105.211%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstp%20cp%20%20%28cost%3D0.00..6435.85%20rows%3D111985%20width%3D20%29%20%28actual%20time%3D2.877..136.300%20rows%3D111985%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5316%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D105.211%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D6315.90..6315.90%20rows%3D106390%20width%3D27%29%20%28actual%20time%3D132.044..132.044%20rows%3D106390%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207334kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5252%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D92.401%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstr%20cr%20%20%28cost%3D0.00..6315.90%20rows%3D106390%20width%3D27%29%20%28actual%20time%3D1.095..107.748%20rows%3D106390%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5252%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D92.401%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a%20%20%28cost%3D0.00..36171083952.54%20rows%3D1808554197627%20width%3D1520%29%20%28actual%20time%3D130217.189..139003.919%20rows%3D809850%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D37003%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660295%20read%3D1%2C%20temp%20read%3D169623%20written%3D302291%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a_1%20%20%28cost%3D0.00..41167214923.48%20rows%3D13564156482%20width%3D1520%29%20%28actual%20time%3D313.638..4190.172%20rows%3D298727%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Filter%3A%20%28%28ocytd%20OR%20scytd%29%20AND%20%28version%20%3D%20ANY%20%28%27%7BActual%2CForecast%7D%27%3A%3Atext%5B%5D%29%29%29%0A%09%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20511123%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20temp%20read%3D57871%20written%3D1%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a_2%20%20%28cost%3D0.00..41167214923.48%20rows%3D13564156482%20width%3D1520%29%20%28actual%20time%3D77.645..4240.941%20rows%3D270385%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Filter%3A%20%28%28ocytd%20OR%20scytd%29%20AND%20%28version%20%3D%20ANY%20%28%27%7BActual%2CBudget%7D%27%3A%3Atext%5B%5D%29%29%29%0A%09%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20539465%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20temp%20read%3D57871%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Append (cost=4309162605406.33..4437117814888.42 rows=1835682510591 width=1520) (actual time=130217.190..147603.781 rows=1378962 loops=1)
|
||
Buffers: shared hit=37003 read=155565 dirtied=4, local hit=5660295 read=1, temp read=285365 written=302292
|
||
I/O Timings: read=5796.575
|
||
CTE seg
|
||
-> Values Scan on "*VALUES*" (cost=0.00..0.18 rows=14 width=64) (actual time=0.003..0.006 rows=14 loops=1)
|
||
CTE mg
|
||
-> Values Scan on "*VALUES*_1" (cost=0.00..0.20 rows=16 width=96) (actual time=0.003..0.011 rows=16 loops=1)
|
||
CTE repc
|
||
-> Hash Left Join (cost=11.47..123.28 rows=120 width=96) (actual time=7.419..15.669 rows=120 loops=1)
|
||
Hash Cond: (ltrim(rtrim(c.a9)) = q.qr)
|
||
Buffers: shared hit=1 read=25
|
||
I/O Timings: read=14.644
|
||
-> Bitmap Heap Scan on code c (cost=9.21..118.86 rows=120 width=25) (actual time=7.351..15.256 rows=120 loops=1)
|
||
Recheck Cond: (a2 = 'MM'::text)
|
||
Heap Blocks: exact=21
|
||
Buffers: shared read=25
|
||
I/O Timings: read=14.644
|
||
-> Bitmap Index Scan on pk_code (cost=0.00..9.18 rows=120 width=0) (actual time=6.872..6.872 rows=120 loops=1)
|
||
Index Cond: (a2 = 'MM'::text)
|
||
Buffers: shared read=4
|
||
I/O Timings: read=6.737
|
||
-> Hash (cost=1.56..1.56 rows=56 width=12) (actual time=0.044..0.044 rows=56 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 11kB
|
||
Buffers: shared hit=1
|
||
-> Seq Scan on qrh q (cost=0.00..1.56 rows=56 width=12) (actual time=0.016..0.024 rows=56 loops=1)
|
||
Buffers: shared hit=1
|
||
CTE md
|
||
-> HashAggregate (cost=11936.00..11938.00 rows=200 width=64) (actual time=109.370..109.781 rows=3368 loops=1)
|
||
Group Key: (substr(m.avpart, 1, 8))
|
||
Buffers: shared hit=9056
|
||
-> Append (cost=8137.31..11870.54 rows=13091 width=64) (actual time=98.760..108.518 rows=3375 loops=1)
|
||
Buffers: shared hit=9056
|
||
-> HashAggregate (cost=8137.31..8249.94 rows=9010 width=64) (actual time=98.758..99.319 rows=3285 loops=1)
|
||
Group Key: substr(m.avpart, 1, 8)
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m (cost=0.00..8092.26 rows=9010 width=59) (actual time=0.016..53.186 rows=76269 loops=1)
|
||
Filter: ((length(avpart) > 8) AND (substr(avgled, 1, 1) <= '2'::text))
|
||
Rows Removed by Filter: 4728
|
||
Buffers: shared hit=6448
|
||
-> HashAggregate (cost=3373.23..3424.24 rows=4081 width=64) (actual time=8.960..8.993 rows=90 loops=1)
|
||
Group Key: substr(p.awpart, 1, 8)
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p (cost=0.00..3352.82 rows=4081 width=52) (actual time=0.460..8.898 rows=142 loops=1)
|
||
Filter: ((length(awpart) > 8) AND (substr(awgled, 1, 1) <= '2'::text))
|
||
Rows Removed by Filter: 36557
|
||
Buffers: shared hit=2608
|
||
CTE sj
|
||
-> Seq Scan on mmsl (cost=0.00..1.84 rows=1 width=22) (actual time=0.005..0.011 rows=11 loops=1)
|
||
Filter: (COALESCE(bsmncd, ''::text) = ''::text)
|
||
Rows Removed by Filter: 56
|
||
Buffers: shared hit=1
|
||
CTE si
|
||
-> Seq Scan on mmsl mmsl_1 (cost=0.00..1.84 rows=66 width=22) (actual time=1.513..1.521 rows=56 loops=1)
|
||
Filter: (COALESCE(bsmncd, ''::text) <> ''::text)
|
||
Rows Removed by Filter: 11
|
||
Buffers: shared read=1
|
||
I/O Timings: read=1.503
|
||
CTE seas
|
||
-> GroupAggregate (cost=10.22..16.31 rows=174 width=41) (actual time=0.067..0.097 rows=15 loops=1)
|
||
Group Key: gld.ssyr
|
||
Buffers: local hit=2
|
||
-> Sort (cost=10.22..10.65 rows=174 width=16) (actual time=0.052..0.059 rows=174 loops=1)
|
||
Sort Key: gld.ssyr DESC
|
||
Sort Method: quicksort Memory: 33kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld (cost=0.00..3.74 rows=174 width=16) (actual time=0.010..0.030 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
CTE intv
|
||
-> CTE Scan on seas (cost=0.00..4.13 rows=87 width=4) (actual time=0.078..0.079 rows=1 loops=1)
|
||
Filter: cy
|
||
Rows Removed by Filter: 14
|
||
Buffers: local hit=2
|
||
CTE std
|
||
-> Nested Loop (cost=0.00..457.62 rows=15138 width=73) (actual time=0.081..0.114 rows=15 loops=1)
|
||
Buffers: local hit=2
|
||
-> CTE Scan on intv (cost=0.00..1.74 rows=87 width=4) (actual time=0.078..0.079 rows=1 loops=1)
|
||
Buffers: local hit=2
|
||
-> CTE Scan on seas s (cost=0.00..3.48 rows=174 width=41) (actual time=0.000..0.027 rows=15 loops=1)
|
||
CTE un
|
||
-> Append (cost=50003223.80..244355794.95 rows=315685415 width=697) (actual time=24427.622..55248.745 rows=812592 loops=1)
|
||
Buffers: shared hit=33769 read=137238 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5418.990
|
||
-> GroupAggregate (cost=50003223.80..63823292.65 rows=83757993 width=701) (actual time=24427.621..26180.035 rows=212793 loops=1)
|
||
Group Key: od.ssyr, osm.adj_orderdate, sd.ssyr, (LEAST(GREATEST(osm.adj_shipdate, sd.sdat), sd.edat)), rd.ssyr, osm.adj_requestdate, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(rd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text)), (COALESCE(rd.cy, 'F'::text)), osm.plnt, osm.account, osm.bill_cust, osm.shipgrp, osm.ship_cust, osm.chan, l.retail, l.retailsub, osm.promo, osm.majg, osm.ming, osm.majs, osm.mins, osm.part, (((osm.part || ' - '::text) || rtrim(COALESCE(m_1.avdes1, p_1.awdes1)))), (((f.f3 || ' - '::text) || f.descr)), (((substr(osm.part, 1, 8) || ' - '::text) || md.descr)), (COALESCE(mg.grp, 'Unbranded'::text)), (COALESCE(seg.segm, 'Other'::text)), osm.quota_rep, (CASE osm.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm.calc_status END), osm.c_rate
|
||
Buffers: shared hit=9106 read=59430, local hit=2563791 read=1
|
||
I/O Timings: read=2239.382
|
||
-> Sort (cost=50003223.80..50212618.79 rows=83757993 width=594) (actual time=24427.582..24584.713 rows=641010 loops=1)
|
||
Sort Key: od.ssyr, osm.adj_orderdate, sd.ssyr, (LEAST(GREATEST(osm.adj_shipdate, sd.sdat), sd.edat)), rd.ssyr, osm.adj_requestdate, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(rd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text)), (COALESCE(rd.cy, 'F'::text)), osm.plnt, osm.account, osm.bill_cust, osm.shipgrp, osm.ship_cust, osm.chan, l.retail, l.retailsub, osm.promo, osm.majg, osm.ming, osm.majs, osm.mins, osm.part, (((osm.part || ' - '::text) || rtrim(COALESCE(m_1.avdes1, p_1.awdes1)))), (((f.f3 || ' - '::text) || f.descr)), (((substr(osm.part, 1, 8) || ' - '::text) || md.descr)), (COALESCE(mg.grp, 'Unbranded'::text)), (COALESCE(seg.segm, 'Other'::text)), osm.quota_rep, (CASE osm.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm.calc_status END), osm.c_rate
|
||
Sort Method: quicksort Memory: 352782kB
|
||
Buffers: shared hit=9106 read=59430, local hit=2563791 read=1
|
||
I/O Timings: read=2239.382
|
||
-> Hash Left Join (cost=11749.79..16650773.71 rows=83757993 width=594) (actual time=594.631..11450.131 rows=641010 loops=1)
|
||
Hash Cond: ((osm.bill_class = l.bill) AND (osm.ship_class = l.ship))
|
||
Buffers: shared hit=9103 read=59430, local hit=2563791 read=1
|
||
I/O Timings: read=2239.382
|
||
-> Hash Left Join (cost=11744.32..10583311.94 rows=83757993 width=583) (actual time=594.565..10651.699 rows=641010 loops=1)
|
||
Hash Cond: (substr(osm.part, 1, 8) = md.mold)
|
||
Buffers: shared hit=9101 read=59430, local hit=2563791 read=1
|
||
I/O Timings: read=2239.382
|
||
-> Hash Left Join (cost=11737.82..5348430.88 rows=83757993 width=551) (actual time=483.328..10064.882 rows=641010 loops=1)
|
||
Hash Cond: (osm.part = p_1.awpart)
|
||
Buffers: shared hit=45 read=59430, local hit=2563791 read=1
|
||
I/O Timings: read=2239.382
|
||
-> Nested Loop Left Join (cost=8303.37..5125106.33 rows=83757993 width=527) (actual time=372.833..9705.810 rows=641010 loops=1)
|
||
Buffers: shared hit=43 read=56824, local hit=2563791 read=1
|
||
I/O Timings: read=2158.329
|
||
-> Nested Loop Left Join (cost=8303.23..337594.45 rows=4332310 width=455) (actual time=372.826..7154.118 rows=641010 loops=1)
|
||
Buffers: shared hit=43 read=56824, local hit=1281897 read=1
|
||
I/O Timings: read=2158.329
|
||
-> Hash Left Join (cost=8303.08..89964.52 rows=224085 width=383) (actual time=372.784..4519.221 rows=641010 loops=1)
|
||
Hash Cond: (osm.part = m_1.avpart)
|
||
Buffers: shared hit=43 read=56824, local hit=2
|
||
I/O Timings: read=2158.311
|
||
-> Hash Left Join (cost=30.62..81103.81 rows=224085 width=348) (actual time=1.380..3884.310 rows=641010 loops=1)
|
||
Hash Cond: (substr(osm.part, 1, 3) = f.f3)
|
||
Buffers: shared hit=41 read=50378, local hit=2
|
||
I/O Timings: read=1843.013
|
||
-> Hash Left Join (cost=6.93..77718.84 rows=224085 width=324) (actual time=1.257..3476.551 rows=641010 loops=1)
|
||
Hash Cond: ((substr(osm.part, 16, 1) = mg.f1) AND (osm.ming = mg.ming))
|
||
Buffers: shared hit=32 read=50378, local hit=2
|
||
I/O Timings: read=1843.013
|
||
-> Hash Left Join (cost=6.37..75750.09 rows=224085 width=292) (actual time=1.228..3039.988 rows=641010 loops=1)
|
||
Hash Cond: (osm.glec = seg.glec)
|
||
Buffers: shared hit=32 read=50378, local hit=2
|
||
I/O Timings: read=1843.013
|
||
-> Hash Left Join (cost=5.92..72674.81 rows=224085 width=264) (actual time=1.210..2805.095 rows=641010 loops=1)
|
||
Hash Cond: (osm.fspr = sd.fspr)
|
||
Buffers: shared hit=32 read=50378, local hit=2
|
||
I/O Timings: read=1843.013
|
||
-> Seq Scan on osmp osm (cost=0.00..69587.73 rows=224085 width=184) (actual time=1.134..2545.900 rows=641010 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND (version = 'b19'::text) AND (substr(glec, 1, 1) <= '2'::text) AND ((fspr >= '1901'::text) OR (adj_orderdate >= '2018-06-01'::date)))
|
||
Rows Removed by Filter: 57051
|
||
Buffers: shared hit=32 read=50378
|
||
I/O Timings: read=1843.013
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.058..0.058 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd (cost=0.00..3.74 rows=174 width=112) (actual time=0.010..0.033 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.013..0.013 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg (cost=0.00..0.28 rows=14 width=64) (actual time=0.005..0.011 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.018..0.018 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg (cost=0.00..0.32 rows=16 width=96) (actual time=0.003..0.015 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=0.118..0.118 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared hit=9
|
||
-> Seq Scan on family f (cost=0.00..15.53 rows=653 width=24) (actual time=0.017..0.054 rows=653 loops=1)
|
||
Buffers: shared hit=9
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=371.346..371.346 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=2 read=6446
|
||
I/O Timings: read=315.299
|
||
-> Seq Scan on stkmm m_1 (cost=0.00..7258.87 rows=81087 width=54) (actual time=1.087..344.662 rows=80997 loops=1)
|
||
Buffers: shared hit=2 read=6446
|
||
I/O Timings: read=315.299
|
||
-> Index Scan using se_dat on gld od (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=641010)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=1281895 read=1
|
||
I/O Timings: read=0.018
|
||
-> Index Scan using se_dat on gld rd (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=641010)
|
||
Index Cond: ((osm.adj_requestdate >= sdat) AND (osm.adj_requestdate <= edat))
|
||
Buffers: local hit=1281894
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=110.296..110.296 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2 read=2606
|
||
I/O Timings: read=81.053
|
||
-> Seq Scan on stkmp p_1 (cost=0.00..2975.31 rows=36731 width=33) (actual time=0.977..97.487 rows=36699 loops=1)
|
||
Buffers: shared hit=2 read=2606
|
||
I/O Timings: read=81.053
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=111.215..111.215 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
Buffers: shared hit=9056
|
||
-> CTE Scan on md (cost=0.00..4.00 rows=200 width=64) (actual time=109.374..110.690 rows=3368 loops=1)
|
||
Buffers: shared hit=9056
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.051..0.051 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared hit=2
|
||
-> Seq Scan on ffchnl l (cost=0.00..3.39 rows=139 width=25) (actual time=0.012..0.026 rows=139 loops=1)
|
||
Buffers: shared hit=2
|
||
-> GroupAggregate (cost=33445583.00..42801951.72 rows=56705265 width=699) (actual time=16460.682..17590.319 rows=250477 loops=1)
|
||
Group Key: od_1.ssyr, osm_1.adj_orderdate, sd_1.ssyr, (LEAST(GREATEST(osm_1.adj_shipdate, sd_1.sdat), sd_1.edat)), rd_1.ssyr, osm_1.adj_requestdate, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(rd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text)), (COALESCE(rd_1.cy, 'F'::text)), osm_1.plnt, osm_1.account, osm_1.bill_cust, osm_1.shipgrp, osm_1.ship_cust, osm_1.chan, l_1.retail, l_1.retailsub, osm_1.promo, osm_1.majg, osm_1.ming, osm_1.majs, osm_1.mins, osm_1.part, (((osm_1.part || ' - '::text) || rtrim(COALESCE(m_2.avdes1, p_2.awdes1)))), (((f_1.f3 || ' - '::text) || f_1.descr)), (((substr(osm_1.part, 1, 8) || ' - '::text) || md_1.descr)), (COALESCE(mg_1.grp, 'Unbranded'::text)), (COALESCE(seg_1.segm, 'Other'::text)), osm_1.quota_rep, (CASE osm_1.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_1.calc_status END), osm_1.c_rate
|
||
Buffers: shared hit=9067 read=26345, local hit=1627258
|
||
I/O Timings: read=2275.461
|
||
-> Sort (cost=33445583.00..33587346.16 rows=56705265 width=595) (actual time=16460.650..16563.021 rows=406814 loops=1)
|
||
Sort Key: od_1.ssyr, osm_1.adj_orderdate, sd_1.ssyr, (LEAST(GREATEST(osm_1.adj_shipdate, sd_1.sdat), sd_1.edat)), rd_1.ssyr, osm_1.adj_requestdate, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(rd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text)), (COALESCE(rd_1.cy, 'F'::text)), osm_1.plnt, osm_1.account, osm_1.bill_cust, osm_1.shipgrp, osm_1.ship_cust, osm_1.chan, l_1.retail, l_1.retailsub, osm_1.promo, osm_1.majg, osm_1.ming, osm_1.majs, osm_1.mins, osm_1.part, (((osm_1.part || ' - '::text) || rtrim(COALESCE(m_2.avdes1, p_2.awdes1)))), (((f_1.f3 || ' - '::text) || f_1.descr)), (((substr(osm_1.part, 1, 8) || ' - '::text) || md_1.descr)), (COALESCE(mg_1.grp, 'Unbranded'::text)), (COALESCE(seg_1.segm, 'Other'::text)), osm_1.quota_rep, (CASE osm_1.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_1.calc_status END), osm_1.c_rate
|
||
Sort Method: quicksort Memory: 222052kB
|
||
Buffers: shared hit=9067 read=26345, local hit=1627258
|
||
I/O Timings: read=2275.461
|
||
-> Hash Left Join (cost=11749.79..11025086.80 rows=56705265 width=595) (actual time=61.424..7759.480 rows=406814 loops=1)
|
||
Hash Cond: ((osm_1.bill_class = l_1.bill) AND (osm_1.ship_class = l_1.ship))
|
||
Buffers: shared hit=9067 read=26345, local hit=1627258
|
||
I/O Timings: read=2275.461
|
||
-> Hash Left Join (cost=11744.32..6967724.27 rows=55168846 width=584) (actual time=61.349..7305.324 rows=406814 loops=1)
|
||
Hash Cond: (substr(osm_1.part, 1, 8) = md_1.mold)
|
||
Buffers: shared hit=9065 read=26345, local hit=1627258
|
||
I/O Timings: read=2275.461
|
||
-> Hash Left Join (cost=11737.82..3519664.90 rows=55168846 width=552) (actual time=60.509..6993.509 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.part = p_2.awpart)
|
||
Buffers: shared hit=9065 read=26345, local hit=1627258
|
||
I/O Timings: read=2275.461
|
||
-> Nested Loop Left Join (cost=8303.37..3371395.52 rows=55168846 width=528) (actual time=43.514..6803.629 rows=406814 loops=1)
|
||
Buffers: shared hit=6457 read=26345, local hit=1627258
|
||
I/O Timings: read=2275.461
|
||
-> Nested Loop Left Join (cost=8303.23..217901.28 rows=2853561 width=456) (actual time=43.508..5300.883 rows=406814 loops=1)
|
||
Buffers: shared hit=6457 read=26345, local hit=813630
|
||
I/O Timings: read=2275.461
|
||
-> Hash Left Join (cost=8303.08..54789.49 rows=147598 width=384) (actual time=43.490..3729.138 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.part = m_2.avpart)
|
||
Buffers: shared hit=6457 read=26345, local hit=2
|
||
I/O Timings: read=2275.461
|
||
-> Hash Left Join (cost=30.62..46129.57 rows=147598 width=349) (actual time=5.697..3467.540 rows=406814 loops=1)
|
||
Hash Cond: (substr(osm_1.part, 1, 3) = f_1.f3)
|
||
Buffers: shared hit=9 read=26345, local hit=2
|
||
I/O Timings: read=2275.461
|
||
-> Hash Left Join (cost=6.93..43891.91 rows=147598 width=325) (actual time=5.585..3211.131 rows=406814 loops=1)
|
||
Hash Cond: ((substr(osm_1.part, 16, 1) = mg_1.f1) AND (osm_1.ming = mg_1.ming))
|
||
Buffers: shared read=26345, local hit=2
|
||
I/O Timings: read=2275.461
|
||
-> Hash Left Join (cost=6.37..42594.49 rows=147598 width=293) (actual time=5.575..2952.469 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.glec = seg_1.glec)
|
||
Buffers: shared read=26345, local hit=2
|
||
I/O Timings: read=2275.461
|
||
-> Hash Left Join (cost=5.92..40564.57 rows=147598 width=265) (actual time=5.564..2812.752 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.fspr = sd_1.fspr)
|
||
Buffers: shared read=26345, local hit=2
|
||
I/O Timings: read=2275.461
|
||
-> Seq Scan on osmf osm_1 (cost=0.00..38529.18 rows=147598 width=185) (actual time=5.391..2669.916 rows=406814 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND (version = '5p7'::text) AND (substr(glec, 1, 1) <= '2'::text) AND ((fspr >= '1901'::text) OR (adj_orderdate >= '2018-06-01'::date)))
|
||
Rows Removed by Filter: 358
|
||
Buffers: shared read=26345
|
||
I/O Timings: read=2275.461
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.158..0.158 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_1 (cost=0.00..3.74 rows=174 width=112) (actual time=0.080..0.111 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.006..0.006 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg seg_1 (cost=0.00..0.28 rows=14 width=64) (actual time=0.002..0.004 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.005..0.005 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg mg_1 (cost=0.00..0.32 rows=16 width=96) (actual time=0.001..0.002 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=0.108..0.108 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared hit=9
|
||
-> Seq Scan on family f_1 (cost=0.00..15.53 rows=653 width=24) (actual time=0.010..0.047 rows=653 loops=1)
|
||
Buffers: shared hit=9
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=37.738..37.738 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m_2 (cost=0.00..7258.87 rows=81087 width=54) (actual time=0.007..22.454 rows=80997 loops=1)
|
||
Buffers: shared hit=6448
|
||
-> Index Scan using se_dat on gld od_1 (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=406814)
|
||
Index Cond: ((osm_1.adj_orderdate >= sdat) AND (osm_1.adj_orderdate <= edat))
|
||
Buffers: local hit=813628
|
||
-> Index Scan using se_dat on gld rd_1 (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=406814)
|
||
Index Cond: ((osm_1.adj_requestdate >= sdat) AND (osm_1.adj_requestdate <= edat))
|
||
Buffers: local hit=813628
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=16.826..16.826 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p_2 (cost=0.00..2975.31 rows=36731 width=33) (actual time=0.007..9.949 rows=36699 loops=1)
|
||
Buffers: shared hit=2608
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=0.825..0.825 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
-> CTE Scan on md md_1 (cost=0.00..4.00 rows=200 width=64) (actual time=0.002..0.290 rows=3368 loops=1)
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.045..0.045 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared hit=2
|
||
-> Seq Scan on ffchnl l_1 (cost=0.00..3.39 rows=139 width=25) (actual time=0.008..0.022 rows=139 loops=1)
|
||
Buffers: shared hit=2
|
||
-> GroupAggregate (cost=104083613.45..132995269.35 rows=175222157 width=695) (actual time=10242.201..11403.381 rows=349322 loops=1)
|
||
Group Key: od_2.ssyr, osm_2.adj_orderdate, sd_2.ssyr, (LEAST(GREATEST(osm_2.adj_shipdate, sd_2.sdat), sd_2.edat)), rd_2.ssyr, osm_2.adj_requestdate, (COALESCE(od_2.cm, sd_2.cm)), (COALESCE(sd_2.cm, 'F'::text)), (COALESCE(rd_2.cm, 'F'::text)), (COALESCE(od_2.cy, sd_2.cy)), (COALESCE(sd_2.cy, 'F'::text)), (COALESCE(rd_2.cy, 'F'::text)), osm_2.plnt, osm_2.account, osm_2.bill_cust, osm_2.shipgrp, osm_2.ship_cust, osm_2.chan, l_2.retail, l_2.retailsub, osm_2.promo, osm_2.majg, osm_2.ming, osm_2.majs, osm_2.mins, osm_2.part, (((osm_2.part || ' - '::text) || rtrim(COALESCE(m_3.avdes1, p_3.awdes1)))), (((f_2.f3 || ' - '::text) || f_2.descr)), (((substr(osm_2.part, 1, 8) || ' - '::text) || md_2.descr)), (COALESCE(mg_2.grp, 'Unbranded'::text)), (COALESCE(seg_2.segm, 'Other'::text)), osm_2.quota_rep, (CASE osm_2.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_2.calc_status END), osm_2.c_rate
|
||
Buffers: shared hit=15596 read=51463 dirtied=4, local hit=1469244
|
||
I/O Timings: read=904.147
|
||
-> Sort (cost=104083613.45..104521668.84 rows=175222157 width=584) (actual time=10242.147..10337.649 rows=367596 loops=1)
|
||
Sort Key: od_2.ssyr, osm_2.adj_orderdate, sd_2.ssyr, (LEAST(GREATEST(osm_2.adj_shipdate, sd_2.sdat), sd_2.edat)), rd_2.ssyr, osm_2.adj_requestdate, (COALESCE(od_2.cm, sd_2.cm)), (COALESCE(sd_2.cm, 'F'::text)), (COALESCE(rd_2.cm, 'F'::text)), (COALESCE(od_2.cy, sd_2.cy)), (COALESCE(sd_2.cy, 'F'::text)), (COALESCE(rd_2.cy, 'F'::text)), osm_2.plnt, osm_2.account, osm_2.bill_cust, osm_2.shipgrp, osm_2.ship_cust, osm_2.chan, l_2.retail, l_2.retailsub, osm_2.promo, osm_2.majg, osm_2.ming, osm_2.majs, osm_2.mins, osm_2.part, (((osm_2.part || ' - '::text) || rtrim(COALESCE(m_3.avdes1, p_3.awdes1)))), (((f_2.f3 || ' - '::text) || f_2.descr)), (((substr(osm_2.part, 1, 8) || ' - '::text) || md_2.descr)), (COALESCE(mg_2.grp, 'Unbranded'::text)), (COALESCE(seg_2.segm, 'Other'::text)), osm_2.quota_rep, (CASE osm_2.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_2.calc_status END), osm_2.c_rate
|
||
Sort Method: quicksort Memory: 201821kB
|
||
Buffers: shared hit=15596 read=51463 dirtied=4, local hit=1469244
|
||
I/O Timings: read=904.147
|
||
-> Hash Left Join (cost=11749.79..34574966.31 rows=175222157 width=584) (actual time=54.045..5505.369 rows=367596 loops=1)
|
||
Hash Cond: ((osm_2.bill_class = l_2.bill) AND (osm_2.ship_class = l_2.ship))
|
||
Buffers: shared hit=15596 read=51463 dirtied=4, local hit=1469244
|
||
I/O Timings: read=904.147
|
||
-> Hash Left Join (cost=11744.32..22053510.74 rows=175222157 width=572) (actual time=53.991..5099.469 rows=367596 loops=1)
|
||
Hash Cond: (substr(osm_2.part, 1, 8) = md_2.mold)
|
||
Buffers: shared hit=15594 read=51463 dirtied=4, local hit=1469244
|
||
I/O Timings: read=904.147
|
||
-> Hash Left Join (cost=11737.82..11102119.43 rows=175222157 width=540) (actual time=53.191..4854.338 rows=367596 loops=1)
|
||
Hash Cond: (osm_2.part = p_3.awpart)
|
||
Buffers: shared hit=15594 read=51463 dirtied=4, local hit=1469244
|
||
I/O Timings: read=904.147
|
||
-> Nested Loop Left Join (cost=8303.37..10638673.75 rows=175222157 width=516) (actual time=37.296..4707.080 rows=367596 loops=1)
|
||
Buffers: shared hit=12986 read=51463 dirtied=4, local hit=1469244
|
||
I/O Timings: read=904.147
|
||
-> Nested Loop Left Join (cost=8303.23..623511.84 rows=9063215 width=444) (actual time=37.291..3491.892 rows=367596 loops=1)
|
||
Buffers: shared hit=12986 read=51463 dirtied=4, local hit=734624
|
||
I/O Timings: read=904.147
|
||
-> Hash Left Join (cost=8303.08..105486.21 rows=468787 width=372) (actual time=37.263..2223.924 rows=367596 loops=1)
|
||
Hash Cond: (osm_2.part = m_3.avpart)
|
||
Buffers: shared hit=12986 read=51463 dirtied=4, local hit=2
|
||
I/O Timings: read=904.147
|
||
-> Hash Left Join (cost=30.62..95983.12 rows=468787 width=337) (actual time=0.270..2039.720 rows=367596 loops=1)
|
||
Hash Cond: (substr(osm_2.part, 1, 3) = f_2.f3)
|
||
Buffers: shared hit=6538 read=51463 dirtied=4, local hit=2
|
||
I/O Timings: read=904.147
|
||
-> Hash Left Join (cost=6.93..88927.62 rows=468787 width=313) (actual time=0.129..1823.936 rows=367596 loops=1)
|
||
Hash Cond: ((substr(osm_2.part, 16, 1) = mg_2.f1) AND (osm_2.ming = mg_2.ming))
|
||
Buffers: shared hit=6529 read=51463 dirtied=4, local hit=2
|
||
I/O Timings: read=904.147
|
||
-> Hash Left Join (cost=6.37..84811.93 rows=468787 width=281) (actual time=0.119..1623.505 rows=367596 loops=1)
|
||
Hash Cond: (osm_2.glec = seg_2.glec)
|
||
Buffers: shared hit=6529 read=51463 dirtied=4, local hit=2
|
||
I/O Timings: read=904.147
|
||
-> Hash Left Join (cost=5.92..78421.13 rows=468787 width=253) (actual time=0.111..1504.191 rows=367596 loops=1)
|
||
Hash Cond: (osm_2.fspr = sd_2.fspr)
|
||
Buffers: shared hit=6529 read=51463 dirtied=4, local hit=2
|
||
I/O Timings: read=904.147
|
||
-> Seq Scan on osm osm_2 (cost=0.00..72340.04 rows=468787 width=173) (actual time=0.052..1372.311 rows=367596 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND ((fspr >= '1606'::text) OR (adj_orderdate >= '2016-06-01'::date)))
|
||
Rows Removed by Filter: 417392
|
||
Buffers: shared hit=6529 read=51463 dirtied=4
|
||
I/O Timings: read=904.147
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.053..0.053 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_2 (cost=0.00..3.74 rows=174 width=112) (actual time=0.007..0.029 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.006..0.006 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg seg_2 (cost=0.00..0.28 rows=14 width=64) (actual time=0.002..0.003 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.006..0.006 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg mg_2 (cost=0.00..0.32 rows=16 width=96) (actual time=0.001..0.002 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=0.136..0.136 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared hit=9
|
||
-> Seq Scan on family f_2 (cost=0.00..15.53 rows=653 width=24) (actual time=0.008..0.047 rows=653 loops=1)
|
||
Buffers: shared hit=9
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=36.937..36.937 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m_3 (cost=0.00..7258.87 rows=81087 width=54) (actual time=0.006..22.525 rows=80997 loops=1)
|
||
Buffers: shared hit=6448
|
||
-> Index Scan using se_dat on gld od_2 (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=367596)
|
||
Index Cond: ((osm_2.adj_orderdate >= sdat) AND (osm_2.adj_orderdate <= edat))
|
||
Buffers: local hit=734622
|
||
-> Index Scan using se_dat on gld rd_2 (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=367596)
|
||
Index Cond: ((osm_2.adj_requestdate >= sdat) AND (osm_2.adj_requestdate <= edat))
|
||
Buffers: local hit=734620
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=15.858..15.858 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p_3 (cost=0.00..2975.31 rows=36731 width=33) (actual time=0.007..9.906 rows=36699 loops=1)
|
||
Buffers: shared hit=2608
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=0.788..0.788 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
-> CTE Scan on md md_2 (cost=0.00..4.00 rows=200 width=64) (actual time=0.002..0.291 rows=3368 loops=1)
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.043..0.043 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared hit=2
|
||
-> Seq Scan on ffchnl l_2 (cost=0.00..3.39 rows=139 width=25) (actual time=0.007..0.021 rows=139 loops=1)
|
||
Buffers: shared hit=2
|
||
CTE agg
|
||
-> GroupAggregate (cost=3811565832720.57..4308918237067.99 rows=1808554197627 width=1404) (actual time=130217.184..134929.396 rows=809850 loops=1)
|
||
Group Key: un.version, un.iter, ((un.oseas)::numeric), un.odate, ((un.sseas)::numeric), un.sdate, ((un.rseas)::numeric), un.rdate, un.om, un.sm, un.rm, un.oy, ((un.odate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.odate <@ so.ytd)), un.sy, ((un.sdate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.sdate <@ ss.ytd)), (CASE WHEN ((upper(so.ytd) - '1 day'::interval) >= un.odate) THEN CASE WHEN ((un.sdate > (upper(so.ytd) - '1 day'::interval)) OR (un.sy = 'F'::text)) THEN CASE WHEN ((upper(so.ytd) - '1 day'::interval) > un.rdate) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE 'Shipped'::text END ELSE 'Not Yet Placed'::text END), un.ry, un.plnt, un.account, (((un.bill_cust || ' - '::text) || rtrim(bc.bvname))), bc.bvctry, bc.bvprcd, un.shipgrp, (((un.ship_cust || ' - '::text) || rtrim(sc.bvname))), sc.bvctry, sc.bvprcd, un.chan, (CASE un.segm WHEN 'Retail'::text THEN un.retail ELSE un.chan END), (CASE un.segm WHEN 'Retail'::text THEN un.retailsub ELSE ''::text END), un.promo, ((un.majg || COALESCE((' - '::text || majg.bqdes), ''::text))), ((un.ming || COALESCE((' - '::text || mmgp.brdes), ''::text))), ((un.majs || COALESCE((' - '::text || sj.bsdes1), ''::text))), ((un.mins || COALESCE((' - '::text || si.bsdes1), ''::text))), un.part, un.part_descr, un.part_family, un.part_group, un.branding, un.segm, (COALESCE(repc.repp, un.quota_rep)), (COALESCE(repc.director, un.quota_rep)), (((un.version || '-'::text) || un.sy)), (((un.version || '-'::text) || un.oy)), (CASE WHEN (un.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) THEN CASE WHEN (un.rdate < CURRENT_DATE) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE un.calc_status END), (((substr(un.part, 9, 3) || '-'::text) || un.branding)), 'Grand Total'::text
|
||
Buffers: shared hit=37003 read=155565 dirtied=4, local hit=5660295 read=1, temp read=169623 written=244421
|
||
I/O Timings: read=5796.575
|
||
-> Sort (cost=3811565832720.57..3816087218214.63 rows=1808554197627 width=1346) (actual time=130217.139..131170.872 rows=812592 loops=1)
|
||
Sort Key: un.version, un.iter, ((un.oseas)::numeric), un.odate, ((un.sseas)::numeric), un.sdate, ((un.rseas)::numeric), un.rdate, un.om, un.sm, un.rm, un.oy, ((un.odate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.odate <@ so.ytd)), un.sy, ((un.sdate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.sdate <@ ss.ytd)), (CASE WHEN ((upper(so.ytd) - '1 day'::interval) >= un.odate) THEN CASE WHEN ((un.sdate > (upper(so.ytd) - '1 day'::interval)) OR (un.sy = 'F'::text)) THEN CASE WHEN ((upper(so.ytd) - '1 day'::interval) > un.rdate) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE 'Shipped'::text END ELSE 'Not Yet Placed'::text END), un.ry, un.plnt, un.account, (((un.bill_cust || ' - '::text) || rtrim(bc.bvname))), bc.bvctry, bc.bvprcd, un.shipgrp, (((un.ship_cust || ' - '::text) || rtrim(sc.bvname))), sc.bvctry, sc.bvprcd, un.chan, (CASE un.segm WHEN 'Retail'::text THEN un.retail ELSE un.chan END), (CASE un.segm WHEN 'Retail'::text THEN un.retailsub ELSE ''::text END), un.promo, ((un.majg || COALESCE((' - '::text || majg.bqdes), ''::text))), ((un.ming || COALESCE((' - '::text || mmgp.brdes), ''::text))), ((un.majs || COALESCE((' - '::text || sj.bsdes1), ''::text))), ((un.mins || COALESCE((' - '::text || si.bsdes1), ''::text))), un.part, un.part_descr, un.part_family, un.part_group, un.branding, un.segm, (COALESCE(repc.repp, un.quota_rep)), (COALESCE(repc.director, un.quota_rep)), (((un.version || '-'::text) || un.sy)), (((un.version || '-'::text) || un.oy)), (CASE WHEN (un.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) THEN CASE WHEN (un.rdate < CURRENT_DATE) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE un.calc_status END), (((substr(un.part, 9, 3) || '-'::text) || un.branding))
|
||
Sort Method: external merge Disk: 476048kB
|
||
Buffers: shared hit=37003 read=155565 dirtied=4, local hit=5660295 read=1, temp read=169623 written=244421
|
||
I/O Timings: read=5796.575
|
||
-> Merge Right Join (cost=32058721370.12..253666346227.77 rows=1808554197627 width=1346) (actual time=79725.467..85819.348 rows=812592 loops=1)
|
||
Merge Cond: (ss.ssyr = un.sseas)
|
||
Buffers: shared hit=36995 read=155565 dirtied=4, local hit=5660295 read=1, temp read=110117 written=184914
|
||
I/O Timings: read=5796.575
|
||
-> Sort (cost=1353.78..1391.63 rows=15138 width=40) (actual time=0.123..0.131 rows=15 loops=1)
|
||
Sort Key: ss.ssyr
|
||
Sort Method: quicksort Memory: 26kB
|
||
Buffers: local hit=2
|
||
-> CTE Scan on std ss (cost=0.00..302.76 rows=15138 width=40) (actual time=0.082..0.119 rows=15 loops=1)
|
||
Buffers: local hit=2
|
||
-> Materialize (cost=32058720016.34..32178191161.64 rows=23894229061 width=1300) (actual time=79718.116..82479.293 rows=812592 loops=1)
|
||
Buffers: shared hit=36995 read=155565 dirtied=4, local hit=5660293 read=1, temp read=110117 written=184914
|
||
I/O Timings: read=5796.575
|
||
-> Sort (cost=32058720016.34..32118455588.99 rows=23894229061 width=1300) (actual time=79718.091..80948.227 rows=812592 loops=1)
|
||
Sort Key: un.sseas
|
||
Sort Method: external merge Disk: 446032kB
|
||
Buffers: shared hit=36995 read=155565 dirtied=4, local hit=5660293 read=1, temp read=110117 written=146652
|
||
I/O Timings: read=5796.575
|
||
-> Merge Right Join (cost=466287095.31..825489820.45 rows=23894229061 width=1300) (actual time=67066.711..71526.574 rows=812592 loops=1)
|
||
Merge Cond: (so.ssyr = un.oseas)
|
||
Buffers: shared hit=36995 read=155565 dirtied=4, local hit=5660293 read=1, temp read=54363 written=90897
|
||
I/O Timings: read=5796.575
|
||
-> Sort (cost=1353.78..1391.63 rows=15138 width=40) (actual time=0.004..0.008 rows=13 loops=1)
|
||
Sort Key: so.ssyr
|
||
Sort Method: quicksort Memory: 26kB
|
||
-> CTE Scan on std so (cost=0.00..302.76 rows=15138 width=40) (actual time=0.000..0.002 rows=15 loops=1)
|
||
-> Materialize (cost=466285741.52..467864168.60 rows=315685415 width=1268) (actual time=67055.329..70663.573 rows=812592 loops=1)
|
||
Buffers: shared hit=36995 read=155565 dirtied=4, local hit=5660293 read=1, temp read=54363 written=90897
|
||
I/O Timings: read=5796.575
|
||
-> Sort (cost=466285741.52..467074955.06 rows=315685415 width=1268) (actual time=67050.634..68022.803 rows=812592 loops=1)
|
||
Sort Key: un.oseas
|
||
Sort Method: external merge Disk: 434904kB
|
||
Buffers: shared hit=36995 read=155565 dirtied=4, local hit=5660293 read=1, temp read=54363 written=54364
|
||
I/O Timings: read=5796.575
|
||
-> Hash Left Join (cost=30326.40..72123629.81 rows=315685415 width=1268) (actual time=24989.685..60611.536 rows=812592 loops=1)
|
||
Hash Cond: ((un.part = cr.y0part) AND (un.plnt = cr.y0plnt))
|
||
Buffers: shared hit=36995 read=155565 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5796.575
|
||
-> Hash Left Join (cost=22414.65..53910516.25 rows=315685415 width=1262) (actual time=24857.162..60071.090 rows=812592 loops=1)
|
||
Hash Cond: ((un.part = cp.chpart) AND (un.plnt = cp.chplnt))
|
||
Buffers: shared hit=36995 read=150313 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5704.175
|
||
-> Hash Left Join (cost=14299.03..34905098.97 rows=315685415 width=1256) (actual time=24690.716..59482.739 rows=812592 loops=1)
|
||
Hash Cond: ((un.part = cm.cgpart) AND (un.plnt = cm.cgplnt))
|
||
Buffers: shared hit=36995 read=144997 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5598.963
|
||
-> Hash Left Join (cost=7433.88..32509062.54 rows=315685415 width=1250) (actual time=24542.324..58815.424 rows=812592 loops=1)
|
||
Hash Cond: (un.bill_cust = sc.bvcust)
|
||
Buffers: shared hit=36995 read=140490 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5507.001
|
||
-> Hash Left Join (cost=3723.16..28164677.36 rows=315685415 width=1223) (actual time=24531.977..58466.240 rows=812592 loops=1)
|
||
Hash Cond: (un.bill_cust = bc.bvcust)
|
||
Buffers: shared hit=33771 read=140490 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5507.001
|
||
-> Hash Left Join (cost=12.44..23820292.19 rows=315685415 width=1196) (actual time=24445.824..58031.724 rows=812592 loops=1)
|
||
Hash Cond: ((un.ming = mmgp.brmgrp) AND (un.majg = mmgp.brgrp))
|
||
Buffers: shared hit=33771 read=137266 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5435.817
|
||
-> Hash Left Join (cost=7.51..14337334.16 rows=315685415 width=1186) (actual time=24445.412..57697.186 rows=812592 loops=1)
|
||
Hash Cond: (un.majg = majg.bqgrp)
|
||
Buffers: shared hit=33771 read=137265 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5435.479
|
||
-> Hash Left Join (cost=6.24..12964101.34 rows=315685415 width=1176) (actual time=24445.051..57415.327 rows=812592 loops=1)
|
||
Hash Cond: (un.majs = sj.bsmjcd)
|
||
Buffers: shared hit=33771 read=137264 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5435.137
|
||
-> Hash Left Join (cost=6.21..11764496.73 rows=315685415 width=1144) (actual time=24445.027..57139.761 rows=812592 loops=1)
|
||
Hash Cond: ((un.majs = si.bsmjcd) AND (un.mins = si.bsmncd))
|
||
Buffers: shared hit=33770 read=137264 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5435.137
|
||
-> Hash Left Join (cost=3.90..9391645.00 rows=315685415 width=1112) (actual time=24443.462..56809.926 rows=812592 loops=1)
|
||
Hash Cond: (un.quota_rep = repc.rcode)
|
||
Buffers: shared hit=33770 read=137263 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5433.634
|
||
-> CTE Scan on un (cost=0.00..6313708.30 rows=315685415 width=1048) (actual time=24427.626..56309.934 rows=812592 loops=1)
|
||
Buffers: shared hit=33769 read=137238 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5418.990
|
||
-> Hash (cost=2.40..2.40 rows=120 width=96) (actual time=15.823..15.823 rows=120 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 17kB
|
||
Buffers: shared hit=1 read=25
|
||
I/O Timings: read=14.644
|
||
-> CTE Scan on repc (cost=0.00..2.40 rows=120 width=96) (actual time=7.422..15.771 rows=120 loops=1)
|
||
Buffers: shared hit=1 read=25
|
||
I/O Timings: read=14.644
|
||
-> Hash (cost=1.32..1.32 rows=66 width=96) (actual time=1.556..1.556 rows=56 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 11kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=1.503
|
||
-> CTE Scan on si (cost=0.00..1.32 rows=66 width=96) (actual time=1.516..1.541 rows=56 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=1.503
|
||
-> Hash (cost=0.02..0.02 rows=1 width=64) (actual time=0.017..0.017 rows=11 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
Buffers: shared hit=1
|
||
-> CTE Scan on sj (cost=0.00..0.02 rows=1 width=64) (actual time=0.006..0.014 rows=11 loops=1)
|
||
Buffers: shared hit=1
|
||
-> Hash (cost=1.12..1.12 rows=12 width=14) (actual time=0.357..0.357 rows=12 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.342
|
||
-> Seq Scan on majg (cost=0.00..1.12 rows=12 width=14) (actual time=0.349..0.351 rows=12 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.342
|
||
-> Hash (cost=2.57..2.57 rows=157 width=18) (actual time=0.404..0.404 rows=157 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.338
|
||
-> Seq Scan on mmgp (cost=0.00..2.57 rows=157 width=18) (actual time=0.350..0.369 rows=157 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.338
|
||
-> Hash (cost=3440.32..3440.32 rows=21632 width=35) (actual time=86.128..86.128 rows=21632 loops=1)
|
||
Buckets: 32768 Batches: 1 Memory Usage: 1721kB
|
||
Buffers: shared read=3224
|
||
I/O Timings: read=71.184
|
||
-> Seq Scan on cust bc (cost=0.00..3440.32 rows=21632 width=35) (actual time=1.719..80.386 rows=21632 loops=1)
|
||
Buffers: shared read=3224
|
||
I/O Timings: read=71.184
|
||
-> Hash (cost=3440.32..3440.32 rows=21632 width=35) (actual time=10.320..10.320 rows=21632 loops=1)
|
||
Buckets: 32768 Batches: 1 Memory Usage: 1721kB
|
||
Buffers: shared hit=3224
|
||
-> Seq Scan on cust sc (cost=0.00..3440.32 rows=21632 width=35) (actual time=0.007..6.682 rows=21632 loops=1)
|
||
Buffers: shared hit=3224
|
||
-> Hash (cost=5450.26..5450.26 rows=94326 width=29) (actual time=148.322..148.322 rows=94326 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 6699kB
|
||
Buffers: shared read=4507
|
||
I/O Timings: read=91.962
|
||
-> Seq Scan on icstm cm (cost=0.00..5450.26 rows=94326 width=29) (actual time=1.674..121.636 rows=94326 loops=1)
|
||
Buffers: shared read=4507
|
||
I/O Timings: read=91.962
|
||
-> Hash (cost=6435.85..6435.85 rows=111985 width=20) (actual time=166.382..166.382 rows=111985 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 6768kB
|
||
Buffers: shared read=5316
|
||
I/O Timings: read=105.211
|
||
-> Seq Scan on icstp cp (cost=0.00..6435.85 rows=111985 width=20) (actual time=2.877..136.300 rows=111985 loops=1)
|
||
Buffers: shared read=5316
|
||
I/O Timings: read=105.211
|
||
-> Hash (cost=6315.90..6315.90 rows=106390 width=27) (actual time=132.044..132.044 rows=106390 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7334kB
|
||
Buffers: shared read=5252
|
||
I/O Timings: read=92.401
|
||
-> Seq Scan on icstr cr (cost=0.00..6315.90 rows=106390 width=27) (actual time=1.095..107.748 rows=106390 loops=1)
|
||
Buffers: shared read=5252
|
||
I/O Timings: read=92.401
|
||
-> CTE Scan on agg a (cost=0.00..36171083952.54 rows=1808554197627 width=1520) (actual time=130217.189..139003.919 rows=809850 loops=1)
|
||
Buffers: shared hit=37003 read=155565 dirtied=4, local hit=5660295 read=1, temp read=169623 written=302291
|
||
I/O Timings: read=5796.575
|
||
-> CTE Scan on agg a_1 (cost=0.00..41167214923.48 rows=13564156482 width=1520) (actual time=313.638..4190.172 rows=298727 loops=1)
|
||
Filter: ((ocytd OR scytd) AND (version = ANY ('{Actual,Forecast}'::text[])))
|
||
Rows Removed by Filter: 511123
|
||
Buffers: temp read=57871 written=1
|
||
-> CTE Scan on agg a_2 (cost=0.00..41167214923.48 rows=13564156482 width=1520) (actual time=77.645..4240.941 rows=270385 loops=1)
|
||
Filter: ((ocytd OR scytd) AND (version = ANY ('{Actual,Budget}'::text[])))
|
||
Rows Removed by Filter: 539465
|
||
Buffers: temp read=57871
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-e-2-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i>PL/pgSQL function rlarp.osm_ppfa_varto() line 69 at RETURN QUERYWITH
|
||
---------------------------------------segments--------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
SEG AS (
|
||
SELECT
|
||
x.GLEC
|
||
,x.SEGM
|
||
FROM
|
||
(
|
||
VALUES
|
||
('1CU','Retail'),
|
||
('1GR','Greenhouse'),
|
||
('1NU','Nursery'),
|
||
('1RE','Retail'),
|
||
('2WI','Greenhouse'),
|
||
('3BM','Other'),
|
||
('3CO','Other'),
|
||
('3PE','Other'),
|
||
('3PP','Other'),
|
||
('4CO','Other'),
|
||
('4RA','Other'),
|
||
('9MI','Other'),
|
||
('9SA','Other'),
|
||
('9TO','Other')
|
||
) X(GLEC, SEGM)
|
||
)
|
||
---------------------------------------branding flag---------------------------------------------------------------------------------------------------------------------------------------------------
|
||
,MG AS (
|
||
SELECT
|
||
X.F1, X.MING, X.GRP
|
||
FROM
|
||
(
|
||
VALUES
|
||
('L','000','Branded'),
|
||
('L','B10','Branded'),
|
||
('L','B11','Branded'),
|
||
('L','B52','Branded'),
|
||
('L','C10','Branded'),
|
||
('L','D12','Branded'),
|
||
('L','M11','Branded'),
|
||
('L','P12','Branded'),
|
||
('L','P13','Branded'),
|
||
('L','S10','Branded'),
|
||
('L','Y10','Branded'),
|
||
('L','Y11','Branded'),
|
||
('L','Y12','Branded'),
|
||
('P','B10','Branded'),
|
||
('P','B11','Branded'),
|
||
('P','B52','Branded')
|
||
) AS X (F1, MING, GRP)
|
||
)
|
||
---------------------------------------directors-------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
,REPC AS (
|
||
SELECT
|
||
LTRIM(RTRIM(C.A9)) RCODE
|
||
,LTRIM(RTRIM(C.A9)) || ' - ' || C.A30 REPP
|
||
,COALESCE(Q.DIR,'Other') DIRECTOR
|
||
FROM
|
||
LGDAT.CODE C
|
||
LEFT OUTER JOIN RLARP.QRH Q ON
|
||
Q.QR = LTRIM(RTRIM(C.A9))
|
||
WHERE
|
||
C.A2 = 'MM'
|
||
)
|
||
--MOLD DESCRIPTIONS
|
||
,MD AS (
|
||
SELECT
|
||
U.MOLD
|
||
,MAX(U.DESCR) DESCR
|
||
FROM
|
||
(
|
||
SELECT
|
||
SUBSTR(M.AVPART,1,8) MOLD
|
||
,MAX(M.AVDES1) DESCR
|
||
FROM
|
||
LGDAT.STKMM M
|
||
WHERE
|
||
LENGTH(M.AVPART) > 8
|
||
AND SUBSTR(M.AVGLED,1,1) <= '2'
|
||
GROUP BY
|
||
SUBSTR(M.AVPART,1,8)
|
||
UNION ALL
|
||
SELECT
|
||
SUBSTR(P.AWPART,1,8) MOLD
|
||
,MAX(P.AWDES1) DESCR
|
||
FROM
|
||
LGDAT.STKMP P
|
||
WHERE
|
||
LENGTH(P.AWPART) > 8
|
||
AND SUBSTR(P.AWGLED,1,1) <= '2'
|
||
GROUP BY
|
||
SUBSTR(P.AWPART,1,8)
|
||
) U
|
||
GROUP BY
|
||
U.MOLD
|
||
)
|
||
----------------------------------------------------sales major codes----------------------------------------------------------------------------------------------------------------------------------
|
||
,SJ AS (
|
||
SELECT * FROM LGDAT.MMSL WHERE COALESCE(BSMNCD,'') = ''
|
||
)
|
||
----------------------------------------------------sales minor codes----------------------------------------------------------------------------------------------------------------------------------
|
||
,SI AS (
|
||
SELECT * FROM LGDAT.MMSL WHERE COALESCE(BSMNCD,'') <> ''
|
||
)
|
||
----------------------------------------------------date ranges per season------------------------------------------------------------------------------------------------------------------------------
|
||
,seas AS(
|
||
SELECT
|
||
ssyr
|
||
,daterange(MIN(sdat),MAX(edat),'[]') dr
|
||
,current_date <@ daterange(MIN(sdat),MAX(edat),'[]') cy
|
||
FROM
|
||
gld
|
||
GROUP BY
|
||
ssyr
|
||
ORDER BY
|
||
ssyr DESC
|
||
)
|
||
,intv AS (
|
||
SELECT current_date - lower(dr) dy from seas where cy = true
|
||
)
|
||
,std AS (
|
||
SELECT
|
||
s.ssyr
|
||
,s.dr
|
||
,s.cy
|
||
,daterange(lower(dr),dy + LOWER(dr),'[]') ytd
|
||
FROM
|
||
seas s
|
||
CROSS JOIN intv
|
||
)
|
||
---------------------------------------union actual and forecast---------------------------------------------------------------------------------------------------------------------------------------
|
||
,UN AS (
|
||
--plan
|
||
SELECT
|
||
'Budget' AS VERSION
|
||
,'Budget' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE as ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(m.avDES1,p.awDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(m.avNWHT,p.awNWHT) * CASE COALESCE(m.avNWUN, p.awNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSMP OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.VERSION = 'b19'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1901'
|
||
OR OSM.ADJ_ORDERDATE >= '2018-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
--ITER
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(m.avDES1,p.awDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
UNION ALL
|
||
--staged forecast
|
||
SELECT
|
||
'Forecast' AS VERSION
|
||
,'Forecast' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(M.AVNWHT,P.AWNWHT) * CASE COALESCE(M.AVNWUN, P.AWNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSMF OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.VERSION = '5p7'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1901'
|
||
OR OSM.ADJ_ORDERDATE >= '2018-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
--ITER
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
UNION ALL
|
||
--actual
|
||
SELECT
|
||
'Actual' AS VERSION
|
||
,'Actual' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(M.AVNWHT,P.AWNWHT) * CASE COALESCE(M.AVNWUN, P.AWNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSM OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
--AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1606'
|
||
OR OSM.ADJ_ORDERDATE >= '2016-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
)
|
||
---------------------------------------aggregate actual and forecast-----------------------------------------------------------------------------------------------------------------------------------
|
||
,AGG AS (
|
||
SELECT
|
||
un.VERSION::text "version"
|
||
,un.ITER::text "iter"
|
||
,un.OSEAS::numeric oseas
|
||
,un.ODATE::date odate
|
||
,un.SSEAS::numeric sseas
|
||
,un.SDATE::date sdate
|
||
,un.RSEAS::numeric rseas
|
||
,un.RDATE::date rdate
|
||
,un.OM::text om
|
||
,un.SM::text sm
|
||
,un.RM::text rm
|
||
,un.OY::text oy
|
||
,(un.odate <@ _ytd)::boolean ocytd --current year to date
|
||
,(un.odate <@ so.ytd)::boolean oytd --year to date recast for prior/forecast periods
|
||
,un.SY::text sy
|
||
,(un.sdate <@ _ytd)::boolean scytd
|
||
,(un.sdate <@ ss.ytd)::boolean sytd
|
||
--had this order been placed yet? (current day prior year is greater than the order date)
|
||
,CASE WHEN (upper(so.ytd) - interval '1 day') >= un.odate THEN
|
||
--was the order open at this time last year? (for orders that were placed by this time, was the ship date greater then the order date)
|
||
CASE WHEN ((un.sdate > (upper(so.ytd) - interval '1 day')) OR (un.SY = 'F'))
|
||
--for orders that were placed and open at this time last year, was the order considered past due? (current date prior year > request date)
|
||
THEN
|
||
CASE WHEN (upper(so.ytd) - interval '1 day') > un.rdate
|
||
THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE 'Shipped'
|
||
END
|
||
ELSE 'Not Yet Placed'
|
||
END status_py
|
||
,un.RY::text ry
|
||
,un.PLNT::text plnt
|
||
,un.ACCOUNT::text bill_group
|
||
,(un.BILL_CUST || ' - ' || RTRIM(BC.BVNAME))::text bill_cust
|
||
,bc.bvctry bill_ctry
|
||
,bc.bvprcd bill_prov
|
||
,un.SHIPGRP::text ship_group
|
||
,(un.SHIP_CUST || ' - ' || RTRIM(SC.BVNAME))::text ship_cust
|
||
,sc.bvctry ship_ctry
|
||
,sc.bvprcd ship_prov
|
||
,un.CHAN::text chan
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAIL
|
||
ELSE un.CHAN
|
||
END::text mod_chan
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAILSUB
|
||
ELSE ''
|
||
END::text mod_chansub
|
||
,un.PROMO::text promo
|
||
,un.MAJG||COALESCE(' - '||BQDES,'')::text majg
|
||
,un.MING||COALESCE(' - '||BRDES,'')::text ming
|
||
,un.MAJS||COALESCE(' - '||SJ.BSDES1,'')::text majs
|
||
,un.MINS||COALESCE(' - '||SI.BSDES1,'')::text mins
|
||
,un.PART::text part
|
||
,un.PART_DESCR::text part_descr
|
||
,un.PART_FAMILY::text part_family
|
||
,un.PART_GROUP::text part_group
|
||
,un.BRANDING::text branding
|
||
,un.SEGM::text segm
|
||
,COALESCE(REPC.REPP,un.QUOTA_REP)::text quota_rep
|
||
,COALESCE(REPC.DIRECTOR,un.QUOTA_REP)::text director
|
||
,SUM(un.QTY)::numeric qty
|
||
,SUM(un.SALES)::numeric sales
|
||
,SUM(un.STDCOST)::numeric stdcost
|
||
,SUM(un.QTY * COALESCE(cm.cgstcs, cp.chstcs, cr.y0stcs) * un.c_rate)::numeric stdcost_cur
|
||
,SUM(un.POUNDS)::numeric pounds
|
||
,(un.VERSION||'-'||un.SY)::text flag_s
|
||
,(un.VERSION||'-'||un.OY)::text flag_o
|
||
,CASE
|
||
WHEN un.calc_status IN ('BACKORDER','OPEN') THEN
|
||
CASE
|
||
WHEN un.rdate < current_date THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE un.calc_status
|
||
END::text status
|
||
,(SUBSTR(UN.PART,9,3)||'-'||un.BRANDING)::text "options"
|
||
,'Grand Total'::text grandtotal
|
||
FROM
|
||
UN
|
||
LEFT OUTER JOIN REPC ON
|
||
REPC.RCODE = un.QUOTA_REP
|
||
LEFT OUTER JOIN SI ON
|
||
SI.BSMJCD = UN.MAJS
|
||
AND SI.BSMNCD = UN.MINS
|
||
LEFT OUTER JOIN SJ ON
|
||
SJ.BSMJCD = UN.MAJS
|
||
LEFT OUTER JOIN LGDAT.MAJG ON
|
||
BQGRP = un.MAJG
|
||
LEFT OUTER JOIN LGDAT.MMGP ON
|
||
BRMGRP = un.MING
|
||
AND BRGRP = un.MAJG
|
||
LEFT OUTER JOIN LGDAT.CUST BC ON
|
||
BC.BVCUST = UN.BILL_CUST
|
||
LEFT OUTER JOIN LGDAT.CUST SC ON
|
||
SC.BVCUST = UN.BILL_CUST
|
||
LEFT OUTER JOIN LGDAT.ICSTM cm ON
|
||
cm.cgpart = un.part
|
||
AND cm.cgplnt = un.plnt
|
||
LEFT OUTER JOIN LGDAT.ICSTP cp ON
|
||
cp.chpart = un.part
|
||
AND cp.chplnt = un.plnt
|
||
LEFT OUTER JOIN LGDAT.ICSTR cr ON
|
||
cr.y0part = un.part
|
||
AND cr.y0plnt = un.plnt
|
||
LEFT OUTER JOIN STD so ON
|
||
so.ssyr = un.oseas
|
||
LEFT OUTER JOIN STD ss ON
|
||
ss.ssyr = un.sseas
|
||
GROUP BY
|
||
un.VERSION::text
|
||
,un.ITER::text
|
||
,un.OSEAS::numeric
|
||
,un.ODATE::date
|
||
,un.SSEAS::numeric
|
||
,un.SDATE::date
|
||
,un.RSEAS::numeric
|
||
,un.RDATE::date
|
||
,un.OM::text
|
||
,un.SM::text
|
||
,un.RM::text
|
||
,un.OY::text
|
||
--current year to date
|
||
,(un.odate <@ _ytd)::boolean
|
||
--year to date recast for prior/forecast periods
|
||
,(un.odate <@ so.ytd)::boolean
|
||
,un.SY::text
|
||
,(un.sdate <@ _ytd)::boolean
|
||
,(un.sdate <@ ss.ytd)::boolean
|
||
,CASE WHEN (upper(so.ytd) - interval '1 day') >= un.odate THEN
|
||
--was the order open at this time last year? (for orders that were placed by this time, was the ship date greater then the order date)
|
||
CASE WHEN ((un.sdate > (upper(so.ytd) - interval '1 day')) OR (un.SY = 'F'))
|
||
--for orders that were placed and open at this time last year, was the order considered past due? (current date prior year > request date)
|
||
THEN
|
||
CASE WHEN (upper(so.ytd) - interval '1 day') > un.rdate
|
||
THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE 'Shipped'
|
||
END
|
||
ELSE 'Not Yet Placed'
|
||
END
|
||
,un.RY::text
|
||
,un.PLNT::text
|
||
,un.ACCOUNT::text
|
||
,(un.BILL_CUST || ' - ' || RTRIM(BC.BVNAME))::text
|
||
,bc.bvctry
|
||
,bc.bvprcd
|
||
,un.SHIPGRP::text
|
||
,(un.SHIP_CUST || ' - ' || RTRIM(SC.BVNAME))::text
|
||
,sc.bvctry
|
||
,sc.bvprcd
|
||
,un.CHAN::text
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAIL
|
||
ELSE un.CHAN
|
||
END::text
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAILSUB
|
||
ELSE ''
|
||
END::text
|
||
,un.PROMO::text
|
||
,un.MAJG||COALESCE(' - '||BQDES,'')::text
|
||
,un.MING||COALESCE(' - '||BRDES,'')::text
|
||
,un.MAJS||COALESCE(' - '||SJ.BSDES1,'')::text
|
||
,un.MINS||COALESCE(' - '||SI.BSDES1,'')::text
|
||
,un.PART::text
|
||
,un.PART_DESCR::text
|
||
,un.PART_FAMILY::text
|
||
,un.PART_GROUP::text
|
||
,un.BRANDING::text
|
||
,un.SEGM::text
|
||
,COALESCE(REPC.REPP,un.QUOTA_REP)::text
|
||
,COALESCE(REPC.DIRECTOR,un.QUOTA_REP)::text
|
||
,(un.VERSION||'-'||un.SY)::text
|
||
,(un.VERSION||'-'||un.OY)::text
|
||
,CASE
|
||
WHEN un.calc_status IN ('BACKORDER','OPEN') THEN
|
||
CASE
|
||
WHEN un.rdate < current_date THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE un.calc_status
|
||
END::text
|
||
,(SUBSTR(UN.PART,9,3)||'-'||un.BRANDING)::text
|
||
,'Grand Total'::text
|
||
)
|
||
SELECT
|
||
a.version
|
||
,a.iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,a.qty
|
||
,a.sales
|
||
,a.stdcost
|
||
,a.stdcost_cur
|
||
,a.pounds
|
||
,a.flag_s
|
||
,a.flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
agg a
|
||
UNION ALL
|
||
SELECT
|
||
'Var to Fcst' as version
|
||
,'Var to Fcst' as iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.QTY ELSE -a.QTY END::numeric QTY
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.SALES ELSE -a.SALES END::numeric SALES
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST ELSE -a.STDCOST END::numeric STDCOST
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST_CUR ELSE -a.STDCOST_CUR END::numeric STDCOST_CUR
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.POUNDS ELSE -a.POUNDS END::numeric POUNDS
|
||
,'Var to Fcst'||'-'||a.scytd flag_s
|
||
,'Var to Fcst'||'-'||a.ocytd flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
AGG a
|
||
WHERE
|
||
a.VERSION IN ('Actual','Forecast')
|
||
AND (a.ocytd OR a.scytd)
|
||
|
||
UNION ALL
|
||
SELECT
|
||
'Var to Bdgt' as version
|
||
,'Var to Bdgt' as iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.QTY ELSE -a.QTY END::numeric QTY
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.SALES ELSE -a.SALES END::numeric SALES
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST ELSE -a.STDCOST END::numeric STDCOST
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST_CUR ELSE -a.STDCOST_CUR END::numeric STDCOST_CUR
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.POUNDS ELSE -a.POUNDS END::numeric POUNDS
|
||
,'Var to Bdgt'||'-'||a.scytd flag_s
|
||
,'Var to Bdgt'||'-'||a.ocytd flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
AGG a
|
||
WHERE
|
||
a.VERSION IN ('Actual','Budget')
|
||
AND (a.ocytd OR a.scytd)
|
||
;</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 14:09:18
|
||
<b>Duration:</b> 2m2s
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-e-explain-2-3" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Append%20%20%28cost%3D4510966117154.68..4644894879274.93%20rows%3D1921380827591%20width%3D1520%29%20%28actual%20time%3D112425.684..121699.211%20rows%3D1378380%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D35380%20read%3D157188%2C%20local%20hit%3D5659519%20read%3D1%2C%20temp%20read%3D285302%20written%3D302218%0A%09%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20CTE%20seg%0A%09%20%20%20%20-%3E%20%20Values%20Scan%20on%20%22%2AVALUES%2A%22%20%20%28cost%3D0.00..0.18%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.003..0.006%20rows%3D14%20loops%3D1%29%0A%09%20%20CTE%20mg%0A%09%20%20%20%20-%3E%20%20Values%20Scan%20on%20%22%2AVALUES%2A_1%22%20%20%28cost%3D0.00..0.20%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.002..0.007%20rows%3D16%20loops%3D1%29%0A%09%20%20CTE%20repc%0A%09%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11.47..123.28%20rows%3D120%20width%3D96%29%20%28actual%20time%3D4.005..11.391%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28ltrim%28rtrim%28c.a9%29%29%20%3D%20q.qr%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10.590%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20code%20c%20%20%28cost%3D9.21..118.86%20rows%3D120%20width%3D25%29%20%28actual%20time%3D3.631..10.743%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28a2%20%3D%20%27MM%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D21%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D25%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10.256%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20pk_code%20%20%28cost%3D0.00..9.18%20rows%3D120%20width%3D0%29%20%28actual%20time%3D2.484..2.484%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28a2%20%3D%20%27MM%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2.398%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.56..1.56%20rows%3D56%20width%3D12%29%20%28actual%20time%3D0.359..0.359%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2011kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.334%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20qrh%20q%20%20%28cost%3D0.00..1.56%20rows%3D56%20width%3D12%29%20%28actual%20time%3D0.342..0.348%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.334%0A%09%20%20CTE%20md%0A%09%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D11936.00..11938.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D141.238..141.651%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20%28substr%28m.avpart%2C%201%2C%208%29%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Append%20%20%28cost%3D8137.31..11870.54%20rows%3D13091%20width%3D64%29%20%28actual%20time%3D131.283..140.399%20rows%3D3375%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D8137.31..8249.94%20rows%3D9010%20width%3D64%29%20%28actual%20time%3D131.282..131.853%20rows%3D3285%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20substr%28m.avpart%2C%201%2C%208%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m%20%20%28cost%3D0.00..8092.26%20rows%3D9010%20width%3D59%29%20%28actual%20time%3D0.026..38.556%20rows%3D76269%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28length%28avpart%29%20%3E%208%29%20AND%20%28substr%28avgled%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%204728%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D3373.23..3424.24%20rows%3D4081%20width%3D64%29%20%28actual%20time%3D8.321..8.352%20rows%3D90%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20substr%28p.awpart%2C%201%2C%208%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p%20%20%28cost%3D0.00..3352.82%20rows%3D4081%20width%3D52%29%20%28actual%20time%3D0.446..8.258%20rows%3D142%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28length%28awpart%29%20%3E%208%29%20AND%20%28substr%28awgled%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2036557%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20CTE%20sj%0A%09%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmsl%20%20%28cost%3D0.00..1.84%20rows%3D1%20width%3D22%29%20%28actual%20time%3D0.004..0.009%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28COALESCE%28bsmncd%2C%20%27%27%3A%3Atext%29%20%3D%20%27%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2056%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20CTE%20si%0A%09%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmsl%20mmsl_1%20%20%28cost%3D0.00..1.84%20rows%3D66%20width%3D22%29%20%28actual%20time%3D0.307..0.314%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28COALESCE%28bsmncd%2C%20%27%27%3A%3Atext%29%20%3C%3E%20%27%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2011%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.297%0A%09%20%20CTE%20seas%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D10.22..16.31%20rows%3D174%20width%3D41%29%20%28actual%20time%3D0.068..0.100%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20gld.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D10.22..10.65%20rows%3D174%20width%3D16%29%20%28actual%20time%3D0.054..0.061%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20gld.ssyr%20DESC%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2033kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D16%29%20%28actual%20time%3D0.010..0.030%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20CTE%20intv%0A%09%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seas%20%20%28cost%3D0.00..4.13%20rows%3D87%20width%3D4%29%20%28actual%20time%3D0.080..0.081%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20cy%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2014%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20CTE%20std%0A%09%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D0.00..457.62%20rows%3D15138%20width%3D73%29%20%28actual%20time%3D0.087..0.122%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20intv%20%20%28cost%3D0.00..1.74%20rows%3D87%20width%3D4%29%20%28actual%20time%3D0.081..0.082%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seas%20s%20%20%28cost%3D0.00..3.48%20rows%3D174%20width%3D41%29%20%28actual%20time%3D0.000..0.028%20rows%3D15%20loops%3D1%29%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D50003223.80..255856479.46%20rows%3D330423099%20width%3D697%29%20%28actual%20time%3D26363.405..56340.259%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32147%20read%3D138860%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5000.713%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D50003223.80..63823292.65%20rows%3D83757993%20width%3D701%29%20%28actual%20time%3D26363.404..28258.932%20rows%3D212793%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20osm.adj_orderdate%2C%20sd.ssyr%2C%20%28LEAST%28GREATEST%28osm.adj_shipdate%2C%20sd.sdat%29%2C%20sd.edat%29%29%2C%20rd.ssyr%2C%20osm.adj_requestdate%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm.plnt%2C%20osm.account%2C%20osm.bill_cust%2C%20osm.shipgrp%2C%20osm.ship_cust%2C%20osm.chan%2C%20l.retail%2C%20l.retailsub%2C%20osm.promo%2C%20osm.majg%2C%20osm.ming%2C%20osm.majs%2C%20osm.mins%2C%20osm.part%2C%20%28%28%28osm.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_1.avdes1%2C%20p_1.awdes1%29%29%29%29%2C%20%28%28%28f.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f.descr%29%29%2C%20%28%28%28substr%28osm.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md.descr%29%29%2C%20%28COALESCE%28mg.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm.quota_rep%2C%20%28CASE%20osm.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm.calc_status%20END%29%2C%20osm.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9063%20read%3D59473%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2714.560%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D50003223.80..50212618.79%20rows%3D83757993%20width%3D594%29%20%28actual%20time%3D26363.369..26503.583%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20osm.adj_orderdate%2C%20sd.ssyr%2C%20%28LEAST%28GREATEST%28osm.adj_shipdate%2C%20sd.sdat%29%2C%20sd.edat%29%29%2C%20rd.ssyr%2C%20osm.adj_requestdate%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm.plnt%2C%20osm.account%2C%20osm.bill_cust%2C%20osm.shipgrp%2C%20osm.ship_cust%2C%20osm.chan%2C%20l.retail%2C%20l.retailsub%2C%20osm.promo%2C%20osm.majg%2C%20osm.ming%2C%20osm.majs%2C%20osm.mins%2C%20osm.part%2C%20%28%28%28osm.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_1.avdes1%2C%20p_1.awdes1%29%29%29%29%2C%20%28%28%28f.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f.descr%29%29%2C%20%28%28%28substr%28osm.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md.descr%29%29%2C%20%28COALESCE%28mg.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm.quota_rep%2C%20%28CASE%20osm.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm.calc_status%20END%29%2C%20osm.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20352782kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9063%20read%3D59473%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2714.560%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..16650773.71%20rows%3D83757993%20width%3D594%29%20%28actual%20time%3D412.849..12408.886%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm.bill_class%20%3D%20l.bill%29%20AND%20%28osm.ship_class%20%3D%20l.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9060%20read%3D59473%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2714.560%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..10583311.94%20rows%3D83757993%20width%3D583%29%20%28actual%20time%3D412.362..11595.759%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm.part%2C%201%2C%208%29%20%3D%20md.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9060%20read%3D59471%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2714.141%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..5348430.88%20rows%3D83757993%20width%3D551%29%20%28actual%20time%3D269.279..10961.881%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.part%20%3D%20p_1.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4%20read%3D59471%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2714.141%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..5125106.33%20rows%3D83757993%20width%3D527%29%20%28actual%20time%3D188.919..10630.169%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D56865%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2652.319%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..337594.45%20rows%3D4332310%20width%3D455%29%20%28actual%20time%3D188.914..7884.956%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D56865%2C%20local%20hit%3D1281897%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2652.319%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..89964.52%20rows%3D224085%20width%3D383%29%20%28actual%20time%3D188.885..5089.482%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.part%20%3D%20m_1.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D56865%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2652.306%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..81103.81%20rows%3D224085%20width%3D348%29%20%28actual%20time%3D3.518..4614.841%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm.part%2C%201%2C%203%29%20%3D%20f.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D50419%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2511.680%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..77718.84%20rows%3D224085%20width%3D324%29%20%28actual%20time%3D2.296..4183.537%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm.part%2C%2016%2C%201%29%20%3D%20mg.f1%29%20AND%20%28osm.ming%20%3D%20mg.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D50410%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2510.588%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..75750.09%20rows%3D224085%20width%3D292%29%20%28actual%20time%3D2.277..3733.098%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.glec%20%3D%20seg.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D50410%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2510.588%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..72674.81%20rows%3D224085%20width%3D264%29%20%28actual%20time%3D2.259..3490.071%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D50410%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2510.588%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmp%20osm%20%20%28cost%3D0.00..69587.73%20rows%3D224085%20width%3D184%29%20%28actual%20time%3D2.186..3227.306%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28version%20%3D%20%27b19%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271901%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272018-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2057051%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D50410%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2510.588%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.060..0.060%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.008..0.034%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.014..0.014%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.005..0.011%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.015..0.015%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.003..0.011%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D1.217..1.217%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1.092%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.985..1.149%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1.092%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D185.313..185.313%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D6446%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D140.626%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_1%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D0.508..163.116%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D6446%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D140.626%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D641010%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1281895%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.013%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.004%20rows%3D1%20loops%3D641010%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1281894%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D80.171..80.171%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D2606%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D61.823%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_1%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D0.342..70.937%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D2606%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D61.823%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D143.065..143.065%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D141.241..142.539%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.472..0.472%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.418%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.424..0.443%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.418%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D33445583.00..42801951.72%20rows%3D56705265%20width%3D699%29%20%28actual%20time%3D17060.209..18105.019%20rows%3D250477%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20osm_1.adj_orderdate%2C%20sd_1.ssyr%2C%20%28LEAST%28GREATEST%28osm_1.adj_shipdate%2C%20sd_1.sdat%29%2C%20sd_1.edat%29%29%2C%20rd_1.ssyr%2C%20osm_1.adj_requestdate%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_1.plnt%2C%20osm_1.account%2C%20osm_1.bill_cust%2C%20osm_1.shipgrp%2C%20osm_1.ship_cust%2C%20osm_1.chan%2C%20l_1.retail%2C%20l_1.retailsub%2C%20osm_1.promo%2C%20osm_1.majg%2C%20osm_1.ming%2C%20osm_1.majs%2C%20osm_1.mins%2C%20osm_1.part%2C%20%28%28%28osm_1.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_2.avdes1%2C%20p_2.awdes1%29%29%29%29%2C%20%28%28%28f_1.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_1.descr%29%29%2C%20%28%28%28substr%28osm_1.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_1.descr%29%29%2C%20%28COALESCE%28mg_1.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_1.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_1.quota_rep%2C%20%28CASE%20osm_1.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_1.calc_status%20END%29%2C%20osm_1.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9067%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D33445583.00..33587346.16%20rows%3D56705265%20width%3D595%29%20%28actual%20time%3D17060.177..17152.591%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20osm_1.adj_orderdate%2C%20sd_1.ssyr%2C%20%28LEAST%28GREATEST%28osm_1.adj_shipdate%2C%20sd_1.sdat%29%2C%20sd_1.edat%29%29%2C%20rd_1.ssyr%2C%20osm_1.adj_requestdate%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_1.plnt%2C%20osm_1.account%2C%20osm_1.bill_cust%2C%20osm_1.shipgrp%2C%20osm_1.ship_cust%2C%20osm_1.chan%2C%20l_1.retail%2C%20l_1.retailsub%2C%20osm_1.promo%2C%20osm_1.majg%2C%20osm_1.ming%2C%20osm_1.majs%2C%20osm_1.mins%2C%20osm_1.part%2C%20%28%28%28osm_1.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_2.avdes1%2C%20p_2.awdes1%29%29%29%29%2C%20%28%28%28f_1.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_1.descr%29%29%2C%20%28%28%28substr%28osm_1.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_1.descr%29%29%2C%20%28COALESCE%28mg_1.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_1.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_1.quota_rep%2C%20%28CASE%20osm_1.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_1.calc_status%20END%29%2C%20osm_1.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20222052kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9067%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..11025086.80%20rows%3D56705265%20width%3D595%29%20%28actual%20time%3D160.607..8900.120%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm_1.bill_class%20%3D%20l_1.bill%29%20AND%20%28osm_1.ship_class%20%3D%20l_1.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9067%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..6967724.27%20rows%3D55168846%20width%3D584%29%20%28actual%20time%3D160.531..8303.160%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_1.part%2C%201%2C%208%29%20%3D%20md_1.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9065%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..3519664.90%20rows%3D55168846%20width%3D552%29%20%28actual%20time%3D159.458..7928.685%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.part%20%3D%20p_2.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9065%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..3371395.52%20rows%3D55168846%20width%3D528%29%20%28actual%20time%3D139.481..7719.889%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6457%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..217901.28%20rows%3D2853561%20width%3D456%29%20%28actual%20time%3D139.471..5838.942%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6457%20read%3D26345%2C%20local%20hit%3D813630%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..54789.49%20rows%3D147598%20width%3D384%29%20%28actual%20time%3D139.449..3929.023%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.part%20%3D%20m_2.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6457%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..46129.57%20rows%3D147598%20width%3D349%29%20%28actual%20time%3D79.183..3618.398%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_1.part%2C%201%2C%203%29%20%3D%20f_1.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..43891.91%20rows%3D147598%20width%3D325%29%20%28actual%20time%3D78.806..3313.087%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm_1.part%2C%2016%2C%201%29%20%3D%20mg_1.f1%29%20AND%20%28osm_1.ming%20%3D%20mg_1.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..42594.49%20rows%3D147598%20width%3D293%29%20%28actual%20time%3D78.771..2997.016%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.glec%20%3D%20seg_1.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..40564.57%20rows%3D147598%20width%3D265%29%20%28actual%20time%3D78.706..2840.808%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.fspr%20%3D%20sd_1.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmf%20osm_1%20%20%28cost%3D0.00..38529.18%20rows%3D147598%20width%3D185%29%20%28actual%20time%3D78.437..2657.330%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28version%20%3D%20%275p7%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271901%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272018-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.200..0.200%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.053..0.147%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.039..0.039%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20seg_1%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.009..0.015%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.014..0.014%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20mg_1%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.003..0.008%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.350..0.350%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f_1%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.090..0.194%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D59.937..59.937%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_2%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D0.021..34.499%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od_1%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813628%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd_1%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813628%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D19.766..19.766%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_2%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D0.008..10.901%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D1.056..1.056%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20md_1%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.003..0.385%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.055..0.055%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l_1%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.007..0.025%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D112931514.84..144274888.60%20rows%3D189959841%20width%3D695%29%20%28actual%20time%3D8819.747..9896.203%20rows%3D349128%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_2.ssyr%2C%20osm_2.adj_orderdate%2C%20sd_2.ssyr%2C%20%28LEAST%28GREATEST%28osm_2.adj_shipdate%2C%20sd_2.sdat%29%2C%20sd_2.edat%29%29%2C%20rd_2.ssyr%2C%20osm_2.adj_requestdate%2C%20%28COALESCE%28od_2.cm%2C%20sd_2.cm%29%29%2C%20%28COALESCE%28sd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_2.cy%2C%20sd_2.cy%29%29%2C%20%28COALESCE%28sd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_2.plnt%2C%20osm_2.account%2C%20osm_2.bill_cust%2C%20osm_2.shipgrp%2C%20osm_2.ship_cust%2C%20osm_2.chan%2C%20l_2.retail%2C%20l_2.retailsub%2C%20osm_2.promo%2C%20osm_2.majg%2C%20osm_2.ming%2C%20osm_2.majs%2C%20osm_2.mins%2C%20osm_2.part%2C%20%28%28%28osm_2.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_3.avdes1%2C%20p_3.awdes1%29%29%29%29%2C%20%28%28%28f_2.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_2.descr%29%29%2C%20%28%28%28substr%28osm_2.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_2.descr%29%29%2C%20%28COALESCE%28mg_2.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_2.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_2.quota_rep%2C%20%28CASE%20osm_2.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_2.calc_status%20END%29%2C%20osm_2.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D14017%20read%3D53042%2C%20local%20hit%3D1468468%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D112931514.84..113406414.44%20rows%3D189959841%20width%3D584%29%20%28actual%20time%3D8819.714..8895.706%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_2.ssyr%2C%20osm_2.adj_orderdate%2C%20sd_2.ssyr%2C%20%28LEAST%28GREATEST%28osm_2.adj_shipdate%2C%20sd_2.sdat%29%2C%20sd_2.edat%29%29%2C%20rd_2.ssyr%2C%20osm_2.adj_requestdate%2C%20%28COALESCE%28od_2.cm%2C%20sd_2.cm%29%29%2C%20%28COALESCE%28sd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_2.cy%2C%20sd_2.cy%29%29%2C%20%28COALESCE%28sd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_2.plnt%2C%20osm_2.account%2C%20osm_2.bill_cust%2C%20osm_2.shipgrp%2C%20osm_2.ship_cust%2C%20osm_2.chan%2C%20l_2.retail%2C%20l_2.retailsub%2C%20osm_2.promo%2C%20osm_2.majg%2C%20osm_2.ming%2C%20osm_2.majs%2C%20osm_2.mins%2C%20osm_2.part%2C%20%28%28%28osm_2.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_3.avdes1%2C%20p_3.awdes1%29%29%29%29%2C%20%28%28%28f_2.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_2.descr%29%29%2C%20%28%28%28substr%28osm_2.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_2.descr%29%29%2C%20%28COALESCE%28mg_2.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_2.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_2.quota_rep%2C%20%28CASE%20osm_2.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_2.calc_status%20END%29%2C%20osm_2.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20201721kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D14017%20read%3D53042%2C%20local%20hit%3D1468468%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..37465936.67%20rows%3D189959841%20width%3D584%29%20%28actual%20time%3D50.604..4494.745%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm_2.bill_class%20%3D%20l_2.bill%29%20AND%20%28osm_2.ship_class%20%3D%20l_2.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D14017%20read%3D53042%2C%20local%20hit%3D1468468%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..23902628.82%20rows%3D189959841%20width%3D574%29%20%28actual%20time%3D50.549..4122.287%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_2.part%2C%201%2C%208%29%20%3D%20md_2.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D14015%20read%3D53042%2C%20local%20hit%3D1468468%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..12030132.26%20rows%3D189959841%20width%3D542%29%20%28actual%20time%3D49.780..3891.847%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.part%20%3D%20p_3.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D14015%20read%3D53042%2C%20local%20hit%3D1468468%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..11527995.69%20rows%3D189959841%20width%3D518%29%20%28actual%20time%3D34.804..3756.178%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D11407%20read%3D53042%2C%20local%20hit%3D1468468%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..670498.91%20rows%3D9825509%20width%3D446%29%20%28actual%20time%3D34.797..2623.310%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D11407%20read%3D53042%2C%20local%20hit%3D734236%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..108904.23%20rows%3D508216%20width%3D374%29%20%28actual%20time%3D34.774..1278.961%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.part%20%3D%20m_3.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D11407%20read%3D53042%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..99297.64%20rows%3D508216%20width%3D339%29%20%28actual%20time%3D0.327..1108.708%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_2.part%2C%201%2C%203%29%20%3D%20f_2.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4959%20read%3D53042%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..91650.71%20rows%3D508216%20width%3D315%29%20%28actual%20time%3D0.203..921.418%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm_2.part%2C%2016%2C%201%29%20%3D%20mg_2.f1%29%20AND%20%28osm_2.ming%20%3D%20mg_2.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4950%20read%3D53042%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..87189.88%20rows%3D508216%20width%3D283%29%20%28actual%20time%3D0.191..727.591%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.glec%20%3D%20seg_2.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4950%20read%3D53042%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..80265.15%20rows%3D508216%20width%3D255%29%20%28actual%20time%3D0.180..611.979%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.fspr%20%3D%20sd_2.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4950%20read%3D53042%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osm%20osm_2%20%20%28cost%3D0.00..73663.10%20rows%3D508216%20width%3D175%29%20%28actual%20time%3D0.106..492.248%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271606%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272016-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20417370%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4950%20read%3D53042%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.065..0.065%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_2%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.018..0.041%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.006..0.006%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20seg_2%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.002..0.003%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.006..0.006%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20mg_2%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.001..0.002%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.119..0.119%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f_2%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.014..0.051%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D34.398..34.398%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_3%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D0.006..21.130%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od_2%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D367402%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_2.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_2.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D734234%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd_2%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.002..0.003%20rows%3D1%20loops%3D367402%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_2.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm_2.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D734232%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D14.938..14.938%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_3%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D0.006..9.060%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.757..0.757%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20md_2%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.002..0.289%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.042..0.042%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l_2%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.006..0.020%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20CTE%20agg%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D3990139087947.22..4510710248131.84%20rows%3D1892986037035%20width%3D1404%29%20%28actual%20time%3D112425.677..116271.291%20rows%3D809656%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20un.version%2C%20un.iter%2C%20%28%28un.oseas%29%3A%3Anumeric%29%2C%20un.odate%2C%20%28%28un.sseas%29%3A%3Anumeric%29%2C%20un.sdate%2C%20%28%28un.rseas%29%3A%3Anumeric%29%2C%20un.rdate%2C%20un.om%2C%20un.sm%2C%20un.rm%2C%20un.oy%2C%20%28%28un.odate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.odate%20%3C%40%20so.ytd%29%29%2C%20un.sy%2C%20%28%28un.sdate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.sdate%20%3C%40%20ss.ytd%29%29%2C%20%28CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%3D%20un.odate%29%20THEN%20CASE%20WHEN%20%28%28un.sdate%20%3E%20%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%29%20OR%20%28un.sy%20%3D%20%27F%27%3A%3Atext%29%29%20THEN%20CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%20un.rdate%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20%27Shipped%27%3A%3Atext%20END%20ELSE%20%27Not%20Yet%20Placed%27%3A%3Atext%20END%29%2C%20un.ry%2C%20un.plnt%2C%20un.account%2C%20%28%28%28un.bill_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28bc.bvname%29%29%29%2C%20bc.bvctry%2C%20bc.bvprcd%2C%20un.shipgrp%2C%20%28%28%28un.ship_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28sc.bvname%29%29%29%2C%20sc.bvctry%2C%20sc.bvprcd%2C%20un.chan%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retail%20ELSE%20un.chan%20END%29%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retailsub%20ELSE%20%27%27%3A%3Atext%20END%29%2C%20un.promo%2C%20%28%28un.majg%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20majg.bqdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.ming%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20mmgp.brdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.majs%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20sj.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.mins%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20si.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20un.part%2C%20un.part_descr%2C%20un.part_family%2C%20un.part_group%2C%20un.branding%2C%20un.segm%2C%20%28COALESCE%28repc.repp%2C%20un.quota_rep%29%29%2C%20%28COALESCE%28repc.director%2C%20un.quota_rep%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.sy%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.oy%29%29%2C%20%28CASE%20WHEN%20%28un.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20THEN%20CASE%20WHEN%20%28un.rdate%20%3C%20CURRENT_DATE%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20un.calc_status%20END%29%2C%20%28%28%28substr%28un.part%2C%209%2C%203%29%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.branding%29%29%2C%20%27Grand%20Total%27%3A%3Atext%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35380%20read%3D157188%2C%20local%20hit%3D5659519%20read%3D1%2C%20temp%20read%3D169586%20written%3D244360%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D3990139087947.22..3994871553039.80%20rows%3D1892986037035%20width%3D1346%29%20%28actual%20time%3D112425.642..112859.948%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.version%2C%20un.iter%2C%20%28%28un.oseas%29%3A%3Anumeric%29%2C%20un.odate%2C%20%28%28un.sseas%29%3A%3Anumeric%29%2C%20un.sdate%2C%20%28%28un.rseas%29%3A%3Anumeric%29%2C%20un.rdate%2C%20un.om%2C%20un.sm%2C%20un.rm%2C%20un.oy%2C%20%28%28un.odate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.odate%20%3C%40%20so.ytd%29%29%2C%20un.sy%2C%20%28%28un.sdate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.sdate%20%3C%40%20ss.ytd%29%29%2C%20%28CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%3D%20un.odate%29%20THEN%20CASE%20WHEN%20%28%28un.sdate%20%3E%20%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%29%20OR%20%28un.sy%20%3D%20%27F%27%3A%3Atext%29%29%20THEN%20CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%20un.rdate%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20%27Shipped%27%3A%3Atext%20END%20ELSE%20%27Not%20Yet%20Placed%27%3A%3Atext%20END%29%2C%20un.ry%2C%20un.plnt%2C%20un.account%2C%20%28%28%28un.bill_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28bc.bvname%29%29%29%2C%20bc.bvctry%2C%20bc.bvprcd%2C%20un.shipgrp%2C%20%28%28%28un.ship_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28sc.bvname%29%29%29%2C%20sc.bvctry%2C%20sc.bvprcd%2C%20un.chan%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retail%20ELSE%20un.chan%20END%29%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retailsub%20ELSE%20%27%27%3A%3Atext%20END%29%2C%20un.promo%2C%20%28%28un.majg%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20majg.bqdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.ming%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20mmgp.brdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.majs%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20sj.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.mins%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20si.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20un.part%2C%20un.part_descr%2C%20un.part_family%2C%20un.part_group%2C%20un.branding%2C%20un.segm%2C%20%28COALESCE%28repc.repp%2C%20un.quota_rep%29%29%2C%20%28COALESCE%28repc.director%2C%20un.quota_rep%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.sy%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.oy%29%29%2C%20%28CASE%20WHEN%20%28un.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20THEN%20CASE%20WHEN%20%28un.rdate%20%3C%20CURRENT_DATE%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20un.calc_status%20END%29%2C%20%28%28%28substr%28un.part%2C%209%2C%203%29%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.branding%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20475944kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35380%20read%3D157188%2C%20local%20hit%3D5659519%20read%3D1%2C%20temp%20read%3D169586%20written%3D244360%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Merge%20Right%20Join%20%20%28cost%3D33563712447.31..265517026370.70%20rows%3D1892986037035%20width%3D1346%29%20%28actual%20time%3D69370.743..73383.296%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Merge%20Cond%3A%20%28ss.ssyr%20%3D%20un.sseas%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D157188%2C%20local%20hit%3D5659519%20read%3D1%2C%20temp%20read%3D110093%20written%3D184866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D1353.78..1391.63%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.187..0.194%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20ss.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20std%20ss%20%20%28cost%3D0.00..302.76%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.143..0.183%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D33563711093.53..33688759715.34%20rows%3D25009724363%20width%3D1300%29%20%28actual%20time%3D69363.504..70242.785%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D157188%2C%20local%20hit%3D5659517%20read%3D1%2C%20temp%20read%3D110093%20written%3D184866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D33563711093.53..33626235404.44%20rows%3D25009724363%20width%3D1300%29%20%28actual%20time%3D69363.500..69636.493%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.sseas%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20445936kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D157188%2C%20local%20hit%3D5659517%20read%3D1%2C%20temp%20read%3D110093%20written%3D146616%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Merge%20Right%20Join%20%20%28cost%3D488162845.81..864134844.69%20rows%3D25009724363%20width%3D1300%29%20%28actual%20time%3D64619.072..67097.961%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Merge%20Cond%3A%20%28so.ssyr%20%3D%20un.oseas%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D157188%2C%20local%20hit%3D5659517%20read%3D1%2C%20temp%20read%3D54351%20written%3D90873%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D1353.78..1391.63%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.005..0.009%20rows%3D13%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20so.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20std%20so%20%20%28cost%3D0.00..302.76%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.001..0.002%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D488161492.03..489813607.52%20rows%3D330423099%20width%3D1268%29%20%28actual%20time%3D64619.055..66543.724%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D157188%2C%20local%20hit%3D5659517%20read%3D1%2C%20temp%20read%3D54351%20written%3D90873%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D488161492.03..488987549.77%20rows%3D330423099%20width%3D1268%29%20%28actual%20time%3D64619.051..65222.574%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.oseas%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20434808kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D157188%2C%20local%20hit%3D5659517%20read%3D1%2C%20temp%20read%3D54351%20written%3D54352%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30326.40..75489285.22%20rows%3D330423099%20width%3D1268%29%20%28actual%20time%3D26974.130..61679.511%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cr.y0part%29%20AND%20%28un.plnt%20%3D%20cr.y0plnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D157188%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D22414.65..56426266.97%20rows%3D330423099%20width%3D1262%29%20%28actual%20time%3D26803.460..61130.886%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cp.chpart%29%20AND%20%28un.plnt%20%3D%20cp.chplnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D151936%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5307.518%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D14299.03..36533966.06%20rows%3D330423099%20width%3D1256%29%20%28actual%20time%3D26596.173..60544.080%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cm.cgpart%29%20AND%20%28un.plnt%20%3D%20cm.cgplnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D146620%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5163.164%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D7433.88..34026391.85%20rows%3D330423099%20width%3D1250%29%20%28actual%20time%3D26466.230..59938.193%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.bill_cust%20%3D%20sc.bvcust%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D142113%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5079.788%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D3723.16..29479363.52%20rows%3D330423099%20width%3D1223%29%20%28actual%20time%3D26455.847..59596.315%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.bill_cust%20%3D%20bc.bvcust%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32148%20read%3D142113%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5079.788%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D12.44..24932335.18%20rows%3D330423099%20width%3D1196%29%20%28actual%20time%3D26376.451..59161.607%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.ming%20%3D%20mmgp.brmgrp%29%20AND%20%28un.majg%20%3D%20mmgp.brgrp%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32148%20read%3D138889%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5012.664%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D7.51..15006668.18%20rows%3D330423099%20width%3D1186%29%20%28actual%20time%3D26375.626..58843.583%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.majg%20%3D%20majg.bqgrp%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32148%20read%3D138888%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5011.904%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.24..13569326.43%20rows%3D330423099%20width%3D1176%29%20%28actual%20time%3D26375.306..58564.379%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.majs%20%3D%20sj.bsmjcd%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32148%20read%3D138887%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5011.601%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.21..12313718.62%20rows%3D330423099%20width%3D1144%29%20%28actual%20time%3D26375.285..58278.120%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.majs%20%3D%20si.bsmjcd%29%20AND%20%28un.mins%20%3D%20si.bsmncd%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32147%20read%3D138887%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5011.601%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D3.90..9830091.09%20rows%3D330423099%20width%3D1112%29%20%28actual%20time%3D26374.932..57946.951%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.quota_rep%20%3D%20repc.rcode%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32147%20read%3D138886%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5011.303%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..6608461.98%20rows%3D330423099%20width%3D1048%29%20%28actual%20time%3D26363.408..57457.121%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32147%20read%3D138860%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5000.713%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2.40..2.40%20rows%3D120%20width%3D96%29%20%28actual%20time%3D11.512..11.512%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2017kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10.590%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20repc%20%20%28cost%3D0.00..2.40%20rows%3D120%20width%3D96%29%20%28actual%20time%3D4.008..11.473%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10.590%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.32..1.32%20rows%3D66%20width%3D96%29%20%28actual%20time%3D0.343..0.343%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2011kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.297%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20si%20%20%28cost%3D0.00..1.32%20rows%3D66%20width%3D96%29%20%28actual%20time%3D0.310..0.330%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.297%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.02..0.02%20rows%3D1%20width%3D64%29%20%28actual%20time%3D0.014..0.014%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20sj%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D64%29%20%28actual%20time%3D0.006..0.012%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.12..1.12%20rows%3D12%20width%3D14%29%20%28actual%20time%3D0.316..0.316%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.303%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20majg%20%20%28cost%3D0.00..1.12%20rows%3D12%20width%3D14%29%20%28actual%20time%3D0.309..0.310%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.303%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2.57..2.57%20rows%3D157%20width%3D18%29%20%28actual%20time%3D0.818..0.818%20rows%3D157%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.760%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmgp%20%20%28cost%3D0.00..2.57%20rows%3D157%20width%3D18%29%20%28actual%20time%3D0.771..0.787%20rows%3D157%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.760%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3440.32..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D79.377..79.377%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2032768%20%20Batches%3A%201%20%20Memory%20Usage%3A%201721kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D67.124%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20cust%20bc%20%20%28cost%3D0.00..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D1.226..74.190%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D67.124%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3440.32..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D10.361..10.361%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2032768%20%20Batches%3A%201%20%20Memory%20Usage%3A%201721kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20cust%20sc%20%20%28cost%3D0.00..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D0.007..6.549%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D5450.26..5450.26%20rows%3D94326%20width%3D29%29%20%28actual%20time%3D129.891..129.891%20rows%3D94326%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%206699kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4507%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.376%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstm%20cm%20%20%28cost%3D0.00..5450.26%20rows%3D94326%20width%3D29%29%20%28actual%20time%3D1.628..106.590%20rows%3D94326%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4507%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.376%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D6435.85..6435.85%20rows%3D111985%20width%3D20%29%20%28actual%20time%3D207.238..207.238%20rows%3D111985%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%206768kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5316%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D144.354%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstp%20cp%20%20%28cost%3D0.00..6435.85%20rows%3D111985%20width%3D20%29%20%28actual%20time%3D12.877..174.296%20rows%3D111985%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5316%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D144.354%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D6315.90..6315.90%20rows%3D106390%20width%3D27%29%20%28actual%20time%3D167.190..167.190%20rows%3D106390%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207334kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5252%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D123.594%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstr%20cr%20%20%28cost%3D0.00..6315.90%20rows%3D106390%20width%3D27%29%20%28actual%20time%3D1.618..138.920%20rows%3D106390%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5252%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D123.594%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a%20%20%28cost%3D0.00..37859720740.70%20rows%3D1892986037035%20width%3D1520%29%20%28actual%20time%3D112425.683..119325.832%20rows%3D809656%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35380%20read%3D157188%2C%20local%20hit%3D5659519%20read%3D1%2C%20temp%20read%3D169586%20written%3D302217%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a_1%20%20%28cost%3D0.00..43089094668.02%20rows%3D14197395278%20width%3D1520%29%20%28actual%20time%3D10.640..1070.930%20rows%3D298533%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Filter%3A%20%28%28ocytd%20OR%20scytd%29%20AND%20%28version%20%3D%20ANY%20%28%27%7BActual%2CForecast%7D%27%3A%3Atext%5B%5D%29%29%29%0A%09%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20511123%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20temp%20read%3D57858%20written%3D1%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a_2%20%20%28cost%3D0.00..43089094668.02%20rows%3D14197395278%20width%3D1520%29%20%28actual%20time%3D24.901..1109.287%20rows%3D270191%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Filter%3A%20%28%28ocytd%20OR%20scytd%29%20AND%20%28version%20%3D%20ANY%20%28%27%7BActual%2CBudget%7D%27%3A%3Atext%5B%5D%29%29%29%0A%09%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20539465%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20temp%20read%3D57858%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Append (cost=4510966117154.68..4644894879274.93 rows=1921380827591 width=1520) (actual time=112425.684..121699.211 rows=1378380 loops=1)
|
||
Buffers: shared hit=35380 read=157188, local hit=5659519 read=1, temp read=285302 written=302218
|
||
I/O Timings: read=5431.112
|
||
CTE seg
|
||
-> Values Scan on "*VALUES*" (cost=0.00..0.18 rows=14 width=64) (actual time=0.003..0.006 rows=14 loops=1)
|
||
CTE mg
|
||
-> Values Scan on "*VALUES*_1" (cost=0.00..0.20 rows=16 width=96) (actual time=0.002..0.007 rows=16 loops=1)
|
||
CTE repc
|
||
-> Hash Left Join (cost=11.47..123.28 rows=120 width=96) (actual time=4.005..11.391 rows=120 loops=1)
|
||
Hash Cond: (ltrim(rtrim(c.a9)) = q.qr)
|
||
Buffers: shared read=26
|
||
I/O Timings: read=10.590
|
||
-> Bitmap Heap Scan on code c (cost=9.21..118.86 rows=120 width=25) (actual time=3.631..10.743 rows=120 loops=1)
|
||
Recheck Cond: (a2 = 'MM'::text)
|
||
Heap Blocks: exact=21
|
||
Buffers: shared read=25
|
||
I/O Timings: read=10.256
|
||
-> Bitmap Index Scan on pk_code (cost=0.00..9.18 rows=120 width=0) (actual time=2.484..2.484 rows=120 loops=1)
|
||
Index Cond: (a2 = 'MM'::text)
|
||
Buffers: shared read=4
|
||
I/O Timings: read=2.398
|
||
-> Hash (cost=1.56..1.56 rows=56 width=12) (actual time=0.359..0.359 rows=56 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 11kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.334
|
||
-> Seq Scan on qrh q (cost=0.00..1.56 rows=56 width=12) (actual time=0.342..0.348 rows=56 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.334
|
||
CTE md
|
||
-> HashAggregate (cost=11936.00..11938.00 rows=200 width=64) (actual time=141.238..141.651 rows=3368 loops=1)
|
||
Group Key: (substr(m.avpart, 1, 8))
|
||
Buffers: shared hit=9056
|
||
-> Append (cost=8137.31..11870.54 rows=13091 width=64) (actual time=131.283..140.399 rows=3375 loops=1)
|
||
Buffers: shared hit=9056
|
||
-> HashAggregate (cost=8137.31..8249.94 rows=9010 width=64) (actual time=131.282..131.853 rows=3285 loops=1)
|
||
Group Key: substr(m.avpart, 1, 8)
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m (cost=0.00..8092.26 rows=9010 width=59) (actual time=0.026..38.556 rows=76269 loops=1)
|
||
Filter: ((length(avpart) > 8) AND (substr(avgled, 1, 1) <= '2'::text))
|
||
Rows Removed by Filter: 4728
|
||
Buffers: shared hit=6448
|
||
-> HashAggregate (cost=3373.23..3424.24 rows=4081 width=64) (actual time=8.321..8.352 rows=90 loops=1)
|
||
Group Key: substr(p.awpart, 1, 8)
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p (cost=0.00..3352.82 rows=4081 width=52) (actual time=0.446..8.258 rows=142 loops=1)
|
||
Filter: ((length(awpart) > 8) AND (substr(awgled, 1, 1) <= '2'::text))
|
||
Rows Removed by Filter: 36557
|
||
Buffers: shared hit=2608
|
||
CTE sj
|
||
-> Seq Scan on mmsl (cost=0.00..1.84 rows=1 width=22) (actual time=0.004..0.009 rows=11 loops=1)
|
||
Filter: (COALESCE(bsmncd, ''::text) = ''::text)
|
||
Rows Removed by Filter: 56
|
||
Buffers: shared hit=1
|
||
CTE si
|
||
-> Seq Scan on mmsl mmsl_1 (cost=0.00..1.84 rows=66 width=22) (actual time=0.307..0.314 rows=56 loops=1)
|
||
Filter: (COALESCE(bsmncd, ''::text) <> ''::text)
|
||
Rows Removed by Filter: 11
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.297
|
||
CTE seas
|
||
-> GroupAggregate (cost=10.22..16.31 rows=174 width=41) (actual time=0.068..0.100 rows=15 loops=1)
|
||
Group Key: gld.ssyr
|
||
Buffers: local hit=2
|
||
-> Sort (cost=10.22..10.65 rows=174 width=16) (actual time=0.054..0.061 rows=174 loops=1)
|
||
Sort Key: gld.ssyr DESC
|
||
Sort Method: quicksort Memory: 33kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld (cost=0.00..3.74 rows=174 width=16) (actual time=0.010..0.030 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
CTE intv
|
||
-> CTE Scan on seas (cost=0.00..4.13 rows=87 width=4) (actual time=0.080..0.081 rows=1 loops=1)
|
||
Filter: cy
|
||
Rows Removed by Filter: 14
|
||
Buffers: local hit=2
|
||
CTE std
|
||
-> Nested Loop (cost=0.00..457.62 rows=15138 width=73) (actual time=0.087..0.122 rows=15 loops=1)
|
||
Buffers: local hit=2
|
||
-> CTE Scan on intv (cost=0.00..1.74 rows=87 width=4) (actual time=0.081..0.082 rows=1 loops=1)
|
||
Buffers: local hit=2
|
||
-> CTE Scan on seas s (cost=0.00..3.48 rows=174 width=41) (actual time=0.000..0.028 rows=15 loops=1)
|
||
CTE un
|
||
-> Append (cost=50003223.80..255856479.46 rows=330423099 width=697) (actual time=26363.405..56340.259 rows=812398 loops=1)
|
||
Buffers: shared hit=32147 read=138860, local hit=5659517 read=1
|
||
I/O Timings: read=5000.713
|
||
-> GroupAggregate (cost=50003223.80..63823292.65 rows=83757993 width=701) (actual time=26363.404..28258.932 rows=212793 loops=1)
|
||
Group Key: od.ssyr, osm.adj_orderdate, sd.ssyr, (LEAST(GREATEST(osm.adj_shipdate, sd.sdat), sd.edat)), rd.ssyr, osm.adj_requestdate, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(rd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text)), (COALESCE(rd.cy, 'F'::text)), osm.plnt, osm.account, osm.bill_cust, osm.shipgrp, osm.ship_cust, osm.chan, l.retail, l.retailsub, osm.promo, osm.majg, osm.ming, osm.majs, osm.mins, osm.part, (((osm.part || ' - '::text) || rtrim(COALESCE(m_1.avdes1, p_1.awdes1)))), (((f.f3 || ' - '::text) || f.descr)), (((substr(osm.part, 1, 8) || ' - '::text) || md.descr)), (COALESCE(mg.grp, 'Unbranded'::text)), (COALESCE(seg.segm, 'Other'::text)), osm.quota_rep, (CASE osm.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm.calc_status END), osm.c_rate
|
||
Buffers: shared hit=9063 read=59473, local hit=2563791 read=1
|
||
I/O Timings: read=2714.560
|
||
-> Sort (cost=50003223.80..50212618.79 rows=83757993 width=594) (actual time=26363.369..26503.583 rows=641010 loops=1)
|
||
Sort Key: od.ssyr, osm.adj_orderdate, sd.ssyr, (LEAST(GREATEST(osm.adj_shipdate, sd.sdat), sd.edat)), rd.ssyr, osm.adj_requestdate, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(rd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text)), (COALESCE(rd.cy, 'F'::text)), osm.plnt, osm.account, osm.bill_cust, osm.shipgrp, osm.ship_cust, osm.chan, l.retail, l.retailsub, osm.promo, osm.majg, osm.ming, osm.majs, osm.mins, osm.part, (((osm.part || ' - '::text) || rtrim(COALESCE(m_1.avdes1, p_1.awdes1)))), (((f.f3 || ' - '::text) || f.descr)), (((substr(osm.part, 1, 8) || ' - '::text) || md.descr)), (COALESCE(mg.grp, 'Unbranded'::text)), (COALESCE(seg.segm, 'Other'::text)), osm.quota_rep, (CASE osm.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm.calc_status END), osm.c_rate
|
||
Sort Method: quicksort Memory: 352782kB
|
||
Buffers: shared hit=9063 read=59473, local hit=2563791 read=1
|
||
I/O Timings: read=2714.560
|
||
-> Hash Left Join (cost=11749.79..16650773.71 rows=83757993 width=594) (actual time=412.849..12408.886 rows=641010 loops=1)
|
||
Hash Cond: ((osm.bill_class = l.bill) AND (osm.ship_class = l.ship))
|
||
Buffers: shared hit=9060 read=59473, local hit=2563791 read=1
|
||
I/O Timings: read=2714.560
|
||
-> Hash Left Join (cost=11744.32..10583311.94 rows=83757993 width=583) (actual time=412.362..11595.759 rows=641010 loops=1)
|
||
Hash Cond: (substr(osm.part, 1, 8) = md.mold)
|
||
Buffers: shared hit=9060 read=59471, local hit=2563791 read=1
|
||
I/O Timings: read=2714.141
|
||
-> Hash Left Join (cost=11737.82..5348430.88 rows=83757993 width=551) (actual time=269.279..10961.881 rows=641010 loops=1)
|
||
Hash Cond: (osm.part = p_1.awpart)
|
||
Buffers: shared hit=4 read=59471, local hit=2563791 read=1
|
||
I/O Timings: read=2714.141
|
||
-> Nested Loop Left Join (cost=8303.37..5125106.33 rows=83757993 width=527) (actual time=188.919..10630.169 rows=641010 loops=1)
|
||
Buffers: shared hit=2 read=56865, local hit=2563791 read=1
|
||
I/O Timings: read=2652.319
|
||
-> Nested Loop Left Join (cost=8303.23..337594.45 rows=4332310 width=455) (actual time=188.914..7884.956 rows=641010 loops=1)
|
||
Buffers: shared hit=2 read=56865, local hit=1281897 read=1
|
||
I/O Timings: read=2652.319
|
||
-> Hash Left Join (cost=8303.08..89964.52 rows=224085 width=383) (actual time=188.885..5089.482 rows=641010 loops=1)
|
||
Hash Cond: (osm.part = m_1.avpart)
|
||
Buffers: shared hit=2 read=56865, local hit=2
|
||
I/O Timings: read=2652.306
|
||
-> Hash Left Join (cost=30.62..81103.81 rows=224085 width=348) (actual time=3.518..4614.841 rows=641010 loops=1)
|
||
Hash Cond: (substr(osm.part, 1, 3) = f.f3)
|
||
Buffers: shared read=50419, local hit=2
|
||
I/O Timings: read=2511.680
|
||
-> Hash Left Join (cost=6.93..77718.84 rows=224085 width=324) (actual time=2.296..4183.537 rows=641010 loops=1)
|
||
Hash Cond: ((substr(osm.part, 16, 1) = mg.f1) AND (osm.ming = mg.ming))
|
||
Buffers: shared read=50410, local hit=2
|
||
I/O Timings: read=2510.588
|
||
-> Hash Left Join (cost=6.37..75750.09 rows=224085 width=292) (actual time=2.277..3733.098 rows=641010 loops=1)
|
||
Hash Cond: (osm.glec = seg.glec)
|
||
Buffers: shared read=50410, local hit=2
|
||
I/O Timings: read=2510.588
|
||
-> Hash Left Join (cost=5.92..72674.81 rows=224085 width=264) (actual time=2.259..3490.071 rows=641010 loops=1)
|
||
Hash Cond: (osm.fspr = sd.fspr)
|
||
Buffers: shared read=50410, local hit=2
|
||
I/O Timings: read=2510.588
|
||
-> Seq Scan on osmp osm (cost=0.00..69587.73 rows=224085 width=184) (actual time=2.186..3227.306 rows=641010 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND (version = 'b19'::text) AND (substr(glec, 1, 1) <= '2'::text) AND ((fspr >= '1901'::text) OR (adj_orderdate >= '2018-06-01'::date)))
|
||
Rows Removed by Filter: 57051
|
||
Buffers: shared read=50410
|
||
I/O Timings: read=2510.588
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.060..0.060 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd (cost=0.00..3.74 rows=174 width=112) (actual time=0.008..0.034 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.014..0.014 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg (cost=0.00..0.28 rows=14 width=64) (actual time=0.005..0.011 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.015..0.015 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg (cost=0.00..0.32 rows=16 width=96) (actual time=0.003..0.011 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=1.217..1.217 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared read=9
|
||
I/O Timings: read=1.092
|
||
-> Seq Scan on family f (cost=0.00..15.53 rows=653 width=24) (actual time=0.985..1.149 rows=653 loops=1)
|
||
Buffers: shared read=9
|
||
I/O Timings: read=1.092
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=185.313..185.313 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=2 read=6446
|
||
I/O Timings: read=140.626
|
||
-> Seq Scan on stkmm m_1 (cost=0.00..7258.87 rows=81087 width=54) (actual time=0.508..163.116 rows=80997 loops=1)
|
||
Buffers: shared hit=2 read=6446
|
||
I/O Timings: read=140.626
|
||
-> Index Scan using se_dat on gld od (cost=0.14..0.92 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=641010)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=1281895 read=1
|
||
I/O Timings: read=0.013
|
||
-> Index Scan using se_dat on gld rd (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.004 rows=1 loops=641010)
|
||
Index Cond: ((osm.adj_requestdate >= sdat) AND (osm.adj_requestdate <= edat))
|
||
Buffers: local hit=1281894
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=80.171..80.171 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2 read=2606
|
||
I/O Timings: read=61.823
|
||
-> Seq Scan on stkmp p_1 (cost=0.00..2975.31 rows=36731 width=33) (actual time=0.342..70.937 rows=36699 loops=1)
|
||
Buffers: shared hit=2 read=2606
|
||
I/O Timings: read=61.823
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=143.065..143.065 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
Buffers: shared hit=9056
|
||
-> CTE Scan on md (cost=0.00..4.00 rows=200 width=64) (actual time=141.241..142.539 rows=3368 loops=1)
|
||
Buffers: shared hit=9056
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.472..0.472 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared read=2
|
||
I/O Timings: read=0.418
|
||
-> Seq Scan on ffchnl l (cost=0.00..3.39 rows=139 width=25) (actual time=0.424..0.443 rows=139 loops=1)
|
||
Buffers: shared read=2
|
||
I/O Timings: read=0.418
|
||
-> GroupAggregate (cost=33445583.00..42801951.72 rows=56705265 width=699) (actual time=17060.209..18105.019 rows=250477 loops=1)
|
||
Group Key: od_1.ssyr, osm_1.adj_orderdate, sd_1.ssyr, (LEAST(GREATEST(osm_1.adj_shipdate, sd_1.sdat), sd_1.edat)), rd_1.ssyr, osm_1.adj_requestdate, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(rd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text)), (COALESCE(rd_1.cy, 'F'::text)), osm_1.plnt, osm_1.account, osm_1.bill_cust, osm_1.shipgrp, osm_1.ship_cust, osm_1.chan, l_1.retail, l_1.retailsub, osm_1.promo, osm_1.majg, osm_1.ming, osm_1.majs, osm_1.mins, osm_1.part, (((osm_1.part || ' - '::text) || rtrim(COALESCE(m_2.avdes1, p_2.awdes1)))), (((f_1.f3 || ' - '::text) || f_1.descr)), (((substr(osm_1.part, 1, 8) || ' - '::text) || md_1.descr)), (COALESCE(mg_1.grp, 'Unbranded'::text)), (COALESCE(seg_1.segm, 'Other'::text)), osm_1.quota_rep, (CASE osm_1.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_1.calc_status END), osm_1.c_rate
|
||
Buffers: shared hit=9067 read=26345, local hit=1627258
|
||
I/O Timings: read=2202.796
|
||
-> Sort (cost=33445583.00..33587346.16 rows=56705265 width=595) (actual time=17060.177..17152.591 rows=406814 loops=1)
|
||
Sort Key: od_1.ssyr, osm_1.adj_orderdate, sd_1.ssyr, (LEAST(GREATEST(osm_1.adj_shipdate, sd_1.sdat), sd_1.edat)), rd_1.ssyr, osm_1.adj_requestdate, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(rd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text)), (COALESCE(rd_1.cy, 'F'::text)), osm_1.plnt, osm_1.account, osm_1.bill_cust, osm_1.shipgrp, osm_1.ship_cust, osm_1.chan, l_1.retail, l_1.retailsub, osm_1.promo, osm_1.majg, osm_1.ming, osm_1.majs, osm_1.mins, osm_1.part, (((osm_1.part || ' - '::text) || rtrim(COALESCE(m_2.avdes1, p_2.awdes1)))), (((f_1.f3 || ' - '::text) || f_1.descr)), (((substr(osm_1.part, 1, 8) || ' - '::text) || md_1.descr)), (COALESCE(mg_1.grp, 'Unbranded'::text)), (COALESCE(seg_1.segm, 'Other'::text)), osm_1.quota_rep, (CASE osm_1.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_1.calc_status END), osm_1.c_rate
|
||
Sort Method: quicksort Memory: 222052kB
|
||
Buffers: shared hit=9067 read=26345, local hit=1627258
|
||
I/O Timings: read=2202.796
|
||
-> Hash Left Join (cost=11749.79..11025086.80 rows=56705265 width=595) (actual time=160.607..8900.120 rows=406814 loops=1)
|
||
Hash Cond: ((osm_1.bill_class = l_1.bill) AND (osm_1.ship_class = l_1.ship))
|
||
Buffers: shared hit=9067 read=26345, local hit=1627258
|
||
I/O Timings: read=2202.796
|
||
-> Hash Left Join (cost=11744.32..6967724.27 rows=55168846 width=584) (actual time=160.531..8303.160 rows=406814 loops=1)
|
||
Hash Cond: (substr(osm_1.part, 1, 8) = md_1.mold)
|
||
Buffers: shared hit=9065 read=26345, local hit=1627258
|
||
I/O Timings: read=2202.796
|
||
-> Hash Left Join (cost=11737.82..3519664.90 rows=55168846 width=552) (actual time=159.458..7928.685 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.part = p_2.awpart)
|
||
Buffers: shared hit=9065 read=26345, local hit=1627258
|
||
I/O Timings: read=2202.796
|
||
-> Nested Loop Left Join (cost=8303.37..3371395.52 rows=55168846 width=528) (actual time=139.481..7719.889 rows=406814 loops=1)
|
||
Buffers: shared hit=6457 read=26345, local hit=1627258
|
||
I/O Timings: read=2202.796
|
||
-> Nested Loop Left Join (cost=8303.23..217901.28 rows=2853561 width=456) (actual time=139.471..5838.942 rows=406814 loops=1)
|
||
Buffers: shared hit=6457 read=26345, local hit=813630
|
||
I/O Timings: read=2202.796
|
||
-> Hash Left Join (cost=8303.08..54789.49 rows=147598 width=384) (actual time=139.449..3929.023 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.part = m_2.avpart)
|
||
Buffers: shared hit=6457 read=26345, local hit=2
|
||
I/O Timings: read=2202.796
|
||
-> Hash Left Join (cost=30.62..46129.57 rows=147598 width=349) (actual time=79.183..3618.398 rows=406814 loops=1)
|
||
Hash Cond: (substr(osm_1.part, 1, 3) = f_1.f3)
|
||
Buffers: shared hit=9 read=26345, local hit=2
|
||
I/O Timings: read=2202.796
|
||
-> Hash Left Join (cost=6.93..43891.91 rows=147598 width=325) (actual time=78.806..3313.087 rows=406814 loops=1)
|
||
Hash Cond: ((substr(osm_1.part, 16, 1) = mg_1.f1) AND (osm_1.ming = mg_1.ming))
|
||
Buffers: shared read=26345, local hit=2
|
||
I/O Timings: read=2202.796
|
||
-> Hash Left Join (cost=6.37..42594.49 rows=147598 width=293) (actual time=78.771..2997.016 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.glec = seg_1.glec)
|
||
Buffers: shared read=26345, local hit=2
|
||
I/O Timings: read=2202.796
|
||
-> Hash Left Join (cost=5.92..40564.57 rows=147598 width=265) (actual time=78.706..2840.808 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.fspr = sd_1.fspr)
|
||
Buffers: shared read=26345, local hit=2
|
||
I/O Timings: read=2202.796
|
||
-> Seq Scan on osmf osm_1 (cost=0.00..38529.18 rows=147598 width=185) (actual time=78.437..2657.330 rows=406814 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND (version = '5p7'::text) AND (substr(glec, 1, 1) <= '2'::text) AND ((fspr >= '1901'::text) OR (adj_orderdate >= '2018-06-01'::date)))
|
||
Rows Removed by Filter: 358
|
||
Buffers: shared read=26345
|
||
I/O Timings: read=2202.796
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.200..0.200 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_1 (cost=0.00..3.74 rows=174 width=112) (actual time=0.053..0.147 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.039..0.039 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg seg_1 (cost=0.00..0.28 rows=14 width=64) (actual time=0.009..0.015 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.014..0.014 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg mg_1 (cost=0.00..0.32 rows=16 width=96) (actual time=0.003..0.008 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=0.350..0.350 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared hit=9
|
||
-> Seq Scan on family f_1 (cost=0.00..15.53 rows=653 width=24) (actual time=0.090..0.194 rows=653 loops=1)
|
||
Buffers: shared hit=9
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=59.937..59.937 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m_2 (cost=0.00..7258.87 rows=81087 width=54) (actual time=0.021..34.499 rows=80997 loops=1)
|
||
Buffers: shared hit=6448
|
||
-> Index Scan using se_dat on gld od_1 (cost=0.14..0.92 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=406814)
|
||
Index Cond: ((osm_1.adj_orderdate >= sdat) AND (osm_1.adj_orderdate <= edat))
|
||
Buffers: local hit=813628
|
||
-> Index Scan using se_dat on gld rd_1 (cost=0.14..0.92 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=406814)
|
||
Index Cond: ((osm_1.adj_requestdate >= sdat) AND (osm_1.adj_requestdate <= edat))
|
||
Buffers: local hit=813628
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=19.766..19.766 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p_2 (cost=0.00..2975.31 rows=36731 width=33) (actual time=0.008..10.901 rows=36699 loops=1)
|
||
Buffers: shared hit=2608
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=1.056..1.056 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
-> CTE Scan on md md_1 (cost=0.00..4.00 rows=200 width=64) (actual time=0.003..0.385 rows=3368 loops=1)
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.055..0.055 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared hit=2
|
||
-> Seq Scan on ffchnl l_1 (cost=0.00..3.39 rows=139 width=25) (actual time=0.007..0.025 rows=139 loops=1)
|
||
Buffers: shared hit=2
|
||
-> GroupAggregate (cost=112931514.84..144274888.60 rows=189959841 width=695) (actual time=8819.747..9896.203 rows=349128 loops=1)
|
||
Group Key: od_2.ssyr, osm_2.adj_orderdate, sd_2.ssyr, (LEAST(GREATEST(osm_2.adj_shipdate, sd_2.sdat), sd_2.edat)), rd_2.ssyr, osm_2.adj_requestdate, (COALESCE(od_2.cm, sd_2.cm)), (COALESCE(sd_2.cm, 'F'::text)), (COALESCE(rd_2.cm, 'F'::text)), (COALESCE(od_2.cy, sd_2.cy)), (COALESCE(sd_2.cy, 'F'::text)), (COALESCE(rd_2.cy, 'F'::text)), osm_2.plnt, osm_2.account, osm_2.bill_cust, osm_2.shipgrp, osm_2.ship_cust, osm_2.chan, l_2.retail, l_2.retailsub, osm_2.promo, osm_2.majg, osm_2.ming, osm_2.majs, osm_2.mins, osm_2.part, (((osm_2.part || ' - '::text) || rtrim(COALESCE(m_3.avdes1, p_3.awdes1)))), (((f_2.f3 || ' - '::text) || f_2.descr)), (((substr(osm_2.part, 1, 8) || ' - '::text) || md_2.descr)), (COALESCE(mg_2.grp, 'Unbranded'::text)), (COALESCE(seg_2.segm, 'Other'::text)), osm_2.quota_rep, (CASE osm_2.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_2.calc_status END), osm_2.c_rate
|
||
Buffers: shared hit=14017 read=53042, local hit=1468468
|
||
I/O Timings: read=83.358
|
||
-> Sort (cost=112931514.84..113406414.44 rows=189959841 width=584) (actual time=8819.714..8895.706 rows=367402 loops=1)
|
||
Sort Key: od_2.ssyr, osm_2.adj_orderdate, sd_2.ssyr, (LEAST(GREATEST(osm_2.adj_shipdate, sd_2.sdat), sd_2.edat)), rd_2.ssyr, osm_2.adj_requestdate, (COALESCE(od_2.cm, sd_2.cm)), (COALESCE(sd_2.cm, 'F'::text)), (COALESCE(rd_2.cm, 'F'::text)), (COALESCE(od_2.cy, sd_2.cy)), (COALESCE(sd_2.cy, 'F'::text)), (COALESCE(rd_2.cy, 'F'::text)), osm_2.plnt, osm_2.account, osm_2.bill_cust, osm_2.shipgrp, osm_2.ship_cust, osm_2.chan, l_2.retail, l_2.retailsub, osm_2.promo, osm_2.majg, osm_2.ming, osm_2.majs, osm_2.mins, osm_2.part, (((osm_2.part || ' - '::text) || rtrim(COALESCE(m_3.avdes1, p_3.awdes1)))), (((f_2.f3 || ' - '::text) || f_2.descr)), (((substr(osm_2.part, 1, 8) || ' - '::text) || md_2.descr)), (COALESCE(mg_2.grp, 'Unbranded'::text)), (COALESCE(seg_2.segm, 'Other'::text)), osm_2.quota_rep, (CASE osm_2.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_2.calc_status END), osm_2.c_rate
|
||
Sort Method: quicksort Memory: 201721kB
|
||
Buffers: shared hit=14017 read=53042, local hit=1468468
|
||
I/O Timings: read=83.358
|
||
-> Hash Left Join (cost=11749.79..37465936.67 rows=189959841 width=584) (actual time=50.604..4494.745 rows=367402 loops=1)
|
||
Hash Cond: ((osm_2.bill_class = l_2.bill) AND (osm_2.ship_class = l_2.ship))
|
||
Buffers: shared hit=14017 read=53042, local hit=1468468
|
||
I/O Timings: read=83.358
|
||
-> Hash Left Join (cost=11744.32..23902628.82 rows=189959841 width=574) (actual time=50.549..4122.287 rows=367402 loops=1)
|
||
Hash Cond: (substr(osm_2.part, 1, 8) = md_2.mold)
|
||
Buffers: shared hit=14015 read=53042, local hit=1468468
|
||
I/O Timings: read=83.358
|
||
-> Hash Left Join (cost=11737.82..12030132.26 rows=189959841 width=542) (actual time=49.780..3891.847 rows=367402 loops=1)
|
||
Hash Cond: (osm_2.part = p_3.awpart)
|
||
Buffers: shared hit=14015 read=53042, local hit=1468468
|
||
I/O Timings: read=83.358
|
||
-> Nested Loop Left Join (cost=8303.37..11527995.69 rows=189959841 width=518) (actual time=34.804..3756.178 rows=367402 loops=1)
|
||
Buffers: shared hit=11407 read=53042, local hit=1468468
|
||
I/O Timings: read=83.358
|
||
-> Nested Loop Left Join (cost=8303.23..670498.91 rows=9825509 width=446) (actual time=34.797..2623.310 rows=367402 loops=1)
|
||
Buffers: shared hit=11407 read=53042, local hit=734236
|
||
I/O Timings: read=83.358
|
||
-> Hash Left Join (cost=8303.08..108904.23 rows=508216 width=374) (actual time=34.774..1278.961 rows=367402 loops=1)
|
||
Hash Cond: (osm_2.part = m_3.avpart)
|
||
Buffers: shared hit=11407 read=53042, local hit=2
|
||
I/O Timings: read=83.358
|
||
-> Hash Left Join (cost=30.62..99297.64 rows=508216 width=339) (actual time=0.327..1108.708 rows=367402 loops=1)
|
||
Hash Cond: (substr(osm_2.part, 1, 3) = f_2.f3)
|
||
Buffers: shared hit=4959 read=53042, local hit=2
|
||
I/O Timings: read=83.358
|
||
-> Hash Left Join (cost=6.93..91650.71 rows=508216 width=315) (actual time=0.203..921.418 rows=367402 loops=1)
|
||
Hash Cond: ((substr(osm_2.part, 16, 1) = mg_2.f1) AND (osm_2.ming = mg_2.ming))
|
||
Buffers: shared hit=4950 read=53042, local hit=2
|
||
I/O Timings: read=83.358
|
||
-> Hash Left Join (cost=6.37..87189.88 rows=508216 width=283) (actual time=0.191..727.591 rows=367402 loops=1)
|
||
Hash Cond: (osm_2.glec = seg_2.glec)
|
||
Buffers: shared hit=4950 read=53042, local hit=2
|
||
I/O Timings: read=83.358
|
||
-> Hash Left Join (cost=5.92..80265.15 rows=508216 width=255) (actual time=0.180..611.979 rows=367402 loops=1)
|
||
Hash Cond: (osm_2.fspr = sd_2.fspr)
|
||
Buffers: shared hit=4950 read=53042, local hit=2
|
||
I/O Timings: read=83.358
|
||
-> Seq Scan on osm osm_2 (cost=0.00..73663.10 rows=508216 width=175) (actual time=0.106..492.248 rows=367402 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND ((fspr >= '1606'::text) OR (adj_orderdate >= '2016-06-01'::date)))
|
||
Rows Removed by Filter: 417370
|
||
Buffers: shared hit=4950 read=53042
|
||
I/O Timings: read=83.358
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.065..0.065 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_2 (cost=0.00..3.74 rows=174 width=112) (actual time=0.018..0.041 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.006..0.006 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg seg_2 (cost=0.00..0.28 rows=14 width=64) (actual time=0.002..0.003 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.006..0.006 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg mg_2 (cost=0.00..0.32 rows=16 width=96) (actual time=0.001..0.002 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=0.119..0.119 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared hit=9
|
||
-> Seq Scan on family f_2 (cost=0.00..15.53 rows=653 width=24) (actual time=0.014..0.051 rows=653 loops=1)
|
||
Buffers: shared hit=9
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=34.398..34.398 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m_3 (cost=0.00..7258.87 rows=81087 width=54) (actual time=0.006..21.130 rows=80997 loops=1)
|
||
Buffers: shared hit=6448
|
||
-> Index Scan using se_dat on gld od_2 (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=367402)
|
||
Index Cond: ((osm_2.adj_orderdate >= sdat) AND (osm_2.adj_orderdate <= edat))
|
||
Buffers: local hit=734234
|
||
-> Index Scan using se_dat on gld rd_2 (cost=0.14..0.92 rows=19 width=80) (actual time=0.002..0.003 rows=1 loops=367402)
|
||
Index Cond: ((osm_2.adj_requestdate >= sdat) AND (osm_2.adj_requestdate <= edat))
|
||
Buffers: local hit=734232
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=14.938..14.938 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p_3 (cost=0.00..2975.31 rows=36731 width=33) (actual time=0.006..9.060 rows=36699 loops=1)
|
||
Buffers: shared hit=2608
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=0.757..0.757 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
-> CTE Scan on md md_2 (cost=0.00..4.00 rows=200 width=64) (actual time=0.002..0.289 rows=3368 loops=1)
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.042..0.042 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared hit=2
|
||
-> Seq Scan on ffchnl l_2 (cost=0.00..3.39 rows=139 width=25) (actual time=0.006..0.020 rows=139 loops=1)
|
||
Buffers: shared hit=2
|
||
CTE agg
|
||
-> GroupAggregate (cost=3990139087947.22..4510710248131.84 rows=1892986037035 width=1404) (actual time=112425.677..116271.291 rows=809656 loops=1)
|
||
Group Key: un.version, un.iter, ((un.oseas)::numeric), un.odate, ((un.sseas)::numeric), un.sdate, ((un.rseas)::numeric), un.rdate, un.om, un.sm, un.rm, un.oy, ((un.odate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.odate <@ so.ytd)), un.sy, ((un.sdate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.sdate <@ ss.ytd)), (CASE WHEN ((upper(so.ytd) - '1 day'::interval) >= un.odate) THEN CASE WHEN ((un.sdate > (upper(so.ytd) - '1 day'::interval)) OR (un.sy = 'F'::text)) THEN CASE WHEN ((upper(so.ytd) - '1 day'::interval) > un.rdate) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE 'Shipped'::text END ELSE 'Not Yet Placed'::text END), un.ry, un.plnt, un.account, (((un.bill_cust || ' - '::text) || rtrim(bc.bvname))), bc.bvctry, bc.bvprcd, un.shipgrp, (((un.ship_cust || ' - '::text) || rtrim(sc.bvname))), sc.bvctry, sc.bvprcd, un.chan, (CASE un.segm WHEN 'Retail'::text THEN un.retail ELSE un.chan END), (CASE un.segm WHEN 'Retail'::text THEN un.retailsub ELSE ''::text END), un.promo, ((un.majg || COALESCE((' - '::text || majg.bqdes), ''::text))), ((un.ming || COALESCE((' - '::text || mmgp.brdes), ''::text))), ((un.majs || COALESCE((' - '::text || sj.bsdes1), ''::text))), ((un.mins || COALESCE((' - '::text || si.bsdes1), ''::text))), un.part, un.part_descr, un.part_family, un.part_group, un.branding, un.segm, (COALESCE(repc.repp, un.quota_rep)), (COALESCE(repc.director, un.quota_rep)), (((un.version || '-'::text) || un.sy)), (((un.version || '-'::text) || un.oy)), (CASE WHEN (un.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) THEN CASE WHEN (un.rdate < CURRENT_DATE) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE un.calc_status END), (((substr(un.part, 9, 3) || '-'::text) || un.branding)), 'Grand Total'::text
|
||
Buffers: shared hit=35380 read=157188, local hit=5659519 read=1, temp read=169586 written=244360
|
||
I/O Timings: read=5431.112
|
||
-> Sort (cost=3990139087947.22..3994871553039.80 rows=1892986037035 width=1346) (actual time=112425.642..112859.948 rows=812398 loops=1)
|
||
Sort Key: un.version, un.iter, ((un.oseas)::numeric), un.odate, ((un.sseas)::numeric), un.sdate, ((un.rseas)::numeric), un.rdate, un.om, un.sm, un.rm, un.oy, ((un.odate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.odate <@ so.ytd)), un.sy, ((un.sdate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.sdate <@ ss.ytd)), (CASE WHEN ((upper(so.ytd) - '1 day'::interval) >= un.odate) THEN CASE WHEN ((un.sdate > (upper(so.ytd) - '1 day'::interval)) OR (un.sy = 'F'::text)) THEN CASE WHEN ((upper(so.ytd) - '1 day'::interval) > un.rdate) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE 'Shipped'::text END ELSE 'Not Yet Placed'::text END), un.ry, un.plnt, un.account, (((un.bill_cust || ' - '::text) || rtrim(bc.bvname))), bc.bvctry, bc.bvprcd, un.shipgrp, (((un.ship_cust || ' - '::text) || rtrim(sc.bvname))), sc.bvctry, sc.bvprcd, un.chan, (CASE un.segm WHEN 'Retail'::text THEN un.retail ELSE un.chan END), (CASE un.segm WHEN 'Retail'::text THEN un.retailsub ELSE ''::text END), un.promo, ((un.majg || COALESCE((' - '::text || majg.bqdes), ''::text))), ((un.ming || COALESCE((' - '::text || mmgp.brdes), ''::text))), ((un.majs || COALESCE((' - '::text || sj.bsdes1), ''::text))), ((un.mins || COALESCE((' - '::text || si.bsdes1), ''::text))), un.part, un.part_descr, un.part_family, un.part_group, un.branding, un.segm, (COALESCE(repc.repp, un.quota_rep)), (COALESCE(repc.director, un.quota_rep)), (((un.version || '-'::text) || un.sy)), (((un.version || '-'::text) || un.oy)), (CASE WHEN (un.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) THEN CASE WHEN (un.rdate < CURRENT_DATE) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE un.calc_status END), (((substr(un.part, 9, 3) || '-'::text) || un.branding))
|
||
Sort Method: external merge Disk: 475944kB
|
||
Buffers: shared hit=35380 read=157188, local hit=5659519 read=1, temp read=169586 written=244360
|
||
I/O Timings: read=5431.112
|
||
-> Merge Right Join (cost=33563712447.31..265517026370.70 rows=1892986037035 width=1346) (actual time=69370.743..73383.296 rows=812398 loops=1)
|
||
Merge Cond: (ss.ssyr = un.sseas)
|
||
Buffers: shared hit=35372 read=157188, local hit=5659519 read=1, temp read=110093 written=184866
|
||
I/O Timings: read=5431.112
|
||
-> Sort (cost=1353.78..1391.63 rows=15138 width=40) (actual time=0.187..0.194 rows=15 loops=1)
|
||
Sort Key: ss.ssyr
|
||
Sort Method: quicksort Memory: 26kB
|
||
Buffers: local hit=2
|
||
-> CTE Scan on std ss (cost=0.00..302.76 rows=15138 width=40) (actual time=0.143..0.183 rows=15 loops=1)
|
||
Buffers: local hit=2
|
||
-> Materialize (cost=33563711093.53..33688759715.34 rows=25009724363 width=1300) (actual time=69363.504..70242.785 rows=812398 loops=1)
|
||
Buffers: shared hit=35372 read=157188, local hit=5659517 read=1, temp read=110093 written=184866
|
||
I/O Timings: read=5431.112
|
||
-> Sort (cost=33563711093.53..33626235404.44 rows=25009724363 width=1300) (actual time=69363.500..69636.493 rows=812398 loops=1)
|
||
Sort Key: un.sseas
|
||
Sort Method: external merge Disk: 445936kB
|
||
Buffers: shared hit=35372 read=157188, local hit=5659517 read=1, temp read=110093 written=146616
|
||
I/O Timings: read=5431.112
|
||
-> Merge Right Join (cost=488162845.81..864134844.69 rows=25009724363 width=1300) (actual time=64619.072..67097.961 rows=812398 loops=1)
|
||
Merge Cond: (so.ssyr = un.oseas)
|
||
Buffers: shared hit=35372 read=157188, local hit=5659517 read=1, temp read=54351 written=90873
|
||
I/O Timings: read=5431.112
|
||
-> Sort (cost=1353.78..1391.63 rows=15138 width=40) (actual time=0.005..0.009 rows=13 loops=1)
|
||
Sort Key: so.ssyr
|
||
Sort Method: quicksort Memory: 26kB
|
||
-> CTE Scan on std so (cost=0.00..302.76 rows=15138 width=40) (actual time=0.001..0.002 rows=15 loops=1)
|
||
-> Materialize (cost=488161492.03..489813607.52 rows=330423099 width=1268) (actual time=64619.055..66543.724 rows=812398 loops=1)
|
||
Buffers: shared hit=35372 read=157188, local hit=5659517 read=1, temp read=54351 written=90873
|
||
I/O Timings: read=5431.112
|
||
-> Sort (cost=488161492.03..488987549.77 rows=330423099 width=1268) (actual time=64619.051..65222.574 rows=812398 loops=1)
|
||
Sort Key: un.oseas
|
||
Sort Method: external merge Disk: 434808kB
|
||
Buffers: shared hit=35372 read=157188, local hit=5659517 read=1, temp read=54351 written=54352
|
||
I/O Timings: read=5431.112
|
||
-> Hash Left Join (cost=30326.40..75489285.22 rows=330423099 width=1268) (actual time=26974.130..61679.511 rows=812398 loops=1)
|
||
Hash Cond: ((un.part = cr.y0part) AND (un.plnt = cr.y0plnt))
|
||
Buffers: shared hit=35372 read=157188, local hit=5659517 read=1
|
||
I/O Timings: read=5431.112
|
||
-> Hash Left Join (cost=22414.65..56426266.97 rows=330423099 width=1262) (actual time=26803.460..61130.886 rows=812398 loops=1)
|
||
Hash Cond: ((un.part = cp.chpart) AND (un.plnt = cp.chplnt))
|
||
Buffers: shared hit=35372 read=151936, local hit=5659517 read=1
|
||
I/O Timings: read=5307.518
|
||
-> Hash Left Join (cost=14299.03..36533966.06 rows=330423099 width=1256) (actual time=26596.173..60544.080 rows=812398 loops=1)
|
||
Hash Cond: ((un.part = cm.cgpart) AND (un.plnt = cm.cgplnt))
|
||
Buffers: shared hit=35372 read=146620, local hit=5659517 read=1
|
||
I/O Timings: read=5163.164
|
||
-> Hash Left Join (cost=7433.88..34026391.85 rows=330423099 width=1250) (actual time=26466.230..59938.193 rows=812398 loops=1)
|
||
Hash Cond: (un.bill_cust = sc.bvcust)
|
||
Buffers: shared hit=35372 read=142113, local hit=5659517 read=1
|
||
I/O Timings: read=5079.788
|
||
-> Hash Left Join (cost=3723.16..29479363.52 rows=330423099 width=1223) (actual time=26455.847..59596.315 rows=812398 loops=1)
|
||
Hash Cond: (un.bill_cust = bc.bvcust)
|
||
Buffers: shared hit=32148 read=142113, local hit=5659517 read=1
|
||
I/O Timings: read=5079.788
|
||
-> Hash Left Join (cost=12.44..24932335.18 rows=330423099 width=1196) (actual time=26376.451..59161.607 rows=812398 loops=1)
|
||
Hash Cond: ((un.ming = mmgp.brmgrp) AND (un.majg = mmgp.brgrp))
|
||
Buffers: shared hit=32148 read=138889, local hit=5659517 read=1
|
||
I/O Timings: read=5012.664
|
||
-> Hash Left Join (cost=7.51..15006668.18 rows=330423099 width=1186) (actual time=26375.626..58843.583 rows=812398 loops=1)
|
||
Hash Cond: (un.majg = majg.bqgrp)
|
||
Buffers: shared hit=32148 read=138888, local hit=5659517 read=1
|
||
I/O Timings: read=5011.904
|
||
-> Hash Left Join (cost=6.24..13569326.43 rows=330423099 width=1176) (actual time=26375.306..58564.379 rows=812398 loops=1)
|
||
Hash Cond: (un.majs = sj.bsmjcd)
|
||
Buffers: shared hit=32148 read=138887, local hit=5659517 read=1
|
||
I/O Timings: read=5011.601
|
||
-> Hash Left Join (cost=6.21..12313718.62 rows=330423099 width=1144) (actual time=26375.285..58278.120 rows=812398 loops=1)
|
||
Hash Cond: ((un.majs = si.bsmjcd) AND (un.mins = si.bsmncd))
|
||
Buffers: shared hit=32147 read=138887, local hit=5659517 read=1
|
||
I/O Timings: read=5011.601
|
||
-> Hash Left Join (cost=3.90..9830091.09 rows=330423099 width=1112) (actual time=26374.932..57946.951 rows=812398 loops=1)
|
||
Hash Cond: (un.quota_rep = repc.rcode)
|
||
Buffers: shared hit=32147 read=138886, local hit=5659517 read=1
|
||
I/O Timings: read=5011.303
|
||
-> CTE Scan on un (cost=0.00..6608461.98 rows=330423099 width=1048) (actual time=26363.408..57457.121 rows=812398 loops=1)
|
||
Buffers: shared hit=32147 read=138860, local hit=5659517 read=1
|
||
I/O Timings: read=5000.713
|
||
-> Hash (cost=2.40..2.40 rows=120 width=96) (actual time=11.512..11.512 rows=120 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 17kB
|
||
Buffers: shared read=26
|
||
I/O Timings: read=10.590
|
||
-> CTE Scan on repc (cost=0.00..2.40 rows=120 width=96) (actual time=4.008..11.473 rows=120 loops=1)
|
||
Buffers: shared read=26
|
||
I/O Timings: read=10.590
|
||
-> Hash (cost=1.32..1.32 rows=66 width=96) (actual time=0.343..0.343 rows=56 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 11kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.297
|
||
-> CTE Scan on si (cost=0.00..1.32 rows=66 width=96) (actual time=0.310..0.330 rows=56 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.297
|
||
-> Hash (cost=0.02..0.02 rows=1 width=64) (actual time=0.014..0.014 rows=11 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
Buffers: shared hit=1
|
||
-> CTE Scan on sj (cost=0.00..0.02 rows=1 width=64) (actual time=0.006..0.012 rows=11 loops=1)
|
||
Buffers: shared hit=1
|
||
-> Hash (cost=1.12..1.12 rows=12 width=14) (actual time=0.316..0.316 rows=12 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.303
|
||
-> Seq Scan on majg (cost=0.00..1.12 rows=12 width=14) (actual time=0.309..0.310 rows=12 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.303
|
||
-> Hash (cost=2.57..2.57 rows=157 width=18) (actual time=0.818..0.818 rows=157 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.760
|
||
-> Seq Scan on mmgp (cost=0.00..2.57 rows=157 width=18) (actual time=0.771..0.787 rows=157 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.760
|
||
-> Hash (cost=3440.32..3440.32 rows=21632 width=35) (actual time=79.377..79.377 rows=21632 loops=1)
|
||
Buckets: 32768 Batches: 1 Memory Usage: 1721kB
|
||
Buffers: shared read=3224
|
||
I/O Timings: read=67.124
|
||
-> Seq Scan on cust bc (cost=0.00..3440.32 rows=21632 width=35) (actual time=1.226..74.190 rows=21632 loops=1)
|
||
Buffers: shared read=3224
|
||
I/O Timings: read=67.124
|
||
-> Hash (cost=3440.32..3440.32 rows=21632 width=35) (actual time=10.361..10.361 rows=21632 loops=1)
|
||
Buckets: 32768 Batches: 1 Memory Usage: 1721kB
|
||
Buffers: shared hit=3224
|
||
-> Seq Scan on cust sc (cost=0.00..3440.32 rows=21632 width=35) (actual time=0.007..6.549 rows=21632 loops=1)
|
||
Buffers: shared hit=3224
|
||
-> Hash (cost=5450.26..5450.26 rows=94326 width=29) (actual time=129.891..129.891 rows=94326 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 6699kB
|
||
Buffers: shared read=4507
|
||
I/O Timings: read=83.376
|
||
-> Seq Scan on icstm cm (cost=0.00..5450.26 rows=94326 width=29) (actual time=1.628..106.590 rows=94326 loops=1)
|
||
Buffers: shared read=4507
|
||
I/O Timings: read=83.376
|
||
-> Hash (cost=6435.85..6435.85 rows=111985 width=20) (actual time=207.238..207.238 rows=111985 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 6768kB
|
||
Buffers: shared read=5316
|
||
I/O Timings: read=144.354
|
||
-> Seq Scan on icstp cp (cost=0.00..6435.85 rows=111985 width=20) (actual time=12.877..174.296 rows=111985 loops=1)
|
||
Buffers: shared read=5316
|
||
I/O Timings: read=144.354
|
||
-> Hash (cost=6315.90..6315.90 rows=106390 width=27) (actual time=167.190..167.190 rows=106390 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7334kB
|
||
Buffers: shared read=5252
|
||
I/O Timings: read=123.594
|
||
-> Seq Scan on icstr cr (cost=0.00..6315.90 rows=106390 width=27) (actual time=1.618..138.920 rows=106390 loops=1)
|
||
Buffers: shared read=5252
|
||
I/O Timings: read=123.594
|
||
-> CTE Scan on agg a (cost=0.00..37859720740.70 rows=1892986037035 width=1520) (actual time=112425.683..119325.832 rows=809656 loops=1)
|
||
Buffers: shared hit=35380 read=157188, local hit=5659519 read=1, temp read=169586 written=302217
|
||
I/O Timings: read=5431.112
|
||
-> CTE Scan on agg a_1 (cost=0.00..43089094668.02 rows=14197395278 width=1520) (actual time=10.640..1070.930 rows=298533 loops=1)
|
||
Filter: ((ocytd OR scytd) AND (version = ANY ('{Actual,Forecast}'::text[])))
|
||
Rows Removed by Filter: 511123
|
||
Buffers: temp read=57858 written=1
|
||
-> CTE Scan on agg a_2 (cost=0.00..43089094668.02 rows=14197395278 width=1520) (actual time=24.901..1109.287 rows=270191 loops=1)
|
||
Filter: ((ocytd OR scytd) AND (version = ANY ('{Actual,Budget}'::text[])))
|
||
Rows Removed by Filter: 539465
|
||
Buffers: temp read=57858
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-2">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>3</td>
|
||
<td>5m27s</td>
|
||
<td>37
|
||
<p><a href="#Atime_consuming_queries_details_3" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>2s217ms</td>
|
||
<td>27s560ms</td>
|
||
<td>8s855ms</td>
|
||
<td id="time-consuming-queries-examples-details-rank-3">
|
||
<div id="query-e-3" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>create <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> gld<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>; <span class="kw1">WITH</span> un <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> ? srce <span class="sy0">,</span>od<span class="sy0">.</span>ssyr oseas <span class="sy0">,</span>od<span class="sy0">.</span>sdat odate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr sseas <span class="sy0">,</span>sd<span class="sy0">.</span>sdat sdate <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> om <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> sm <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> oy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_qty <span class="br0">)</span> qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_val_loc <span class="sy0">*</span> r_rate <span class="br0">)</span> sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_cst_loc <span class="sy0">*</span> c_rate <span class="br0">)</span> stdcost <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osmf osm <span class="kw1">INNER</span> <span class="kw1">JOIN</span> gld od <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_orderdate <span class="kw1">BETWEEN</span> od<span class="sy0">.</span>sdat <span class="kw1">AND</span> od<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld sd <span class="kw1">ON</span> osm<span class="sy0">.</span>fspr <span class="sy0">=</span> sd<span class="sy0">.</span>fspr <span class="kw1">WHERE</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>glec<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>fs_line<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">=</span> ? <span class="kw1">AND</span> calc_status <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>all orders <span class="kw1">OR</span> shipments <span class="kw1">FOR</span> the period <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>current year <span class="kw1">TO</span> <span class="kw2">date</span> orders od<span class="sy0">.</span>cy <span class="sy0">=</span> ? <span class="sy0">-</span><span class="sy0">-</span>current year <span class="kw1">TO</span> <span class="kw2">date</span> shipments <span class="kw1">OR</span> sd<span class="sy0">.</span>cy <span class="sy0">=</span> ? <span class="br0">)</span> <span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>open orders sd<span class="sy0">.</span>cm <span class="sy0">=</span> ? <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future fspr <span class="br0">)</span> <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> od<span class="sy0">.</span>ssyr <span class="sy0">,</span>od<span class="sy0">.</span>sdat <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr <span class="sy0">,</span>sd<span class="sy0">.</span>sdat <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">UNION</span> <span class="kw1">ALL</span> <span class="kw1">SELECT</span> ? srce <span class="sy0">,</span>od<span class="sy0">.</span>ssyr oseas <span class="sy0">,</span>od<span class="sy0">.</span>sdat odate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr sseas <span class="sy0">,</span>sd<span class="sy0">.</span>sdat sdate <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> om <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> sm <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> oy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_qty <span class="br0">)</span> qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_val_loc <span class="sy0">*</span> r_rate <span class="br0">)</span> sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_cst_loc <span class="sy0">*</span> c_rate <span class="br0">)</span> stdcost <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm osm <span class="kw1">INNER</span> <span class="kw1">JOIN</span> gld od <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_orderdate <span class="kw1">BETWEEN</span> od<span class="sy0">.</span>sdat <span class="kw1">AND</span> od<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld sd <span class="kw1">ON</span> osm<span class="sy0">.</span>fspr <span class="sy0">=</span> sd<span class="sy0">.</span>fspr <span class="kw1">WHERE</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>fs_line<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">=</span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>glec<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">AND</span> calc_status <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>all <span class="kw1">ORDER</span> <span class="kw1">OR</span> shipments <span class="kw1">FOR</span> the period <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>current year <span class="kw1">TO</span> <span class="kw2">date</span> orders od<span class="sy0">.</span>cy <span class="sy0">=</span> ? <span class="sy0">-</span><span class="sy0">-</span>current year <span class="kw1">TO</span> <span class="kw2">date</span> shipments <span class="kw1">OR</span> sd<span class="sy0">.</span>cy <span class="sy0">=</span> ? <span class="br0">)</span> <span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>open orders <span class="br0">(</span>calc_status <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span> <span class="kw1">AND</span> flag <span class="sy0">=</span> ?<span class="br0">)</span> <span class="br0">)</span> <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> od<span class="sy0">.</span>ssyr <span class="sy0">,</span>od<span class="sy0">.</span>sdat <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr <span class="sy0">,</span>sd<span class="sy0">.</span>sdat <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="br0">)</span> <span class="kw1">SELECT</span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>qty<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>stdcost<span class="br0">)</span> "cost" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>sales<span class="br0">)</span> sales <span class="kw1">FROM</span> un <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy ;
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Atime_consuming_queries_details_3" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #3</small></h3>
|
||
<div id="time_consuming_queries_details_3" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Atime_consuming_queries_details_3').on("shown.bs.collapse",function(){
|
||
var bars_37 = [['00:00',5],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',10],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',22],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_37 = [['00:00',11678],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',5788],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',9608],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var time_consuming_queries_details_3 = create_bargraph('time_consuming_queries_details_3', '', 'Queries', [ bars_37, lines_37 ], 'Avg. duration');
|
||
});
|
||
create_download_button(37, 'btn btn-default btn-xs');
|
||
add_download_button_event(37, 'time_consuming_queries_details_3');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>17</td><td>17</td><td>2m29s</td><td>8s786ms</td></tr><tr><td>Mar 15</td><td>00</td><td>5</td><td>58s394ms</td><td>11s678ms</td></tr><tr><td></td><td>17</td><td>5</td><td>1m2s</td><td>12s403ms</td></tr><tr><td>Mar 18</td><td>10</td><td>10</td><td>57s886ms</td><td>5s788ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Atime_consuming_queries_details_3">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-3">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-3">User(s) involved</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-3">App(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="time-consuming-queries-user-involved-rank-3" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> report - <b>Total duration:</b> 1m37s - <b>Times executed:</b> 7 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-3">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="time-consuming-queries-app-involved-rank-3" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> [unknown] - <b>Total duration:</b> 1m37s - <b>Times executed:</b> 7 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-3">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="time-consuming-queries-examples-rank-3" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-e-3-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-14 17:15:07
|
||
<b>Duration:</b> 27s560ms
|
||
</pre>
|
||
<div id="query-e-explain-3-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Parallel%20Seq%20Scan%20on%20osmf%20osm%20%20%28cost%3D0.00..30498.70%20rows%3D308%20width%3D42%29%20%28actual%20time%3D0.033..24368.549%20rows%3D190996%20loops%3D1%29%0A%09%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20Rows%20Removed%20by%20Filter%3A%20227%0A%09%20%20Buffers%3A%20shared%20hit%3D12201%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Parallel Seq Scan on osmf osm (cost=0.00..30498.70 rows=308 width=42) (actual time=0.033..24368.549 rows=190996 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 227
|
||
Buffers: shared hit=12201
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-e-3-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-14 17:15:07
|
||
<b>Duration:</b> 27s559ms
|
||
</pre>
|
||
<div id="query-e-explain-3-2" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Parallel%20Seq%20Scan%20on%20osmf%20osm%20%20%28cost%3D0.00..30498.70%20rows%3D308%20width%3D42%29%20%28actual%20time%3D0.018..23110.458%20rows%3D167047%20loops%3D1%29%0A%09%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20Rows%20Removed%20by%20Filter%3A%20120%0A%09%20%20Buffers%3A%20shared%20hit%3D10779%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Parallel Seq Scan on osmf osm (cost=0.00..30498.70 rows=308 width=42) (actual time=0.018..23110.458 rows=167047 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 120
|
||
Buffers: shared hit=10779
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-e-3-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 17:30:39
|
||
<b>Duration:</b> 21s242ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> report
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> [unknown]
|
||
</pre>
|
||
<div id="query-e-explain-3-3" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Sort%20%20%28cost%3D99922.38..99922.88%20rows%3D200%20width%3D232%29%20%28actual%20time%3D21211.683..21211.708%20rows%3D317%20loops%3D1%29%0A%09%20%20Sort%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2069kB%0A%09%20%20Buffers%3A%20shared%20hit%3D4%20read%3D84336%20written%3D124%2C%20local%20hit%3D2068827%20read%3D1%0A%09%20%20I%2FO%20Timings%3A%20read%3D47930.799%20write%3D1.505%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D32534.94..99887.14%20rows%3D502%20width%3D232%29%20%28actual%20time%3D5942.671..21209.531%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D84336%20written%3D124%2C%20local%20hit%3D2068827%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D47930.799%20write%3D1.505%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D32534.94..32547.80%20rows%3D245%20width%3D232%29%20%28actual%20time%3D5942.670..6367.056%20rows%3D197%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%20written%3D122%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10489.172%20write%3D1.431%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D32534.94..32535.55%20rows%3D245%20width%3D185%29%20%28actual%20time%3D5942.642..5990.837%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2069497kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%20written%3D122%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10489.172%20write%3D1.431%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..32525.21%20rows%3D245%20width%3D185%29%20%28actual%20time%3D3.834..5526.120%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cm%20%3D%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%20written%3D122%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10489.172%20write%3D1.431%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..31588.56%20rows%3D738%20width%3D113%29%20%28actual%20time%3D3.809..3558.965%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%20written%3D122%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10489.166%20write%3D1.431%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..31572.50%20rows%3D738%20width%3D42%29%20%28actual%20time%3D3.660..3400.209%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%20written%3D122%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10489.166%20write%3D1.431%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osmf%20osm%20%20%28cost%3D0.00..30498.70%20rows%3D308%20width%3D42%29%20%28actual%20time%3D0.781..3631.234%20rows%3D135605%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20119%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%20written%3D122%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10489.166%20write%3D1.431%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.083..0.083%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.013..0.049%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od%20%20%28cost%3D0.14..0.94%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813627%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.006%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D67318.31..67331.81%20rows%3D257%20width%3D232%29%20%28actual%20time%3D14757.926..14842.413%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%20written%3D2%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D37441.627%20write%3D0.074%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D67318.31..67318.96%20rows%3D257%20width%3D178%29%20%28actual%20time%3D14757.905..14766.226%20rows%3D94732%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2016394kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%20written%3D2%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D37441.627%20write%3D0.074%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..67308.03%20rows%3D257%20width%3D178%29%20%28actual%20time%3D65.185..14658.975%20rows%3D94732%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28%28osm_1.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28osm_1.flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%20532866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%20written%3D2%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D37441.627%20write%3D0.074%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..65849.40%20rows%3D1114%20width%3D122%29%20%28actual%20time%3D65.171..12232.663%20rows%3D628518%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.fspr%20%3D%20sd_1.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%20written%3D2%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D37441.627%20write%3D0.074%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..65829.04%20rows%3D1114%20width%3D51%29%20%28actual%20time%3D65.104..11994.997%20rows%3D628518%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%20written%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D37441.627%20write%3D0.074%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20osm_1%20%20%28cost%3D0.00..64717.64%20rows%3D464%20width%3D51%29%20%28actual%20time%3D56.186..12707.976%20rows%3D209506%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2052157%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%20written%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D37441.627%20write%3D0.074%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.055..0.055%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.009..0.031%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od_1%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D628518%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1255196%0A%09%20%20-%3E%20%20HashAggregate%20%20%28cost%3D25.10..27.60%20rows%3D200%20width%3D232%29%20%28actual%20time%3D21210.361..21210.698%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Group%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D84336%20written%3D124%2C%20local%20hit%3D2068827%20read%3D1%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D47930.799%20write%3D1.505%0A%09%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..10.04%20rows%3D502%20width%3D232%29%20%28actual%20time%3D5942.675..21209.793%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D84336%20written%3D124%2C%20local%20hit%3D2068827%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D47930.799%20write%3D1.505%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Sort (cost=99922.38..99922.88 rows=200 width=232) (actual time=21211.683..21211.708 rows=317 loops=1)
|
||
Sort Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Sort Method: quicksort Memory: 69kB
|
||
Buffers: shared hit=4 read=84336 written=124, local hit=2068827 read=1
|
||
I/O Timings: read=47930.799 write=1.505
|
||
CTE un
|
||
-> Append (cost=32534.94..99887.14 rows=502 width=232) (actual time=5942.671..21209.531 rows=317 loops=1)
|
||
Buffers: shared hit=1 read=84336 written=124, local hit=2068827 read=1
|
||
I/O Timings: read=47930.799 write=1.505
|
||
-> GroupAggregate (cost=32534.94..32547.80 rows=245 width=232) (actual time=5942.670..6367.056 rows=197 loops=1)
|
||
Group Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Buffers: shared read=26345 written=122, local hit=813629 read=1
|
||
I/O Timings: read=10489.172 write=1.431
|
||
-> Sort (cost=32534.94..32535.55 rows=245 width=185) (actual time=5942.642..5990.837 rows=406814 loops=1)
|
||
Sort Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 69497kB
|
||
Buffers: shared read=26345 written=122, local hit=813629 read=1
|
||
I/O Timings: read=10489.172 write=1.431
|
||
-> Nested Loop (cost=1006.06..32525.21 rows=245 width=185) (actual time=3.834..5526.120 rows=406814 loops=1)
|
||
Join Filter: ((od.cy = 'C'::text) OR (sd.cy = 'C'::text) OR (sd.cm = 'F'::text))
|
||
Buffers: shared read=26345 written=122, local hit=813629 read=1
|
||
I/O Timings: read=10489.172 write=1.431
|
||
-> Hash Left Join (cost=1005.91..31588.56 rows=738 width=113) (actual time=3.809..3558.965 rows=406814 loops=1)
|
||
Hash Cond: (osm.fspr = sd.fspr)
|
||
Buffers: shared read=26345 written=122, local hit=2
|
||
I/O Timings: read=10489.166 write=1.431
|
||
-> Gather (cost=1000.00..31572.50 rows=738 width=42) (actual time=3.660..3400.209 rows=406814 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared read=26345 written=122
|
||
I/O Timings: read=10489.166 write=1.431
|
||
-> Parallel Seq Scan on osmf osm (cost=0.00..30498.70 rows=308 width=42) (actual time=0.781..3631.234 rows=135605 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 119
|
||
Buffers: shared read=26345 written=122
|
||
I/O Timings: read=10489.166 write=1.431
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.083..0.083 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd (cost=0.00..3.74 rows=174 width=108) (actual time=0.013..0.049 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od (cost=0.14..0.94 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=406814)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=813627 read=1
|
||
I/O Timings: read=0.006
|
||
-> GroupAggregate (cost=67318.31..67331.81 rows=257 width=232) (actual time=14757.926..14842.413 rows=120 loops=1)
|
||
Group Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Buffers: shared hit=1 read=57991 written=2, local hit=1255198
|
||
I/O Timings: read=37441.627 write=0.074
|
||
-> Sort (cost=67318.31..67318.96 rows=257 width=178) (actual time=14757.905..14766.226 rows=94732 loops=1)
|
||
Sort Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 16394kB
|
||
Buffers: shared hit=1 read=57991 written=2, local hit=1255198
|
||
I/O Timings: read=37441.627 write=0.074
|
||
-> Nested Loop (cost=1006.06..67308.03 rows=257 width=178) (actual time=65.185..14658.975 rows=94732 loops=1)
|
||
Join Filter: ((od_1.cy = 'C'::text) OR (sd_1.cy = 'C'::text) OR ((osm_1.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (osm_1.flag = 'REMAINDER'::text)))
|
||
Rows Removed by Join Filter: 532866
|
||
Buffers: shared hit=1 read=57991 written=2, local hit=1255198
|
||
I/O Timings: read=37441.627 write=0.074
|
||
-> Hash Left Join (cost=1005.91..65849.40 rows=1114 width=122) (actual time=65.171..12232.663 rows=628518 loops=1)
|
||
Hash Cond: (osm_1.fspr = sd_1.fspr)
|
||
Buffers: shared hit=1 read=57991 written=2, local hit=2
|
||
I/O Timings: read=37441.627 write=0.074
|
||
-> Gather (cost=1000.00..65829.04 rows=1114 width=51) (actual time=65.104..11994.997 rows=628518 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=1 read=57991 written=2
|
||
I/O Timings: read=37441.627 write=0.074
|
||
-> Parallel Seq Scan on osm osm_1 (cost=0.00..64717.64 rows=464 width=51) (actual time=56.186..12707.976 rows=209506 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 52157
|
||
Buffers: shared hit=1 read=57991 written=2
|
||
I/O Timings: read=37441.627 write=0.074
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.055..0.055 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_1 (cost=0.00..3.74 rows=174 width=108) (actual time=0.009..0.031 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od_1 (cost=0.14..0.93 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=628518)
|
||
Index Cond: ((osm_1.adj_orderdate >= sdat) AND (osm_1.adj_orderdate <= edat))
|
||
Buffers: local hit=1255196
|
||
-> HashAggregate (cost=25.10..27.60 rows=200 width=232) (actual time=21210.361..21210.698 rows=317 loops=1)
|
||
Group Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Buffers: shared hit=1 read=84336 written=124, local hit=2068827 read=1
|
||
I/O Timings: read=47930.799 write=1.505
|
||
-> CTE Scan on un (cost=0.00..10.04 rows=502 width=232) (actual time=5942.675..21209.793 rows=317 loops=1)
|
||
Buffers: shared hit=1 read=84336 written=124, local hit=2068827 read=1
|
||
I/O Timings: read=47930.799 write=1.505
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-3">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>4</td>
|
||
<td>1m33s</td>
|
||
<td>9
|
||
<p><a href="#Atime_consuming_queries_details_4" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>2s718ms</td>
|
||
<td>25s847ms</td>
|
||
<td>10s409ms</td>
|
||
<td id="time-consuming-queries-examples-details-rank-4">
|
||
<div id="query-e-4" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>create <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> gld<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>; <span class="kw1">WITH</span> un <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> ? srce <span class="sy0">,</span>od<span class="sy0">.</span>ssyr oseas <span class="sy0">,</span>od<span class="sy0">.</span>sdat odate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr sseas <span class="sy0">,</span>sd<span class="sy0">.</span>sdat sdate <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> om <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> sm <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> oy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_qty <span class="br0">)</span> qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_val_loc <span class="sy0">*</span> r_rate <span class="br0">)</span> sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_cst_loc <span class="sy0">*</span> c_rate <span class="br0">)</span> stdcost <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osmp osm <span class="kw1">INNER</span> <span class="kw1">JOIN</span> gld od <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_orderdate <span class="kw1">BETWEEN</span> od<span class="sy0">.</span>sdat <span class="kw1">AND</span> od<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld sd <span class="kw1">ON</span> osm<span class="sy0">.</span>fspr <span class="sy0">=</span> sd<span class="sy0">.</span>fspr <span class="kw1">WHERE</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>glec<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>fs_line<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">=</span> ? <span class="kw1">AND</span> calc_status <span class="sy0"><</span><span class="sy0">></span> ? <span class="sy0">-</span><span class="sy0">-</span>open orders <span class="kw1">AND</span> sd<span class="sy0">.</span>cm <span class="sy0">=</span> ? <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future fspr <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> od<span class="sy0">.</span>ssyr <span class="sy0">,</span>od<span class="sy0">.</span>sdat <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr <span class="sy0">,</span>sd<span class="sy0">.</span>sdat <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">UNION</span> <span class="kw1">ALL</span> <span class="kw1">SELECT</span> ? srce <span class="sy0">,</span>od<span class="sy0">.</span>ssyr oseas <span class="sy0">,</span>od<span class="sy0">.</span>sdat odate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr sseas <span class="sy0">,</span>sd<span class="sy0">.</span>sdat sdate <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> om <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> sm <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> oy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_qty <span class="br0">)</span> qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_val_loc <span class="sy0">*</span> r_rate <span class="br0">)</span> sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_cst_loc <span class="sy0">*</span> c_rate <span class="br0">)</span> stdcost <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm osm <span class="kw1">INNER</span> <span class="kw1">JOIN</span> gld od <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_orderdate <span class="kw1">BETWEEN</span> od<span class="sy0">.</span>sdat <span class="kw1">AND</span> od<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld sd <span class="kw1">ON</span> greatest<span class="br0">(</span>osm<span class="sy0">.</span>adj_requestdate<span class="sy0">,</span><span class="kw2">current_date</span><span class="br0">)</span> <span class="kw1">BETWEEN</span> sd<span class="sy0">.</span>sdat <span class="kw1">AND</span> sd<span class="sy0">.</span>edat <span class="kw1">WHERE</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>fs_line<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">=</span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>glec<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">AND</span> calc_status <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span> <span class="kw1">AND</span> flag <span class="sy0">=</span> ? <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> od<span class="sy0">.</span>ssyr <span class="sy0">,</span>od<span class="sy0">.</span>sdat <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr <span class="sy0">,</span>sd<span class="sy0">.</span>sdat <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="br0">)</span> <span class="kw1">SELECT</span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>qty<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>stdcost<span class="br0">)</span> "cost" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>sales<span class="br0">)</span> sales <span class="kw1">FROM</span> un <span class="kw1">WHERE</span> om <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy ;
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Atime_consuming_queries_details_4" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #4</small></h3>
|
||
<div id="time_consuming_queries_details_4" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Atime_consuming_queries_details_4').on("shown.bs.collapse",function(){
|
||
var bars_38 = [['00:00',3],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',6],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_38 = [['00:00',5745],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',12741],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var time_consuming_queries_details_4 = create_bargraph('time_consuming_queries_details_4', '', 'Queries', [ bars_38, lines_38 ], 'Avg. duration');
|
||
});
|
||
create_download_button(38, 'btn btn-default btn-xs');
|
||
add_download_button_event(38, 'time_consuming_queries_details_4');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>17</td><td>5</td><td>50s600ms</td><td>10s120ms</td></tr><tr><td>Mar 15</td><td>00</td><td>3</td><td>17s236ms</td><td>5s745ms</td></tr><tr><td></td><td>17</td><td>1</td><td>25s847ms</td><td>25s847ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Atime_consuming_queries_details_4">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-4">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-4">User(s) involved</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-4">App(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="time-consuming-queries-user-involved-rank-4" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> report - <b>Total duration:</b> 1m18s - <b>Times executed:</b> 5 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-4">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="time-consuming-queries-app-involved-rank-4" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> [unknown] - <b>Total duration:</b> 1m18s - <b>Times executed:</b> 5 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-4">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="time-consuming-queries-examples-rank-4" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-e-4-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMP OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> GREATEST <span class="br0">(</span>OSM<span class="sy0">.</span>adj_requestdate<span class="sy0">,</span>
|
||
<span class="kw1"><span class="kw2">current_date</span></span><span class="br0">)</span> <span class="kw1">BETWEEN</span> SD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">WHERE</span>
|
||
OM <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'F'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 17:30:45
|
||
<b>Duration:</b> 25s847ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> report
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> [unknown]
|
||
</pre>
|
||
<div id="query-e-explain-4-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Sort%20%20%28cost%3D113023.45..113023.95%20rows%3D200%20width%3D232%29%20%28actual%20time%3D25846.751..25846.759%20rows%3D129%20loops%3D1%29%0A%09%20%20Sort%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2043kB%0A%09%20%20Buffers%3A%20shared%20hit%3D20260%20read%3D95070%20written%3D3367%2C%20local%20hit%3D221449%20read%3D1%0A%09%20%20I%2FO%20Timings%3A%20read%3D23324.429%20write%3D75.759%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D46404.12..112987.32%20rows%3D496%20width%3D232%29%20%28actual%20time%3D25114.996..25846.141%20rows%3D151%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20257%20read%3D95070%20written%3D3367%2C%20local%20hit%3D221449%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D23324.429%20write%3D75.759%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D46404.12..46410.90%20rows%3D129%20width%3D232%29%20%28actual%20time%3D25114.995..25208.334%20rows%3D81%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20125%20read%3D37204%20written%3D3367%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D23025.573%20write%3D75.759%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D46404.12..46404.45%20rows%3D129%20width%3D182%29%20%28actual%20time%3D25114.970..25120.224%20rows%3D105549%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2017915kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20125%20read%3D37204%20written%3D3367%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D23025.573%20write%3D75.759%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1445.79..46399.60%20rows%3D129%20width%3D182%29%20%28actual%20time%3D37.452..24985.218%20rows%3D105549%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20125%20read%3D37204%20written%3D3367%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D23025.573%20write%3D75.759%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1445.65..46391.77%20rows%3D7%20width%3D110%29%20%28actual%20time%3D37.425..24330.405%20rows%3D105573%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20125%20read%3D37204%20written%3D3367%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D23025.565%20write%3D75.759%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..4.18%20rows%3D1%20width%3D108%29%20%28actual%20time%3D0.021..0.037%20rows%3D38%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28cm%20%3D%20%27F%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20136%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20osmp%20osm%20%20%28cost%3D1445.65..46387.13%20rows%3D46%20width%3D39%29%20%28actual%20time%3D1.955..638.928%20rows%3D2778%20loops%3D38%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2070%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D56851%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20125%20read%3D37204%20written%3D3367%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D23025.565%20write%3D75.759%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20osmp_fspr%20%20%28cost%3D0.00..1445.64%20rows%3D27895%20width%3D0%29%20%28actual%20time%3D1.650..1.650%20rows%3D2848%20loops%3D38%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D108%20read%3D370%20written%3D62%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D51.006%20write%3D0.514%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.005..0.005%20rows%3D1%20loops%3D105573%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D211097%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.008%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D66549.72..66568.99%20rows%3D367%20width%3D232%29%20%28actual%20time%3D630.211..637.789%20rows%3D70%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D132%20read%3D57866%2C%20local%20hit%3D10350%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D298.856%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D66549.72..66550.64%20rows%3D367%20width%3D178%29%20%28actual%20time%3D630.192..630.748%20rows%3D5174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20920kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D132%20read%3D57866%2C%20local%20hit%3D10350%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D298.856%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1004.74..66534.08%20rows%3D367%20width%3D178%29%20%28actual%20time%3D593.533..627.538%20rows%3D5174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20od_1.sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20od_1.edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%20895102%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D132%20read%3D57866%2C%20local%20hit%3D10350%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D298.856%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20od_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D80%29%20%28actual%20time%3D0.013..0.081%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D1004.74..66472.54%20rows%3D19%20width%3D106%29%20%28actual%20time%3D0.030..3.144%20rows%3D5174%20loops%3D174%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D132%20read%3D57866%2C%20local%20hit%3D10348%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D298.856%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D1004.74..66472.44%20rows%3D19%20width%3D106%29%20%28actual%20time%3D5.277..509.890%20rows%3D5174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D132%20read%3D57866%2C%20local%20hit%3D10348%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D298.856%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..66465.04%20rows%3D1%20width%3D34%29%20%28actual%20time%3D5.247..458.234%20rows%3D5174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D132%20read%3D57866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D298.856%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20osm_1%20%20%28cost%3D0.00..65464.94%20rows%3D1%20width%3D34%29%20%28actual%20time%3D1.669..482.765%20rows%3D1725%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20259938%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D132%20read%3D57866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D298.856%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20gld%20sd_1%20%20%28cost%3D4.74..7.21%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.009..0.009%20rows%3D1%20loops%3D5174%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3E%3D%20sdat%29%20AND%20%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D5174%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D10348%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20dats%20%20%28cost%3D0.00..4.73%20rows%3D19%20width%3D0%29%20%28actual%20time%3D0.007..0.007%20rows%3D1%20loops%3D5174%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3E%3D%20sdat%29%20AND%20%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D5174%0A%09%20%20-%3E%20%20HashAggregate%20%20%28cost%3D25.98..28.48%20rows%3D200%20width%3D232%29%20%28actual%20time%3D25846.428..25846.522%20rows%3D129%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Group%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20257%20read%3D95070%20written%3D3367%2C%20local%20hit%3D221449%20read%3D1%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D23324.429%20write%3D75.759%0A%09%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..11.16%20rows%3D494%20width%3D232%29%20%28actual%20time%3D25115.000..25846.302%20rows%3D129%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28om%20%3C%3E%20%27F%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2022%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20257%20read%3D95070%20written%3D3367%2C%20local%20hit%3D221449%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D23324.429%20write%3D75.759%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Sort (cost=113023.45..113023.95 rows=200 width=232) (actual time=25846.751..25846.759 rows=129 loops=1)
|
||
Sort Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Sort Method: quicksort Memory: 43kB
|
||
Buffers: shared hit=20260 read=95070 written=3367, local hit=221449 read=1
|
||
I/O Timings: read=23324.429 write=75.759
|
||
CTE un
|
||
-> Append (cost=46404.12..112987.32 rows=496 width=232) (actual time=25114.996..25846.141 rows=151 loops=1)
|
||
Buffers: shared hit=20257 read=95070 written=3367, local hit=221449 read=1
|
||
I/O Timings: read=23324.429 write=75.759
|
||
-> GroupAggregate (cost=46404.12..46410.90 rows=129 width=232) (actual time=25114.995..25208.334 rows=81 loops=1)
|
||
Group Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Buffers: shared hit=20125 read=37204 written=3367, local hit=211099 read=1
|
||
I/O Timings: read=23025.573 write=75.759
|
||
-> Sort (cost=46404.12..46404.45 rows=129 width=182) (actual time=25114.970..25120.224 rows=105549 loops=1)
|
||
Sort Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 17915kB
|
||
Buffers: shared hit=20125 read=37204 written=3367, local hit=211099 read=1
|
||
I/O Timings: read=23025.573 write=75.759
|
||
-> Nested Loop (cost=1445.79..46399.60 rows=129 width=182) (actual time=37.452..24985.218 rows=105549 loops=1)
|
||
Buffers: shared hit=20125 read=37204 written=3367, local hit=211099 read=1
|
||
I/O Timings: read=23025.573 write=75.759
|
||
-> Nested Loop (cost=1445.65..46391.77 rows=7 width=110) (actual time=37.425..24330.405 rows=105573 loops=1)
|
||
Buffers: shared hit=20125 read=37204 written=3367, local hit=2
|
||
I/O Timings: read=23025.565 write=75.759
|
||
-> Seq Scan on gld sd (cost=0.00..4.18 rows=1 width=108) (actual time=0.021..0.037 rows=38 loops=1)
|
||
Filter: (cm = 'F'::text)
|
||
Rows Removed by Filter: 136
|
||
Buffers: local hit=2
|
||
-> Bitmap Heap Scan on osmp osm (cost=1445.65..46387.13 rows=46 width=39) (actual time=1.955..638.928 rows=2778 loops=38)
|
||
Recheck Cond: (fspr = sd.fspr)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 70
|
||
Heap Blocks: exact=56851
|
||
Buffers: shared hit=20125 read=37204 written=3367
|
||
I/O Timings: read=23025.565 write=75.759
|
||
-> Bitmap Index Scan on osmp_fspr (cost=0.00..1445.64 rows=27895 width=0) (actual time=1.650..1.650 rows=2848 loops=38)
|
||
Index Cond: (fspr = sd.fspr)
|
||
Buffers: shared hit=108 read=370 written=62
|
||
I/O Timings: read=51.006 write=0.514
|
||
-> Index Scan using dats on gld od (cost=0.14..0.93 rows=19 width=80) (actual time=0.005..0.005 rows=1 loops=105573)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=211097 read=1
|
||
I/O Timings: read=0.008
|
||
-> GroupAggregate (cost=66549.72..66568.99 rows=367 width=232) (actual time=630.211..637.789 rows=70 loops=1)
|
||
Group Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Buffers: shared hit=132 read=57866, local hit=10350
|
||
I/O Timings: read=298.856
|
||
-> Sort (cost=66549.72..66550.64 rows=367 width=178) (actual time=630.192..630.748 rows=5174 loops=1)
|
||
Sort Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 920kB
|
||
Buffers: shared hit=132 read=57866, local hit=10350
|
||
I/O Timings: read=298.856
|
||
-> Nested Loop (cost=1004.74..66534.08 rows=367 width=178) (actual time=593.533..627.538 rows=5174 loops=1)
|
||
Join Filter: ((osm_1.adj_orderdate >= od_1.sdat) AND (osm_1.adj_orderdate <= od_1.edat))
|
||
Rows Removed by Join Filter: 895102
|
||
Buffers: shared hit=132 read=57866, local hit=10350
|
||
I/O Timings: read=298.856
|
||
-> Seq Scan on gld od_1 (cost=0.00..3.74 rows=174 width=80) (actual time=0.013..0.081 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Materialize (cost=1004.74..66472.54 rows=19 width=106) (actual time=0.030..3.144 rows=5174 loops=174)
|
||
Buffers: shared hit=132 read=57866, local hit=10348
|
||
I/O Timings: read=298.856
|
||
-> Nested Loop Left Join (cost=1004.74..66472.44 rows=19 width=106) (actual time=5.277..509.890 rows=5174 loops=1)
|
||
Buffers: shared hit=132 read=57866, local hit=10348
|
||
I/O Timings: read=298.856
|
||
-> Gather (cost=1000.00..66465.04 rows=1 width=34) (actual time=5.247..458.234 rows=5174 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=132 read=57866
|
||
I/O Timings: read=298.856
|
||
-> Parallel Seq Scan on osm osm_1 (cost=0.00..65464.94 rows=1 width=34) (actual time=1.669..482.765 rows=1725 loops=3)
|
||
Filter: ((calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (flag = 'REMAINDER'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 259938
|
||
Buffers: shared hit=132 read=57866
|
||
I/O Timings: read=298.856
|
||
-> Bitmap Heap Scan on gld sd_1 (cost=4.74..7.21 rows=19 width=80) (actual time=0.009..0.009 rows=1 loops=5174)
|
||
Recheck Cond: ((GREATEST(osm_1.adj_requestdate, CURRENT_DATE) >= sdat) AND (GREATEST(osm_1.adj_requestdate, CURRENT_DATE) <= edat))
|
||
Heap Blocks: exact=5174
|
||
Buffers: local hit=10348
|
||
-> Bitmap Index Scan on dats (cost=0.00..4.73 rows=19 width=0) (actual time=0.007..0.007 rows=1 loops=5174)
|
||
Index Cond: ((GREATEST(osm_1.adj_requestdate, CURRENT_DATE) >= sdat) AND (GREATEST(osm_1.adj_requestdate, CURRENT_DATE) <= edat))
|
||
Buffers: local hit=5174
|
||
-> HashAggregate (cost=25.98..28.48 rows=200 width=232) (actual time=25846.428..25846.522 rows=129 loops=1)
|
||
Group Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Buffers: shared hit=20257 read=95070 written=3367, local hit=221449 read=1
|
||
I/O Timings: read=23324.429 write=75.759
|
||
-> CTE Scan on un (cost=0.00..11.16 rows=494 width=232) (actual time=25115.000..25846.302 rows=129 loops=1)
|
||
Filter: (om <> 'F'::text)
|
||
Rows Removed by Filter: 22
|
||
Buffers: shared hit=20257 read=95070 written=3367, local hit=221449 read=1
|
||
I/O Timings: read=23324.429 write=75.759
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-e-4-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMP OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> GREATEST <span class="br0">(</span>OSM<span class="sy0">.</span>adj_requestdate<span class="sy0">,</span>
|
||
<span class="kw1"><span class="kw2">current_date</span></span><span class="br0">)</span> <span class="kw1">BETWEEN</span> SD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">WHERE</span>
|
||
OM <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'F'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-14 17:09:40
|
||
<b>Duration:</b> 23s808ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> report
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> [unknown]
|
||
</pre>
|
||
<div id="query-e-explain-4-2" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Sort%20%20%28cost%3D113712.54..113713.04%20rows%3D200%20width%3D232%29%20%28actual%20time%3D23807.981..23807.985%20rows%3D128%20loops%3D1%29%0A%09%20%20Sort%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2043kB%0A%09%20%20Buffers%3A%20shared%20hit%3D24173%20read%3D91157%2C%20local%20hit%3D222025%20read%3D1%0A%09%20%20I%2FO%20Timings%3A%20read%3D26284.166%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D46404.12..113676.42%20rows%3D496%20width%3D232%29%20%28actual%20time%3D20688.511..23807.529%20rows%3D150%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D24170%20read%3D91157%2C%20local%20hit%3D222025%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D26284.166%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D46404.12..46410.90%20rows%3D129%20width%3D232%29%20%28actual%20time%3D20688.510..20789.478%20rows%3D81%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D21002%20read%3D36327%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D18300.701%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D46404.12..46404.45%20rows%3D129%20width%3D182%29%20%28actual%20time%3D20688.486..20694.576%20rows%3D105549%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2017915kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D21002%20read%3D36327%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D18300.701%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1445.79..46399.60%20rows%3D129%20width%3D182%29%20%28actual%20time%3D37.496..20515.988%20rows%3D105549%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D21002%20read%3D36327%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D18300.701%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1445.65..46391.77%20rows%3D7%20width%3D110%29%20%28actual%20time%3D37.467..19809.839%20rows%3D105573%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D21002%20read%3D36327%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D18300.692%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..4.18%20rows%3D1%20width%3D108%29%20%28actual%20time%3D0.020..0.038%20rows%3D38%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28cm%20%3D%20%27F%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20136%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20osmp%20osm%20%20%28cost%3D1445.65..46387.13%20rows%3D46%20width%3D39%29%20%28actual%20time%3D2.140..520.028%20rows%3D2778%20loops%3D38%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2070%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D56851%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D21002%20read%3D36327%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D18300.692%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20osmp_fspr%20%20%28cost%3D0.00..1445.64%20rows%3D27895%20width%3D0%29%20%28actual%20time%3D1.908..1.908%20rows%3D2848%20loops%3D38%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D110%20read%3D368%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D57.208%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.005..0.005%20rows%3D1%20loops%3D105573%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D211097%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.009%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D67238.81..67258.08%20rows%3D367%20width%3D232%29%20%28actual%20time%3D3013.320..3018.033%20rows%3D69%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3168%20read%3D54830%2C%20local%20hit%3D10926%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7983.465%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D67238.81..67239.73%20rows%3D367%20width%3D178%29%20%28actual%20time%3D3013.300..3013.513%20rows%3D5462%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20961kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3168%20read%3D54830%2C%20local%20hit%3D10926%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7983.465%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1004.74..67223.18%20rows%3D367%20width%3D178%29%20%28actual%20time%3D2972.945..3010.611%20rows%3D5462%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20od_1.sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20od_1.edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%20944926%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3168%20read%3D54830%2C%20local%20hit%3D10926%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7983.465%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20od_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D80%29%20%28actual%20time%3D0.017..0.072%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D1004.74..67161.63%20rows%3D19%20width%3D106%29%20%28actual%20time%3D13.102..16.813%20rows%3D5462%20loops%3D174%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3168%20read%3D54830%2C%20local%20hit%3D10924%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7983.465%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D1004.74..67161.54%20rows%3D19%20width%3D106%29%20%28actual%20time%3D2279.747..2880.350%20rows%3D5462%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3168%20read%3D54830%2C%20local%20hit%3D10924%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7983.465%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..67154.13%20rows%3D1%20width%3D34%29%20%28actual%20time%3D2279.720..2819.147%20rows%3D5462%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3168%20read%3D54830%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7983.465%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20osm_1%20%20%28cost%3D0.00..66154.03%20rows%3D1%20width%3D34%29%20%28actual%20time%3D2269.482..2837.169%20rows%3D1821%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20259313%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3168%20read%3D54830%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7983.465%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20gld%20sd_1%20%20%28cost%3D4.74..7.21%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.008..0.008%20rows%3D1%20loops%3D5462%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3E%3D%20sdat%29%20AND%20%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D5462%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D10924%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20dats%20%20%28cost%3D0.00..4.73%20rows%3D19%20width%3D0%29%20%28actual%20time%3D0.007..0.007%20rows%3D1%20loops%3D5462%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3E%3D%20sdat%29%20AND%20%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D5462%0A%09%20%20-%3E%20%20HashAggregate%20%20%28cost%3D25.98..28.48%20rows%3D200%20width%3D232%29%20%28actual%20time%3D23807.814..23807.857%20rows%3D128%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Group%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D24170%20read%3D91157%2C%20local%20hit%3D222025%20read%3D1%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D26284.166%0A%09%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..11.16%20rows%3D494%20width%3D232%29%20%28actual%20time%3D20688.515..23807.691%20rows%3D128%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28om%20%3C%3E%20%27F%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2022%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D24170%20read%3D91157%2C%20local%20hit%3D222025%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D26284.166%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Sort (cost=113712.54..113713.04 rows=200 width=232) (actual time=23807.981..23807.985 rows=128 loops=1)
|
||
Sort Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Sort Method: quicksort Memory: 43kB
|
||
Buffers: shared hit=24173 read=91157, local hit=222025 read=1
|
||
I/O Timings: read=26284.166
|
||
CTE un
|
||
-> Append (cost=46404.12..113676.42 rows=496 width=232) (actual time=20688.511..23807.529 rows=150 loops=1)
|
||
Buffers: shared hit=24170 read=91157, local hit=222025 read=1
|
||
I/O Timings: read=26284.166
|
||
-> GroupAggregate (cost=46404.12..46410.90 rows=129 width=232) (actual time=20688.510..20789.478 rows=81 loops=1)
|
||
Group Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Buffers: shared hit=21002 read=36327, local hit=211099 read=1
|
||
I/O Timings: read=18300.701
|
||
-> Sort (cost=46404.12..46404.45 rows=129 width=182) (actual time=20688.486..20694.576 rows=105549 loops=1)
|
||
Sort Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 17915kB
|
||
Buffers: shared hit=21002 read=36327, local hit=211099 read=1
|
||
I/O Timings: read=18300.701
|
||
-> Nested Loop (cost=1445.79..46399.60 rows=129 width=182) (actual time=37.496..20515.988 rows=105549 loops=1)
|
||
Buffers: shared hit=21002 read=36327, local hit=211099 read=1
|
||
I/O Timings: read=18300.701
|
||
-> Nested Loop (cost=1445.65..46391.77 rows=7 width=110) (actual time=37.467..19809.839 rows=105573 loops=1)
|
||
Buffers: shared hit=21002 read=36327, local hit=2
|
||
I/O Timings: read=18300.692
|
||
-> Seq Scan on gld sd (cost=0.00..4.18 rows=1 width=108) (actual time=0.020..0.038 rows=38 loops=1)
|
||
Filter: (cm = 'F'::text)
|
||
Rows Removed by Filter: 136
|
||
Buffers: local hit=2
|
||
-> Bitmap Heap Scan on osmp osm (cost=1445.65..46387.13 rows=46 width=39) (actual time=2.140..520.028 rows=2778 loops=38)
|
||
Recheck Cond: (fspr = sd.fspr)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 70
|
||
Heap Blocks: exact=56851
|
||
Buffers: shared hit=21002 read=36327
|
||
I/O Timings: read=18300.692
|
||
-> Bitmap Index Scan on osmp_fspr (cost=0.00..1445.64 rows=27895 width=0) (actual time=1.908..1.908 rows=2848 loops=38)
|
||
Index Cond: (fspr = sd.fspr)
|
||
Buffers: shared hit=110 read=368
|
||
I/O Timings: read=57.208
|
||
-> Index Scan using dats on gld od (cost=0.14..0.93 rows=19 width=80) (actual time=0.005..0.005 rows=1 loops=105573)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=211097 read=1
|
||
I/O Timings: read=0.009
|
||
-> GroupAggregate (cost=67238.81..67258.08 rows=367 width=232) (actual time=3013.320..3018.033 rows=69 loops=1)
|
||
Group Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Buffers: shared hit=3168 read=54830, local hit=10926
|
||
I/O Timings: read=7983.465
|
||
-> Sort (cost=67238.81..67239.73 rows=367 width=178) (actual time=3013.300..3013.513 rows=5462 loops=1)
|
||
Sort Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 961kB
|
||
Buffers: shared hit=3168 read=54830, local hit=10926
|
||
I/O Timings: read=7983.465
|
||
-> Nested Loop (cost=1004.74..67223.18 rows=367 width=178) (actual time=2972.945..3010.611 rows=5462 loops=1)
|
||
Join Filter: ((osm_1.adj_orderdate >= od_1.sdat) AND (osm_1.adj_orderdate <= od_1.edat))
|
||
Rows Removed by Join Filter: 944926
|
||
Buffers: shared hit=3168 read=54830, local hit=10926
|
||
I/O Timings: read=7983.465
|
||
-> Seq Scan on gld od_1 (cost=0.00..3.74 rows=174 width=80) (actual time=0.017..0.072 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Materialize (cost=1004.74..67161.63 rows=19 width=106) (actual time=13.102..16.813 rows=5462 loops=174)
|
||
Buffers: shared hit=3168 read=54830, local hit=10924
|
||
I/O Timings: read=7983.465
|
||
-> Nested Loop Left Join (cost=1004.74..67161.54 rows=19 width=106) (actual time=2279.747..2880.350 rows=5462 loops=1)
|
||
Buffers: shared hit=3168 read=54830, local hit=10924
|
||
I/O Timings: read=7983.465
|
||
-> Gather (cost=1000.00..67154.13 rows=1 width=34) (actual time=2279.720..2819.147 rows=5462 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=3168 read=54830
|
||
I/O Timings: read=7983.465
|
||
-> Parallel Seq Scan on osm osm_1 (cost=0.00..66154.03 rows=1 width=34) (actual time=2269.482..2837.169 rows=1821 loops=3)
|
||
Filter: ((calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (flag = 'REMAINDER'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 259313
|
||
Buffers: shared hit=3168 read=54830
|
||
I/O Timings: read=7983.465
|
||
-> Bitmap Heap Scan on gld sd_1 (cost=4.74..7.21 rows=19 width=80) (actual time=0.008..0.008 rows=1 loops=5462)
|
||
Recheck Cond: ((GREATEST(osm_1.adj_requestdate, CURRENT_DATE) >= sdat) AND (GREATEST(osm_1.adj_requestdate, CURRENT_DATE) <= edat))
|
||
Heap Blocks: exact=5462
|
||
Buffers: local hit=10924
|
||
-> Bitmap Index Scan on dats (cost=0.00..4.73 rows=19 width=0) (actual time=0.007..0.007 rows=1 loops=5462)
|
||
Index Cond: ((GREATEST(osm_1.adj_requestdate, CURRENT_DATE) >= sdat) AND (GREATEST(osm_1.adj_requestdate, CURRENT_DATE) <= edat))
|
||
Buffers: local hit=5462
|
||
-> HashAggregate (cost=25.98..28.48 rows=200 width=232) (actual time=23807.814..23807.857 rows=128 loops=1)
|
||
Group Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Buffers: shared hit=24170 read=91157, local hit=222025 read=1
|
||
I/O Timings: read=26284.166
|
||
-> CTE Scan on un (cost=0.00..11.16 rows=494 width=232) (actual time=20688.515..23807.691 rows=128 loops=1)
|
||
Filter: (om <> 'F'::text)
|
||
Rows Removed by Filter: 22
|
||
Buffers: shared hit=24170 read=91157, local hit=222025 read=1
|
||
I/O Timings: read=26284.166
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-e-4-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMP OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> GREATEST <span class="br0">(</span>OSM<span class="sy0">.</span>adj_requestdate<span class="sy0">,</span>
|
||
<span class="kw1"><span class="kw2">current_date</span></span><span class="br0">)</span> <span class="kw1">BETWEEN</span> SD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">WHERE</span>
|
||
OM <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'F'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-14 17:21:12
|
||
<b>Duration:</b> 18s342ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> report
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> [unknown]
|
||
</pre>
|
||
<div id="query-e-explain-4-3" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Sort%20%20%28cost%3D113712.54..113713.04%20rows%3D200%20width%3D232%29%20%28actual%20time%3D18341.790..18341.795%20rows%3D128%20loops%3D1%29%0A%09%20%20Sort%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2043kB%0A%09%20%20Buffers%3A%20shared%20hit%3D24593%20read%3D90737%2C%20local%20hit%3D222025%20read%3D1%0A%09%20%20I%2FO%20Timings%3A%20read%3D16381.140%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D46404.12..113676.42%20rows%3D496%20width%3D232%29%20%28actual%20time%3D17686.530..18341.413%20rows%3D150%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D24590%20read%3D90737%2C%20local%20hit%3D222025%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D16381.140%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D46404.12..46410.90%20rows%3D129%20width%3D232%29%20%28actual%20time%3D17686.530..17780.512%20rows%3D81%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20982%20read%3D36347%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D16170.335%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D46404.12..46404.45%20rows%3D129%20width%3D182%29%20%28actual%20time%3D17686.507..17691.642%20rows%3D105549%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2017915kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20982%20read%3D36347%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D16170.335%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1445.79..46399.60%20rows%3D129%20width%3D182%29%20%28actual%20time%3D336.691..17577.973%20rows%3D105549%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20982%20read%3D36347%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D16170.335%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1445.65..46391.77%20rows%3D7%20width%3D110%29%20%28actual%20time%3D336.406..17026.558%20rows%3D105573%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20982%20read%3D36347%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D16170.091%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..4.18%20rows%3D1%20width%3D108%29%20%28actual%20time%3D0.019..0.035%20rows%3D38%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28cm%20%3D%20%27F%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20136%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20osmp%20osm%20%20%28cost%3D1445.65..46387.13%20rows%3D46%20width%3D39%29%20%28actual%20time%3D9.729..447.136%20rows%3D2778%20loops%3D38%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2070%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D56851%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20982%20read%3D36347%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D16170.091%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20osmp_fspr%20%20%28cost%3D0.00..1445.64%20rows%3D27895%20width%3D0%29%20%28actual%20time%3D6.416..6.416%20rows%3D2848%20loops%3D38%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D110%20read%3D368%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D223.920%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D105573%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D211097%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.244%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D67238.81..67258.08%20rows%3D367%20width%3D232%29%20%28actual%20time%3D556.403..560.886%20rows%3D69%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3608%20read%3D54390%2C%20local%20hit%3D10926%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D210.804%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D67238.81..67239.73%20rows%3D367%20width%3D178%29%20%28actual%20time%3D556.386..556.605%20rows%3D5462%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20961kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3608%20read%3D54390%2C%20local%20hit%3D10926%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D210.804%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1004.74..67223.18%20rows%3D367%20width%3D178%29%20%28actual%20time%3D518.705..553.668%20rows%3D5462%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20od_1.sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20od_1.edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%20944926%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3608%20read%3D54390%2C%20local%20hit%3D10926%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D210.804%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20od_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D80%29%20%28actual%20time%3D0.013..0.055%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D1004.74..67161.63%20rows%3D19%20width%3D106%29%20%28actual%20time%3D2.013..2.722%20rows%3D5462%20loops%3D174%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3608%20read%3D54390%2C%20local%20hit%3D10924%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D210.804%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D1004.74..67161.54%20rows%3D19%20width%3D106%29%20%28actual%20time%3D350.244..437.677%20rows%3D5462%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3608%20read%3D54390%2C%20local%20hit%3D10924%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D210.804%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..67154.13%20rows%3D1%20width%3D34%29%20%28actual%20time%3D350.219..407.718%20rows%3D5462%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3608%20read%3D54390%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D210.804%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20osm_1%20%20%28cost%3D0.00..66154.03%20rows%3D1%20width%3D34%29%20%28actual%20time%3D333.708..384.567%20rows%3D1821%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20259313%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3608%20read%3D54390%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D210.804%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20gld%20sd_1%20%20%28cost%3D4.74..7.21%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.005..0.005%20rows%3D1%20loops%3D5462%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3E%3D%20sdat%29%20AND%20%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D5462%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D10924%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20dats%20%20%28cost%3D0.00..4.73%20rows%3D19%20width%3D0%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D5462%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3E%3D%20sdat%29%20AND%20%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D5462%0A%09%20%20-%3E%20%20HashAggregate%20%20%28cost%3D25.98..28.48%20rows%3D200%20width%3D232%29%20%28actual%20time%3D18341.605..18341.654%20rows%3D128%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Group%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D24590%20read%3D90737%2C%20local%20hit%3D222025%20read%3D1%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D16381.140%0A%09%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..11.16%20rows%3D494%20width%3D232%29%20%28actual%20time%3D17686.534..18341.509%20rows%3D128%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28om%20%3C%3E%20%27F%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2022%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D24590%20read%3D90737%2C%20local%20hit%3D222025%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D16381.140%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Sort (cost=113712.54..113713.04 rows=200 width=232) (actual time=18341.790..18341.795 rows=128 loops=1)
|
||
Sort Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Sort Method: quicksort Memory: 43kB
|
||
Buffers: shared hit=24593 read=90737, local hit=222025 read=1
|
||
I/O Timings: read=16381.140
|
||
CTE un
|
||
-> Append (cost=46404.12..113676.42 rows=496 width=232) (actual time=17686.530..18341.413 rows=150 loops=1)
|
||
Buffers: shared hit=24590 read=90737, local hit=222025 read=1
|
||
I/O Timings: read=16381.140
|
||
-> GroupAggregate (cost=46404.12..46410.90 rows=129 width=232) (actual time=17686.530..17780.512 rows=81 loops=1)
|
||
Group Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Buffers: shared hit=20982 read=36347, local hit=211099 read=1
|
||
I/O Timings: read=16170.335
|
||
-> Sort (cost=46404.12..46404.45 rows=129 width=182) (actual time=17686.507..17691.642 rows=105549 loops=1)
|
||
Sort Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 17915kB
|
||
Buffers: shared hit=20982 read=36347, local hit=211099 read=1
|
||
I/O Timings: read=16170.335
|
||
-> Nested Loop (cost=1445.79..46399.60 rows=129 width=182) (actual time=336.691..17577.973 rows=105549 loops=1)
|
||
Buffers: shared hit=20982 read=36347, local hit=211099 read=1
|
||
I/O Timings: read=16170.335
|
||
-> Nested Loop (cost=1445.65..46391.77 rows=7 width=110) (actual time=336.406..17026.558 rows=105573 loops=1)
|
||
Buffers: shared hit=20982 read=36347, local hit=2
|
||
I/O Timings: read=16170.091
|
||
-> Seq Scan on gld sd (cost=0.00..4.18 rows=1 width=108) (actual time=0.019..0.035 rows=38 loops=1)
|
||
Filter: (cm = 'F'::text)
|
||
Rows Removed by Filter: 136
|
||
Buffers: local hit=2
|
||
-> Bitmap Heap Scan on osmp osm (cost=1445.65..46387.13 rows=46 width=39) (actual time=9.729..447.136 rows=2778 loops=38)
|
||
Recheck Cond: (fspr = sd.fspr)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 70
|
||
Heap Blocks: exact=56851
|
||
Buffers: shared hit=20982 read=36347
|
||
I/O Timings: read=16170.091
|
||
-> Bitmap Index Scan on osmp_fspr (cost=0.00..1445.64 rows=27895 width=0) (actual time=6.416..6.416 rows=2848 loops=38)
|
||
Index Cond: (fspr = sd.fspr)
|
||
Buffers: shared hit=110 read=368
|
||
I/O Timings: read=223.920
|
||
-> Index Scan using dats on gld od (cost=0.14..0.93 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=105573)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=211097 read=1
|
||
I/O Timings: read=0.244
|
||
-> GroupAggregate (cost=67238.81..67258.08 rows=367 width=232) (actual time=556.403..560.886 rows=69 loops=1)
|
||
Group Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Buffers: shared hit=3608 read=54390, local hit=10926
|
||
I/O Timings: read=210.804
|
||
-> Sort (cost=67238.81..67239.73 rows=367 width=178) (actual time=556.386..556.605 rows=5462 loops=1)
|
||
Sort Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 961kB
|
||
Buffers: shared hit=3608 read=54390, local hit=10926
|
||
I/O Timings: read=210.804
|
||
-> Nested Loop (cost=1004.74..67223.18 rows=367 width=178) (actual time=518.705..553.668 rows=5462 loops=1)
|
||
Join Filter: ((osm_1.adj_orderdate >= od_1.sdat) AND (osm_1.adj_orderdate <= od_1.edat))
|
||
Rows Removed by Join Filter: 944926
|
||
Buffers: shared hit=3608 read=54390, local hit=10926
|
||
I/O Timings: read=210.804
|
||
-> Seq Scan on gld od_1 (cost=0.00..3.74 rows=174 width=80) (actual time=0.013..0.055 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Materialize (cost=1004.74..67161.63 rows=19 width=106) (actual time=2.013..2.722 rows=5462 loops=174)
|
||
Buffers: shared hit=3608 read=54390, local hit=10924
|
||
I/O Timings: read=210.804
|
||
-> Nested Loop Left Join (cost=1004.74..67161.54 rows=19 width=106) (actual time=350.244..437.677 rows=5462 loops=1)
|
||
Buffers: shared hit=3608 read=54390, local hit=10924
|
||
I/O Timings: read=210.804
|
||
-> Gather (cost=1000.00..67154.13 rows=1 width=34) (actual time=350.219..407.718 rows=5462 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=3608 read=54390
|
||
I/O Timings: read=210.804
|
||
-> Parallel Seq Scan on osm osm_1 (cost=0.00..66154.03 rows=1 width=34) (actual time=333.708..384.567 rows=1821 loops=3)
|
||
Filter: ((calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (flag = 'REMAINDER'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 259313
|
||
Buffers: shared hit=3608 read=54390
|
||
I/O Timings: read=210.804
|
||
-> Bitmap Heap Scan on gld sd_1 (cost=4.74..7.21 rows=19 width=80) (actual time=0.005..0.005 rows=1 loops=5462)
|
||
Recheck Cond: ((GREATEST(osm_1.adj_requestdate, CURRENT_DATE) >= sdat) AND (GREATEST(osm_1.adj_requestdate, CURRENT_DATE) <= edat))
|
||
Heap Blocks: exact=5462
|
||
Buffers: local hit=10924
|
||
-> Bitmap Index Scan on dats (cost=0.00..4.73 rows=19 width=0) (actual time=0.004..0.004 rows=1 loops=5462)
|
||
Index Cond: ((GREATEST(osm_1.adj_requestdate, CURRENT_DATE) >= sdat) AND (GREATEST(osm_1.adj_requestdate, CURRENT_DATE) <= edat))
|
||
Buffers: local hit=5462
|
||
-> HashAggregate (cost=25.98..28.48 rows=200 width=232) (actual time=18341.605..18341.654 rows=128 loops=1)
|
||
Group Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Buffers: shared hit=24590 read=90737, local hit=222025 read=1
|
||
I/O Timings: read=16381.140
|
||
-> CTE Scan on un (cost=0.00..11.16 rows=494 width=232) (actual time=17686.534..18341.509 rows=128 loops=1)
|
||
Filter: (om <> 'F'::text)
|
||
Rows Removed by Filter: 22
|
||
Buffers: shared hit=24590 read=90737, local hit=222025 read=1
|
||
I/O Timings: read=16381.140
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-4">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>5</td>
|
||
<td>44s960ms</td>
|
||
<td>10
|
||
<p><a href="#Atime_consuming_queries_details_5" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>3s112ms</td>
|
||
<td>8s419ms</td>
|
||
<td>4s496ms</td>
|
||
<td id="time-consuming-queries-examples-details-rank-5">
|
||
<div id="query-e-5" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>create <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> gld<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>; <span class="kw1">WITH</span> un <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> ? srce <span class="sy0">,</span>od<span class="sy0">.</span>ssyr oseas <span class="sy0">,</span>od<span class="sy0">.</span>sdat odate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr sseas <span class="sy0">,</span>sd<span class="sy0">.</span>sdat sdate <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> om <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> sm <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> oy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_qty <span class="br0">)</span> qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_val_loc <span class="sy0">*</span> r_rate <span class="br0">)</span> sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_cst_loc <span class="sy0">*</span> c_rate <span class="br0">)</span> stdcost <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osmp osm <span class="kw1">INNER</span> <span class="kw1">JOIN</span> gld od <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_orderdate <span class="kw1">BETWEEN</span> od<span class="sy0">.</span>sdat <span class="kw1">AND</span> od<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld sd <span class="kw1">ON</span> osm<span class="sy0">.</span>fspr <span class="sy0">=</span> sd<span class="sy0">.</span>fspr <span class="kw1">WHERE</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>glec<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>fs_line<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">=</span> ? <span class="kw1">AND</span> calc_status <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>all orders <span class="kw1">OR</span> shipments <span class="kw1">FOR</span> the period <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>current year <span class="kw1">TO</span> <span class="kw2">date</span> orders od<span class="sy0">.</span>cy <span class="sy0">=</span> ? <span class="sy0">-</span><span class="sy0">-</span>current year <span class="kw1">TO</span> <span class="kw2">date</span> shipments <span class="kw1">OR</span> sd<span class="sy0">.</span>cy <span class="sy0">=</span> ? <span class="br0">)</span> <span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>open orders sd<span class="sy0">.</span>cm <span class="sy0">=</span> ? <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future fspr <span class="br0">)</span> <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> od<span class="sy0">.</span>ssyr <span class="sy0">,</span>od<span class="sy0">.</span>sdat <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr <span class="sy0">,</span>sd<span class="sy0">.</span>sdat <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">UNION</span> <span class="kw1">ALL</span> <span class="kw1">SELECT</span> ? srce <span class="sy0">,</span>od<span class="sy0">.</span>ssyr oseas <span class="sy0">,</span>od<span class="sy0">.</span>sdat odate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr sseas <span class="sy0">,</span>sd<span class="sy0">.</span>sdat sdate <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> om <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> sm <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> oy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_qty <span class="br0">)</span> qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_val_loc <span class="sy0">*</span> r_rate <span class="br0">)</span> sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_cst_loc <span class="sy0">*</span> c_rate <span class="br0">)</span> stdcost <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm osm <span class="kw1">INNER</span> <span class="kw1">JOIN</span> gld od <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_orderdate <span class="kw1">BETWEEN</span> od<span class="sy0">.</span>sdat <span class="kw1">AND</span> od<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld sd <span class="kw1">ON</span> osm<span class="sy0">.</span>fspr <span class="sy0">=</span> sd<span class="sy0">.</span>fspr <span class="kw1">WHERE</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>fs_line<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">=</span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>glec<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">AND</span> calc_status <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>all <span class="kw1">ORDER</span> <span class="kw1">OR</span> shipments <span class="kw1">FOR</span> the period <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>current year <span class="kw1">TO</span> <span class="kw2">date</span> orders od<span class="sy0">.</span>cy <span class="sy0">=</span> ? <span class="sy0">-</span><span class="sy0">-</span>current year <span class="kw1">TO</span> <span class="kw2">date</span> shipments <span class="kw1">OR</span> sd<span class="sy0">.</span>cy <span class="sy0">=</span> ? <span class="br0">)</span> <span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>open orders <span class="br0">(</span>calc_status <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span> <span class="kw1">AND</span> flag <span class="sy0">=</span> ?<span class="br0">)</span> <span class="br0">)</span> <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> od<span class="sy0">.</span>ssyr <span class="sy0">,</span>od<span class="sy0">.</span>sdat <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr <span class="sy0">,</span>sd<span class="sy0">.</span>sdat <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="br0">)</span> <span class="kw1">SELECT</span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>qty<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>stdcost<span class="br0">)</span> "cost" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>sales<span class="br0">)</span> sales <span class="kw1">FROM</span> un <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy ;
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Atime_consuming_queries_details_5" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #5</small></h3>
|
||
<div id="time_consuming_queries_details_5" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Atime_consuming_queries_details_5').on("shown.bs.collapse",function(){
|
||
var bars_39 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',10],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_39 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',4496],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var time_consuming_queries_details_5 = create_bargraph('time_consuming_queries_details_5', '', 'Queries', [ bars_39, lines_39 ], 'Avg. duration');
|
||
});
|
||
create_download_button(39, 'btn btn-default btn-xs');
|
||
add_download_button_event(39, 'time_consuming_queries_details_5');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 18</td><td>09</td><td>10</td><td>44s960ms</td><td>4s496ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Atime_consuming_queries_details_5">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-5">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-5">User(s) involved</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-5">App(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="time-consuming-queries-user-involved-rank-5" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> report - <b>Total duration:</b> 16s549ms - <b>Times executed:</b> 2 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-5">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="time-consuming-queries-app-involved-rank-5" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> [unknown] - <b>Total duration:</b> 16s549ms - <b>Times executed:</b> 2 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-5">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="time-consuming-queries-examples-rank-5" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-e-5-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMP OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-18 09:26:51
|
||
<b>Duration:</b> 8s419ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> report
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> [unknown]
|
||
</pre>
|
||
<div id="query-e-explain-5-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Sort%20%20%28cost%3D126971.98..126972.48%20rows%3D200%20width%3D232%29%20%28actual%20time%3D8418.853..8418.865%20rows%3D323%20loops%3D1%29%0A%09%20%20Sort%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2070kB%0A%09%20%20Buffers%3A%20shared%20hit%3D5%20read%3D108400%2C%20local%20hit%3D2604991%20read%3D1%0A%09%20%20I%2FO%20Timings%3A%20read%3D3855.140%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D59568.08..126929.73%20rows%3D642%20width%3D232%29%20%28actual%20time%3D4498.390..8417.556%20rows%3D323%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D108400%2C%20local%20hit%3D2604991%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3855.140%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D59568.08..59588.30%20rows%3D385%20width%3D232%29%20%28actual%20time%3D4498.389..5166.228%20rows%3D203%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D50409%2C%20local%20hit%3D1349793%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2445.383%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D59568.08..59569.05%20rows%3D385%20width%3D182%29%20%28actual%20time%3D4498.367..4585.150%20rows%3D640948%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20114710kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D50409%2C%20local%20hit%3D1349793%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2445.383%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..59551.55%20rows%3D385%20width%3D182%29%20%28actual%20time%3D1.902..3949.029%20rows%3D640948%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cm%20%3D%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%2033948%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D50409%2C%20local%20hit%3D1349793%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2445.383%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..58085.96%20rows%3D1162%20width%3D110%29%20%28actual%20time%3D1.882..1591.245%20rows%3D674964%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D50409%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2445.379%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..58064.06%20rows%3D1162%20width%3D39%29%20%28actual%20time%3D1.801..1402.607%20rows%3D674964%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D50409%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2445.379%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osmp%20osm%20%20%28cost%3D0.00..56947.86%20rows%3D484%20width%3D39%29%20%28actual%20time%3D6.288..971.309%20rows%3D224988%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%207699%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D50409%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2445.379%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.066..0.066%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.009..0.036%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D674964%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1349791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.005%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D67318.31..67331.81%20rows%3D257%20width%3D232%29%20%28actual%20time%3D3164.534..3251.283%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1409.756%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D67318.31..67318.96%20rows%3D257%20width%3D178%29%20%28actual%20time%3D3164.500..3172.177%20rows%3D94732%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2016394kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1409.756%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..67308.03%20rows%3D257%20width%3D178%29%20%28actual%20time%3D8.854..3088.890%20rows%3D94732%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28%28osm_1.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28osm_1.flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%20532866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1409.756%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..65849.40%20rows%3D1114%20width%3D122%29%20%28actual%20time%3D8.837..1127.273%20rows%3D628518%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.fspr%20%3D%20sd_1.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1409.756%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..65829.04%20rows%3D1114%20width%3D51%29%20%28actual%20time%3D8.721..913.379%20rows%3D628518%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1409.756%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20osm_1%20%20%28cost%3D0.00..64717.64%20rows%3D464%20width%3D51%29%20%28actual%20time%3D5.247..636.800%20rows%3D209506%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2052157%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1409.756%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.068..0.068%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.018..0.042%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od_1%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D628518%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1255196%0A%09%20%20-%3E%20%20HashAggregate%20%20%28cost%3D32.10..34.60%20rows%3D200%20width%3D232%29%20%28actual%20time%3D8418.331..8418.469%20rows%3D323%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Group%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D108400%2C%20local%20hit%3D2604991%20read%3D1%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3855.140%0A%09%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..12.84%20rows%3D642%20width%3D232%29%20%28actual%20time%3D4498.393..8417.842%20rows%3D323%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D108400%2C%20local%20hit%3D2604991%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3855.140%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Sort (cost=126971.98..126972.48 rows=200 width=232) (actual time=8418.853..8418.865 rows=323 loops=1)
|
||
Sort Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Sort Method: quicksort Memory: 70kB
|
||
Buffers: shared hit=5 read=108400, local hit=2604991 read=1
|
||
I/O Timings: read=3855.140
|
||
CTE un
|
||
-> Append (cost=59568.08..126929.73 rows=642 width=232) (actual time=4498.390..8417.556 rows=323 loops=1)
|
||
Buffers: shared hit=2 read=108400, local hit=2604991 read=1
|
||
I/O Timings: read=3855.140
|
||
-> GroupAggregate (cost=59568.08..59588.30 rows=385 width=232) (actual time=4498.389..5166.228 rows=203 loops=1)
|
||
Group Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Buffers: shared hit=1 read=50409, local hit=1349793 read=1
|
||
I/O Timings: read=2445.383
|
||
-> Sort (cost=59568.08..59569.05 rows=385 width=182) (actual time=4498.367..4585.150 rows=640948 loops=1)
|
||
Sort Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 114710kB
|
||
Buffers: shared hit=1 read=50409, local hit=1349793 read=1
|
||
I/O Timings: read=2445.383
|
||
-> Nested Loop (cost=1006.06..59551.55 rows=385 width=182) (actual time=1.902..3949.029 rows=640948 loops=1)
|
||
Join Filter: ((od.cy = 'C'::text) OR (sd.cy = 'C'::text) OR (sd.cm = 'F'::text))
|
||
Rows Removed by Join Filter: 33948
|
||
Buffers: shared hit=1 read=50409, local hit=1349793 read=1
|
||
I/O Timings: read=2445.383
|
||
-> Hash Left Join (cost=1005.91..58085.96 rows=1162 width=110) (actual time=1.882..1591.245 rows=674964 loops=1)
|
||
Hash Cond: (osm.fspr = sd.fspr)
|
||
Buffers: shared hit=1 read=50409, local hit=2
|
||
I/O Timings: read=2445.379
|
||
-> Gather (cost=1000.00..58064.06 rows=1162 width=39) (actual time=1.801..1402.607 rows=674964 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=1 read=50409
|
||
I/O Timings: read=2445.379
|
||
-> Parallel Seq Scan on osmp osm (cost=0.00..56947.86 rows=484 width=39) (actual time=6.288..971.309 rows=224988 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 7699
|
||
Buffers: shared hit=1 read=50409
|
||
I/O Timings: read=2445.379
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.066..0.066 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd (cost=0.00..3.74 rows=174 width=108) (actual time=0.009..0.036 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od (cost=0.14..0.93 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=674964)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=1349791 read=1
|
||
I/O Timings: read=0.005
|
||
-> GroupAggregate (cost=67318.31..67331.81 rows=257 width=232) (actual time=3164.534..3251.283 rows=120 loops=1)
|
||
Group Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Buffers: shared hit=1 read=57991, local hit=1255198
|
||
I/O Timings: read=1409.756
|
||
-> Sort (cost=67318.31..67318.96 rows=257 width=178) (actual time=3164.500..3172.177 rows=94732 loops=1)
|
||
Sort Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 16394kB
|
||
Buffers: shared hit=1 read=57991, local hit=1255198
|
||
I/O Timings: read=1409.756
|
||
-> Nested Loop (cost=1006.06..67308.03 rows=257 width=178) (actual time=8.854..3088.890 rows=94732 loops=1)
|
||
Join Filter: ((od_1.cy = 'C'::text) OR (sd_1.cy = 'C'::text) OR ((osm_1.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (osm_1.flag = 'REMAINDER'::text)))
|
||
Rows Removed by Join Filter: 532866
|
||
Buffers: shared hit=1 read=57991, local hit=1255198
|
||
I/O Timings: read=1409.756
|
||
-> Hash Left Join (cost=1005.91..65849.40 rows=1114 width=122) (actual time=8.837..1127.273 rows=628518 loops=1)
|
||
Hash Cond: (osm_1.fspr = sd_1.fspr)
|
||
Buffers: shared hit=1 read=57991, local hit=2
|
||
I/O Timings: read=1409.756
|
||
-> Gather (cost=1000.00..65829.04 rows=1114 width=51) (actual time=8.721..913.379 rows=628518 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=1 read=57991
|
||
I/O Timings: read=1409.756
|
||
-> Parallel Seq Scan on osm osm_1 (cost=0.00..64717.64 rows=464 width=51) (actual time=5.247..636.800 rows=209506 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 52157
|
||
Buffers: shared hit=1 read=57991
|
||
I/O Timings: read=1409.756
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.068..0.068 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_1 (cost=0.00..3.74 rows=174 width=108) (actual time=0.018..0.042 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od_1 (cost=0.14..0.93 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=628518)
|
||
Index Cond: ((osm_1.adj_orderdate >= sdat) AND (osm_1.adj_orderdate <= edat))
|
||
Buffers: local hit=1255196
|
||
-> HashAggregate (cost=32.10..34.60 rows=200 width=232) (actual time=8418.331..8418.469 rows=323 loops=1)
|
||
Group Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Buffers: shared hit=2 read=108400, local hit=2604991 read=1
|
||
I/O Timings: read=3855.140
|
||
-> CTE Scan on un (cost=0.00..12.84 rows=642 width=232) (actual time=4498.393..8417.842 rows=323 loops=1)
|
||
Buffers: shared hit=2 read=108400, local hit=2604991 read=1
|
||
I/O Timings: read=3855.140
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-e-5-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMP OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-18 09:27:40
|
||
<b>Duration:</b> 8s130ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> report
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> [unknown]
|
||
</pre>
|
||
<div id="query-e-explain-5-2" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Sort%20%20%28cost%3D126971.98..126972.48%20rows%3D200%20width%3D232%29%20%28actual%20time%3D8129.861..8129.875%20rows%3D323%20loops%3D1%29%0A%09%20%20Sort%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2070kB%0A%09%20%20Buffers%3A%20shared%20hit%3D239%20read%3D108163%2C%20local%20hit%3D2604991%20read%3D1%0A%09%20%20I%2FO%20Timings%3A%20read%3D247.658%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D59568.08..126929.73%20rows%3D642%20width%3D232%29%20%28actual%20time%3D4183.799..8128.440%20rows%3D323%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D239%20read%3D108163%2C%20local%20hit%3D2604991%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D247.658%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D59568.08..59588.30%20rows%3D385%20width%3D232%29%20%28actual%20time%3D4183.798..4870.543%20rows%3D203%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D113%20read%3D50297%2C%20local%20hit%3D1349793%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D119.690%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D59568.08..59569.05%20rows%3D385%20width%3D182%29%20%28actual%20time%3D4183.776..4278.632%20rows%3D640948%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20114710kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D113%20read%3D50297%2C%20local%20hit%3D1349793%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D119.690%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..59551.55%20rows%3D385%20width%3D182%29%20%28actual%20time%3D1.055..3609.932%20rows%3D640948%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cm%20%3D%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%2033948%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D113%20read%3D50297%2C%20local%20hit%3D1349793%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D119.690%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..58085.96%20rows%3D1162%20width%3D110%29%20%28actual%20time%3D1.036..1145.096%20rows%3D674964%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D113%20read%3D50297%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D119.684%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..58064.06%20rows%3D1162%20width%3D39%29%20%28actual%20time%3D0.966..952.386%20rows%3D674964%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D113%20read%3D50297%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D119.684%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osmp%20osm%20%20%28cost%3D0.00..56947.86%20rows%3D484%20width%3D39%29%20%28actual%20time%3D0.027..208.907%20rows%3D224988%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%207699%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D113%20read%3D50297%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D119.684%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.062..0.062%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.007..0.035%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D674964%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1349791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.006%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D67318.31..67331.81%20rows%3D257%20width%3D232%29%20%28actual%20time%3D3170.956..3257.844%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D126%20read%3D57866%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D127.968%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D67318.31..67318.96%20rows%3D257%20width%3D178%29%20%28actual%20time%3D3170.933..3179.265%20rows%3D94732%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2016394kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D126%20read%3D57866%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D127.968%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..67308.03%20rows%3D257%20width%3D178%29%20%28actual%20time%3D1.140..3098.754%20rows%3D94732%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28%28osm_1.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28osm_1.flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%20532866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D126%20read%3D57866%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D127.968%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..65849.40%20rows%3D1114%20width%3D122%29%20%28actual%20time%3D1.106..1185.199%20rows%3D628518%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.fspr%20%3D%20sd_1.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D126%20read%3D57866%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D127.968%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..65829.04%20rows%3D1114%20width%3D51%29%20%28actual%20time%3D1.044..983.106%20rows%3D628518%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D126%20read%3D57866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D127.968%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20osm_1%20%20%28cost%3D0.00..64717.64%20rows%3D464%20width%3D51%29%20%28actual%20time%3D0.044..218.820%20rows%3D209506%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2052157%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D126%20read%3D57866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D127.968%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.052..0.052%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.006..0.029%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od_1%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D628518%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1255196%0A%09%20%20-%3E%20%20HashAggregate%20%20%28cost%3D32.10..34.60%20rows%3D200%20width%3D232%29%20%28actual%20time%3D8129.291..8129.422%20rows%3D323%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Group%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D239%20read%3D108163%2C%20local%20hit%3D2604991%20read%3D1%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D247.658%0A%09%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..12.84%20rows%3D642%20width%3D232%29%20%28actual%20time%3D4183.801..8128.793%20rows%3D323%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D239%20read%3D108163%2C%20local%20hit%3D2604991%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D247.658%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Sort (cost=126971.98..126972.48 rows=200 width=232) (actual time=8129.861..8129.875 rows=323 loops=1)
|
||
Sort Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Sort Method: quicksort Memory: 70kB
|
||
Buffers: shared hit=239 read=108163, local hit=2604991 read=1
|
||
I/O Timings: read=247.658
|
||
CTE un
|
||
-> Append (cost=59568.08..126929.73 rows=642 width=232) (actual time=4183.799..8128.440 rows=323 loops=1)
|
||
Buffers: shared hit=239 read=108163, local hit=2604991 read=1
|
||
I/O Timings: read=247.658
|
||
-> GroupAggregate (cost=59568.08..59588.30 rows=385 width=232) (actual time=4183.798..4870.543 rows=203 loops=1)
|
||
Group Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Buffers: shared hit=113 read=50297, local hit=1349793 read=1
|
||
I/O Timings: read=119.690
|
||
-> Sort (cost=59568.08..59569.05 rows=385 width=182) (actual time=4183.776..4278.632 rows=640948 loops=1)
|
||
Sort Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 114710kB
|
||
Buffers: shared hit=113 read=50297, local hit=1349793 read=1
|
||
I/O Timings: read=119.690
|
||
-> Nested Loop (cost=1006.06..59551.55 rows=385 width=182) (actual time=1.055..3609.932 rows=640948 loops=1)
|
||
Join Filter: ((od.cy = 'C'::text) OR (sd.cy = 'C'::text) OR (sd.cm = 'F'::text))
|
||
Rows Removed by Join Filter: 33948
|
||
Buffers: shared hit=113 read=50297, local hit=1349793 read=1
|
||
I/O Timings: read=119.690
|
||
-> Hash Left Join (cost=1005.91..58085.96 rows=1162 width=110) (actual time=1.036..1145.096 rows=674964 loops=1)
|
||
Hash Cond: (osm.fspr = sd.fspr)
|
||
Buffers: shared hit=113 read=50297, local hit=2
|
||
I/O Timings: read=119.684
|
||
-> Gather (cost=1000.00..58064.06 rows=1162 width=39) (actual time=0.966..952.386 rows=674964 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=113 read=50297
|
||
I/O Timings: read=119.684
|
||
-> Parallel Seq Scan on osmp osm (cost=0.00..56947.86 rows=484 width=39) (actual time=0.027..208.907 rows=224988 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 7699
|
||
Buffers: shared hit=113 read=50297
|
||
I/O Timings: read=119.684
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.062..0.062 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd (cost=0.00..3.74 rows=174 width=108) (actual time=0.007..0.035 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od (cost=0.14..0.93 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=674964)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=1349791 read=1
|
||
I/O Timings: read=0.006
|
||
-> GroupAggregate (cost=67318.31..67331.81 rows=257 width=232) (actual time=3170.956..3257.844 rows=120 loops=1)
|
||
Group Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Buffers: shared hit=126 read=57866, local hit=1255198
|
||
I/O Timings: read=127.968
|
||
-> Sort (cost=67318.31..67318.96 rows=257 width=178) (actual time=3170.933..3179.265 rows=94732 loops=1)
|
||
Sort Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 16394kB
|
||
Buffers: shared hit=126 read=57866, local hit=1255198
|
||
I/O Timings: read=127.968
|
||
-> Nested Loop (cost=1006.06..67308.03 rows=257 width=178) (actual time=1.140..3098.754 rows=94732 loops=1)
|
||
Join Filter: ((od_1.cy = 'C'::text) OR (sd_1.cy = 'C'::text) OR ((osm_1.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (osm_1.flag = 'REMAINDER'::text)))
|
||
Rows Removed by Join Filter: 532866
|
||
Buffers: shared hit=126 read=57866, local hit=1255198
|
||
I/O Timings: read=127.968
|
||
-> Hash Left Join (cost=1005.91..65849.40 rows=1114 width=122) (actual time=1.106..1185.199 rows=628518 loops=1)
|
||
Hash Cond: (osm_1.fspr = sd_1.fspr)
|
||
Buffers: shared hit=126 read=57866, local hit=2
|
||
I/O Timings: read=127.968
|
||
-> Gather (cost=1000.00..65829.04 rows=1114 width=51) (actual time=1.044..983.106 rows=628518 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=126 read=57866
|
||
I/O Timings: read=127.968
|
||
-> Parallel Seq Scan on osm osm_1 (cost=0.00..64717.64 rows=464 width=51) (actual time=0.044..218.820 rows=209506 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 52157
|
||
Buffers: shared hit=126 read=57866
|
||
I/O Timings: read=127.968
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.052..0.052 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_1 (cost=0.00..3.74 rows=174 width=108) (actual time=0.006..0.029 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od_1 (cost=0.14..0.93 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=628518)
|
||
Index Cond: ((osm_1.adj_orderdate >= sdat) AND (osm_1.adj_orderdate <= edat))
|
||
Buffers: local hit=1255196
|
||
-> HashAggregate (cost=32.10..34.60 rows=200 width=232) (actual time=8129.291..8129.422 rows=323 loops=1)
|
||
Group Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Buffers: shared hit=239 read=108163, local hit=2604991 read=1
|
||
I/O Timings: read=247.658
|
||
-> CTE Scan on un (cost=0.00..12.84 rows=642 width=232) (actual time=4183.801..8128.793 rows=323 loops=1)
|
||
Buffers: shared hit=239 read=108163, local hit=2604991 read=1
|
||
I/O Timings: read=247.658
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-e-5-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMP OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-18 09:26:47
|
||
<b>Duration:</b> 4s142ms
|
||
</pre>
|
||
<div id="query-e-explain-5-3" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Parallel%20Seq%20Scan%20on%20osmp%20osm%20%20%28cost%3D0.00..56947.86%20rows%3D484%20width%3D39%29%20%28actual%20time%3D9.803..884.885%20rows%3D131112%20loops%3D1%29%0A%09%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20Rows%20Removed%20by%20Filter%3A%205198%0A%09%20%20Buffers%3A%20shared%20read%3D10827%0A%09%20%20I%2FO%20Timings%3A%20read%3D792.174%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Parallel Seq Scan on osmp osm (cost=0.00..56947.86 rows=484 width=39) (actual time=9.803..884.885 rows=131112 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 5198
|
||
Buffers: shared read=10827
|
||
I/O Timings: read=792.174
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-5">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>6</td>
|
||
<td>16s934ms</td>
|
||
<td>7
|
||
<p><a href="#Atime_consuming_queries_details_6" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>1s357ms</td>
|
||
<td>3s762ms</td>
|
||
<td>2s419ms</td>
|
||
<td id="time-consuming-queries-examples-details-rank-6">
|
||
<div id="query-e-6" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing <span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span> <span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> <span class="sy0">*</span> <span class="kw1">FROM</span> <span class="br0">(</span> <span class="kw1">VALUES</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="br0">)</span> x<span class="br0">(</span>m<span class="sy0">,</span>s<span class="br0">)</span> <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq <span class="sy0">,</span>base <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span>order_month <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>part_descr <span class="sy0">,</span>bill_cust_descr <span class="sy0">,</span>ship_cust_descr <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm_fcpool <span class="kw1">WHERE</span> quota_rep_descr <span class="sy0">=</span> ? <span class="kw1">AND</span> segm <span class="sy0">=</span> ? <span class="kw1">AND</span> mod_chan <span class="sy0">=</span> ? <span class="kw1">AND</span> part_descr <span class="sy0">=</span> ? <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span>order_month <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>part_descr <span class="sy0">,</span>bill_cust_descr <span class="sy0">,</span>ship_cust_descr <span class="br0">)</span> <span class="sy0">,</span>months <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>order_month <span class="sy0">,</span>mseq<span class="sy0">.</span>s seq <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> base <span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>order_month <span class="sy0">,</span>s <span class="br0">)</span> <span class="sy0">,</span>mpvt <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_month <span class="sy0">,</span>seq <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0">=</span> ?<span class="br0">)</span> "? base qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> ?<span class="br0">)</span> "? adj qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? tot qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0">=</span> ?<span class="br0">)</span> "? base value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> ?<span class="br0">)</span> "? adj value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? tot value_usd" <span class="kw1">FROM</span> months <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_month <span class="sy0">,</span>seq <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> seq <span class="kw1">ASC</span> <span class="br0">)</span> <span class="sy0">,</span>mlist <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> mseq<span class="sy0">.</span>m order_month <span class="sy0">,</span>"? qty" <span class="sy0">,</span>"? base qty" <span class="sy0">,</span>"? adj qty" <span class="sy0">,</span>"? tot qty" <span class="sy0">,</span>"? value_usd" <span class="sy0">,</span>"? base value_usd" <span class="sy0">,</span>"? adj value_usd" <span class="sy0">,</span>"? tot value_usd" <span class="kw1">FROM</span> mseq <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> mseq<span class="sy0">.</span>s <span class="kw1">ASC</span> <span class="br0">)</span> <span class="sy0">,</span>totals <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> months <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="br0">)</span> <span class="kw1">SELECT</span> jsonb_build_object<span class="br0">(</span> ? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> months<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> mlist<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> base<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> totals<span class="br0">)</span> <span class="br0">)</span> package ;
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Atime_consuming_queries_details_6" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #6</small></h3>
|
||
<div id="time_consuming_queries_details_6" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Atime_consuming_queries_details_6').on("shown.bs.collapse",function(){
|
||
var bars_40 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',3],['16:00',4],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_40 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',3754],['16:00',1417],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var time_consuming_queries_details_6 = create_bargraph('time_consuming_queries_details_6', '', 'Queries', [ bars_40, lines_40 ], 'Avg. duration');
|
||
});
|
||
create_download_button(40, 'btn btn-default btn-xs');
|
||
add_download_button_event(40, 'time_consuming_queries_details_6');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 15</td><td>15</td><td>3</td><td>11s264ms</td><td>3s754ms</td></tr><tr><td></td><td>16</td><td>4</td><td>5s669ms</td><td>1s417ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Atime_consuming_queries_details_6">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-6">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-6">User(s) involved</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-6">App(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="time-consuming-queries-user-involved-rank-6" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> api - <b>Total duration:</b> 6s706ms - <b>Times executed:</b> 3 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-6">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="time-consuming-queries-app-involved-rank-6" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> osm_api - <b>Total duration:</b> 6s706ms - <b>Times executed:</b> 3 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-6">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="time-consuming-queries-examples-rank-6" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-e-6-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing
|
||
<span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span>
|
||
<span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">VALUES</span> <span class="br0">(</span><span class="st0">'Jun'</span><span class="sy0">,</span>
|
||
<span class="nu0">1</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jul'</span><span class="sy0">,</span>
|
||
<span class="nu0">2</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Aug'</span><span class="sy0">,</span>
|
||
<span class="nu0">3</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Sep'</span><span class="sy0">,</span>
|
||
<span class="nu0">4</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Oct'</span><span class="sy0">,</span>
|
||
<span class="nu0">5</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Nov'</span><span class="sy0">,</span>
|
||
<span class="nu0">6</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Dec'</span><span class="sy0">,</span>
|
||
<span class="nu0">7</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jan'</span><span class="sy0">,</span>
|
||
<span class="nu0">8</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Feb'</span><span class="sy0">,</span>
|
||
<span class="nu0">9</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Mar'</span><span class="sy0">,</span>
|
||
<span class="nu0">10</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Apr'</span><span class="sy0">,</span>
|
||
<span class="nu0">11</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'May'</span><span class="sy0">,</span>
|
||
<span class="nu0">12</span><span class="br0">)</span><span class="br0">)</span> x <span class="br0">(</span>m<span class="sy0">,</span>
|
||
s<span class="br0">)</span>
|
||
<span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq
|
||
<span class="sy0">,</span>
|
||
base <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_fcpool
|
||
<span class="kw1">WHERE</span>
|
||
quota_rep_descr <span class="sy0">=</span> <span class="st0">'10032 - BRYAN HILL'</span>
|
||
<span class="kw1">AND</span> segm <span class="sy0">=</span> <span class="st0">'Greenhouse'</span>
|
||
<span class="kw1">AND</span> mod_chan <span class="sy0">=</span> <span class="st0">'DISTRIBUTOR'</span>
|
||
<span class="kw1">AND</span> part_descr <span class="sy0">=</span> <span class="st0">'AZG06000B66B200 - 06.00 AZ TW 300GN @20000 BULK'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="br0">)</span><span class="sy0">,</span>
|
||
months <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
mseq<span class="sy0">.</span>s seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
base
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
s<span class="br0">)</span><span class="sy0">,</span>
|
||
mpvt <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_month<span class="sy0">,</span>
|
||
seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0">=</span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 base qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 adj qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0">=</span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 base value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 adj value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_month<span class="sy0">,</span> seq
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
seq <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> mlist <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
mseq<span class="sy0">.</span>m order_month<span class="sy0">,</span> "2019 qty"<span class="sy0">,</span> "2020 base qty"<span class="sy0">,</span> "2020 adj qty"<span class="sy0">,</span> "2020 tot qty"<span class="sy0">,</span> "2019 value_usd"<span class="sy0">,</span> "2020 base value_usd"<span class="sy0">,</span> "2020 adj value_usd"<span class="sy0">,</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
mseq
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
mseq<span class="sy0">.</span>s <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> totals <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_build_object <span class="br0">(</span><span class="st0">'months'</span><span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
months<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'mpvt'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
mlist<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'base'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
base<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'totals'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
totals<span class="br0">)</span><span class="br0">)</span> package;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 15:01:25
|
||
<b>Duration:</b> 3s762ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> api
|
||
<b>Remote:</b> ubreport
|
||
<b>Application:</b> osm_api
|
||
</pre>
|
||
<div id="query-e-explain-6-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Result%20%20%28cost%3D43058.76..43058.77%20rows%3D1%20width%3D32%29%20%28actual%20time%3D3759.847..3759.850%20rows%3D1%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D99%20read%3D39444%0A%09%20%20I%2FO%20Timings%3A%20read%3D10910.610%0A%09%20%20CTE%20mseq%0A%09%20%20%20%20-%3E%20%20Values%20Scan%20on%20%22%2AVALUES%2A%22%20%20%28cost%3D0.00..0.15%20rows%3D12%20width%3D36%29%20%28actual%20time%3D0.001..0.007%20rows%3D12%20loops%3D1%29%0A%09%20%20CTE%20base%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D43056.99..43057.03%20rows%3D1%20width%3D176%29%20%28actual%20time%3D3758.393..3758.433%20rows%3D43%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20osm_fcpool.order_season%2C%20osm_fcpool.order_month%2C%20osm_fcpool.version%2C%20osm_fcpool.iter%2C%20osm_fcpool.part_descr%2C%20osm_fcpool.bill_cust_descr%2C%20osm_fcpool.ship_cust_descr%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D99%20read%3D39444%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10910.610%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D43056.99..43056.99%20rows%3D1%20width%3D149%29%20%28actual%20time%3D3758.380..3758.383%20rows%3D72%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20osm_fcpool.order_season%2C%20osm_fcpool.order_month%2C%20osm_fcpool.version%2C%20osm_fcpool.iter%2C%20osm_fcpool.bill_cust_descr%2C%20osm_fcpool.ship_cust_descr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D99%20read%3D39444%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10910.610%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..43056.97%20rows%3D1%20width%3D149%29%20%28actual%20time%3D175.512..3758.230%20rows%3D72%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D99%20read%3D39444%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10910.610%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm_fcpool%20%20%28cost%3D0.00..42056.88%20rows%3D1%20width%3D149%29%20%28actual%20time%3D169.788..3752.390%20rows%3D24%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28quota_rep_descr%20%3D%20%2710032%20-%20BRYAN%20HILL%27%3A%3Atext%29%20AND%20%28segm%20%3D%20%27Greenhouse%27%3A%3Atext%29%20AND%20%28mod_chan%20%3D%20%27DISTRIBUTOR%27%3A%3Atext%29%20AND%20%28part_descr%20%3D%20%27AZG06000B66B200%20-%2006.00%20AZ%20TW%20300GN%20%4020000%20BULK%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20100422%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D99%20read%3D39444%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10910.610%0A%09%20%20CTE%20months%0A%09%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D0.35..0.36%20rows%3D1%20width%3D152%29%20%28actual%20time%3D3758.529..3758.536%20rows%3D17%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20base.order_season%2C%20base.version%2C%20base.iter%2C%20base.order_month%2C%20mseq.s%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D99%20read%3D39444%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10910.610%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Join%20%20%28cost%3D0.03..0.33%20rows%3D1%20width%3D148%29%20%28actual%20time%3D3758.487..3758.505%20rows%3D43%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28mseq.m%20%3D%20base.order_month%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D99%20read%3D39444%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10910.610%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mseq%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D36%29%20%28actual%20time%3D0.003..0.011%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.02..0.02%20rows%3D1%20width%3D144%29%20%28actual%20time%3D3758.477..3758.477%20rows%3D43%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2012kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D99%20read%3D39444%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10910.610%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20base%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D144%29%20%28actual%20time%3D3758.396..3758.461%20rows%3D43%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D99%20read%3D39444%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10910.610%0A%09%20%20CTE%20mpvt%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D0.03..0.11%20rows%3D1%20width%3D196%29%20%28actual%20time%3D0.019..0.035%20rows%3D7%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20months.seq%2C%20months.order_month%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D0.03..0.04%20rows%3D1%20width%3D116%29%20%28actual%20time%3D0.011..0.012%20rows%3D17%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20months.seq%2C%20months.order_month%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20months%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D116%29%20%28actual%20time%3D0.001..0.003%20rows%3D17%20loops%3D1%29%0A%09%20%20CTE%20mlist%0A%09%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D0.54..0.57%20rows%3D12%20width%3D196%29%20%28actual%20time%3D0.072..0.072%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20mseq_1.s%0A%09%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D0.03..0.33%20rows%3D12%20width%3D196%29%20%28actual%20time%3D0.058..0.062%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28mseq_1.m%20%3D%20mpvt.order_month%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mseq%20mseq_1%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D36%29%20%28actual%20time%3D0.000..0.001%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.02..0.02%20rows%3D1%20width%3D192%29%20%28actual%20time%3D0.048..0.048%20rows%3D7%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mpvt%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D192%29%20%28actual%20time%3D0.021..0.043%20rows%3D7%20loops%3D1%29%0A%09%20%20CTE%20totals%0A%09%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D0.03..0.05%20rows%3D1%20width%3D112%29%20%28actual%20time%3D0.016..0.018%20rows%3D6%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20months_1.order_season%2C%20months_1.version%2C%20months_1.iter%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20months%20months_1%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D112%29%20%28actual%20time%3D0.001..0.003%20rows%3D17%20loops%3D1%29%0A%09%20%20InitPlan%207%20%28returns%20%247%29%0A%09%20%20%20%20-%3E%20%20Aggregate%20%20%28cost%3D0.03..0.04%20rows%3D1%20width%3D32%29%20%28actual%20time%3D3758.733..3758.733%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D99%20read%3D39444%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10910.610%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20months%20months_2%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D24%29%20%28actual%20time%3D3758.536..3758.554%20rows%3D17%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D99%20read%3D39444%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10910.610%0A%09%20%20InitPlan%208%20%28returns%20%248%29%0A%09%20%20%20%20-%3E%20%20Aggregate%20%20%28cost%3D0.36..0.37%20rows%3D1%20width%3D32%29%20%28actual%20time%3D0.247..0.247%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mlist%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D24%29%20%28actual%20time%3D0.075..0.083%20rows%3D12%20loops%3D1%29%0A%09%20%20InitPlan%209%20%28returns%20%249%29%0A%09%20%20%20%20-%3E%20%20Aggregate%20%20%28cost%3D0.03..0.04%20rows%3D1%20width%3D32%29%20%28actual%20time%3D0.637..0.638%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20base%20base_1%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D24%29%20%28actual%20time%3D0.003..0.022%20rows%3D43%20loops%3D1%29%0A%09%20%20InitPlan%2010%20%28returns%20%2410%29%0A%09%20%20%20%20-%3E%20%20Aggregate%20%20%28cost%3D0.03..0.04%20rows%3D1%20width%3D32%29%20%28actual%20time%3D0.073..0.073%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20totals%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D24%29%20%28actual%20time%3D0.018..0.024%20rows%3D6%20loops%3D1%29%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Result (cost=43058.76..43058.77 rows=1 width=32) (actual time=3759.847..3759.850 rows=1 loops=1)
|
||
Buffers: shared hit=99 read=39444
|
||
I/O Timings: read=10910.610
|
||
CTE mseq
|
||
-> Values Scan on "*VALUES*" (cost=0.00..0.15 rows=12 width=36) (actual time=0.001..0.007 rows=12 loops=1)
|
||
CTE base
|
||
-> GroupAggregate (cost=43056.99..43057.03 rows=1 width=176) (actual time=3758.393..3758.433 rows=43 loops=1)
|
||
Group Key: osm_fcpool.order_season, osm_fcpool.order_month, osm_fcpool.version, osm_fcpool.iter, osm_fcpool.part_descr, osm_fcpool.bill_cust_descr, osm_fcpool.ship_cust_descr
|
||
Buffers: shared hit=99 read=39444
|
||
I/O Timings: read=10910.610
|
||
-> Sort (cost=43056.99..43056.99 rows=1 width=149) (actual time=3758.380..3758.383 rows=72 loops=1)
|
||
Sort Key: osm_fcpool.order_season, osm_fcpool.order_month, osm_fcpool.version, osm_fcpool.iter, osm_fcpool.bill_cust_descr, osm_fcpool.ship_cust_descr
|
||
Sort Method: quicksort Memory: 44kB
|
||
Buffers: shared hit=99 read=39444
|
||
I/O Timings: read=10910.610
|
||
-> Gather (cost=1000.00..43056.97 rows=1 width=149) (actual time=175.512..3758.230 rows=72 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=99 read=39444
|
||
I/O Timings: read=10910.610
|
||
-> Parallel Seq Scan on osm_fcpool (cost=0.00..42056.88 rows=1 width=149) (actual time=169.788..3752.390 rows=24 loops=3)
|
||
Filter: ((quota_rep_descr = '10032 - BRYAN HILL'::text) AND (segm = 'Greenhouse'::text) AND (mod_chan = 'DISTRIBUTOR'::text) AND (part_descr = 'AZG06000B66B200 - 06.00 AZ TW 300GN @20000 BULK'::text))
|
||
Rows Removed by Filter: 100422
|
||
Buffers: shared hit=99 read=39444
|
||
I/O Timings: read=10910.610
|
||
CTE months
|
||
-> HashAggregate (cost=0.35..0.36 rows=1 width=152) (actual time=3758.529..3758.536 rows=17 loops=1)
|
||
Group Key: base.order_season, base.version, base.iter, base.order_month, mseq.s
|
||
Buffers: shared hit=99 read=39444
|
||
I/O Timings: read=10910.610
|
||
-> Hash Join (cost=0.03..0.33 rows=1 width=148) (actual time=3758.487..3758.505 rows=43 loops=1)
|
||
Hash Cond: (mseq.m = base.order_month)
|
||
Buffers: shared hit=99 read=39444
|
||
I/O Timings: read=10910.610
|
||
-> CTE Scan on mseq (cost=0.00..0.24 rows=12 width=36) (actual time=0.003..0.011 rows=12 loops=1)
|
||
-> Hash (cost=0.02..0.02 rows=1 width=144) (actual time=3758.477..3758.477 rows=43 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 12kB
|
||
Buffers: shared hit=99 read=39444
|
||
I/O Timings: read=10910.610
|
||
-> CTE Scan on base (cost=0.00..0.02 rows=1 width=144) (actual time=3758.396..3758.461 rows=43 loops=1)
|
||
Buffers: shared hit=99 read=39444
|
||
I/O Timings: read=10910.610
|
||
CTE mpvt
|
||
-> GroupAggregate (cost=0.03..0.11 rows=1 width=196) (actual time=0.019..0.035 rows=7 loops=1)
|
||
Group Key: months.seq, months.order_month
|
||
-> Sort (cost=0.03..0.04 rows=1 width=116) (actual time=0.011..0.012 rows=17 loops=1)
|
||
Sort Key: months.seq, months.order_month
|
||
Sort Method: quicksort Memory: 26kB
|
||
-> CTE Scan on months (cost=0.00..0.02 rows=1 width=116) (actual time=0.001..0.003 rows=17 loops=1)
|
||
CTE mlist
|
||
-> Sort (cost=0.54..0.57 rows=12 width=196) (actual time=0.072..0.072 rows=12 loops=1)
|
||
Sort Key: mseq_1.s
|
||
Sort Method: quicksort Memory: 26kB
|
||
-> Hash Left Join (cost=0.03..0.33 rows=12 width=196) (actual time=0.058..0.062 rows=12 loops=1)
|
||
Hash Cond: (mseq_1.m = mpvt.order_month)
|
||
-> CTE Scan on mseq mseq_1 (cost=0.00..0.24 rows=12 width=36) (actual time=0.000..0.001 rows=12 loops=1)
|
||
-> Hash (cost=0.02..0.02 rows=1 width=192) (actual time=0.048..0.048 rows=7 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mpvt (cost=0.00..0.02 rows=1 width=192) (actual time=0.021..0.043 rows=7 loops=1)
|
||
CTE totals
|
||
-> HashAggregate (cost=0.03..0.05 rows=1 width=112) (actual time=0.016..0.018 rows=6 loops=1)
|
||
Group Key: months_1.order_season, months_1.version, months_1.iter
|
||
-> CTE Scan on months months_1 (cost=0.00..0.02 rows=1 width=112) (actual time=0.001..0.003 rows=17 loops=1)
|
||
InitPlan 7 (returns $7)
|
||
-> Aggregate (cost=0.03..0.04 rows=1 width=32) (actual time=3758.733..3758.733 rows=1 loops=1)
|
||
Buffers: shared hit=99 read=39444
|
||
I/O Timings: read=10910.610
|
||
-> CTE Scan on months months_2 (cost=0.00..0.02 rows=1 width=24) (actual time=3758.536..3758.554 rows=17 loops=1)
|
||
Buffers: shared hit=99 read=39444
|
||
I/O Timings: read=10910.610
|
||
InitPlan 8 (returns $8)
|
||
-> Aggregate (cost=0.36..0.37 rows=1 width=32) (actual time=0.247..0.247 rows=1 loops=1)
|
||
-> CTE Scan on mlist (cost=0.00..0.24 rows=12 width=24) (actual time=0.075..0.083 rows=12 loops=1)
|
||
InitPlan 9 (returns $9)
|
||
-> Aggregate (cost=0.03..0.04 rows=1 width=32) (actual time=0.637..0.638 rows=1 loops=1)
|
||
-> CTE Scan on base base_1 (cost=0.00..0.02 rows=1 width=24) (actual time=0.003..0.022 rows=43 loops=1)
|
||
InitPlan 10 (returns $10)
|
||
-> Aggregate (cost=0.03..0.04 rows=1 width=32) (actual time=0.073..0.073 rows=1 loops=1)
|
||
-> CTE Scan on totals (cost=0.00..0.02 rows=1 width=24) (actual time=0.018..0.024 rows=6 loops=1)
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-e-6-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing
|
||
<span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span>
|
||
<span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">VALUES</span> <span class="br0">(</span><span class="st0">'Jun'</span><span class="sy0">,</span>
|
||
<span class="nu0">1</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jul'</span><span class="sy0">,</span>
|
||
<span class="nu0">2</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Aug'</span><span class="sy0">,</span>
|
||
<span class="nu0">3</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Sep'</span><span class="sy0">,</span>
|
||
<span class="nu0">4</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Oct'</span><span class="sy0">,</span>
|
||
<span class="nu0">5</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Nov'</span><span class="sy0">,</span>
|
||
<span class="nu0">6</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Dec'</span><span class="sy0">,</span>
|
||
<span class="nu0">7</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jan'</span><span class="sy0">,</span>
|
||
<span class="nu0">8</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Feb'</span><span class="sy0">,</span>
|
||
<span class="nu0">9</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Mar'</span><span class="sy0">,</span>
|
||
<span class="nu0">10</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Apr'</span><span class="sy0">,</span>
|
||
<span class="nu0">11</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'May'</span><span class="sy0">,</span>
|
||
<span class="nu0">12</span><span class="br0">)</span><span class="br0">)</span> x <span class="br0">(</span>m<span class="sy0">,</span>
|
||
s<span class="br0">)</span>
|
||
<span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq
|
||
<span class="sy0">,</span>
|
||
base <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_fcpool
|
||
<span class="kw1">WHERE</span>
|
||
quota_rep_descr <span class="sy0">=</span> <span class="st0">'10032 - BRYAN HILL'</span>
|
||
<span class="kw1">AND</span> segm <span class="sy0">=</span> <span class="st0">'Greenhouse'</span>
|
||
<span class="kw1">AND</span> mod_chan <span class="sy0">=</span> <span class="st0">'DISTRIBUTOR'</span>
|
||
<span class="kw1">AND</span> part_descr <span class="sy0">=</span> <span class="st0">'AZG06000B66B200 - 06.00 AZ TW 300GN @20000 BULK'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="br0">)</span><span class="sy0">,</span>
|
||
months <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
mseq<span class="sy0">.</span>s seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
base
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
s<span class="br0">)</span><span class="sy0">,</span>
|
||
mpvt <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_month<span class="sy0">,</span>
|
||
seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0">=</span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 base qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 adj qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0">=</span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 base value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 adj value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_month<span class="sy0">,</span> seq
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
seq <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> mlist <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
mseq<span class="sy0">.</span>m order_month<span class="sy0">,</span> "2019 qty"<span class="sy0">,</span> "2020 base qty"<span class="sy0">,</span> "2020 adj qty"<span class="sy0">,</span> "2020 tot qty"<span class="sy0">,</span> "2019 value_usd"<span class="sy0">,</span> "2020 base value_usd"<span class="sy0">,</span> "2020 adj value_usd"<span class="sy0">,</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
mseq
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
mseq<span class="sy0">.</span>s <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> totals <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_build_object <span class="br0">(</span><span class="st0">'months'</span><span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
months<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'mpvt'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
mlist<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'base'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
base<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'totals'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
totals<span class="br0">)</span><span class="br0">)</span> package;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 15:01:25
|
||
<b>Duration:</b> 3s752ms
|
||
</pre>
|
||
<div id="query-e-explain-6-2" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Parallel%20Seq%20Scan%20on%20osm_fcpool%20%20%28cost%3D0.00..42056.88%20rows%3D1%20width%3D149%29%20%28actual%20time%3D148.955..3752.933%20rows%3D15%20loops%3D1%29%0A%09%20%20Filter%3A%20%28%28quota_rep_descr%20%3D%20%2710032%20-%20BRYAN%20HILL%27%3A%3Atext%29%20AND%20%28segm%20%3D%20%27Greenhouse%27%3A%3Atext%29%20AND%20%28mod_chan%20%3D%20%27DISTRIBUTOR%27%3A%3Atext%29%20AND%20%28part_descr%20%3D%20%27AZG06000B66B200%20-%2006.00%20AZ%20TW%20300GN%20%4020000%20BULK%27%3A%3Atext%29%29%0A%09%20%20Rows%20Removed%20by%20Filter%3A%20100266%0A%09%20%20Buffers%3A%20shared%20hit%3D1%20read%3D13062%0A%09%20%20I%2FO%20Timings%3A%20read%3D3634.126%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Parallel Seq Scan on osm_fcpool (cost=0.00..42056.88 rows=1 width=149) (actual time=148.955..3752.933 rows=15 loops=1)
|
||
Filter: ((quota_rep_descr = '10032 - BRYAN HILL'::text) AND (segm = 'Greenhouse'::text) AND (mod_chan = 'DISTRIBUTOR'::text) AND (part_descr = 'AZG06000B66B200 - 06.00 AZ TW 300GN @20000 BULK'::text))
|
||
Rows Removed by Filter: 100266
|
||
Buffers: shared hit=1 read=13062
|
||
I/O Timings: read=3634.126
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-e-6-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing
|
||
<span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span>
|
||
<span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">VALUES</span> <span class="br0">(</span><span class="st0">'Jun'</span><span class="sy0">,</span>
|
||
<span class="nu0">1</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jul'</span><span class="sy0">,</span>
|
||
<span class="nu0">2</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Aug'</span><span class="sy0">,</span>
|
||
<span class="nu0">3</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Sep'</span><span class="sy0">,</span>
|
||
<span class="nu0">4</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Oct'</span><span class="sy0">,</span>
|
||
<span class="nu0">5</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Nov'</span><span class="sy0">,</span>
|
||
<span class="nu0">6</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Dec'</span><span class="sy0">,</span>
|
||
<span class="nu0">7</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jan'</span><span class="sy0">,</span>
|
||
<span class="nu0">8</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Feb'</span><span class="sy0">,</span>
|
||
<span class="nu0">9</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Mar'</span><span class="sy0">,</span>
|
||
<span class="nu0">10</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Apr'</span><span class="sy0">,</span>
|
||
<span class="nu0">11</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'May'</span><span class="sy0">,</span>
|
||
<span class="nu0">12</span><span class="br0">)</span><span class="br0">)</span> x <span class="br0">(</span>m<span class="sy0">,</span>
|
||
s<span class="br0">)</span>
|
||
<span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq
|
||
<span class="sy0">,</span>
|
||
base <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_fcpool
|
||
<span class="kw1">WHERE</span>
|
||
quota_rep_descr <span class="sy0">=</span> <span class="st0">'10032 - BRYAN HILL'</span>
|
||
<span class="kw1">AND</span> segm <span class="sy0">=</span> <span class="st0">'Greenhouse'</span>
|
||
<span class="kw1">AND</span> mod_chan <span class="sy0">=</span> <span class="st0">'DISTRIBUTOR'</span>
|
||
<span class="kw1">AND</span> part_descr <span class="sy0">=</span> <span class="st0">'AZG06000B66B200 - 06.00 AZ TW 300GN @20000 BULK'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="br0">)</span><span class="sy0">,</span>
|
||
months <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
mseq<span class="sy0">.</span>s seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
base
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
s<span class="br0">)</span><span class="sy0">,</span>
|
||
mpvt <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_month<span class="sy0">,</span>
|
||
seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0">=</span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 base qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 adj qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0">=</span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 base value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 adj value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_month<span class="sy0">,</span> seq
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
seq <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> mlist <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
mseq<span class="sy0">.</span>m order_month<span class="sy0">,</span> "2019 qty"<span class="sy0">,</span> "2020 base qty"<span class="sy0">,</span> "2020 adj qty"<span class="sy0">,</span> "2020 tot qty"<span class="sy0">,</span> "2019 value_usd"<span class="sy0">,</span> "2020 base value_usd"<span class="sy0">,</span> "2020 adj value_usd"<span class="sy0">,</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
mseq
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
mseq<span class="sy0">.</span>s <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> totals <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_build_object <span class="br0">(</span><span class="st0">'months'</span><span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
months<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'mpvt'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
mlist<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'base'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
base<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'totals'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
totals<span class="br0">)</span><span class="br0">)</span> package;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 15:01:25
|
||
<b>Duration:</b> 3s749ms
|
||
</pre>
|
||
<div id="query-e-explain-6-3" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Parallel%20Seq%20Scan%20on%20osm_fcpool%20%20%28cost%3D0.00..42056.88%20rows%3D1%20width%3D149%29%20%28actual%20time%3D185.551..3749.831%20rows%3D32%20loops%3D1%29%0A%09%20%20Filter%3A%20%28%28quota_rep_descr%20%3D%20%2710032%20-%20BRYAN%20HILL%27%3A%3Atext%29%20AND%20%28segm%20%3D%20%27Greenhouse%27%3A%3Atext%29%20AND%20%28mod_chan%20%3D%20%27DISTRIBUTOR%27%3A%3Atext%29%20AND%20%28part_descr%20%3D%20%27AZG06000B66B200%20-%2006.00%20AZ%20TW%20300GN%20%4020000%20BULK%27%3A%3Atext%29%29%0A%09%20%20Rows%20Removed%20by%20Filter%3A%20100674%0A%09%20%20Buffers%3A%20shared%20hit%3D13%20read%3D13176%0A%09%20%20I%2FO%20Timings%3A%20read%3D3641.547%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Parallel Seq Scan on osm_fcpool (cost=0.00..42056.88 rows=1 width=149) (actual time=185.551..3749.831 rows=32 loops=1)
|
||
Filter: ((quota_rep_descr = '10032 - BRYAN HILL'::text) AND (segm = 'Greenhouse'::text) AND (mod_chan = 'DISTRIBUTOR'::text) AND (part_descr = 'AZG06000B66B200 - 06.00 AZ TW 300GN @20000 BULK'::text))
|
||
Rows Removed by Filter: 100674
|
||
Buffers: shared hit=13 read=13176
|
||
I/O Timings: read=3641.547
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-6">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>7</td>
|
||
<td>16s584ms</td>
|
||
<td>1
|
||
<p><a href="#Atime_consuming_queries_details_7" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>16s584ms</td>
|
||
<td>16s584ms</td>
|
||
<td>16s584ms</td>
|
||
<td id="time-consuming-queries-examples-details-rank-7">
|
||
<div id="query-e-7" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">DELETE</span> <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm osm
|
||
<span class="kw1">WHERE</span> <span class="kw1">EXISTS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1"><span class="kw2">cast</span></span><span class="br0">(</span><span class="kw1">NULL</span> <span class="kw1">AS</span> int<span class="br0">)</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1">DISTINCT</span> "diinv#"
|
||
<span class="kw1">FROM</span>
|
||
import<span class="sy0">.</span>osmi
|
||
<span class="kw1">WHERE</span>
|
||
"ddord#" <span class="sy0">=</span> ?<span class="br0">)</span> n
|
||
<span class="kw1">WHERE</span>
|
||
n<span class="sy0">.</span> "diinv#" <span class="sy0">=</span> osm<span class="sy0">.</span> "diinv#"<span class="br0">)</span>;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Atime_consuming_queries_details_7" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #7</small></h3>
|
||
<div id="time_consuming_queries_details_7" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Atime_consuming_queries_details_7').on("shown.bs.collapse",function(){
|
||
var bars_41 = [['00:00',1],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_41 = [['00:00',16584],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var time_consuming_queries_details_7 = create_bargraph('time_consuming_queries_details_7', '', 'Queries', [ bars_41, lines_41 ], 'Avg. duration');
|
||
});
|
||
create_download_button(41, 'btn btn-default btn-xs');
|
||
add_download_button_event(41, 'time_consuming_queries_details_7');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 15</td><td>00</td><td>1</td><td>16s584ms</td><td>16s584ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Atime_consuming_queries_details_7">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-7">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-7">User(s) involved</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-7">App(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="time-consuming-queries-user-involved-rank-7" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> ptrowbridge_md5 - <b>Total duration:</b> 16s584ms - <b>Times executed:</b> 1 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-7">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="time-consuming-queries-app-involved-rank-7" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> psql - <b>Total duration:</b> 16s584ms - <b>Times executed:</b> 1 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-7">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="time-consuming-queries-examples-rank-7" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-e-7-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">DELETE</span> <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm osm
|
||
<span class="kw1">WHERE</span> <span class="kw1">EXISTS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1"><span class="kw2">cast</span></span><span class="br0">(</span><span class="kw1">NULL</span> <span class="kw1">AS</span> INT<span class="br0">)</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1">DISTINCT</span> "diinv#"
|
||
<span class="kw1">FROM</span>
|
||
import<span class="sy0">.</span>osmi
|
||
<span class="kw1">WHERE</span>
|
||
"ddord#" <span class="sy0">=</span> <span class="nu0">0</span><span class="br0">)</span> n
|
||
<span class="kw1">WHERE</span>
|
||
n<span class="sy0">.</span> "diinv#" <span class="sy0">=</span> osm<span class="sy0">.</span> "diinv#"<span class="br0">)</span>;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 00:49:30
|
||
<b>Duration:</b> 16s584ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-e-explain-7-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Delete%20on%20osm%20%20%28cost%3D2579.44..36736.43%20rows%3D16%20width%3D36%29%20%28actual%20time%3D16584.934..16584.934%20rows%3D0%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D1558922%20read%3D6078%20dirtied%3D71%0A%09%20%20I%2FO%20Timings%3A%20read%3D735.005%0A%09%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D2579.44..36736.43%20rows%3D16%20width%3D36%29%20%28actual%20time%3D99.141..16583.640%20rows%3D159%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1558763%20read%3D6078%20dirtied%3D66%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D735.005%0A%09%20%20%20%20%20%20%20%20-%3E%20%20Subquery%20Scan%20on%20n%20%20%28cost%3D2579.01..2579.03%20rows%3D1%20width%3D36%29%20%28actual%20time%3D5.671..7.407%20rows%3D223%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2579%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Unique%20%20%28cost%3D2579.01..2579.02%20rows%3D1%20width%3D6%29%20%28actual%20time%3D5.664..6.608%20rows%3D223%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2579%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D2579.01..2579.02%20rows%3D1%20width%3D6%29%20%28actual%20time%3D5.662..5.909%20rows%3D252%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20osmi.%22diinv%23%22%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2036kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2579%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmi%20%20%28cost%3D0.00..2579.00%20rows%3D1%20width%3D6%29%20%28actual%20time%3D0.047..5.580%20rows%3D252%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%22ddord%23%22%20%3D%20%270%27%3A%3Anumeric%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2025396%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2579%0A%09%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20osm_pk%20on%20osm%20%20%28cost%3D0.42..34157.24%20rows%3D16%20width%3D12%29%20%28actual%20time%3D24.619..74.328%20rows%3D1%20loops%3D223%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%22diinv%23%22%20%3D%20n.%22diinv%23%22%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1556184%20read%3D6078%20dirtied%3D66%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D735.005%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Delete on osm (cost=2579.44..36736.43 rows=16 width=36) (actual time=16584.934..16584.934 rows=0 loops=1)
|
||
Buffers: shared hit=1558922 read=6078 dirtied=71
|
||
I/O Timings: read=735.005
|
||
-> Nested Loop (cost=2579.44..36736.43 rows=16 width=36) (actual time=99.141..16583.640 rows=159 loops=1)
|
||
Buffers: shared hit=1558763 read=6078 dirtied=66
|
||
I/O Timings: read=735.005
|
||
-> Subquery Scan on n (cost=2579.01..2579.03 rows=1 width=36) (actual time=5.671..7.407 rows=223 loops=1)
|
||
Buffers: shared hit=2579
|
||
-> Unique (cost=2579.01..2579.02 rows=1 width=6) (actual time=5.664..6.608 rows=223 loops=1)
|
||
Buffers: shared hit=2579
|
||
-> Sort (cost=2579.01..2579.02 rows=1 width=6) (actual time=5.662..5.909 rows=252 loops=1)
|
||
Sort Key: osmi."diinv#"
|
||
Sort Method: quicksort Memory: 36kB
|
||
Buffers: shared hit=2579
|
||
-> Seq Scan on osmi (cost=0.00..2579.00 rows=1 width=6) (actual time=0.047..5.580 rows=252 loops=1)
|
||
Filter: ("ddord#" = '0'::numeric)
|
||
Rows Removed by Filter: 25396
|
||
Buffers: shared hit=2579
|
||
-> Index Scan using osm_pk on osm (cost=0.42..34157.24 rows=16 width=12) (actual time=24.619..74.328 rows=1 loops=223)
|
||
Index Cond: ("diinv#" = n."diinv#")
|
||
Buffers: shared hit=1556184 read=6078 dirtied=66
|
||
I/O Timings: read=735.005
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-7">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>8</td>
|
||
<td>11s756ms</td>
|
||
<td>6
|
||
<p><a href="#Atime_consuming_queries_details_8" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>1s121ms</td>
|
||
<td>2s988ms</td>
|
||
<td>1s959ms</td>
|
||
<td id="time-consuming-queries-examples-details-rank-8">
|
||
<div id="query-e-8" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing <span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span> <span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> <span class="sy0">*</span> <span class="kw1">FROM</span> <span class="br0">(</span> <span class="kw1">VALUES</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="br0">)</span> x<span class="br0">(</span>m<span class="sy0">,</span>s<span class="br0">)</span> <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq <span class="sy0">,</span>base <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span>order_month <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>part_descr <span class="sy0">,</span>bill_cust_descr <span class="sy0">,</span>ship_cust_descr <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm_fcpool <span class="kw1">WHERE</span> quota_rep_descr <span class="sy0">=</span> ? <span class="kw1">AND</span> segm <span class="sy0">=</span> ? <span class="kw1">AND</span> mod_chan <span class="sy0">=</span> ? <span class="kw1">AND</span> part_descr <span class="sy0">=</span> ? <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span>order_month <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>part_descr <span class="sy0">,</span>bill_cust_descr <span class="sy0">,</span>ship_cust_descr <span class="br0">)</span> <span class="sy0">,</span>months <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>order_month <span class="sy0">,</span>mseq<span class="sy0">.</span>s seq <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> base <span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>order_month <span class="sy0">,</span>s <span class="br0">)</span> <span class="sy0">,</span>mpvt <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_month <span class="sy0">,</span>seq <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span><span class="br0">)</span> "? base qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="kw1">NOT</span> <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span><span class="br0">)</span> "? adj qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? tot qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span><span class="br0">)</span> "? base value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="kw1">NOT</span> <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span><span class="br0">)</span> "? adj value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? tot value_usd" <span class="kw1">FROM</span> months <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_month <span class="sy0">,</span>seq <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> seq <span class="kw1">ASC</span> <span class="br0">)</span> <span class="sy0">,</span>mlist <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> mseq<span class="sy0">.</span>m order_month <span class="sy0">,</span>"? qty" <span class="sy0">,</span>"? base qty" <span class="sy0">,</span>"? adj qty" <span class="sy0">,</span>"? tot qty" <span class="sy0">,</span>"? value_usd" <span class="sy0">,</span>"? base value_usd" <span class="sy0">,</span>"? adj value_usd" <span class="sy0">,</span>"? tot value_usd" <span class="kw1">FROM</span> mseq <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> mseq<span class="sy0">.</span>s <span class="kw1">ASC</span> <span class="br0">)</span> <span class="sy0">,</span>totals <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> months <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="br0">)</span> <span class="kw1">SELECT</span> jsonb_build_object<span class="br0">(</span> ? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> months<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> mlist<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> base<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> totals<span class="br0">)</span> <span class="br0">)</span> package ;
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Atime_consuming_queries_details_8" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #8</small></h3>
|
||
<div id="time_consuming_queries_details_8" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Atime_consuming_queries_details_8').on("shown.bs.collapse",function(){
|
||
var bars_42 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',3],['14:00',0],['15:00',0],['16:00',3],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_42 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',1129],['14:00',0],['15:00',0],['16:00',2789],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var time_consuming_queries_details_8 = create_bargraph('time_consuming_queries_details_8', '', 'Queries', [ bars_42, lines_42 ], 'Avg. duration');
|
||
});
|
||
create_download_button(42, 'btn btn-default btn-xs');
|
||
add_download_button_event(42, 'time_consuming_queries_details_8');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 15</td><td>16</td><td>3</td><td>8s369ms</td><td>2s789ms</td></tr><tr><td>Mar 18</td><td>13</td><td>3</td><td>3s387ms</td><td>1s129ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Atime_consuming_queries_details_8">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-8">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-8">User(s) involved</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-8">App(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="time-consuming-queries-user-involved-rank-8" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> api - <b>Total duration:</b> 4s131ms - <b>Times executed:</b> 2 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-8">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="time-consuming-queries-app-involved-rank-8" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> osm_api - <b>Total duration:</b> 4s131ms - <b>Times executed:</b> 2 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-8">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="time-consuming-queries-examples-rank-8" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-e-8-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing
|
||
<span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span>
|
||
<span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">VALUES</span> <span class="br0">(</span><span class="st0">'Jun'</span><span class="sy0">,</span>
|
||
<span class="nu0">1</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jul'</span><span class="sy0">,</span>
|
||
<span class="nu0">2</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Aug'</span><span class="sy0">,</span>
|
||
<span class="nu0">3</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Sep'</span><span class="sy0">,</span>
|
||
<span class="nu0">4</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Oct'</span><span class="sy0">,</span>
|
||
<span class="nu0">5</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Nov'</span><span class="sy0">,</span>
|
||
<span class="nu0">6</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Dec'</span><span class="sy0">,</span>
|
||
<span class="nu0">7</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jan'</span><span class="sy0">,</span>
|
||
<span class="nu0">8</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Feb'</span><span class="sy0">,</span>
|
||
<span class="nu0">9</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Mar'</span><span class="sy0">,</span>
|
||
<span class="nu0">10</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Apr'</span><span class="sy0">,</span>
|
||
<span class="nu0">11</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'May'</span><span class="sy0">,</span>
|
||
<span class="nu0">12</span><span class="br0">)</span><span class="br0">)</span> x <span class="br0">(</span>m<span class="sy0">,</span>
|
||
s<span class="br0">)</span>
|
||
<span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq
|
||
<span class="sy0">,</span>
|
||
base <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_fcpool
|
||
<span class="kw1">WHERE</span>
|
||
quota_rep_descr <span class="sy0">=</span> <span class="st0">'10032 - BRYAN HILL'</span>
|
||
<span class="kw1">AND</span> segm <span class="sy0">=</span> <span class="st0">'Greenhouse'</span>
|
||
<span class="kw1">AND</span> mod_chan <span class="sy0">=</span> <span class="st0">'DISTRIBUTOR'</span>
|
||
<span class="kw1">AND</span> part_descr <span class="sy0">=</span> <span class="st0">'AZG06000B66B200 - 06.00 AZ TW 300GN @20000 BULK'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="br0">)</span><span class="sy0">,</span>
|
||
months <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
mseq<span class="sy0">.</span>s seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
base
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
s<span class="br0">)</span><span class="sy0">,</span>
|
||
mpvt <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_month<span class="sy0">,</span>
|
||
seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'copy'</span><span class="sy0">,</span> <span class="st0">'short ship'</span><span class="sy0">,</span> <span class="st0">'bad_ship'</span><span class="br0">)</span><span class="br0">)</span> "2020 base qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="kw1">NOT</span> <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'copy'</span><span class="sy0">,</span> <span class="st0">'short ship'</span><span class="sy0">,</span> <span class="st0">'bad_ship'</span><span class="br0">)</span><span class="br0">)</span> "2020 adj qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'copy'</span><span class="sy0">,</span> <span class="st0">'short ship'</span><span class="sy0">,</span> <span class="st0">'bad_ship'</span><span class="br0">)</span><span class="br0">)</span> "2020 base value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="kw1">NOT</span> <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'copy'</span><span class="sy0">,</span> <span class="st0">'short ship'</span><span class="sy0">,</span> <span class="st0">'bad_ship'</span><span class="br0">)</span><span class="br0">)</span> "2020 adj value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_month<span class="sy0">,</span> seq
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
seq <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> mlist <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
mseq<span class="sy0">.</span>m order_month<span class="sy0">,</span> "2019 qty"<span class="sy0">,</span> "2020 base qty"<span class="sy0">,</span> "2020 adj qty"<span class="sy0">,</span> "2020 tot qty"<span class="sy0">,</span> "2019 value_usd"<span class="sy0">,</span> "2020 base value_usd"<span class="sy0">,</span> "2020 adj value_usd"<span class="sy0">,</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
mseq
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
mseq<span class="sy0">.</span>s <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> totals <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_build_object <span class="br0">(</span><span class="st0">'months'</span><span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
months<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'mpvt'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
mlist<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'base'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
base<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'totals'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
totals<span class="br0">)</span><span class="br0">)</span> package;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 16:48:48
|
||
<b>Duration:</b> 2s988ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> api
|
||
<b>Remote:</b> ubreport
|
||
<b>Application:</b> osm_api
|
||
</pre>
|
||
<div id="query-e-explain-8-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Result%20%20%28cost%3D43058.77..43058.78%20rows%3D1%20width%3D32%29%20%28actual%20time%3D2986.772..2986.773%20rows%3D1%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D9%20read%3D39543%0A%09%20%20I%2FO%20Timings%3A%20read%3D8023.323%0A%09%20%20CTE%20mseq%0A%09%20%20%20%20-%3E%20%20Values%20Scan%20on%20%22%2AVALUES%2A%22%20%20%28cost%3D0.00..0.15%20rows%3D12%20width%3D36%29%20%28actual%20time%3D0.002..0.010%20rows%3D12%20loops%3D1%29%0A%09%20%20CTE%20base%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D43056.99..43057.03%20rows%3D1%20width%3D176%29%20%28actual%20time%3D2980.662..2980.715%20rows%3D43%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20osm_fcpool.order_season%2C%20osm_fcpool.order_month%2C%20osm_fcpool.version%2C%20osm_fcpool.iter%2C%20osm_fcpool.part_descr%2C%20osm_fcpool.bill_cust_descr%2C%20osm_fcpool.ship_cust_descr%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8023.323%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D43056.99..43056.99%20rows%3D1%20width%3D149%29%20%28actual%20time%3D2980.648..2980.652%20rows%3D72%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20osm_fcpool.order_season%2C%20osm_fcpool.order_month%2C%20osm_fcpool.version%2C%20osm_fcpool.iter%2C%20osm_fcpool.bill_cust_descr%2C%20osm_fcpool.ship_cust_descr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8023.323%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..43056.97%20rows%3D1%20width%3D149%29%20%28actual%20time%3D37.232..2980.519%20rows%3D72%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8023.323%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm_fcpool%20%20%28cost%3D0.00..42056.88%20rows%3D1%20width%3D149%29%20%28actual%20time%3D103.278..2786.395%20rows%3D24%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28quota_rep_descr%20%3D%20%2710032%20-%20BRYAN%20HILL%27%3A%3Atext%29%20AND%20%28segm%20%3D%20%27Greenhouse%27%3A%3Atext%29%20AND%20%28mod_chan%20%3D%20%27DISTRIBUTOR%27%3A%3Atext%29%20AND%20%28part_descr%20%3D%20%27AZG06000B66B200%20-%2006.00%20AZ%20TW%20300GN%20%4020000%20BULK%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20100422%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8023.323%0A%09%20%20CTE%20months%0A%09%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D0.35..0.36%20rows%3D1%20width%3D152%29%20%28actual%20time%3D2980.841..2980.865%20rows%3D17%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20base.order_season%2C%20base.version%2C%20base.iter%2C%20base.order_month%2C%20mseq.s%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8023.323%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Join%20%20%28cost%3D0.03..0.33%20rows%3D1%20width%3D148%29%20%28actual%20time%3D2980.782..2980.808%20rows%3D43%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28mseq.m%20%3D%20base.order_month%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8023.323%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mseq%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D36%29%20%28actual%20time%3D0.004..0.017%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.02..0.02%20rows%3D1%20width%3D144%29%20%28actual%20time%3D2980.767..2980.767%20rows%3D43%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2012kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8023.323%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20base%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D144%29%20%28actual%20time%3D2980.665..2980.749%20rows%3D43%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8023.323%0A%09%20%20CTE%20mpvt%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D0.03..0.11%20rows%3D1%20width%3D196%29%20%28actual%20time%3D0.036..0.056%20rows%3D7%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20months.seq%2C%20months.order_month%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D0.03..0.04%20rows%3D1%20width%3D116%29%20%28actual%20time%3D0.021..0.022%20rows%3D17%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20months.seq%2C%20months.order_month%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20months%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D116%29%20%28actual%20time%3D0.002..0.005%20rows%3D17%20loops%3D1%29%0A%09%20%20CTE%20mlist%0A%09%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D0.54..0.57%20rows%3D12%20width%3D196%29%20%28actual%20time%3D0.159..0.162%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20mseq_1.s%0A%09%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D0.03..0.33%20rows%3D12%20width%3D196%29%20%28actual%20time%3D0.101..0.107%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28mseq_1.m%20%3D%20mpvt.order_month%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mseq%20mseq_1%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D36%29%20%28actual%20time%3D0.001..0.003%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.02..0.02%20rows%3D1%20width%3D192%29%20%28actual%20time%3D0.071..0.071%20rows%3D7%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mpvt%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D192%29%20%28actual%20time%3D0.038..0.063%20rows%3D7%20loops%3D1%29%0A%09%20%20CTE%20totals%0A%09%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D0.03..0.05%20rows%3D1%20width%3D112%29%20%28actual%20time%3D0.021..0.024%20rows%3D6%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20months_1.order_season%2C%20months_1.version%2C%20months_1.iter%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20months%20months_1%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D112%29%20%28actual%20time%3D0.001..0.004%20rows%3D17%20loops%3D1%29%0A%09%20%20InitPlan%207%20%28returns%20%247%29%0A%09%20%20%20%20-%3E%20%20Aggregate%20%20%28cost%3D0.03..0.04%20rows%3D1%20width%3D32%29%20%28actual%20time%3D2985.173..2985.173%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8023.323%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20months%20months_2%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D24%29%20%28actual%20time%3D2981.027..2981.083%20rows%3D17%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8023.323%0A%09%20%20InitPlan%208%20%28returns%20%248%29%0A%09%20%20%20%20-%3E%20%20Aggregate%20%20%28cost%3D0.36..0.37%20rows%3D1%20width%3D32%29%20%28actual%20time%3D0.435..0.435%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mlist%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D24%29%20%28actual%20time%3D0.179..0.197%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3%0A%09%20%20InitPlan%209%20%28returns%20%249%29%0A%09%20%20%20%20-%3E%20%20Aggregate%20%20%28cost%3D0.03..0.04%20rows%3D1%20width%3D32%29%20%28actual%20time%3D0.845..0.845%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20base%20base_1%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D24%29%20%28actual%20time%3D0.007..0.034%20rows%3D43%20loops%3D1%29%0A%09%20%20InitPlan%2010%20%28returns%20%2410%29%0A%09%20%20%20%20-%3E%20%20Aggregate%20%20%28cost%3D0.03..0.04%20rows%3D1%20width%3D32%29%20%28actual%20time%3D0.109..0.109%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20totals%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D24%29%20%28actual%20time%3D0.030..0.038%20rows%3D6%20loops%3D1%29%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Result (cost=43058.77..43058.78 rows=1 width=32) (actual time=2986.772..2986.773 rows=1 loops=1)
|
||
Buffers: shared hit=9 read=39543
|
||
I/O Timings: read=8023.323
|
||
CTE mseq
|
||
-> Values Scan on "*VALUES*" (cost=0.00..0.15 rows=12 width=36) (actual time=0.002..0.010 rows=12 loops=1)
|
||
CTE base
|
||
-> GroupAggregate (cost=43056.99..43057.03 rows=1 width=176) (actual time=2980.662..2980.715 rows=43 loops=1)
|
||
Group Key: osm_fcpool.order_season, osm_fcpool.order_month, osm_fcpool.version, osm_fcpool.iter, osm_fcpool.part_descr, osm_fcpool.bill_cust_descr, osm_fcpool.ship_cust_descr
|
||
Buffers: shared hit=6 read=39543
|
||
I/O Timings: read=8023.323
|
||
-> Sort (cost=43056.99..43056.99 rows=1 width=149) (actual time=2980.648..2980.652 rows=72 loops=1)
|
||
Sort Key: osm_fcpool.order_season, osm_fcpool.order_month, osm_fcpool.version, osm_fcpool.iter, osm_fcpool.bill_cust_descr, osm_fcpool.ship_cust_descr
|
||
Sort Method: quicksort Memory: 44kB
|
||
Buffers: shared hit=6 read=39543
|
||
I/O Timings: read=8023.323
|
||
-> Gather (cost=1000.00..43056.97 rows=1 width=149) (actual time=37.232..2980.519 rows=72 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared read=39543
|
||
I/O Timings: read=8023.323
|
||
-> Parallel Seq Scan on osm_fcpool (cost=0.00..42056.88 rows=1 width=149) (actual time=103.278..2786.395 rows=24 loops=3)
|
||
Filter: ((quota_rep_descr = '10032 - BRYAN HILL'::text) AND (segm = 'Greenhouse'::text) AND (mod_chan = 'DISTRIBUTOR'::text) AND (part_descr = 'AZG06000B66B200 - 06.00 AZ TW 300GN @20000 BULK'::text))
|
||
Rows Removed by Filter: 100422
|
||
Buffers: shared read=39543
|
||
I/O Timings: read=8023.323
|
||
CTE months
|
||
-> HashAggregate (cost=0.35..0.36 rows=1 width=152) (actual time=2980.841..2980.865 rows=17 loops=1)
|
||
Group Key: base.order_season, base.version, base.iter, base.order_month, mseq.s
|
||
Buffers: shared hit=6 read=39543
|
||
I/O Timings: read=8023.323
|
||
-> Hash Join (cost=0.03..0.33 rows=1 width=148) (actual time=2980.782..2980.808 rows=43 loops=1)
|
||
Hash Cond: (mseq.m = base.order_month)
|
||
Buffers: shared hit=6 read=39543
|
||
I/O Timings: read=8023.323
|
||
-> CTE Scan on mseq (cost=0.00..0.24 rows=12 width=36) (actual time=0.004..0.017 rows=12 loops=1)
|
||
-> Hash (cost=0.02..0.02 rows=1 width=144) (actual time=2980.767..2980.767 rows=43 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 12kB
|
||
Buffers: shared hit=6 read=39543
|
||
I/O Timings: read=8023.323
|
||
-> CTE Scan on base (cost=0.00..0.02 rows=1 width=144) (actual time=2980.665..2980.749 rows=43 loops=1)
|
||
Buffers: shared hit=6 read=39543
|
||
I/O Timings: read=8023.323
|
||
CTE mpvt
|
||
-> GroupAggregate (cost=0.03..0.11 rows=1 width=196) (actual time=0.036..0.056 rows=7 loops=1)
|
||
Group Key: months.seq, months.order_month
|
||
-> Sort (cost=0.03..0.04 rows=1 width=116) (actual time=0.021..0.022 rows=17 loops=1)
|
||
Sort Key: months.seq, months.order_month
|
||
Sort Method: quicksort Memory: 26kB
|
||
-> CTE Scan on months (cost=0.00..0.02 rows=1 width=116) (actual time=0.002..0.005 rows=17 loops=1)
|
||
CTE mlist
|
||
-> Sort (cost=0.54..0.57 rows=12 width=196) (actual time=0.159..0.162 rows=12 loops=1)
|
||
Sort Key: mseq_1.s
|
||
Sort Method: quicksort Memory: 26kB
|
||
Buffers: shared hit=3
|
||
-> Hash Left Join (cost=0.03..0.33 rows=12 width=196) (actual time=0.101..0.107 rows=12 loops=1)
|
||
Hash Cond: (mseq_1.m = mpvt.order_month)
|
||
-> CTE Scan on mseq mseq_1 (cost=0.00..0.24 rows=12 width=36) (actual time=0.001..0.003 rows=12 loops=1)
|
||
-> Hash (cost=0.02..0.02 rows=1 width=192) (actual time=0.071..0.071 rows=7 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mpvt (cost=0.00..0.02 rows=1 width=192) (actual time=0.038..0.063 rows=7 loops=1)
|
||
CTE totals
|
||
-> HashAggregate (cost=0.03..0.05 rows=1 width=112) (actual time=0.021..0.024 rows=6 loops=1)
|
||
Group Key: months_1.order_season, months_1.version, months_1.iter
|
||
-> CTE Scan on months months_1 (cost=0.00..0.02 rows=1 width=112) (actual time=0.001..0.004 rows=17 loops=1)
|
||
InitPlan 7 (returns $7)
|
||
-> Aggregate (cost=0.03..0.04 rows=1 width=32) (actual time=2985.173..2985.173 rows=1 loops=1)
|
||
Buffers: shared hit=6 read=39543
|
||
I/O Timings: read=8023.323
|
||
-> CTE Scan on months months_2 (cost=0.00..0.02 rows=1 width=24) (actual time=2981.027..2981.083 rows=17 loops=1)
|
||
Buffers: shared hit=6 read=39543
|
||
I/O Timings: read=8023.323
|
||
InitPlan 8 (returns $8)
|
||
-> Aggregate (cost=0.36..0.37 rows=1 width=32) (actual time=0.435..0.435 rows=1 loops=1)
|
||
Buffers: shared hit=3
|
||
-> CTE Scan on mlist (cost=0.00..0.24 rows=12 width=24) (actual time=0.179..0.197 rows=12 loops=1)
|
||
Buffers: shared hit=3
|
||
InitPlan 9 (returns $9)
|
||
-> Aggregate (cost=0.03..0.04 rows=1 width=32) (actual time=0.845..0.845 rows=1 loops=1)
|
||
-> CTE Scan on base base_1 (cost=0.00..0.02 rows=1 width=24) (actual time=0.007..0.034 rows=43 loops=1)
|
||
InitPlan 10 (returns $10)
|
||
-> Aggregate (cost=0.03..0.04 rows=1 width=32) (actual time=0.109..0.109 rows=1 loops=1)
|
||
-> CTE Scan on totals (cost=0.00..0.02 rows=1 width=24) (actual time=0.030..0.038 rows=6 loops=1)
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-e-8-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing
|
||
<span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span>
|
||
<span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">VALUES</span> <span class="br0">(</span><span class="st0">'Jun'</span><span class="sy0">,</span>
|
||
<span class="nu0">1</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jul'</span><span class="sy0">,</span>
|
||
<span class="nu0">2</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Aug'</span><span class="sy0">,</span>
|
||
<span class="nu0">3</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Sep'</span><span class="sy0">,</span>
|
||
<span class="nu0">4</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Oct'</span><span class="sy0">,</span>
|
||
<span class="nu0">5</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Nov'</span><span class="sy0">,</span>
|
||
<span class="nu0">6</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Dec'</span><span class="sy0">,</span>
|
||
<span class="nu0">7</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jan'</span><span class="sy0">,</span>
|
||
<span class="nu0">8</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Feb'</span><span class="sy0">,</span>
|
||
<span class="nu0">9</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Mar'</span><span class="sy0">,</span>
|
||
<span class="nu0">10</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Apr'</span><span class="sy0">,</span>
|
||
<span class="nu0">11</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'May'</span><span class="sy0">,</span>
|
||
<span class="nu0">12</span><span class="br0">)</span><span class="br0">)</span> x <span class="br0">(</span>m<span class="sy0">,</span>
|
||
s<span class="br0">)</span>
|
||
<span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq
|
||
<span class="sy0">,</span>
|
||
base <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_fcpool
|
||
<span class="kw1">WHERE</span>
|
||
quota_rep_descr <span class="sy0">=</span> <span class="st0">'10032 - BRYAN HILL'</span>
|
||
<span class="kw1">AND</span> segm <span class="sy0">=</span> <span class="st0">'Greenhouse'</span>
|
||
<span class="kw1">AND</span> mod_chan <span class="sy0">=</span> <span class="st0">'DISTRIBUTOR'</span>
|
||
<span class="kw1">AND</span> part_descr <span class="sy0">=</span> <span class="st0">'AZG06000B66B200 - 06.00 AZ TW 300GN @20000 BULK'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="br0">)</span><span class="sy0">,</span>
|
||
months <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
mseq<span class="sy0">.</span>s seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
base
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
s<span class="br0">)</span><span class="sy0">,</span>
|
||
mpvt <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_month<span class="sy0">,</span>
|
||
seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'copy'</span><span class="sy0">,</span> <span class="st0">'short ship'</span><span class="sy0">,</span> <span class="st0">'bad_ship'</span><span class="br0">)</span><span class="br0">)</span> "2020 base qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="kw1">NOT</span> <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'copy'</span><span class="sy0">,</span> <span class="st0">'short ship'</span><span class="sy0">,</span> <span class="st0">'bad_ship'</span><span class="br0">)</span><span class="br0">)</span> "2020 adj qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'copy'</span><span class="sy0">,</span> <span class="st0">'short ship'</span><span class="sy0">,</span> <span class="st0">'bad_ship'</span><span class="br0">)</span><span class="br0">)</span> "2020 base value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="kw1">NOT</span> <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'copy'</span><span class="sy0">,</span> <span class="st0">'short ship'</span><span class="sy0">,</span> <span class="st0">'bad_ship'</span><span class="br0">)</span><span class="br0">)</span> "2020 adj value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_month<span class="sy0">,</span> seq
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
seq <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> mlist <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
mseq<span class="sy0">.</span>m order_month<span class="sy0">,</span> "2019 qty"<span class="sy0">,</span> "2020 base qty"<span class="sy0">,</span> "2020 adj qty"<span class="sy0">,</span> "2020 tot qty"<span class="sy0">,</span> "2019 value_usd"<span class="sy0">,</span> "2020 base value_usd"<span class="sy0">,</span> "2020 adj value_usd"<span class="sy0">,</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
mseq
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
mseq<span class="sy0">.</span>s <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> totals <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_build_object <span class="br0">(</span><span class="st0">'months'</span><span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
months<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'mpvt'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
mlist<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'base'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
base<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'totals'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
totals<span class="br0">)</span><span class="br0">)</span> package;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 16:48:48
|
||
<b>Duration:</b> 2s690ms
|
||
</pre>
|
||
<div id="query-e-explain-8-2" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Parallel%20Seq%20Scan%20on%20osm_fcpool%20%20%28cost%3D0.00..42056.88%20rows%3D1%20width%3D149%29%20%28actual%20time%3D195.353..2690.533%20rows%3D16%20loops%3D1%29%0A%09%20%20Filter%3A%20%28%28quota_rep_descr%20%3D%20%2710032%20-%20BRYAN%20HILL%27%3A%3Atext%29%20AND%20%28segm%20%3D%20%27Greenhouse%27%3A%3Atext%29%20AND%20%28mod_chan%20%3D%20%27DISTRIBUTOR%27%3A%3Atext%29%20AND%20%28part_descr%20%3D%20%27AZG06000B66B200%20-%2006.00%20AZ%20TW%20300GN%20%4020000%20BULK%27%3A%3Atext%29%29%0A%09%20%20Rows%20Removed%20by%20Filter%3A%2076890%0A%09%20%20Buffers%3A%20shared%20read%3D10399%0A%09%20%20I%2FO%20Timings%3A%20read%3D2598.181%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Parallel Seq Scan on osm_fcpool (cost=0.00..42056.88 rows=1 width=149) (actual time=195.353..2690.533 rows=16 loops=1)
|
||
Filter: ((quota_rep_descr = '10032 - BRYAN HILL'::text) AND (segm = 'Greenhouse'::text) AND (mod_chan = 'DISTRIBUTOR'::text) AND (part_descr = 'AZG06000B66B200 - 06.00 AZ TW 300GN @20000 BULK'::text))
|
||
Rows Removed by Filter: 76890
|
||
Buffers: shared read=10399
|
||
I/O Timings: read=2598.181
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-e-8-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing
|
||
<span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span>
|
||
<span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">VALUES</span> <span class="br0">(</span><span class="st0">'Jun'</span><span class="sy0">,</span>
|
||
<span class="nu0">1</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jul'</span><span class="sy0">,</span>
|
||
<span class="nu0">2</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Aug'</span><span class="sy0">,</span>
|
||
<span class="nu0">3</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Sep'</span><span class="sy0">,</span>
|
||
<span class="nu0">4</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Oct'</span><span class="sy0">,</span>
|
||
<span class="nu0">5</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Nov'</span><span class="sy0">,</span>
|
||
<span class="nu0">6</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Dec'</span><span class="sy0">,</span>
|
||
<span class="nu0">7</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jan'</span><span class="sy0">,</span>
|
||
<span class="nu0">8</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Feb'</span><span class="sy0">,</span>
|
||
<span class="nu0">9</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Mar'</span><span class="sy0">,</span>
|
||
<span class="nu0">10</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Apr'</span><span class="sy0">,</span>
|
||
<span class="nu0">11</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'May'</span><span class="sy0">,</span>
|
||
<span class="nu0">12</span><span class="br0">)</span><span class="br0">)</span> x <span class="br0">(</span>m<span class="sy0">,</span>
|
||
s<span class="br0">)</span>
|
||
<span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq
|
||
<span class="sy0">,</span>
|
||
base <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_fcpool
|
||
<span class="kw1">WHERE</span>
|
||
quota_rep_descr <span class="sy0">=</span> <span class="st0">'10032 - BRYAN HILL'</span>
|
||
<span class="kw1">AND</span> segm <span class="sy0">=</span> <span class="st0">'Greenhouse'</span>
|
||
<span class="kw1">AND</span> mod_chan <span class="sy0">=</span> <span class="st0">'DISTRIBUTOR'</span>
|
||
<span class="kw1">AND</span> part_descr <span class="sy0">=</span> <span class="st0">'AZG06000B66B200 - 06.00 AZ TW 300GN @20000 BULK'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="br0">)</span><span class="sy0">,</span>
|
||
months <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
mseq<span class="sy0">.</span>s seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
base
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
s<span class="br0">)</span><span class="sy0">,</span>
|
||
mpvt <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_month<span class="sy0">,</span>
|
||
seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'copy'</span><span class="sy0">,</span> <span class="st0">'short ship'</span><span class="sy0">,</span> <span class="st0">'bad_ship'</span><span class="br0">)</span><span class="br0">)</span> "2020 base qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="kw1">NOT</span> <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'copy'</span><span class="sy0">,</span> <span class="st0">'short ship'</span><span class="sy0">,</span> <span class="st0">'bad_ship'</span><span class="br0">)</span><span class="br0">)</span> "2020 adj qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'copy'</span><span class="sy0">,</span> <span class="st0">'short ship'</span><span class="sy0">,</span> <span class="st0">'bad_ship'</span><span class="br0">)</span><span class="br0">)</span> "2020 base value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="kw1">NOT</span> <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'copy'</span><span class="sy0">,</span> <span class="st0">'short ship'</span><span class="sy0">,</span> <span class="st0">'bad_ship'</span><span class="br0">)</span><span class="br0">)</span> "2020 adj value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_month<span class="sy0">,</span> seq
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
seq <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> mlist <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
mseq<span class="sy0">.</span>m order_month<span class="sy0">,</span> "2019 qty"<span class="sy0">,</span> "2020 base qty"<span class="sy0">,</span> "2020 adj qty"<span class="sy0">,</span> "2020 tot qty"<span class="sy0">,</span> "2019 value_usd"<span class="sy0">,</span> "2020 base value_usd"<span class="sy0">,</span> "2020 adj value_usd"<span class="sy0">,</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
mseq
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
mseq<span class="sy0">.</span>s <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> totals <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_build_object <span class="br0">(</span><span class="st0">'months'</span><span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
months<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'mpvt'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
mlist<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'base'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
base<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'totals'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
totals<span class="br0">)</span><span class="br0">)</span> package;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 16:48:48
|
||
<b>Duration:</b> 2s690ms
|
||
</pre>
|
||
<div id="query-e-explain-8-3" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Parallel%20Seq%20Scan%20on%20osm_fcpool%20%20%28cost%3D0.00..42056.88%20rows%3D1%20width%3D149%29%20%28actual%20time%3D77.724..2690.442%20rows%3D19%20loops%3D1%29%0A%09%20%20Filter%3A%20%28%28quota_rep_descr%20%3D%20%2710032%20-%20BRYAN%20HILL%27%3A%3Atext%29%20AND%20%28segm%20%3D%20%27Greenhouse%27%3A%3Atext%29%20AND%20%28mod_chan%20%3D%20%27DISTRIBUTOR%27%3A%3Atext%29%20AND%20%28part_descr%20%3D%20%27AZG06000B66B200%20-%2006.00%20AZ%20TW%20300GN%20%4020000%20BULK%27%3A%3Atext%29%29%0A%09%20%20Rows%20Removed%20by%20Filter%3A%2076638%0A%09%20%20Buffers%3A%20shared%20read%3D10361%0A%09%20%20I%2FO%20Timings%3A%20read%3D2590.846%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Parallel Seq Scan on osm_fcpool (cost=0.00..42056.88 rows=1 width=149) (actual time=77.724..2690.442 rows=19 loops=1)
|
||
Filter: ((quota_rep_descr = '10032 - BRYAN HILL'::text) AND (segm = 'Greenhouse'::text) AND (mod_chan = 'DISTRIBUTOR'::text) AND (part_descr = 'AZG06000B66B200 - 06.00 AZ TW 300GN @20000 BULK'::text))
|
||
Rows Removed by Filter: 76638
|
||
Buffers: shared read=10361
|
||
I/O Timings: read=2590.846
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-8">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>9</td>
|
||
<td>11s11ms</td>
|
||
<td>6
|
||
<p><a href="#Atime_consuming_queries_details_9" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>1s444ms</td>
|
||
<td>3s349ms</td>
|
||
<td>1s835ms</td>
|
||
<td id="time-consuming-queries-examples-details-rank-9">
|
||
<div id="query-e-9" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>create <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> gld<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>; <span class="kw1">WITH</span> un <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> ? srce <span class="sy0">,</span>od<span class="sy0">.</span>ssyr oseas <span class="sy0">,</span>od<span class="sy0">.</span>sdat odate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr sseas <span class="sy0">,</span>sd<span class="sy0">.</span>sdat sdate <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> om <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> sm <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> oy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_qty <span class="br0">)</span> qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_val_loc <span class="sy0">*</span> r_rate <span class="br0">)</span> sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_cst_loc <span class="sy0">*</span> c_rate <span class="br0">)</span> stdcost <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osmf osm <span class="kw1">INNER</span> <span class="kw1">JOIN</span> gld od <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_orderdate <span class="kw1">BETWEEN</span> od<span class="sy0">.</span>sdat <span class="kw1">AND</span> od<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld sd <span class="kw1">ON</span> osm<span class="sy0">.</span>fspr <span class="sy0">=</span> sd<span class="sy0">.</span>fspr <span class="kw1">WHERE</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>glec<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>fs_line<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">=</span> ? <span class="kw1">AND</span> calc_status <span class="sy0"><</span><span class="sy0">></span> ? <span class="sy0">-</span><span class="sy0">-</span>open orders <span class="kw1">AND</span> sd<span class="sy0">.</span>cm <span class="sy0">=</span> ? <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future fspr <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> od<span class="sy0">.</span>ssyr <span class="sy0">,</span>od<span class="sy0">.</span>sdat <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr <span class="sy0">,</span>sd<span class="sy0">.</span>sdat <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">UNION</span> <span class="kw1">ALL</span> <span class="kw1">SELECT</span> ? srce <span class="sy0">,</span>od<span class="sy0">.</span>ssyr oseas <span class="sy0">,</span>od<span class="sy0">.</span>sdat odate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr sseas <span class="sy0">,</span>sd<span class="sy0">.</span>sdat sdate <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> om <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> sm <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> oy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_qty <span class="br0">)</span> qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_val_loc <span class="sy0">*</span> r_rate <span class="br0">)</span> sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_cst_loc <span class="sy0">*</span> c_rate <span class="br0">)</span> stdcost <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm osm <span class="kw1">INNER</span> <span class="kw1">JOIN</span> gld od <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_orderdate <span class="kw1">BETWEEN</span> od<span class="sy0">.</span>sdat <span class="kw1">AND</span> od<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld sd <span class="kw1">ON</span> greatest<span class="br0">(</span>osm<span class="sy0">.</span>adj_requestdate<span class="sy0">,</span><span class="kw2">current_date</span><span class="br0">)</span> <span class="kw1">BETWEEN</span> sd<span class="sy0">.</span>sdat <span class="kw1">AND</span> sd<span class="sy0">.</span>edat <span class="kw1">WHERE</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>fs_line<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">=</span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>glec<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">AND</span> calc_status <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span> <span class="kw1">AND</span> flag <span class="sy0">=</span> ? <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> od<span class="sy0">.</span>ssyr <span class="sy0">,</span>od<span class="sy0">.</span>sdat <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr <span class="sy0">,</span>sd<span class="sy0">.</span>sdat <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="br0">)</span> <span class="kw1">SELECT</span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>qty<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>stdcost<span class="br0">)</span> "cost" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>sales<span class="br0">)</span> sales <span class="kw1">FROM</span> un <span class="kw1">WHERE</span> om <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy ;
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Atime_consuming_queries_details_9" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #9</small></h3>
|
||
<div id="time_consuming_queries_details_9" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Atime_consuming_queries_details_9').on("shown.bs.collapse",function(){
|
||
var bars_43 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',6],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_43 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',1835],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var time_consuming_queries_details_9 = create_bargraph('time_consuming_queries_details_9', '', 'Queries', [ bars_43, lines_43 ], 'Avg. duration');
|
||
});
|
||
create_download_button(43, 'btn btn-default btn-xs');
|
||
add_download_button_event(43, 'time_consuming_queries_details_9');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 18</td><td>10</td><td>6</td><td>11s11ms</td><td>1s835ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Atime_consuming_queries_details_9">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-9">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-9">User(s) involved</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-9">App(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="time-consuming-queries-user-involved-rank-9" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> report - <b>Total duration:</b> 4s793ms - <b>Times executed:</b> 2 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-9">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="time-consuming-queries-app-involved-rank-9" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> [unknown] - <b>Total duration:</b> 4s793ms - <b>Times executed:</b> 2 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-9">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="time-consuming-queries-examples-rank-9" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-e-9-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> GREATEST <span class="br0">(</span>OSM<span class="sy0">.</span>adj_requestdate<span class="sy0">,</span>
|
||
<span class="kw1"><span class="kw2">current_date</span></span><span class="br0">)</span> <span class="kw1">BETWEEN</span> SD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">WHERE</span>
|
||
OM <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'F'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-18 10:06:25
|
||
<b>Duration:</b> 3s349ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> report
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> [unknown]
|
||
</pre>
|
||
<div id="query-e-explain-9-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Sort%20%20%28cost%3D98200.29..98200.79%20rows%3D200%20width%3D232%29%20%28actual%20time%3D3348.705..3348.710%20rows%3D132%20loops%3D1%29%0A%09%20%20Sort%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2043kB%0A%09%20%20Buffers%3A%20shared%20hit%3D235%20read%3D84111%2C%20local%20hit%3D161423%20read%3D1%0A%09%20%20I%2FO%20Timings%3A%20read%3D7279.164%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D31586.61..98166.63%20rows%3D449%20width%3D232%29%20%28actual%20time%3D1488.149..3348.297%20rows%3D154%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D232%20read%3D84111%2C%20local%20hit%3D161423%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7279.164%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D31586.61..31590.91%20rows%3D82%20width%3D232%29%20%28actual%20time%3D1488.148..1554.309%20rows%3D84%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D151073%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2987.288%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D31586.61..31586.81%20rows%3D82%20width%3D185%29%20%28actual%20time%3D1488.111..1493.540%20rows%3D75536%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2013695kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D151073%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2987.288%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1004.33..31584.00%20rows%3D82%20width%3D185%29%20%28actual%20time%3D21.103..1425.083%20rows%3D75536%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D151073%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2987.288%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Join%20%20%28cost%3D1004.19..31579.49%20rows%3D4%20width%3D113%29%20%28actual%20time%3D21.078..1001.628%20rows%3D75536%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2987.281%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..31572.50%20rows%3D738%20width%3D42%29%20%28actual%20time%3D21.024..908.420%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2987.281%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osmf%20osm%20%20%28cost%3D0.00..30498.70%20rows%3D308%20width%3D42%29%20%28actual%20time%3D11.969..1113.675%20rows%3D135605%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20119%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2987.281%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.18..4.18%20rows%3D1%20width%3D108%29%20%28actual%20time%3D0.033..0.034%20rows%3D38%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2010kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..4.18%20rows%3D1%20width%3D108%29%20%28actual%20time%3D0.021..0.027%20rows%3D38%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28cm%20%3D%20%27F%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20136%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od%20%20%28cost%3D0.14..0.94%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.005..0.005%20rows%3D1%20loops%3D75536%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D151071%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.007%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D66549.72..66568.99%20rows%3D367%20width%3D232%29%20%28actual%20time%3D1789.692..1793.972%20rows%3D70%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D232%20read%3D57766%2C%20local%20hit%3D10350%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4291.876%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D66549.72..66550.64%20rows%3D367%20width%3D178%29%20%28actual%20time%3D1789.672..1789.874%20rows%3D5174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20920kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D232%20read%3D57766%2C%20local%20hit%3D10350%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4291.876%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1004.74..66534.08%20rows%3D367%20width%3D178%29%20%28actual%20time%3D1752.458..1786.814%20rows%3D5174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20od_1.sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20od_1.edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%20895102%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D232%20read%3D57766%2C%20local%20hit%3D10350%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4291.876%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20od_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D80%29%20%28actual%20time%3D0.013..0.078%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D1004.74..66472.54%20rows%3D19%20width%3D106%29%20%28actual%20time%3D0.073..9.810%20rows%3D5174%20loops%3D174%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D232%20read%3D57766%2C%20local%20hit%3D10348%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4291.876%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D1004.74..66472.44%20rows%3D19%20width%3D106%29%20%28actual%20time%3D12.621..1668.315%20rows%3D5174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D232%20read%3D57766%2C%20local%20hit%3D10348%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4291.876%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..66465.04%20rows%3D1%20width%3D34%29%20%28actual%20time%3D12.587..1608.241%20rows%3D5174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D232%20read%3D57766%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4291.876%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20osm_1%20%20%28cost%3D0.00..65464.94%20rows%3D1%20width%3D34%29%20%28actual%20time%3D4.136..1641.056%20rows%3D1725%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20259938%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D232%20read%3D57766%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4291.876%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20gld%20sd_1%20%20%28cost%3D4.74..7.21%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.011..0.011%20rows%3D1%20loops%3D5174%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3E%3D%20sdat%29%20AND%20%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D5174%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D10348%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20dats%20%20%28cost%3D0.00..4.73%20rows%3D19%20width%3D0%29%20%28actual%20time%3D0.010..0.010%20rows%3D1%20loops%3D5174%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3E%3D%20sdat%29%20AND%20%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D5174%0A%09%20%20-%3E%20%20HashAggregate%20%20%28cost%3D23.51..26.01%20rows%3D200%20width%3D232%29%20%28actual%20time%3D3348.532..3348.577%20rows%3D132%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Group%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D232%20read%3D84111%2C%20local%20hit%3D161423%20read%3D1%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7279.164%0A%09%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..10.10%20rows%3D447%20width%3D232%29%20%28actual%20time%3D1488.153..3348.409%20rows%3D132%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28om%20%3C%3E%20%27F%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2022%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D232%20read%3D84111%2C%20local%20hit%3D161423%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7279.164%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Sort (cost=98200.29..98200.79 rows=200 width=232) (actual time=3348.705..3348.710 rows=132 loops=1)
|
||
Sort Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Sort Method: quicksort Memory: 43kB
|
||
Buffers: shared hit=235 read=84111, local hit=161423 read=1
|
||
I/O Timings: read=7279.164
|
||
CTE un
|
||
-> Append (cost=31586.61..98166.63 rows=449 width=232) (actual time=1488.149..3348.297 rows=154 loops=1)
|
||
Buffers: shared hit=232 read=84111, local hit=161423 read=1
|
||
I/O Timings: read=7279.164
|
||
-> GroupAggregate (cost=31586.61..31590.91 rows=82 width=232) (actual time=1488.148..1554.309 rows=84 loops=1)
|
||
Group Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Buffers: shared read=26345, local hit=151073 read=1
|
||
I/O Timings: read=2987.288
|
||
-> Sort (cost=31586.61..31586.81 rows=82 width=185) (actual time=1488.111..1493.540 rows=75536 loops=1)
|
||
Sort Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 13695kB
|
||
Buffers: shared read=26345, local hit=151073 read=1
|
||
I/O Timings: read=2987.288
|
||
-> Nested Loop (cost=1004.33..31584.00 rows=82 width=185) (actual time=21.103..1425.083 rows=75536 loops=1)
|
||
Buffers: shared read=26345, local hit=151073 read=1
|
||
I/O Timings: read=2987.288
|
||
-> Hash Join (cost=1004.19..31579.49 rows=4 width=113) (actual time=21.078..1001.628 rows=75536 loops=1)
|
||
Hash Cond: (osm.fspr = sd.fspr)
|
||
Buffers: shared read=26345, local hit=2
|
||
I/O Timings: read=2987.281
|
||
-> Gather (cost=1000.00..31572.50 rows=738 width=42) (actual time=21.024..908.420 rows=406814 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared read=26345
|
||
I/O Timings: read=2987.281
|
||
-> Parallel Seq Scan on osmf osm (cost=0.00..30498.70 rows=308 width=42) (actual time=11.969..1113.675 rows=135605 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 119
|
||
Buffers: shared read=26345
|
||
I/O Timings: read=2987.281
|
||
-> Hash (cost=4.18..4.18 rows=1 width=108) (actual time=0.033..0.034 rows=38 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 10kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd (cost=0.00..4.18 rows=1 width=108) (actual time=0.021..0.027 rows=38 loops=1)
|
||
Filter: (cm = 'F'::text)
|
||
Rows Removed by Filter: 136
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od (cost=0.14..0.94 rows=19 width=80) (actual time=0.005..0.005 rows=1 loops=75536)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=151071 read=1
|
||
I/O Timings: read=0.007
|
||
-> GroupAggregate (cost=66549.72..66568.99 rows=367 width=232) (actual time=1789.692..1793.972 rows=70 loops=1)
|
||
Group Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Buffers: shared hit=232 read=57766, local hit=10350
|
||
I/O Timings: read=4291.876
|
||
-> Sort (cost=66549.72..66550.64 rows=367 width=178) (actual time=1789.672..1789.874 rows=5174 loops=1)
|
||
Sort Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 920kB
|
||
Buffers: shared hit=232 read=57766, local hit=10350
|
||
I/O Timings: read=4291.876
|
||
-> Nested Loop (cost=1004.74..66534.08 rows=367 width=178) (actual time=1752.458..1786.814 rows=5174 loops=1)
|
||
Join Filter: ((osm_1.adj_orderdate >= od_1.sdat) AND (osm_1.adj_orderdate <= od_1.edat))
|
||
Rows Removed by Join Filter: 895102
|
||
Buffers: shared hit=232 read=57766, local hit=10350
|
||
I/O Timings: read=4291.876
|
||
-> Seq Scan on gld od_1 (cost=0.00..3.74 rows=174 width=80) (actual time=0.013..0.078 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Materialize (cost=1004.74..66472.54 rows=19 width=106) (actual time=0.073..9.810 rows=5174 loops=174)
|
||
Buffers: shared hit=232 read=57766, local hit=10348
|
||
I/O Timings: read=4291.876
|
||
-> Nested Loop Left Join (cost=1004.74..66472.44 rows=19 width=106) (actual time=12.621..1668.315 rows=5174 loops=1)
|
||
Buffers: shared hit=232 read=57766, local hit=10348
|
||
I/O Timings: read=4291.876
|
||
-> Gather (cost=1000.00..66465.04 rows=1 width=34) (actual time=12.587..1608.241 rows=5174 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=232 read=57766
|
||
I/O Timings: read=4291.876
|
||
-> Parallel Seq Scan on osm osm_1 (cost=0.00..65464.94 rows=1 width=34) (actual time=4.136..1641.056 rows=1725 loops=3)
|
||
Filter: ((calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (flag = 'REMAINDER'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 259938
|
||
Buffers: shared hit=232 read=57766
|
||
I/O Timings: read=4291.876
|
||
-> Bitmap Heap Scan on gld sd_1 (cost=4.74..7.21 rows=19 width=80) (actual time=0.011..0.011 rows=1 loops=5174)
|
||
Recheck Cond: ((GREATEST(osm_1.adj_requestdate, CURRENT_DATE) >= sdat) AND (GREATEST(osm_1.adj_requestdate, CURRENT_DATE) <= edat))
|
||
Heap Blocks: exact=5174
|
||
Buffers: local hit=10348
|
||
-> Bitmap Index Scan on dats (cost=0.00..4.73 rows=19 width=0) (actual time=0.010..0.010 rows=1 loops=5174)
|
||
Index Cond: ((GREATEST(osm_1.adj_requestdate, CURRENT_DATE) >= sdat) AND (GREATEST(osm_1.adj_requestdate, CURRENT_DATE) <= edat))
|
||
Buffers: local hit=5174
|
||
-> HashAggregate (cost=23.51..26.01 rows=200 width=232) (actual time=3348.532..3348.577 rows=132 loops=1)
|
||
Group Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Buffers: shared hit=232 read=84111, local hit=161423 read=1
|
||
I/O Timings: read=7279.164
|
||
-> CTE Scan on un (cost=0.00..10.10 rows=447 width=232) (actual time=1488.153..3348.409 rows=132 loops=1)
|
||
Filter: (om <> 'F'::text)
|
||
Rows Removed by Filter: 22
|
||
Buffers: shared hit=232 read=84111, local hit=161423 read=1
|
||
I/O Timings: read=7279.164
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-e-9-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> GREATEST <span class="br0">(</span>OSM<span class="sy0">.</span>adj_requestdate<span class="sy0">,</span>
|
||
<span class="kw1"><span class="kw2">current_date</span></span><span class="br0">)</span> <span class="kw1">BETWEEN</span> SD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">WHERE</span>
|
||
OM <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'F'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-18 10:06:25
|
||
<b>Duration:</b> 1s661ms
|
||
</pre>
|
||
<div id="query-e-explain-9-2" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Parallel%20Seq%20Scan%20on%20osm%20%20%28cost%3D0.00..65464.94%20rows%3D1%20width%3D34%29%20%28actual%20time%3D0.035..1661.025%20rows%3D2679%20loops%3D1%29%0A%09%20%20Filter%3A%20%28%28calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20Rows%20Removed%20by%20Filter%3A%20312636%0A%09%20%20Buffers%3A%20shared%20hit%3D57%20read%3D22167%0A%09%20%20I%2FO%20Timings%3A%20read%3D1426.762%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Parallel Seq Scan on osm (cost=0.00..65464.94 rows=1 width=34) (actual time=0.035..1661.025 rows=2679 loops=1)
|
||
Filter: ((calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (flag = 'REMAINDER'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 312636
|
||
Buffers: shared hit=57 read=22167
|
||
I/O Timings: read=1426.762
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-e-9-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> GREATEST <span class="br0">(</span>OSM<span class="sy0">.</span>adj_requestdate<span class="sy0">,</span>
|
||
<span class="kw1"><span class="kw2">current_date</span></span><span class="br0">)</span> <span class="kw1">BETWEEN</span> SD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">WHERE</span>
|
||
OM <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'F'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-18 10:06:25
|
||
<b>Duration:</b> 1s659ms
|
||
</pre>
|
||
<div id="query-e-explain-9-3" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Parallel%20Seq%20Scan%20on%20osm%20%20%28cost%3D0.00..65464.94%20rows%3D1%20width%3D34%29%20%28actual%20time%3D0.588..1658.922%20rows%3D1702%20loops%3D1%29%0A%09%20%20Filter%3A%20%28%28calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20Rows%20Removed%20by%20Filter%3A%20291296%0A%09%20%20Buffers%3A%20shared%20hit%3D39%20read%3D21772%0A%09%20%20I%2FO%20Timings%3A%20read%3D1413.782%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Parallel Seq Scan on osm (cost=0.00..65464.94 rows=1 width=34) (actual time=0.588..1658.922 rows=1702 loops=1)
|
||
Filter: ((calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (flag = 'REMAINDER'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 291296
|
||
Buffers: shared hit=39 read=21772
|
||
I/O Timings: read=1413.782
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-9">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>10</td>
|
||
<td>7s429ms</td>
|
||
<td>3
|
||
<p><a href="#Atime_consuming_queries_details_10" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>2s10ms</td>
|
||
<td>3s265ms</td>
|
||
<td>2s476ms</td>
|
||
<td id="time-consuming-queries-examples-details-rank-10">
|
||
<div id="query-e-10" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">DELETE</span> <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm osm
|
||
<span class="kw1">WHERE</span> <span class="kw1">EXISTS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1"><span class="kw2">cast</span></span><span class="br0">(</span><span class="kw1">NULL</span> <span class="kw1">AS</span> int<span class="br0">)</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1">DISTINCT</span> "ddord#"
|
||
<span class="kw1">FROM</span>
|
||
import<span class="sy0">.</span>osmi
|
||
<span class="kw1">WHERE</span>
|
||
"ddord#" <span class="sy0"><</span><span class="sy0">></span> ?<span class="br0">)</span> n
|
||
<span class="kw1">WHERE</span>
|
||
n<span class="sy0">.</span> "ddord#" <span class="sy0">=</span> osm<span class="sy0">.</span> "ddord#"<span class="br0">)</span>;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Atime_consuming_queries_details_10" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #10</small></h3>
|
||
<div id="time_consuming_queries_details_10" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Atime_consuming_queries_details_10').on("shown.bs.collapse",function(){
|
||
var bars_44 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',1],['15:00',0],['16:00',1],['17:00',1],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_44 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',2153],['15:00',0],['16:00',2010],['17:00',3265],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var time_consuming_queries_details_10 = create_bargraph('time_consuming_queries_details_10', '', 'Queries', [ bars_44, lines_44 ], 'Avg. duration');
|
||
});
|
||
create_download_button(44, 'btn btn-default btn-xs');
|
||
add_download_button_event(44, 'time_consuming_queries_details_10');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>17</td><td>1</td><td>3s265ms</td><td>3s265ms</td></tr><tr><td>Mar 15</td><td>14</td><td>1</td><td>2s153ms</td><td>2s153ms</td></tr><tr><td></td><td>16</td><td>1</td><td>2s10ms</td><td>2s10ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Atime_consuming_queries_details_10">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-10">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-10">User(s) involved</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-10">App(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="time-consuming-queries-user-involved-rank-10" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> ptrowbridge_md5 - <b>Total duration:</b> 7s429ms - <b>Times executed:</b> 3 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-10">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="time-consuming-queries-app-involved-rank-10" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> psql - <b>Total duration:</b> 7s429ms - <b>Times executed:</b> 3 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-10">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="time-consuming-queries-examples-rank-10" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-e-10-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">DELETE</span> <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm osm
|
||
<span class="kw1">WHERE</span> <span class="kw1">EXISTS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1"><span class="kw2">cast</span></span><span class="br0">(</span><span class="kw1">NULL</span> <span class="kw1">AS</span> INT<span class="br0">)</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1">DISTINCT</span> "ddord#"
|
||
<span class="kw1">FROM</span>
|
||
import<span class="sy0">.</span>osmi
|
||
<span class="kw1">WHERE</span>
|
||
"ddord#" <span class="sy0"><</span><span class="sy0">></span> <span class="nu0">0</span><span class="br0">)</span> n
|
||
<span class="kw1">WHERE</span>
|
||
n<span class="sy0">.</span> "ddord#" <span class="sy0">=</span> osm<span class="sy0">.</span> "ddord#"<span class="br0">)</span>;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-14 17:12:43
|
||
<b>Duration:</b> 3s265ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-e-explain-10-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Delete%20on%20osm%20%20%28cost%3D1968.07..69852.70%20rows%3D67171%20width%3D36%29%20%28actual%20time%3D3265.512..3265.512%20rows%3D0%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D29163%20read%3D54721%20dirtied%3D1562%0A%09%20%20I%2FO%20Timings%3A%20read%3D2859.895%0A%09%20%20-%3E%20%20Hash%20Join%20%20%28cost%3D1968.07..69852.70%20rows%3D67171%20width%3D36%29%20%28actual%20time%3D75.167..3248.670%20rows%3D24360%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.%22ddord%23%22%20%3D%20n.%22ddord%23%22%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4780%20read%3D54721%20dirtied%3D82%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2859.895%0A%09%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osm%20%20%28cost%3D0.00..65827.55%20rows%3D783555%20width%3D12%29%20%28actual%20time%3D1.473..3059.153%20rows%3D783400%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3271%20read%3D54721%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2859.895%0A%09%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1930.65..1930.65%20rows%3D2994%20width%3D36%29%20%28actual%20time%3D18.828..18.828%20rows%3D3245%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%20Batches%3A%201%20%20Memory%20Usage%3A%20245kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1509%20dirtied%3D82%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Subquery%20Scan%20on%20n%20%20%28cost%3D1870.77..1930.65%20rows%3D2994%20width%3D36%29%20%28actual%20time%3D16.917..18.065%20rows%3D3245%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1509%20dirtied%3D82%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D1870.77..1900.71%20rows%3D2994%20width%3D6%29%20%28actual%20time%3D16.897..17.477%20rows%3D3245%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20osmi.%22ddord%23%22%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1509%20dirtied%3D82%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmi%20%20%28cost%3D0.00..1810.80%20rows%3D23987%20width%3D6%29%20%28actual%20time%3D0.026..9.823%20rows%3D25374%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%22ddord%23%22%20%3C%3E%20%270%27%3A%3Anumeric%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20252%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1509%20dirtied%3D82%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Delete on osm (cost=1968.07..69852.70 rows=67171 width=36) (actual time=3265.512..3265.512 rows=0 loops=1)
|
||
Buffers: shared hit=29163 read=54721 dirtied=1562
|
||
I/O Timings: read=2859.895
|
||
-> Hash Join (cost=1968.07..69852.70 rows=67171 width=36) (actual time=75.167..3248.670 rows=24360 loops=1)
|
||
Hash Cond: (osm."ddord#" = n."ddord#")
|
||
Buffers: shared hit=4780 read=54721 dirtied=82
|
||
I/O Timings: read=2859.895
|
||
-> Seq Scan on osm (cost=0.00..65827.55 rows=783555 width=12) (actual time=1.473..3059.153 rows=783400 loops=1)
|
||
Buffers: shared hit=3271 read=54721
|
||
I/O Timings: read=2859.895
|
||
-> Hash (cost=1930.65..1930.65 rows=2994 width=36) (actual time=18.828..18.828 rows=3245 loops=1)
|
||
Buckets: 4096 Batches: 1 Memory Usage: 245kB
|
||
Buffers: shared hit=1509 dirtied=82
|
||
-> Subquery Scan on n (cost=1870.77..1930.65 rows=2994 width=36) (actual time=16.917..18.065 rows=3245 loops=1)
|
||
Buffers: shared hit=1509 dirtied=82
|
||
-> HashAggregate (cost=1870.77..1900.71 rows=2994 width=6) (actual time=16.897..17.477 rows=3245 loops=1)
|
||
Group Key: osmi."ddord#"
|
||
Buffers: shared hit=1509 dirtied=82
|
||
-> Seq Scan on osmi (cost=0.00..1810.80 rows=23987 width=6) (actual time=0.026..9.823 rows=25374 loops=1)
|
||
Filter: ("ddord#" <> '0'::numeric)
|
||
Rows Removed by Filter: 252
|
||
Buffers: shared hit=1509 dirtied=82
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-e-10-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">DELETE</span> <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm osm
|
||
<span class="kw1">WHERE</span> <span class="kw1">EXISTS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1"><span class="kw2">cast</span></span><span class="br0">(</span><span class="kw1">NULL</span> <span class="kw1">AS</span> INT<span class="br0">)</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1">DISTINCT</span> "ddord#"
|
||
<span class="kw1">FROM</span>
|
||
import<span class="sy0">.</span>osmi
|
||
<span class="kw1">WHERE</span>
|
||
"ddord#" <span class="sy0"><</span><span class="sy0">></span> <span class="nu0">0</span><span class="br0">)</span> n
|
||
<span class="kw1">WHERE</span>
|
||
n<span class="sy0">.</span> "ddord#" <span class="sy0">=</span> osm<span class="sy0">.</span> "ddord#"<span class="br0">)</span>;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 14:07:09
|
||
<b>Duration:</b> 2s153ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-e-explain-10-2" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Delete%20on%20osm%20%20%28cost%3D1986.94..69871.57%20rows%3D69213%20width%3D36%29%20%28actual%20time%3D2153.612..2153.612%20rows%3D0%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D26955%20read%3D57942%20dirtied%3D1625%0A%09%20%20I%2FO%20Timings%3A%20read%3D1847.789%0A%09%20%20-%3E%20%20Hash%20Join%20%20%28cost%3D1986.94..69871.57%20rows%3D69213%20width%3D36%29%20%28actual%20time%3D1997.260..2135.913%20rows%3D25383%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.%22ddord%23%22%20%3D%20n.%22ddord%23%22%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1572%20read%3D57942%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1847.789%0A%09%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osm%20%20%28cost%3D0.00..65827.55%20rows%3D783555%20width%3D12%29%20%28actual%20time%3D0.460..1982.573%20rows%3D784529%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D50%20read%3D57942%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1847.789%0A%09%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1948.38..1948.38%20rows%3D3085%20width%3D36%29%20%28actual%20time%3D14.780..14.780%20rows%3D3290%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%20Batches%3A%201%20%20Memory%20Usage%3A%20248kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1522%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Subquery%20Scan%20on%20n%20%20%28cost%3D1886.68..1948.38%20rows%3D3085%20width%3D36%29%20%28actual%20time%3D13.217..14.151%20rows%3D3290%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1522%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D1886.68..1917.53%20rows%3D3085%20width%3D6%29%20%28actual%20time%3D13.202..13.591%20rows%3D3290%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20osmi.%22ddord%23%22%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1522%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmi%20%20%28cost%3D0.00..1826.40%20rows%3D24113%20width%3D6%29%20%28actual%20time%3D0.010..7.688%20rows%3D25613%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%22ddord%23%22%20%3C%3E%20%270%27%3A%3Anumeric%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20265%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1522%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Delete on osm (cost=1986.94..69871.57 rows=69213 width=36) (actual time=2153.612..2153.612 rows=0 loops=1)
|
||
Buffers: shared hit=26955 read=57942 dirtied=1625
|
||
I/O Timings: read=1847.789
|
||
-> Hash Join (cost=1986.94..69871.57 rows=69213 width=36) (actual time=1997.260..2135.913 rows=25383 loops=1)
|
||
Hash Cond: (osm."ddord#" = n."ddord#")
|
||
Buffers: shared hit=1572 read=57942
|
||
I/O Timings: read=1847.789
|
||
-> Seq Scan on osm (cost=0.00..65827.55 rows=783555 width=12) (actual time=0.460..1982.573 rows=784529 loops=1)
|
||
Buffers: shared hit=50 read=57942
|
||
I/O Timings: read=1847.789
|
||
-> Hash (cost=1948.38..1948.38 rows=3085 width=36) (actual time=14.780..14.780 rows=3290 loops=1)
|
||
Buckets: 4096 Batches: 1 Memory Usage: 248kB
|
||
Buffers: shared hit=1522
|
||
-> Subquery Scan on n (cost=1886.68..1948.38 rows=3085 width=36) (actual time=13.217..14.151 rows=3290 loops=1)
|
||
Buffers: shared hit=1522
|
||
-> HashAggregate (cost=1886.68..1917.53 rows=3085 width=6) (actual time=13.202..13.591 rows=3290 loops=1)
|
||
Group Key: osmi."ddord#"
|
||
Buffers: shared hit=1522
|
||
-> Seq Scan on osmi (cost=0.00..1826.40 rows=24113 width=6) (actual time=0.010..7.688 rows=25613 loops=1)
|
||
Filter: ("ddord#" <> '0'::numeric)
|
||
Rows Removed by Filter: 265
|
||
Buffers: shared hit=1522
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-e-10-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">DELETE</span> <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm osm
|
||
<span class="kw1">WHERE</span> <span class="kw1">EXISTS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1"><span class="kw2">cast</span></span><span class="br0">(</span><span class="kw1">NULL</span> <span class="kw1">AS</span> INT<span class="br0">)</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1">DISTINCT</span> "ddord#"
|
||
<span class="kw1">FROM</span>
|
||
import<span class="sy0">.</span>osmi
|
||
<span class="kw1">WHERE</span>
|
||
"ddord#" <span class="sy0"><</span><span class="sy0">></span> <span class="nu0">0</span><span class="br0">)</span> n
|
||
<span class="kw1">WHERE</span>
|
||
n<span class="sy0">.</span> "ddord#" <span class="sy0">=</span> osm<span class="sy0">.</span> "ddord#"<span class="br0">)</span>;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 16:45:32
|
||
<b>Duration:</b> 2s10ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-e-explain-10-3" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Delete%20on%20osm%20%20%28cost%3D2006.51..69055.94%20rows%3D62283%20width%3D36%29%20%28actual%20time%3D2010.489..2010.489%20rows%3D0%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D28858%20read%3D57960%20dirtied%3D1674%0A%09%20%20I%2FO%20Timings%3A%20read%3D1634.275%0A%09%20%20-%3E%20%20Hash%20Join%20%20%28cost%3D2006.51..69055.94%20rows%3D62283%20width%3D36%29%20%28actual%20time%3D1663.729..1988.641%20rows%3D25616%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.%22ddord%23%22%20%3D%20n.%22ddord%23%22%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1569%20read%3D57960%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1634.275%0A%09%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osm%20%20%28cost%3D0.00..65166.02%20rows%3D717402%20width%3D12%29%20%28actual%20time%3D0.449..1815.192%20rows%3D784772%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32%20read%3D57960%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1634.275%0A%09%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1967.58..1967.58%20rows%3D3115%20width%3D36%29%20%28actual%20time%3D16.883..16.883%20rows%3D3334%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%20Batches%3A%201%20%20Memory%20Usage%3A%20251kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1537%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Subquery%20Scan%20on%20n%20%20%28cost%3D1905.28..1967.58%20rows%3D3115%20width%3D36%29%20%28actual%20time%3D15.539..16.337%20rows%3D3334%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1537%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D1905.28..1936.43%20rows%3D3115%20width%3D6%29%20%28actual%20time%3D15.524..15.848%20rows%3D3334%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20osmi.%22ddord%23%22%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1537%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmi%20%20%28cost%3D0.00..1844.40%20rows%3D24350%20width%3D6%29%20%28actual%20time%3D0.011..9.183%20rows%3D25826%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%22ddord%23%22%20%3C%3E%20%270%27%3A%3Anumeric%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20271%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1537%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Delete on osm (cost=2006.51..69055.94 rows=62283 width=36) (actual time=2010.489..2010.489 rows=0 loops=1)
|
||
Buffers: shared hit=28858 read=57960 dirtied=1674
|
||
I/O Timings: read=1634.275
|
||
-> Hash Join (cost=2006.51..69055.94 rows=62283 width=36) (actual time=1663.729..1988.641 rows=25616 loops=1)
|
||
Hash Cond: (osm."ddord#" = n."ddord#")
|
||
Buffers: shared hit=1569 read=57960
|
||
I/O Timings: read=1634.275
|
||
-> Seq Scan on osm (cost=0.00..65166.02 rows=717402 width=12) (actual time=0.449..1815.192 rows=784772 loops=1)
|
||
Buffers: shared hit=32 read=57960
|
||
I/O Timings: read=1634.275
|
||
-> Hash (cost=1967.58..1967.58 rows=3115 width=36) (actual time=16.883..16.883 rows=3334 loops=1)
|
||
Buckets: 4096 Batches: 1 Memory Usage: 251kB
|
||
Buffers: shared hit=1537
|
||
-> Subquery Scan on n (cost=1905.28..1967.58 rows=3115 width=36) (actual time=15.539..16.337 rows=3334 loops=1)
|
||
Buffers: shared hit=1537
|
||
-> HashAggregate (cost=1905.28..1936.43 rows=3115 width=6) (actual time=15.524..15.848 rows=3334 loops=1)
|
||
Group Key: osmi."ddord#"
|
||
Buffers: shared hit=1537
|
||
-> Seq Scan on osmi (cost=0.00..1844.40 rows=24350 width=6) (actual time=0.011..9.183 rows=25826 loops=1)
|
||
Filter: ("ddord#" <> '0'::numeric)
|
||
Rows Removed by Filter: 271
|
||
Buffers: shared hit=1537
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-10">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>11</td>
|
||
<td>4s848ms</td>
|
||
<td>3
|
||
<p><a href="#Atime_consuming_queries_details_11" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>1s270ms</td>
|
||
<td>1s826ms</td>
|
||
<td>1s616ms</td>
|
||
<td id="time-consuming-queries-examples-details-rank-11">
|
||
<div id="query-e-11" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
import<span class="sy0">.</span>osmi;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Atime_consuming_queries_details_11" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #11</small></h3>
|
||
<div id="time_consuming_queries_details_11" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Atime_consuming_queries_details_11').on("shown.bs.collapse",function(){
|
||
var bars_45 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',1],['15:00',0],['16:00',1],['17:00',1],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_45 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',1270],['15:00',0],['16:00',1752],['17:00',1826],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var time_consuming_queries_details_11 = create_bargraph('time_consuming_queries_details_11', '', 'Queries', [ bars_45, lines_45 ], 'Avg. duration');
|
||
});
|
||
create_download_button(45, 'btn btn-default btn-xs');
|
||
add_download_button_event(45, 'time_consuming_queries_details_11');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>17</td><td>1</td><td>1s826ms</td><td>1s826ms</td></tr><tr><td>Mar 15</td><td>14</td><td>1</td><td>1s270ms</td><td>1s270ms</td></tr><tr><td></td><td>16</td><td>1</td><td>1s752ms</td><td>1s752ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Atime_consuming_queries_details_11">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-11">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-11">User(s) involved</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-11">App(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="time-consuming-queries-user-involved-rank-11" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> ptrowbridge_md5 - <b>Total duration:</b> 4s848ms - <b>Times executed:</b> 3 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-11">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="time-consuming-queries-app-involved-rank-11" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> psql - <b>Total duration:</b> 4s848ms - <b>Times executed:</b> 3 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-11">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="time-consuming-queries-examples-rank-11" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-e-11-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
import<span class="sy0">.</span>osmi;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-14 17:12:46
|
||
<b>Duration:</b> 1s826ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-e-explain-11-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Insert%20on%20osm%20%20%28cost%3D0.00..1750.44%20rows%3D24144%20width%3D457%29%20%28actual%20time%3D1826.337..1826.337%20rows%3D0%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D419286%20read%3D3669%20dirtied%3D3584%0A%09%20%20I%2FO%20Timings%3A%20read%3D1345.135%0A%09%20%20-%3E%20%20Seq%20Scan%20on%20osmi%20%20%28cost%3D0.00..1750.44%20rows%3D24144%20width%3D457%29%20%28actual%20time%3D0.007..7.078%20rows%3D25626%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1509%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Insert on osm (cost=0.00..1750.44 rows=24144 width=457) (actual time=1826.337..1826.337 rows=0 loops=1)
|
||
Buffers: shared hit=419286 read=3669 dirtied=3584
|
||
I/O Timings: read=1345.135
|
||
-> Seq Scan on osmi (cost=0.00..1750.44 rows=24144 width=457) (actual time=0.007..7.078 rows=25626 loops=1)
|
||
Buffers: shared hit=1509
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-e-11-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
import<span class="sy0">.</span>osmi;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 16:45:34
|
||
<b>Duration:</b> 1s752ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-e-explain-11-2" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Insert%20on%20osm%20%20%28cost%3D0.00..1782.92%20rows%3D24592%20width%3D457%29%20%28actual%20time%3D1752.635..1752.635%20rows%3D0%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D406744%20read%3D6293%20dirtied%3D6259%0A%09%20%20I%2FO%20Timings%3A%20read%3D1296.982%0A%09%20%20-%3E%20%20Seq%20Scan%20on%20osmi%20%20%28cost%3D0.00..1782.92%20rows%3D24592%20width%3D457%29%20%28actual%20time%3D0.005..6.976%20rows%3D26097%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1537%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Insert on osm (cost=0.00..1782.92 rows=24592 width=457) (actual time=1752.635..1752.635 rows=0 loops=1)
|
||
Buffers: shared hit=406744 read=6293 dirtied=6259
|
||
I/O Timings: read=1296.982
|
||
-> Seq Scan on osmi (cost=0.00..1782.92 rows=24592 width=457) (actual time=0.005..6.976 rows=26097 loops=1)
|
||
Buffers: shared hit=1537
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-e-11-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
import<span class="sy0">.</span>osmi;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 14:07:11
|
||
<b>Duration:</b> 1s270ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-e-explain-11-3" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Insert%20on%20osm%20%20%28cost%3D0.00..1765.52%20rows%3D24352%20width%3D457%29%20%28actual%20time%3D1270.004..1270.004%20rows%3D0%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D421843%20read%3D4791%20dirtied%3D3283%0A%09%20%20I%2FO%20Timings%3A%20read%3D823.790%0A%09%20%20-%3E%20%20Seq%20Scan%20on%20osmi%20%20%28cost%3D0.00..1765.52%20rows%3D24352%20width%3D457%29%20%28actual%20time%3D0.006..6.130%20rows%3D25878%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1522%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Insert on osm (cost=0.00..1765.52 rows=24352 width=457) (actual time=1270.004..1270.004 rows=0 loops=1)
|
||
Buffers: shared hit=421843 read=4791 dirtied=3283
|
||
I/O Timings: read=823.790
|
||
-> Seq Scan on osmi (cost=0.00..1765.52 rows=24352 width=457) (actual time=0.006..6.130 rows=25878 loops=1)
|
||
Buffers: shared hit=1522
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-11">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>12</td>
|
||
<td>3s720ms</td>
|
||
<td>3
|
||
<p><a href="#Atime_consuming_queries_details_12" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>1s194ms</td>
|
||
<td>1s327ms</td>
|
||
<td>1s240ms</td>
|
||
<td id="time-consuming-queries-examples-details-rank-12">
|
||
<div id="query-e-12" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing <span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span> <span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> <span class="sy0">*</span> <span class="kw1">FROM</span> <span class="br0">(</span> <span class="kw1">VALUES</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="br0">)</span> x<span class="br0">(</span>m<span class="sy0">,</span>s<span class="br0">)</span> <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq <span class="sy0">,</span>base <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span>order_month <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>part_descr <span class="sy0">,</span>bill_cust_descr <span class="sy0">,</span>ship_cust_descr <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm_fcpool <span class="kw1">WHERE</span> quota_rep_descr <span class="sy0">=</span> ? <span class="kw1">AND</span> segm <span class="sy0">=</span> ? <span class="kw1">AND</span> mod_chan <span class="sy0">=</span> ? <span class="kw1">AND</span> bill_cust_descr <span class="sy0">=</span> ? <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span>order_month <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>part_descr <span class="sy0">,</span>bill_cust_descr <span class="sy0">,</span>ship_cust_descr <span class="br0">)</span> <span class="sy0">,</span>months <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>order_month <span class="sy0">,</span>mseq<span class="sy0">.</span>s seq <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> base <span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>order_month <span class="sy0">,</span>s <span class="br0">)</span> <span class="sy0">,</span>mpvt <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_month <span class="sy0">,</span>seq <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0">=</span> ?<span class="br0">)</span> "? base qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> ?<span class="br0">)</span> "? adj qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? tot qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0">=</span> ?<span class="br0">)</span> "? base value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> ?<span class="br0">)</span> "? adj value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? tot value_usd" <span class="kw1">FROM</span> months <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_month <span class="sy0">,</span>seq <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> seq <span class="kw1">ASC</span> <span class="br0">)</span> <span class="sy0">,</span>mlist <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> mseq<span class="sy0">.</span>m order_month <span class="sy0">,</span>"? qty" <span class="sy0">,</span>"? base qty" <span class="sy0">,</span>"? adj qty" <span class="sy0">,</span>"? tot qty" <span class="sy0">,</span>"? value_usd" <span class="sy0">,</span>"? base value_usd" <span class="sy0">,</span>"? adj value_usd" <span class="sy0">,</span>"? tot value_usd" <span class="kw1">FROM</span> mseq <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> mseq<span class="sy0">.</span>s <span class="kw1">ASC</span> <span class="br0">)</span> <span class="sy0">,</span>totals <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> months <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="br0">)</span> <span class="kw1">SELECT</span> jsonb_build_object<span class="br0">(</span> ? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> months<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> mlist<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> base<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> totals<span class="br0">)</span> <span class="br0">)</span> package ;
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Atime_consuming_queries_details_12" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #12</small></h3>
|
||
<div id="time_consuming_queries_details_12" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Atime_consuming_queries_details_12').on("shown.bs.collapse",function(){
|
||
var bars_46 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',3],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_46 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',1240],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var time_consuming_queries_details_12 = create_bargraph('time_consuming_queries_details_12', '', 'Queries', [ bars_46, lines_46 ], 'Avg. duration');
|
||
});
|
||
create_download_button(46, 'btn btn-default btn-xs');
|
||
add_download_button_event(46, 'time_consuming_queries_details_12');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 15</td><td>10</td><td>3</td><td>3s720ms</td><td>1s240ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Atime_consuming_queries_details_12">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-12">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-12">User(s) involved</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-12">App(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="time-consuming-queries-user-involved-rank-12" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> api - <b>Total duration:</b> 1s327ms - <b>Times executed:</b> 1 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-12">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="time-consuming-queries-app-involved-rank-12" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> osm_api - <b>Total duration:</b> 1s327ms - <b>Times executed:</b> 1 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-12">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="time-consuming-queries-examples-rank-12" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-e-12-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing
|
||
<span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span>
|
||
<span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">VALUES</span> <span class="br0">(</span><span class="st0">'Jun'</span><span class="sy0">,</span>
|
||
<span class="nu0">1</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jul'</span><span class="sy0">,</span>
|
||
<span class="nu0">2</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Aug'</span><span class="sy0">,</span>
|
||
<span class="nu0">3</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Sep'</span><span class="sy0">,</span>
|
||
<span class="nu0">4</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Oct'</span><span class="sy0">,</span>
|
||
<span class="nu0">5</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Nov'</span><span class="sy0">,</span>
|
||
<span class="nu0">6</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Dec'</span><span class="sy0">,</span>
|
||
<span class="nu0">7</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jan'</span><span class="sy0">,</span>
|
||
<span class="nu0">8</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Feb'</span><span class="sy0">,</span>
|
||
<span class="nu0">9</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Mar'</span><span class="sy0">,</span>
|
||
<span class="nu0">10</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Apr'</span><span class="sy0">,</span>
|
||
<span class="nu0">11</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'May'</span><span class="sy0">,</span>
|
||
<span class="nu0">12</span><span class="br0">)</span><span class="br0">)</span> x <span class="br0">(</span>m<span class="sy0">,</span>
|
||
s<span class="br0">)</span>
|
||
<span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq
|
||
<span class="sy0">,</span>
|
||
base <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_fcpool
|
||
<span class="kw1">WHERE</span>
|
||
quota_rep_descr <span class="sy0">=</span> <span class="st0">'10032 - BRYAN HILL'</span>
|
||
<span class="kw1">AND</span> segm <span class="sy0">=</span> <span class="st0">'Greenhouse'</span>
|
||
<span class="kw1">AND</span> mod_chan <span class="sy0">=</span> <span class="st0">'DISTRIBUTOR'</span>
|
||
<span class="kw1">AND</span> bill_cust_descr <span class="sy0">=</span> <span class="st0">'BWIC0001 - BWI COMPANIES INC'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="br0">)</span><span class="sy0">,</span>
|
||
months <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
mseq<span class="sy0">.</span>s seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
base
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
s<span class="br0">)</span><span class="sy0">,</span>
|
||
mpvt <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_month<span class="sy0">,</span>
|
||
seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0">=</span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 base qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 adj qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0">=</span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 base value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 adj value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_month<span class="sy0">,</span> seq
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
seq <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> mlist <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
mseq<span class="sy0">.</span>m order_month<span class="sy0">,</span> "2019 qty"<span class="sy0">,</span> "2020 base qty"<span class="sy0">,</span> "2020 adj qty"<span class="sy0">,</span> "2020 tot qty"<span class="sy0">,</span> "2019 value_usd"<span class="sy0">,</span> "2020 base value_usd"<span class="sy0">,</span> "2020 adj value_usd"<span class="sy0">,</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
mseq
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
mseq<span class="sy0">.</span>s <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> totals <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_build_object <span class="br0">(</span><span class="st0">'months'</span><span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
months<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'mpvt'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
mlist<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'base'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
base<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'totals'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
totals<span class="br0">)</span><span class="br0">)</span> package;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 10:02:03
|
||
<b>Duration:</b> 1s327ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> api
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> osm_api
|
||
</pre>
|
||
<div id="query-e-explain-12-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Result%20%20%28cost%3D43067.02..43067.03%20rows%3D1%20width%3D32%29%20%28actual%20time%3D1322.834..1322.949%20rows%3D1%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D3%20read%3D15116%0A%09%20%20I%2FO%20Timings%3A%20read%3D1154.285%0A%09%20%20CTE%20mseq%0A%09%20%20%20%20-%3E%20%20Values%20Scan%20on%20%22%2AVALUES%2A%22%20%20%28cost%3D0.00..0.15%20rows%3D12%20width%3D36%29%20%28actual%20time%3D0.008..0.012%20rows%3D12%20loops%3D1%29%0A%09%20%20CTE%20base%0A%09%20%20%20%20-%3E%20%20Finalize%20GroupAggregate%20%20%28cost%3D43057.06..43060.56%20rows%3D25%20width%3D176%29%20%28actual%20time%3D1287.168..1296.146%20rows%3D1095%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20osm_fcpool.order_season%2C%20osm_fcpool.order_month%2C%20osm_fcpool.version%2C%20osm_fcpool.iter%2C%20osm_fcpool.part_descr%2C%20osm_fcpool.bill_cust_descr%2C%20osm_fcpool.ship_cust_descr%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D15116%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1154.285%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20Merge%20%20%28cost%3D43057.06..43059.75%20rows%3D20%20width%3D176%29%20%28actual%20time%3D1287.150..1294.990%20rows%3D1214%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D112%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3332.221%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Partial%20GroupAggregate%20%20%28cost%3D42057.04..42057.42%20rows%3D10%20width%3D176%29%20%28actual%20time%3D1222.013..1222.459%20rows%3D405%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20osm_fcpool.order_season%2C%20osm_fcpool.order_month%2C%20osm_fcpool.version%2C%20osm_fcpool.iter%2C%20osm_fcpool.part_descr%2C%20osm_fcpool.bill_cust_descr%2C%20osm_fcpool.ship_cust_descr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D112%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3332.221%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D42057.04..42057.07%20rows%3D10%20width%3D149%29%20%28actual%20time%3D1221.999..1222.047%20rows%3D447%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20osm_fcpool.order_season%2C%20osm_fcpool.order_month%2C%20osm_fcpool.version%2C%20osm_fcpool.iter%2C%20osm_fcpool.part_descr%2C%20osm_fcpool.ship_cust_descr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20145kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Worker%200%3A%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20145kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Worker%201%3A%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20140kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D112%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3332.221%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm_fcpool%20%20%28cost%3D0.00..42056.88%20rows%3D10%20width%3D149%29%20%28actual%20time%3D24.365..1220.140%20rows%3D447%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28quota_rep_descr%20%3D%20%2710032%20-%20BRYAN%20HILL%27%3A%3Atext%29%20AND%20%28segm%20%3D%20%27Greenhouse%27%3A%3Atext%29%20AND%20%28mod_chan%20%3D%20%27DISTRIBUTOR%27%3A%3Atext%29%20AND%20%28bill_cust_descr%20%3D%20%27BWIC0001%20-%20BWI%20COMPANIES%20INC%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2099999%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3332.221%0A%09%20%20CTE%20months%0A%09%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D1.31..1.46%20rows%3D12%20width%3D152%29%20%28actual%20time%3D1297.764..1297.785%20rows%3D28%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20base.order_season%2C%20base.version%2C%20base.iter%2C%20base.order_month%2C%20mseq.s%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D15116%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1154.285%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Join%20%20%28cost%3D0.39..1.10%20rows%3D12%20width%3D148%29%20%28actual%20time%3D1287.272..1297.191%20rows%3D1095%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28base.order_month%20%3D%20mseq.m%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D15116%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1154.285%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20base%20%20%28cost%3D0.00..0.50%20rows%3D25%20width%3D144%29%20%28actual%20time%3D1287.170..1296.717%20rows%3D1095%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D15116%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1154.285%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.24..0.24%20rows%3D12%20width%3D36%29%20%28actual%20time%3D0.028..0.028%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mseq%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D36%29%20%28actual%20time%3D0.013..0.021%20rows%3D12%20loops%3D1%29%0A%09%20%20CTE%20mpvt%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D0.46..1.39%20rows%3D12%20width%3D196%29%20%28actual%20time%3D0.043..0.069%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20months.seq%2C%20months.order_month%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D0.46..0.49%20rows%3D12%20width%3D116%29%20%28actual%20time%3D0.029..0.031%20rows%3D28%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20months.seq%2C%20months.order_month%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2027kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20months%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D116%29%20%28actual%20time%3D0.001..0.006%20rows%3D28%20loops%3D1%29%0A%09%20%20CTE%20mlist%0A%09%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D1.01..1.04%20rows%3D12%20width%3D196%29%20%28actual%20time%3D0.167..0.168%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20mseq_1.s%0A%09%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D0.39..0.80%20rows%3D12%20width%3D196%29%20%28actual%20time%3D0.110..0.115%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28mseq_1.m%20%3D%20mpvt.order_month%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mseq%20mseq_1%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D36%29%20%28actual%20time%3D0.001..0.002%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.24..0.24%20rows%3D12%20width%3D192%29%20%28actual%20time%3D0.092..0.092%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2010kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mpvt%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D192%29%20%28actual%20time%3D0.049..0.082%20rows%3D12%20loops%3D1%29%0A%09%20%20CTE%20totals%0A%09%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D0.39..0.54%20rows%3D12%20width%3D112%29%20%28actual%20time%3D0.037..0.040%20rows%3D6%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20months_1.order_season%2C%20months_1.version%2C%20months_1.iter%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20months%20months_1%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D112%29%20%28actual%20time%3D0.003..0.008%20rows%3D28%20loops%3D1%29%0A%09%20%20InitPlan%207%20%28returns%20%247%29%0A%09%20%20%20%20-%3E%20%20Aggregate%20%20%28cost%3D0.36..0.37%20rows%3D1%20width%3D32%29%20%28actual%20time%3D1298.799..1298.799%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D15116%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1154.285%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20months%20months_2%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D24%29%20%28actual%20time%3D1297.953..1298.003%20rows%3D28%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D15116%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1154.285%0A%09%20%20InitPlan%208%20%28returns%20%248%29%0A%09%20%20%20%20-%3E%20%20Aggregate%20%20%28cost%3D0.36..0.37%20rows%3D1%20width%3D32%29%20%28actual%20time%3D0.466..0.467%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mlist%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D24%29%20%28actual%20time%3D0.181..0.192%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3%0A%09%20%20InitPlan%209%20%28returns%20%249%29%0A%09%20%20%20%20-%3E%20%20Aggregate%20%20%28cost%3D0.75..0.76%20rows%3D1%20width%3D32%29%20%28actual%20time%3D19.795..19.795%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20base%20base_1%20%20%28cost%3D0.00..0.50%20rows%3D25%20width%3D24%29%20%28actual%20time%3D0.006..0.656%20rows%3D1095%20loops%3D1%29%0A%09%20%20InitPlan%2010%20%28returns%20%2410%29%0A%09%20%20%20%20-%3E%20%20Aggregate%20%20%28cost%3D0.36..0.37%20rows%3D1%20width%3D32%29%20%28actual%20time%3D0.165..0.165%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20totals%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D24%29%20%28actual%20time%3D0.059..0.067%20rows%3D6%20loops%3D1%29%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Result (cost=43067.02..43067.03 rows=1 width=32) (actual time=1322.834..1322.949 rows=1 loops=1)
|
||
Buffers: shared hit=3 read=15116
|
||
I/O Timings: read=1154.285
|
||
CTE mseq
|
||
-> Values Scan on "*VALUES*" (cost=0.00..0.15 rows=12 width=36) (actual time=0.008..0.012 rows=12 loops=1)
|
||
CTE base
|
||
-> Finalize GroupAggregate (cost=43057.06..43060.56 rows=25 width=176) (actual time=1287.168..1296.146 rows=1095 loops=1)
|
||
Group Key: osm_fcpool.order_season, osm_fcpool.order_month, osm_fcpool.version, osm_fcpool.iter, osm_fcpool.part_descr, osm_fcpool.bill_cust_descr, osm_fcpool.ship_cust_descr
|
||
Buffers: shared read=15116
|
||
I/O Timings: read=1154.285
|
||
-> Gather Merge (cost=43057.06..43059.75 rows=20 width=176) (actual time=1287.150..1294.990 rows=1214 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=112 read=39543
|
||
I/O Timings: read=3332.221
|
||
-> Partial GroupAggregate (cost=42057.04..42057.42 rows=10 width=176) (actual time=1222.013..1222.459 rows=405 loops=3)
|
||
Group Key: osm_fcpool.order_season, osm_fcpool.order_month, osm_fcpool.version, osm_fcpool.iter, osm_fcpool.part_descr, osm_fcpool.bill_cust_descr, osm_fcpool.ship_cust_descr
|
||
Buffers: shared hit=112 read=39543
|
||
I/O Timings: read=3332.221
|
||
-> Sort (cost=42057.04..42057.07 rows=10 width=149) (actual time=1221.999..1222.047 rows=447 loops=3)
|
||
Sort Key: osm_fcpool.order_season, osm_fcpool.order_month, osm_fcpool.version, osm_fcpool.iter, osm_fcpool.part_descr, osm_fcpool.ship_cust_descr
|
||
Sort Method: quicksort Memory: 145kB
|
||
Worker 0: Sort Method: quicksort Memory: 145kB
|
||
Worker 1: Sort Method: quicksort Memory: 140kB
|
||
Buffers: shared hit=112 read=39543
|
||
I/O Timings: read=3332.221
|
||
-> Parallel Seq Scan on osm_fcpool (cost=0.00..42056.88 rows=10 width=149) (actual time=24.365..1220.140 rows=447 loops=3)
|
||
Filter: ((quota_rep_descr = '10032 - BRYAN HILL'::text) AND (segm = 'Greenhouse'::text) AND (mod_chan = 'DISTRIBUTOR'::text) AND (bill_cust_descr = 'BWIC0001 - BWI COMPANIES INC'::text))
|
||
Rows Removed by Filter: 99999
|
||
Buffers: shared read=39543
|
||
I/O Timings: read=3332.221
|
||
CTE months
|
||
-> HashAggregate (cost=1.31..1.46 rows=12 width=152) (actual time=1297.764..1297.785 rows=28 loops=1)
|
||
Group Key: base.order_season, base.version, base.iter, base.order_month, mseq.s
|
||
Buffers: shared read=15116
|
||
I/O Timings: read=1154.285
|
||
-> Hash Join (cost=0.39..1.10 rows=12 width=148) (actual time=1287.272..1297.191 rows=1095 loops=1)
|
||
Hash Cond: (base.order_month = mseq.m)
|
||
Buffers: shared read=15116
|
||
I/O Timings: read=1154.285
|
||
-> CTE Scan on base (cost=0.00..0.50 rows=25 width=144) (actual time=1287.170..1296.717 rows=1095 loops=1)
|
||
Buffers: shared read=15116
|
||
I/O Timings: read=1154.285
|
||
-> Hash (cost=0.24..0.24 rows=12 width=36) (actual time=0.028..0.028 rows=12 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mseq (cost=0.00..0.24 rows=12 width=36) (actual time=0.013..0.021 rows=12 loops=1)
|
||
CTE mpvt
|
||
-> GroupAggregate (cost=0.46..1.39 rows=12 width=196) (actual time=0.043..0.069 rows=12 loops=1)
|
||
Group Key: months.seq, months.order_month
|
||
-> Sort (cost=0.46..0.49 rows=12 width=116) (actual time=0.029..0.031 rows=28 loops=1)
|
||
Sort Key: months.seq, months.order_month
|
||
Sort Method: quicksort Memory: 27kB
|
||
-> CTE Scan on months (cost=0.00..0.24 rows=12 width=116) (actual time=0.001..0.006 rows=28 loops=1)
|
||
CTE mlist
|
||
-> Sort (cost=1.01..1.04 rows=12 width=196) (actual time=0.167..0.168 rows=12 loops=1)
|
||
Sort Key: mseq_1.s
|
||
Sort Method: quicksort Memory: 26kB
|
||
Buffers: shared hit=3
|
||
-> Hash Left Join (cost=0.39..0.80 rows=12 width=196) (actual time=0.110..0.115 rows=12 loops=1)
|
||
Hash Cond: (mseq_1.m = mpvt.order_month)
|
||
-> CTE Scan on mseq mseq_1 (cost=0.00..0.24 rows=12 width=36) (actual time=0.001..0.002 rows=12 loops=1)
|
||
-> Hash (cost=0.24..0.24 rows=12 width=192) (actual time=0.092..0.092 rows=12 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 10kB
|
||
-> CTE Scan on mpvt (cost=0.00..0.24 rows=12 width=192) (actual time=0.049..0.082 rows=12 loops=1)
|
||
CTE totals
|
||
-> HashAggregate (cost=0.39..0.54 rows=12 width=112) (actual time=0.037..0.040 rows=6 loops=1)
|
||
Group Key: months_1.order_season, months_1.version, months_1.iter
|
||
-> CTE Scan on months months_1 (cost=0.00..0.24 rows=12 width=112) (actual time=0.003..0.008 rows=28 loops=1)
|
||
InitPlan 7 (returns $7)
|
||
-> Aggregate (cost=0.36..0.37 rows=1 width=32) (actual time=1298.799..1298.799 rows=1 loops=1)
|
||
Buffers: shared read=15116
|
||
I/O Timings: read=1154.285
|
||
-> CTE Scan on months months_2 (cost=0.00..0.24 rows=12 width=24) (actual time=1297.953..1298.003 rows=28 loops=1)
|
||
Buffers: shared read=15116
|
||
I/O Timings: read=1154.285
|
||
InitPlan 8 (returns $8)
|
||
-> Aggregate (cost=0.36..0.37 rows=1 width=32) (actual time=0.466..0.467 rows=1 loops=1)
|
||
Buffers: shared hit=3
|
||
-> CTE Scan on mlist (cost=0.00..0.24 rows=12 width=24) (actual time=0.181..0.192 rows=12 loops=1)
|
||
Buffers: shared hit=3
|
||
InitPlan 9 (returns $9)
|
||
-> Aggregate (cost=0.75..0.76 rows=1 width=32) (actual time=19.795..19.795 rows=1 loops=1)
|
||
-> CTE Scan on base base_1 (cost=0.00..0.50 rows=25 width=24) (actual time=0.006..0.656 rows=1095 loops=1)
|
||
InitPlan 10 (returns $10)
|
||
-> Aggregate (cost=0.36..0.37 rows=1 width=32) (actual time=0.165..0.165 rows=1 loops=1)
|
||
-> CTE Scan on totals (cost=0.00..0.24 rows=12 width=24) (actual time=0.059..0.067 rows=6 loops=1)
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-e-12-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing
|
||
<span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span>
|
||
<span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">VALUES</span> <span class="br0">(</span><span class="st0">'Jun'</span><span class="sy0">,</span>
|
||
<span class="nu0">1</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jul'</span><span class="sy0">,</span>
|
||
<span class="nu0">2</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Aug'</span><span class="sy0">,</span>
|
||
<span class="nu0">3</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Sep'</span><span class="sy0">,</span>
|
||
<span class="nu0">4</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Oct'</span><span class="sy0">,</span>
|
||
<span class="nu0">5</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Nov'</span><span class="sy0">,</span>
|
||
<span class="nu0">6</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Dec'</span><span class="sy0">,</span>
|
||
<span class="nu0">7</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jan'</span><span class="sy0">,</span>
|
||
<span class="nu0">8</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Feb'</span><span class="sy0">,</span>
|
||
<span class="nu0">9</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Mar'</span><span class="sy0">,</span>
|
||
<span class="nu0">10</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Apr'</span><span class="sy0">,</span>
|
||
<span class="nu0">11</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'May'</span><span class="sy0">,</span>
|
||
<span class="nu0">12</span><span class="br0">)</span><span class="br0">)</span> x <span class="br0">(</span>m<span class="sy0">,</span>
|
||
s<span class="br0">)</span>
|
||
<span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq
|
||
<span class="sy0">,</span>
|
||
base <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_fcpool
|
||
<span class="kw1">WHERE</span>
|
||
quota_rep_descr <span class="sy0">=</span> <span class="st0">'10032 - BRYAN HILL'</span>
|
||
<span class="kw1">AND</span> segm <span class="sy0">=</span> <span class="st0">'Greenhouse'</span>
|
||
<span class="kw1">AND</span> mod_chan <span class="sy0">=</span> <span class="st0">'DISTRIBUTOR'</span>
|
||
<span class="kw1">AND</span> bill_cust_descr <span class="sy0">=</span> <span class="st0">'BWIC0001 - BWI COMPANIES INC'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="br0">)</span><span class="sy0">,</span>
|
||
months <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
mseq<span class="sy0">.</span>s seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
base
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
s<span class="br0">)</span><span class="sy0">,</span>
|
||
mpvt <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_month<span class="sy0">,</span>
|
||
seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0">=</span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 base qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 adj qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0">=</span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 base value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 adj value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_month<span class="sy0">,</span> seq
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
seq <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> mlist <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
mseq<span class="sy0">.</span>m order_month<span class="sy0">,</span> "2019 qty"<span class="sy0">,</span> "2020 base qty"<span class="sy0">,</span> "2020 adj qty"<span class="sy0">,</span> "2020 tot qty"<span class="sy0">,</span> "2019 value_usd"<span class="sy0">,</span> "2020 base value_usd"<span class="sy0">,</span> "2020 adj value_usd"<span class="sy0">,</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
mseq
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
mseq<span class="sy0">.</span>s <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> totals <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_build_object <span class="br0">(</span><span class="st0">'months'</span><span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
months<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'mpvt'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
mlist<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'base'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
base<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'totals'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
totals<span class="br0">)</span><span class="br0">)</span> package;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 10:02:03
|
||
<b>Duration:</b> 1s198ms
|
||
</pre>
|
||
<div id="query-e-explain-12-2" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Partial%20GroupAggregate%20%20%28cost%3D42057.04..42057.42%20rows%3D10%20width%3D176%29%20%28actual%20time%3D1191.374..1191.759%20rows%3D387%20loops%3D1%29%0A%09%20%20Group%20Key%3A%20osm_fcpool.order_season%2C%20osm_fcpool.order_month%2C%20osm_fcpool.version%2C%20osm_fcpool.iter%2C%20osm_fcpool.part_descr%2C%20osm_fcpool.bill_cust_descr%2C%20osm_fcpool.ship_cust_descr%0A%09%20%20Buffers%3A%20shared%20hit%3D56%20read%3D12331%0A%09%20%20I%2FO%20Timings%3A%20read%3D1091.338%0A%09%20%20-%3E%20%20Sort%20%20%28cost%3D42057.04..42057.07%20rows%3D10%20width%3D149%29%20%28actual%20time%3D1191.355..1191.388%20rows%3D435%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Sort%20Key%3A%20osm_fcpool.order_season%2C%20osm_fcpool.order_month%2C%20osm_fcpool.version%2C%20osm_fcpool.iter%2C%20osm_fcpool.part_descr%2C%20osm_fcpool.ship_cust_descr%0A%09%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20140kB%0A%09%20%20%20%20%20%20%20%20Worker%200%3A%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20145kB%0A%09%20%20%20%20%20%20%20%20Worker%201%3A%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20140kB%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D56%20read%3D12331%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1091.338%0A%09%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm_fcpool%20%20%28cost%3D0.00..42056.88%20rows%3D10%20width%3D149%29%20%28actual%20time%3D11.309..1189.560%20rows%3D435%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28quota_rep_descr%20%3D%20%2710032%20-%20BRYAN%20HILL%27%3A%3Atext%29%20AND%20%28segm%20%3D%20%27Greenhouse%27%3A%3Atext%29%20AND%20%28mod_chan%20%3D%20%27DISTRIBUTOR%27%3A%3Atext%29%20AND%20%28bill_cust_descr%20%3D%20%27BWIC0001%20-%20BWI%20COMPANIES%20INC%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2092425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D12331%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1091.338%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Partial GroupAggregate (cost=42057.04..42057.42 rows=10 width=176) (actual time=1191.374..1191.759 rows=387 loops=1)
|
||
Group Key: osm_fcpool.order_season, osm_fcpool.order_month, osm_fcpool.version, osm_fcpool.iter, osm_fcpool.part_descr, osm_fcpool.bill_cust_descr, osm_fcpool.ship_cust_descr
|
||
Buffers: shared hit=56 read=12331
|
||
I/O Timings: read=1091.338
|
||
-> Sort (cost=42057.04..42057.07 rows=10 width=149) (actual time=1191.355..1191.388 rows=435 loops=1)
|
||
Sort Key: osm_fcpool.order_season, osm_fcpool.order_month, osm_fcpool.version, osm_fcpool.iter, osm_fcpool.part_descr, osm_fcpool.ship_cust_descr
|
||
Sort Method: quicksort Memory: 140kB
|
||
Worker 0: Sort Method: quicksort Memory: 145kB
|
||
Worker 1: Sort Method: quicksort Memory: 140kB
|
||
Buffers: shared hit=56 read=12331
|
||
I/O Timings: read=1091.338
|
||
-> Parallel Seq Scan on osm_fcpool (cost=0.00..42056.88 rows=10 width=149) (actual time=11.309..1189.560 rows=435 loops=1)
|
||
Filter: ((quota_rep_descr = '10032 - BRYAN HILL'::text) AND (segm = 'Greenhouse'::text) AND (mod_chan = 'DISTRIBUTOR'::text) AND (bill_cust_descr = 'BWIC0001 - BWI COMPANIES INC'::text))
|
||
Rows Removed by Filter: 92425
|
||
Buffers: shared read=12331
|
||
I/O Timings: read=1091.338
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-e-12-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing
|
||
<span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span>
|
||
<span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">VALUES</span> <span class="br0">(</span><span class="st0">'Jun'</span><span class="sy0">,</span>
|
||
<span class="nu0">1</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jul'</span><span class="sy0">,</span>
|
||
<span class="nu0">2</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Aug'</span><span class="sy0">,</span>
|
||
<span class="nu0">3</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Sep'</span><span class="sy0">,</span>
|
||
<span class="nu0">4</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Oct'</span><span class="sy0">,</span>
|
||
<span class="nu0">5</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Nov'</span><span class="sy0">,</span>
|
||
<span class="nu0">6</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Dec'</span><span class="sy0">,</span>
|
||
<span class="nu0">7</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jan'</span><span class="sy0">,</span>
|
||
<span class="nu0">8</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Feb'</span><span class="sy0">,</span>
|
||
<span class="nu0">9</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Mar'</span><span class="sy0">,</span>
|
||
<span class="nu0">10</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Apr'</span><span class="sy0">,</span>
|
||
<span class="nu0">11</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'May'</span><span class="sy0">,</span>
|
||
<span class="nu0">12</span><span class="br0">)</span><span class="br0">)</span> x <span class="br0">(</span>m<span class="sy0">,</span>
|
||
s<span class="br0">)</span>
|
||
<span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq
|
||
<span class="sy0">,</span>
|
||
base <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_fcpool
|
||
<span class="kw1">WHERE</span>
|
||
quota_rep_descr <span class="sy0">=</span> <span class="st0">'10032 - BRYAN HILL'</span>
|
||
<span class="kw1">AND</span> segm <span class="sy0">=</span> <span class="st0">'Greenhouse'</span>
|
||
<span class="kw1">AND</span> mod_chan <span class="sy0">=</span> <span class="st0">'DISTRIBUTOR'</span>
|
||
<span class="kw1">AND</span> bill_cust_descr <span class="sy0">=</span> <span class="st0">'BWIC0001 - BWI COMPANIES INC'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="br0">)</span><span class="sy0">,</span>
|
||
months <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
mseq<span class="sy0">.</span>s seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
base
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
s<span class="br0">)</span><span class="sy0">,</span>
|
||
mpvt <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_month<span class="sy0">,</span>
|
||
seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0">=</span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 base qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 adj qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0">=</span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 base value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 adj value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_month<span class="sy0">,</span> seq
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
seq <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> mlist <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
mseq<span class="sy0">.</span>m order_month<span class="sy0">,</span> "2019 qty"<span class="sy0">,</span> "2020 base qty"<span class="sy0">,</span> "2020 adj qty"<span class="sy0">,</span> "2020 tot qty"<span class="sy0">,</span> "2019 value_usd"<span class="sy0">,</span> "2020 base value_usd"<span class="sy0">,</span> "2020 adj value_usd"<span class="sy0">,</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
mseq
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
mseq<span class="sy0">.</span>s <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> totals <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_build_object <span class="br0">(</span><span class="st0">'months'</span><span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
months<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'mpvt'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
mlist<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'base'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
base<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'totals'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
totals<span class="br0">)</span><span class="br0">)</span> package;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 10:02:03
|
||
<b>Duration:</b> 1s194ms
|
||
</pre>
|
||
<div id="query-e-explain-12-3" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Partial%20GroupAggregate%20%20%28cost%3D42057.04..42057.42%20rows%3D10%20width%3D176%29%20%28actual%20time%3D1190.430..1190.830%20rows%3D411%20loops%3D1%29%0A%09%20%20Group%20Key%3A%20osm_fcpool.order_season%2C%20osm_fcpool.order_month%2C%20osm_fcpool.version%2C%20osm_fcpool.iter%2C%20osm_fcpool.part_descr%2C%20osm_fcpool.bill_cust_descr%2C%20osm_fcpool.ship_cust_descr%0A%09%20%20Buffers%3A%20shared%20hit%3D56%20read%3D12096%0A%09%20%20I%2FO%20Timings%3A%20read%3D1086.598%0A%09%20%20-%3E%20%20Sort%20%20%28cost%3D42057.04..42057.07%20rows%3D10%20width%3D149%29%20%28actual%20time%3D1190.420..1190.459%20rows%3D452%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Sort%20Key%3A%20osm_fcpool.order_season%2C%20osm_fcpool.order_month%2C%20osm_fcpool.version%2C%20osm_fcpool.iter%2C%20osm_fcpool.part_descr%2C%20osm_fcpool.ship_cust_descr%0A%09%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20145kB%0A%09%20%20%20%20%20%20%20%20Worker%200%3A%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20145kB%0A%09%20%20%20%20%20%20%20%20Worker%201%3A%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20140kB%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D56%20read%3D12096%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1086.598%0A%09%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm_fcpool%20%20%28cost%3D0.00..42056.88%20rows%3D10%20width%3D149%29%20%28actual%20time%3D24.972..1188.569%20rows%3D452%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28quota_rep_descr%20%3D%20%2710032%20-%20BRYAN%20HILL%27%3A%3Atext%29%20AND%20%28segm%20%3D%20%27Greenhouse%27%3A%3Atext%29%20AND%20%28mod_chan%20%3D%20%27DISTRIBUTOR%27%3A%3Atext%29%20AND%20%28bill_cust_descr%20%3D%20%27BWIC0001%20-%20BWI%20COMPANIES%20INC%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2091018%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D12096%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1086.598%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Partial GroupAggregate (cost=42057.04..42057.42 rows=10 width=176) (actual time=1190.430..1190.830 rows=411 loops=1)
|
||
Group Key: osm_fcpool.order_season, osm_fcpool.order_month, osm_fcpool.version, osm_fcpool.iter, osm_fcpool.part_descr, osm_fcpool.bill_cust_descr, osm_fcpool.ship_cust_descr
|
||
Buffers: shared hit=56 read=12096
|
||
I/O Timings: read=1086.598
|
||
-> Sort (cost=42057.04..42057.07 rows=10 width=149) (actual time=1190.420..1190.459 rows=452 loops=1)
|
||
Sort Key: osm_fcpool.order_season, osm_fcpool.order_month, osm_fcpool.version, osm_fcpool.iter, osm_fcpool.part_descr, osm_fcpool.ship_cust_descr
|
||
Sort Method: quicksort Memory: 145kB
|
||
Worker 0: Sort Method: quicksort Memory: 145kB
|
||
Worker 1: Sort Method: quicksort Memory: 140kB
|
||
Buffers: shared hit=56 read=12096
|
||
I/O Timings: read=1086.598
|
||
-> Parallel Seq Scan on osm_fcpool (cost=0.00..42056.88 rows=10 width=149) (actual time=24.972..1188.569 rows=452 loops=1)
|
||
Filter: ((quota_rep_descr = '10032 - BRYAN HILL'::text) AND (segm = 'Greenhouse'::text) AND (mod_chan = 'DISTRIBUTOR'::text) AND (bill_cust_descr = 'BWIC0001 - BWI COMPANIES INC'::text))
|
||
Rows Removed by Filter: 91018
|
||
Buffers: shared read=12096
|
||
I/O Timings: read=1086.598
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-12">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>13</td>
|
||
<td>2s707ms</td>
|
||
<td>1
|
||
<p><a href="#Atime_consuming_queries_details_13" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>2s707ms</td>
|
||
<td>2s707ms</td>
|
||
<td>2s707ms</td>
|
||
<td id="time-consuming-queries-examples-details-rank-13">
|
||
<div id="query-e-13" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">CREATE</span> temp <span class="kw1">TABLE</span> gld <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">WITH</span> seg <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
glec<span class="sy0">,</span>
|
||
segm
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">VALUES</span> <span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="br0">)</span> x <span class="br0">(</span>glec<span class="sy0">,</span>
|
||
segm<span class="br0">)</span><span class="br0">)</span><span class="sy0">,</span>
|
||
ord_cutoff <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw2">min</span><span class="br0">(</span>adj_orderdate<span class="br0">)</span> fc_odat
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osmp
|
||
<span class="kw1">WHERE</span>
|
||
iter <span class="sy0"><</span><span class="sy0">></span> ?
|
||
<span class="kw1">AND</span> <span class="kw2">version</span> <span class="sy0">=</span> ?
|
||
<span class="kw1">AND</span> adj_orderdate <span class="sy0">></span><span class="sy0">=</span> ?<span class="br0">)</span><span class="sy0">,</span> sales_cutoff <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw2">max</span><span class="br0">(</span>fspr<span class="br0">)</span> max_fspr
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm<span class="br0">)</span><span class="sy0">,</span>
|
||
gld <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
n1comp comp<span class="sy0">,</span>
|
||
n1ccyy fsyr<span class="sy0">,</span>
|
||
kpmaxp perds<span class="sy0">,</span>
|
||
n1fspp perd<span class="sy0">,</span>
|
||
<span class="kw2">to_char</span><span class="br0">(</span>n1fsyp<span class="sy0">,</span> ?<span class="br0">)</span> fspr<span class="sy0">,</span>
|
||
n1sd01 sdat<span class="sy0">,</span>
|
||
n1ed01 edat<span class="sy0">,</span>
|
||
<span class="kw2">to_char</span><span class="br0">(</span>n1ed01<span class="sy0">,</span> ?<span class="br0">)</span> capr<span class="sy0">,</span>
|
||
n1ed01 <span class="sy0">-</span> n1sd01 <span class="sy0">+</span> ? ndays<span class="sy0">,</span>
|
||
<span class="kw1">CASE</span> <span class="kw1">WHEN</span> <span class="kw2">extract</span><span class="br0">(</span>month <span class="kw1">FROM</span> n1ed01<span class="br0">)</span> <span class="sy0">></span><span class="sy0">=</span> ? <span class="kw1">THEN</span>
|
||
<span class="kw2">extract</span><span class="br0">(</span>year <span class="kw1">FROM</span> n1ed01<span class="br0">)</span> <span class="sy0">+</span> ?
|
||
<span class="kw1">ELSE</span>
|
||
<span class="kw2">extract</span><span class="br0">(</span>year <span class="kw1">FROM</span> n1ed01<span class="br0">)</span>
|
||
<span class="kw1">END</span> ssyr<span class="sy0">,</span>
|
||
<span class="kw2">to_char</span><span class="br0">(</span>
|
||
<span class="kw1">CASE</span> <span class="kw1">WHEN</span> <span class="kw2">extract</span><span class="br0">(</span>month <span class="kw1">FROM</span> n1ed01<span class="br0">)</span> <span class="sy0">></span><span class="sy0">=</span> ? <span class="kw1">THEN</span>
|
||
<span class="kw2">extract</span><span class="br0">(</span>month <span class="kw1">FROM</span> n1ed01<span class="br0">)</span> ?
|
||
<span class="kw1">ELSE</span>
|
||
<span class="kw2">extract</span><span class="br0">(</span>month <span class="kw1">FROM</span> n1ed01<span class="br0">)</span> <span class="sy0">+</span> ?
|
||
<span class="kw1">END</span><span class="sy0">,</span> ?<span class="br0">)</span> sspr <span class="sy0">-</span><span class="sy0">-</span>if the period <span class="kw2">date</span> <span class="kw1">IS</span> less than the <span class="kw1">FIRST</span> forecasted <span class="kw1">ORDER</span> it <span class="kw1">IS</span> actual <span class="kw1">FROM</span> perspective of the plan <span class="sy0">,</span>case <span class="kw1">WHEN</span> max_fspr <span class="sy0">=</span> <span class="kw2">to_char</span><span class="br0">(</span>n1fsyp<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> <span class="kw1">CASE</span> <span class="kw1">WHEN</span> sales_cutoff<span class="sy0">.</span>max_fspr <span class="sy0">></span> <span class="kw2">to_char</span><span class="br0">(</span>n1fsyp<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> ? <span class="kw1">END</span> <span class="kw1">END</span> cm <span class="sy0">,</span>case <span class="kw1">WHEN</span> max_fspr <span class="sy0">=</span> <span class="kw2">to_char</span><span class="br0">(</span>n1fsyp<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> <span class="kw1">CASE</span> <span class="kw1">WHEN</span> sales_cutoff<span class="sy0">.</span>max_fspr <span class="sy0">></span> <span class="kw2">to_char</span><span class="br0">(</span>n1fsyp<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">THEN</span> <span class="kw1">CASE</span> <span class="kw1">WHEN</span> <span class="kw2">substr</span><span class="br0">(</span>sales_cutoff<span class="sy0">.</span>max_fspr<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">></span> <span class="kw2">substr</span><span class="br0">(</span><span class="kw2">to_char</span><span class="br0">(</span>n1fsyp<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> ? <span class="kw1">END</span> <span class="kw1">ELSE</span> ? <span class="kw1">END</span> <span class="kw1">END</span> cy <span class="kw1">FROM</span> lgdat<span class="sy0">.</span>gldatref <span class="kw1">INNER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>gldate <span class="kw1">ON</span> kpcomp <span class="sy0">=</span> n1comp <span class="kw1">AND</span> kpccyy <span class="sy0">=</span> n1ccyy <span class="kw1">CROSS</span> <span class="kw1">JOIN</span> ord_cutoff <span class="kw1">CROSS</span> <span class="kw1">JOIN</span> sales_cutoff <span class="kw1">WHERE</span> n1comp <span class="sy0">=</span> ? <span class="sy0">-</span><span class="sy0">-</span>and digits<span class="br0">(</span>n1fsyp<span class="br0">)</span> <span class="sy0">=</span> ? <span class="br0">)</span> <span class="kw1">SELECT</span> <span class="sy0">*</span> <span class="kw1">FROM</span> gld <span class="br0">)</span> ;
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Atime_consuming_queries_details_13" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #13</small></h3>
|
||
<div id="time_consuming_queries_details_13" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Atime_consuming_queries_details_13').on("shown.bs.collapse",function(){
|
||
var bars_47 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',1],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_47 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',2707],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var time_consuming_queries_details_13 = create_bargraph('time_consuming_queries_details_13', '', 'Queries', [ bars_47, lines_47 ], 'Avg. duration');
|
||
});
|
||
create_download_button(47, 'btn btn-default btn-xs');
|
||
add_download_button_event(47, 'time_consuming_queries_details_13');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>17</td><td>1</td><td>2s707ms</td><td>2s707ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Atime_consuming_queries_details_13">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-13">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-13">User(s) involved</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-13">App(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="time-consuming-queries-user-involved-rank-13" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> report - <b>Total duration:</b> 2s707ms - <b>Times executed:</b> 1 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-13">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="time-consuming-queries-app-involved-rank-13" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> [unknown] - <b>Total duration:</b> 2s707ms - <b>Times executed:</b> 1 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-13">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="time-consuming-queries-examples-rank-13" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-e-13-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i> <span class="kw1">CREATE</span> TEMP <span class="kw1">TABLE</span> GLD <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">WITH</span> SEG <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
GLEC<span class="sy0">,</span>
|
||
SEGM
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">VALUES</span> <span class="br0">(</span><span class="st0">'1CU'</span><span class="sy0">,</span>
|
||
<span class="st0">'Retail'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'1GR'</span><span class="sy0">,</span>
|
||
<span class="st0">'Greenhouse'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'1NU'</span><span class="sy0">,</span>
|
||
<span class="st0">'Nursery'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'1RE'</span><span class="sy0">,</span>
|
||
<span class="st0">'Retail'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'2WI'</span><span class="sy0">,</span>
|
||
<span class="st0">'Greenhouse'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'3BM'</span><span class="sy0">,</span>
|
||
<span class="st0">'Other'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'3CO'</span><span class="sy0">,</span>
|
||
<span class="st0">'Other'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'3PE'</span><span class="sy0">,</span>
|
||
<span class="st0">'Other'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'3PP'</span><span class="sy0">,</span>
|
||
<span class="st0">'Other'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'4CO'</span><span class="sy0">,</span>
|
||
<span class="st0">'Other'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'4RA'</span><span class="sy0">,</span>
|
||
<span class="st0">'Other'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'9MI'</span><span class="sy0">,</span>
|
||
<span class="st0">'Other'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'9SA'</span><span class="sy0">,</span>
|
||
<span class="st0">'Other'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'9TO'</span><span class="sy0">,</span>
|
||
<span class="st0">'Other'</span><span class="br0">)</span><span class="br0">)</span> X <span class="br0">(</span>GLEC<span class="sy0">,</span>
|
||
SEGM<span class="br0">)</span><span class="br0">)</span><span class="sy0">,</span>
|
||
ORD_CUTOFF <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw2">min</span><span class="br0">(</span>ADJ_ORDERDATE<span class="br0">)</span> FC_ODAT
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMP
|
||
<span class="kw1">WHERE</span>
|
||
ITER <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'Open Orders'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">version</span> <span class="sy0">=</span> <span class="st0">'b19'</span>
|
||
<span class="kw1">AND</span> ADJ_ORDERDATE <span class="sy0">></span><span class="sy0">=</span> <span class="st0">'2018-06-01'</span><span class="br0">)</span><span class="sy0">,</span> SALES_CUTOFF <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw2">max</span><span class="br0">(</span>FSPR<span class="br0">)</span> MAX_FSPR
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM<span class="br0">)</span><span class="sy0">,</span>
|
||
GLD <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
N1COMP COMP<span class="sy0">,</span>
|
||
N1CCYY FSYR<span class="sy0">,</span>
|
||
KPMAXP PERDS<span class="sy0">,</span>
|
||
N1FSPP PERD<span class="sy0">,</span>
|
||
<span class="kw2">to_char</span><span class="br0">(</span>N1FSYP<span class="sy0">,</span> <span class="st0">'FM0000'</span><span class="br0">)</span> FSPR<span class="sy0">,</span>
|
||
N1SD01 SDAT<span class="sy0">,</span>
|
||
N1ED01 EDAT<span class="sy0">,</span>
|
||
<span class="kw2">to_char</span><span class="br0">(</span>N1ED01<span class="sy0">,</span> <span class="st0">'yymm'</span><span class="br0">)</span> CAPR<span class="sy0">,</span>
|
||
N1ED01 <span class="sy0">-</span> N1SD01 <span class="sy0">+</span> <span class="nu0">1</span> NDAYS<span class="sy0">,</span>
|
||
<span class="kw1">CASE</span> <span class="kw1">WHEN</span> <span class="kw2">extract</span><span class="br0">(</span>MONTH <span class="kw1">FROM</span> N1ED01<span class="br0">)</span> <span class="sy0">></span><span class="sy0">=</span> <span class="nu0">6</span> <span class="kw1">THEN</span>
|
||
<span class="kw2">extract</span><span class="br0">(</span>YEAR <span class="kw1">FROM</span> N1ED01<span class="br0">)</span> <span class="sy0">+</span> <span class="nu0">1</span>
|
||
<span class="kw1">ELSE</span>
|
||
<span class="kw2">extract</span><span class="br0">(</span>YEAR <span class="kw1">FROM</span> N1ED01<span class="br0">)</span>
|
||
<span class="kw1">END</span> SSYR<span class="sy0">,</span>
|
||
<span class="kw2">to_char</span><span class="br0">(</span>
|
||
<span class="kw1">CASE</span> <span class="kw1">WHEN</span> <span class="kw2">extract</span><span class="br0">(</span>MONTH <span class="kw1">FROM</span> N1ED01<span class="br0">)</span> <span class="sy0">></span><span class="sy0">=</span> <span class="nu0">6</span> <span class="kw1">THEN</span>
|
||
<span class="kw2">extract</span><span class="br0">(</span>MONTH <span class="kw1">FROM</span> N1ED01<span class="br0">)</span> <span class="sy0">-</span> <span class="nu0">5</span>
|
||
<span class="kw1">ELSE</span>
|
||
<span class="kw2">extract</span><span class="br0">(</span>MONTH <span class="kw1">FROM</span> N1ED01<span class="br0">)</span> <span class="sy0">+</span> <span class="nu0">7</span>
|
||
<span class="kw1">END</span><span class="sy0">,</span> <span class="st0">'00'</span><span class="br0">)</span> SSPR <span class="sy0">-</span><span class="sy0">-</span>if the period <span class="kw2">date</span> <span class="kw1">IS</span> less than the <span class="kw1">FIRST</span> forecasted <span class="kw1">ORDER</span> it <span class="kw1">IS</span> actual <span class="kw1">FROM</span> perspective of the plan
|
||
<span class="sy0">,</span>
|
||
<span class="kw1">CASE</span> <span class="kw1">WHEN</span> MAX_FSPR <span class="sy0">=</span> <span class="kw2">to_char</span><span class="br0">(</span>N1FSYP<span class="sy0">,</span> <span class="st0">'FM0000'</span><span class="br0">)</span> <span class="kw1">THEN</span>
|
||
<span class="st0">'C'</span>
|
||
<span class="kw1">ELSE</span>
|
||
<span class="kw1">CASE</span> <span class="kw1">WHEN</span> SALES_CUTOFF<span class="sy0">.</span>MAX_FSPR <span class="sy0">></span> <span class="kw2">to_char</span><span class="br0">(</span>N1FSYP<span class="sy0">,</span> <span class="st0">'FM0000'</span><span class="br0">)</span> <span class="kw1">THEN</span>
|
||
<span class="st0">'P'</span>
|
||
<span class="kw1">ELSE</span>
|
||
<span class="st0">'F'</span>
|
||
<span class="kw1">END</span>
|
||
<span class="kw1">END</span> CM<span class="sy0">,</span>
|
||
<span class="kw1">CASE</span> <span class="kw1">WHEN</span> MAX_FSPR <span class="sy0">=</span> <span class="kw2">to_char</span><span class="br0">(</span>N1FSYP<span class="sy0">,</span> <span class="st0">'FM0000'</span><span class="br0">)</span> <span class="kw1">THEN</span>
|
||
<span class="st0">'C'</span>
|
||
<span class="kw1">ELSE</span>
|
||
<span class="kw1">CASE</span> <span class="kw1">WHEN</span> SALES_CUTOFF<span class="sy0">.</span>MAX_FSPR <span class="sy0">></span> <span class="kw2">to_char</span><span class="br0">(</span>N1FSYP<span class="sy0">,</span> <span class="st0">'FM0000'</span><span class="br0">)</span> <span class="kw1">THEN</span>
|
||
<span class="kw1">CASE</span> <span class="kw1">WHEN</span> <span class="kw2">substr</span><span class="br0">(</span>SALES_CUTOFF<span class="sy0">.</span>MAX_FSPR<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span> <span class="sy0">></span> <span class="kw2">substr</span><span class="br0">(</span><span class="kw2">to_char</span><span class="br0">(</span>N1FSYP<span class="sy0">,</span> <span class="st0">'FM0000'</span><span class="br0">)</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span> <span class="kw1">THEN</span>
|
||
<span class="st0">'P'</span>
|
||
<span class="kw1">ELSE</span>
|
||
<span class="st0">'C'</span>
|
||
<span class="kw1">END</span>
|
||
<span class="kw1">ELSE</span>
|
||
<span class="st0">'F'</span>
|
||
<span class="kw1">END</span>
|
||
<span class="kw1">END</span> CY
|
||
<span class="kw1">FROM</span>
|
||
LGDAT<span class="sy0">.</span>GLDATREF
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> LGDAT<span class="sy0">.</span>GLDATE <span class="kw1">ON</span> KPCOMP <span class="sy0">=</span> N1COMP
|
||
<span class="kw1">AND</span> KPCCYY <span class="sy0">=</span> N1CCYY
|
||
<span class="kw1">CROSS</span> <span class="kw1">JOIN</span> ORD_CUTOFF
|
||
<span class="kw1">CROSS</span> <span class="kw1">JOIN</span> SALES_CUTOFF
|
||
<span class="kw1">WHERE</span>
|
||
N1COMP <span class="sy0">=</span> <span class="nu0">93</span> <span class="sy0">-</span><span class="sy0">-</span>AND DIGITS<span class="br0">(</span>N1FSYP<span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'1901'</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
GLD
|
||
<span class="br0">)</span>;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-14 17:14:38
|
||
<b>Duration:</b> 2s707ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> report
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> [unknown]
|
||
</pre>
|
||
<div id="query-e-explain-13-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09CTE%20Scan%20on%20gld%20%20%28cost%3D90.94..95.22%20rows%3D214%20width%3D228%29%20%28actual%20time%3D301.996..349.721%20rows%3D174%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D78%0A%09%20%20CTE%20ord_cutoff%0A%09%20%20%20%20-%3E%20%20Result%20%20%28cost%3D0.81..0.82%20rows%3D1%20width%3D4%29%20%28actual%20time%3D19.020..19.020%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4%0A%09%20%20%20%20%20%20%20%20%20%20InitPlan%201%20%28returns%20%240%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Limit%20%20%28cost%3D0.42..0.81%20rows%3D1%20width%3D4%29%20%28actual%20time%3D19.007..19.009%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20osmp_adj_orderdate%20on%20osmp%20%20%28cost%3D0.42..245805.19%20rows%3D634345%20width%3D4%29%20%28actual%20time%3D18.973..18.973%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28adj_orderdate%20IS%20NOT%20NULL%29%20AND%20%28adj_orderdate%20%3E%3D%20%272018-06-01%27%3A%3Adate%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28iter%20%3C%3E%20%27Open%20Orders%27%3A%3Atext%29%20AND%20%28version%20%3D%20%27b19%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4%0A%09%20%20CTE%20sales_cutoff%0A%09%20%20%20%20-%3E%20%20Result%20%20%28cost%3D0.52..0.53%20rows%3D1%20width%3D32%29%20%28actual%20time%3D13.133..13.134%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D56%0A%09%20%20%20%20%20%20%20%20%20%20InitPlan%203%20%28returns%20%242%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Limit%20%20%28cost%3D0.42..0.52%20rows%3D1%20width%3D5%29%20%28actual%20time%3D13.126..13.128%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D56%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Only%20Scan%20Backward%20using%20osm_fspr%20on%20osm%20%20%28cost%3D0.42..72296.40%20rows%3D723143%20width%3D5%29%20%28actual%20time%3D13.125..13.125%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28fspr%20IS%20NOT%20NULL%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Fetches%3A%201%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D56%0A%09%20%20CTE%20gld%0A%09%20%20%20%20-%3E%20%20Hash%20Join%20%20%28cost%3D28.27..89.59%20rows%3D214%20width%3D200%29%20%28actual%20time%3D290.797..305.496%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28gldatref.n1ccyy%20%3D%20gldate.kpccyy%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D78%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D13.63..55.59%20rows%3D174%20width%3D60%29%20%28actual%20time%3D154.995..163.518%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D66%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D0.00..0.05%20rows%3D1%20width%3D32%29%20%28actual%20time%3D32.162..32.165%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D60%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20ord_cutoff%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D0%29%20%28actual%20time%3D19.023..19.024%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20sales_cutoff%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D32%29%20%28actual%20time%3D13.135..13.136%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D56%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20gldatref%20%20%28cost%3D13.63..53.80%20rows%3D174%20width%3D28%29%20%28actual%20time%3D122.815..131.244%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28n1comp%20%3D%20%2793%27%3A%3Anumeric%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20pk_gldatref%20%20%28cost%3D0.00..13.58%20rows%3D174%20width%3D0%29%20%28actual%20time%3D116.762..116.762%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28n1comp%20%3D%20%2793%27%3A%3Anumeric%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D14.45..14.45%20rows%3D15%20width%3D15%29%20%28actual%20time%3D57.253..57.253%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D12%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gldate%20%20%28cost%3D0.00..14.45%20rows%3D15%20width%3D15%29%20%28actual%20time%3D13.900..46.977%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28kpcomp%20%3D%20%2793%27%3A%3Anumeric%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20181%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D12%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> CTE Scan on gld (cost=90.94..95.22 rows=214 width=228) (actual time=301.996..349.721 rows=174 loops=1)
|
||
Buffers: shared hit=78
|
||
CTE ord_cutoff
|
||
-> Result (cost=0.81..0.82 rows=1 width=4) (actual time=19.020..19.020 rows=1 loops=1)
|
||
Buffers: shared hit=4
|
||
InitPlan 1 (returns $0)
|
||
-> Limit (cost=0.42..0.81 rows=1 width=4) (actual time=19.007..19.009 rows=1 loops=1)
|
||
Buffers: shared hit=4
|
||
-> Index Scan using osmp_adj_orderdate on osmp (cost=0.42..245805.19 rows=634345 width=4) (actual time=18.973..18.973 rows=1 loops=1)
|
||
Index Cond: ((adj_orderdate IS NOT NULL) AND (adj_orderdate >= '2018-06-01'::date))
|
||
Filter: ((iter <> 'Open Orders'::text) AND (version = 'b19'::text))
|
||
Buffers: shared hit=4
|
||
CTE sales_cutoff
|
||
-> Result (cost=0.52..0.53 rows=1 width=32) (actual time=13.133..13.134 rows=1 loops=1)
|
||
Buffers: shared hit=56
|
||
InitPlan 3 (returns $2)
|
||
-> Limit (cost=0.42..0.52 rows=1 width=5) (actual time=13.126..13.128 rows=1 loops=1)
|
||
Buffers: shared hit=56
|
||
-> Index Only Scan Backward using osm_fspr on osm (cost=0.42..72296.40 rows=723143 width=5) (actual time=13.125..13.125 rows=1 loops=1)
|
||
Index Cond: (fspr IS NOT NULL)
|
||
Heap Fetches: 1
|
||
Buffers: shared hit=56
|
||
CTE gld
|
||
-> Hash Join (cost=28.27..89.59 rows=214 width=200) (actual time=290.797..305.496 rows=174 loops=1)
|
||
Hash Cond: (gldatref.n1ccyy = gldate.kpccyy)
|
||
Buffers: shared hit=78
|
||
-> Nested Loop (cost=13.63..55.59 rows=174 width=60) (actual time=154.995..163.518 rows=174 loops=1)
|
||
Buffers: shared hit=66
|
||
-> Nested Loop (cost=0.00..0.05 rows=1 width=32) (actual time=32.162..32.165 rows=1 loops=1)
|
||
Buffers: shared hit=60
|
||
-> CTE Scan on ord_cutoff (cost=0.00..0.02 rows=1 width=0) (actual time=19.023..19.024 rows=1 loops=1)
|
||
Buffers: shared hit=4
|
||
-> CTE Scan on sales_cutoff (cost=0.00..0.02 rows=1 width=32) (actual time=13.135..13.136 rows=1 loops=1)
|
||
Buffers: shared hit=56
|
||
-> Bitmap Heap Scan on gldatref (cost=13.63..53.80 rows=174 width=28) (actual time=122.815..131.244 rows=174 loops=1)
|
||
Recheck Cond: (n1comp = '93'::numeric)
|
||
Heap Blocks: exact=2
|
||
Buffers: shared hit=6
|
||
-> Bitmap Index Scan on pk_gldatref (cost=0.00..13.58 rows=174 width=0) (actual time=116.762..116.762 rows=174 loops=1)
|
||
Index Cond: (n1comp = '93'::numeric)
|
||
Buffers: shared hit=4
|
||
-> Hash (cost=14.45..14.45 rows=15 width=15) (actual time=57.253..57.253 rows=15 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
Buffers: shared hit=12
|
||
-> Seq Scan on gldate (cost=0.00..14.45 rows=15 width=15) (actual time=13.900..46.977 rows=15 loops=1)
|
||
Filter: (kpcomp = '93'::numeric)
|
||
Rows Removed by Filter: 181
|
||
Buffers: shared hit=12
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-13">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>14</td>
|
||
<td>2s267ms</td>
|
||
<td>1
|
||
<p><a href="#Atime_consuming_queries_details_14" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>2s267ms</td>
|
||
<td>2s267ms</td>
|
||
<td>2s267ms</td>
|
||
<td id="time-consuming-queries-examples-details-rank-14">
|
||
<div id="query-e-14" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">SELECT</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>fb_val_loc <span class="sy0">*</span> r_rate<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Atime_consuming_queries_details_14" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #14</small></h3>
|
||
<div id="time_consuming_queries_details_14" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Atime_consuming_queries_details_14').on("shown.bs.collapse",function(){
|
||
var bars_48 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',1],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_48 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',2267],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var time_consuming_queries_details_14 = create_bargraph('time_consuming_queries_details_14', '', 'Queries', [ bars_48, lines_48 ], 'Avg. duration');
|
||
});
|
||
create_download_button(48, 'btn btn-default btn-xs');
|
||
add_download_button_event(48, 'time_consuming_queries_details_14');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 15</td><td>09</td><td>1</td><td>2s267ms</td><td>2s267ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Atime_consuming_queries_details_14">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-14">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-14">User(s) involved</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-14">App(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="time-consuming-queries-user-involved-rank-14" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> ptrowbridge_md5 - <b>Total duration:</b> 2s267ms - <b>Times executed:</b> 1 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-user-involved-rank-14">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="time-consuming-queries-app-involved-rank-14" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> DBeaver 6.0.0 - Main - <b>Total duration:</b> 2s267ms - <b>Times executed:</b> 1 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-app-involved-rank-14">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="time-consuming-queries-examples-rank-14" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-e-14-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">SELECT</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>fb_val_loc <span class="sy0">*</span> r_rate<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 09:19:53
|
||
<b>Duration:</b> 2s267ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> DBeaver 6.0.0 - Main
|
||
</pre>
|
||
<div id="query-e-explain-14-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Finalize%20Aggregate%20%20%28cost%3D64705.63..64705.64%20rows%3D1%20width%3D8%29%20%28actual%20time%3D2267.421..2267.421%20rows%3D1%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20read%3D57992%0A%09%20%20I%2FO%20Timings%3A%20read%3D1653.381%0A%09%20%20-%3E%20%20Gather%20%20%28cost%3D64705.42..64705.63%20rows%3D2%20width%3D8%29%20%28actual%20time%3D2267.407..2267.411%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20Workers%20Launched%3A%200%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D57992%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1653.381%0A%09%20%20%20%20%20%20%20%20-%3E%20%20Partial%20Aggregate%20%20%28cost%3D63705.42..63705.43%20rows%3D1%20width%3D8%29%20%28actual%20time%3D2267.403..2267.404%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D57992%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1653.381%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20%20%28cost%3D0.00..61256.81%20rows%3D326481%20width%3D10%29%20%28actual%20time%3D0.619..1766.451%20rows%3D784529%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D57992%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1653.381%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Finalize Aggregate (cost=64705.63..64705.64 rows=1 width=8) (actual time=2267.421..2267.421 rows=1 loops=1)
|
||
Buffers: shared read=57992
|
||
I/O Timings: read=1653.381
|
||
-> Gather (cost=64705.42..64705.63 rows=2 width=8) (actual time=2267.407..2267.411 rows=1 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 0
|
||
Buffers: shared read=57992
|
||
I/O Timings: read=1653.381
|
||
-> Partial Aggregate (cost=63705.42..63705.43 rows=1 width=8) (actual time=2267.403..2267.404 rows=1 loops=1)
|
||
Buffers: shared read=57992
|
||
I/O Timings: read=1653.381
|
||
-> Parallel Seq Scan on osm (cost=0.00..61256.81 rows=326481 width=10) (actual time=0.619..1766.451 rows=784529 loops=1)
|
||
Buffers: shared read=57992
|
||
I/O Timings: read=1653.381
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-14">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>15</td>
|
||
<td>0ms</td>
|
||
<td>2
|
||
<p><a href="#Atime_consuming_queries_details_15" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="time-consuming-queries-examples-details-rank-15">
|
||
<div id="query-e-15" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">COPY</span> lgdat<span class="sy0">.</span>pdrq <span class="br0">(</span>vcpart<span class="sy0">,</span>
|
||
"vcseq#"<span class="sy0">,</span>
|
||
vcqtyr<span class="sy0">,</span>
|
||
vcunit<span class="sy0">,</span>
|
||
vcdate<span class="sy0">,</span>
|
||
vctime<span class="sy0">,</span>
|
||
vctmzn<span class="sy0">,</span>
|
||
vcsrce<span class="sy0">,</span>
|
||
"vcref#"<span class="sy0">,</span>
|
||
vcstat<span class="sy0">,</span>
|
||
vcplnt<span class="br0">)</span>
|
||
<span class="kw1">TO</span> <span class="kw3">STDOUT</span>;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Atime_consuming_queries_details_15" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #15</small></h3>
|
||
<div id="time_consuming_queries_details_15" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Atime_consuming_queries_details_15').on("shown.bs.collapse",function(){
|
||
var bars_49 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',2],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_49 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var time_consuming_queries_details_15 = create_bargraph('time_consuming_queries_details_15', '', 'Queries', [ bars_49, lines_49 ], 'Avg. duration');
|
||
});
|
||
create_download_button(49, 'btn btn-default btn-xs');
|
||
add_download_button_event(49, 'time_consuming_queries_details_15');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Atime_consuming_queries_details_15">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-15">Examples</button> </p>
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="time-consuming-queries-examples-rank-15" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-15">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>16</td>
|
||
<td>0ms</td>
|
||
<td>2
|
||
<p><a href="#Atime_consuming_queries_details_16" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="time-consuming-queries-examples-details-rank-16">
|
||
<div id="query-e-16" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">LOCK</span> <span class="kw1">TABLE</span> lgdat<span class="sy0">.</span>serin <span class="kw1">IN</span> access share mode;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Atime_consuming_queries_details_16" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #16</small></h3>
|
||
<div id="time_consuming_queries_details_16" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Atime_consuming_queries_details_16').on("shown.bs.collapse",function(){
|
||
var bars_50 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',2],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_50 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var time_consuming_queries_details_16 = create_bargraph('time_consuming_queries_details_16', '', 'Queries', [ bars_50, lines_50 ], 'Avg. duration');
|
||
});
|
||
create_download_button(50, 'btn btn-default btn-xs');
|
||
add_download_button_event(50, 'time_consuming_queries_details_16');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Atime_consuming_queries_details_16">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-16">Examples</button> </p>
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="time-consuming-queries-examples-rank-16" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-16">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>17</td>
|
||
<td>0ms</td>
|
||
<td>2
|
||
<p><a href="#Atime_consuming_queries_details_17" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="time-consuming-queries-examples-details-rank-17">
|
||
<div id="query-e-17" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">COPY</span> lgdat<span class="sy0">.</span>vrtf <span class="br0">(</span>g7type<span class="sy0">,</span>
|
||
g7flda<span class="sy0">,</span>
|
||
g7fldn<span class="sy0">,</span>
|
||
g7fldt<span class="sy0">,</span>
|
||
g7desc<span class="br0">)</span>
|
||
<span class="kw1">TO</span> <span class="kw3">STDOUT</span>;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Atime_consuming_queries_details_17" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #17</small></h3>
|
||
<div id="time_consuming_queries_details_17" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Atime_consuming_queries_details_17').on("shown.bs.collapse",function(){
|
||
var bars_51 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',2],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_51 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var time_consuming_queries_details_17 = create_bargraph('time_consuming_queries_details_17', '', 'Queries', [ bars_51, lines_51 ], 'Avg. duration');
|
||
});
|
||
create_download_button(51, 'btn btn-default btn-xs');
|
||
add_download_button_event(51, 'time_consuming_queries_details_17');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Atime_consuming_queries_details_17">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-17">Examples</button> </p>
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="time-consuming-queries-examples-rank-17" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-17">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>18</td>
|
||
<td>0ms</td>
|
||
<td>2
|
||
<p><a href="#Atime_consuming_queries_details_18" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="time-consuming-queries-examples-details-rank-18">
|
||
<div id="query-e-18" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">LOCK</span> <span class="kw1">TABLE</span> lgdat<span class="sy0">.</span>altmh <span class="kw1">IN</span> access share mode;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Atime_consuming_queries_details_18" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #18</small></h3>
|
||
<div id="time_consuming_queries_details_18" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Atime_consuming_queries_details_18').on("shown.bs.collapse",function(){
|
||
var bars_52 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',2],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_52 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var time_consuming_queries_details_18 = create_bargraph('time_consuming_queries_details_18', '', 'Queries', [ bars_52, lines_52 ], 'Avg. duration');
|
||
});
|
||
create_download_button(52, 'btn btn-default btn-xs');
|
||
add_download_button_event(52, 'time_consuming_queries_details_18');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Atime_consuming_queries_details_18">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-18">Examples</button> </p>
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="time-consuming-queries-examples-rank-18" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-18">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>19</td>
|
||
<td>0ms</td>
|
||
<td>2
|
||
<p><a href="#Atime_consuming_queries_details_19" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="time-consuming-queries-examples-details-rank-19">
|
||
<div id="query-e-19" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">COPY</span> lgdat<span class="sy0">.</span>lbrd <span class="br0">(</span>n4btid<span class="sy0">,</span>
|
||
"n4ent#"<span class="sy0">,</span>
|
||
"n4tag#"<span class="sy0">,</span>
|
||
n4empd<span class="sy0">,</span>
|
||
n4empl<span class="sy0">,</span>
|
||
n4mode<span class="sy0">,</span>
|
||
n4dept<span class="sy0">,</span>
|
||
n4resc<span class="sy0">,</span>
|
||
n4rbtd<span class="sy0">,</span>
|
||
n4part<span class="sy0">,</span>
|
||
"n4seq#"<span class="sy0">,</span>
|
||
"n4job#"<span class="sy0">,</span>
|
||
"n4ref#"<span class="sy0">,</span>
|
||
n4indc<span class="sy0">,</span>
|
||
n4sdat<span class="sy0">,</span>
|
||
n4stim<span class="sy0">,</span>
|
||
n4edat<span class="sy0">,</span>
|
||
n4etim<span class="sy0">,</span>
|
||
n4tmzn<span class="sy0">,</span>
|
||
n4post<span class="sy0">,</span>
|
||
n4ratf<span class="sy0">,</span>
|
||
n4attc<span class="sy0">,</span>
|
||
n4cdep<span class="sy0">,</span>
|
||
n4cres<span class="sy0">,</span>
|
||
n4proc<span class="sy0">,</span>
|
||
n4rseq<span class="sy0">,</span>
|
||
n4rent<span class="sy0">,</span>
|
||
n4nhrs<span class="sy0">,</span>
|
||
n4fut01<span class="sy0">,</span>
|
||
n4fut02<span class="sy0">,</span>
|
||
n4fut03<span class="sy0">,</span>
|
||
n4fut04<span class="sy0">,</span>
|
||
n4fut05<span class="sy0">,</span>
|
||
n4fut06<span class="sy0">,</span>
|
||
n4fut07<span class="sy0">,</span>
|
||
n4fut08<span class="sy0">,</span>
|
||
n4fut09<span class="sy0">,</span>
|
||
n4fut10<span class="sy0">,</span>
|
||
n4edttm<span class="sy0">,</span>
|
||
n4inuse<span class="br0">)</span>
|
||
<span class="kw1">TO</span> <span class="kw3">STDOUT</span>;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Atime_consuming_queries_details_19" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #19</small></h3>
|
||
<div id="time_consuming_queries_details_19" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Atime_consuming_queries_details_19').on("shown.bs.collapse",function(){
|
||
var bars_53 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',2],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_53 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var time_consuming_queries_details_19 = create_bargraph('time_consuming_queries_details_19', '', 'Queries', [ bars_53, lines_53 ], 'Avg. duration');
|
||
});
|
||
create_download_button(53, 'btn btn-default btn-xs');
|
||
add_download_button_event(53, 'time_consuming_queries_details_19');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Atime_consuming_queries_details_19">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-19">Examples</button> </p>
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="time-consuming-queries-examples-rank-19" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-19">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>20</td>
|
||
<td>0ms</td>
|
||
<td>2
|
||
<p><a href="#Atime_consuming_queries_details_20" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="time-consuming-queries-examples-details-rank-20">
|
||
<div id="query-e-20" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">LOCK</span> <span class="kw1">TABLE</span> lgdat<span class="sy0">.</span>glcrc <span class="kw1">IN</span> access share mode;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Atime_consuming_queries_details_20" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #20</small></h3>
|
||
<div id="time_consuming_queries_details_20" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Atime_consuming_queries_details_20').on("shown.bs.collapse",function(){
|
||
var bars_54 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',2],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_54 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var time_consuming_queries_details_20 = create_bargraph('time_consuming_queries_details_20', '', 'Queries', [ bars_54, lines_54 ], 'Avg. duration');
|
||
});
|
||
create_download_button(54, 'btn btn-default btn-xs');
|
||
add_download_button_event(54, 'time_consuming_queries_details_20');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Atime_consuming_queries_details_20">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-20">Examples</button> </p>
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="time-consuming-queries-examples-rank-20" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#time-consuming-queries-examples-rank-20">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div><!-- end of time-consuming-queries -->
|
||
|
||
<div class="analysis-item row" id="most-frequent-queries">
|
||
<h2><i class="glyphicon icon-signal"></i> Most frequent queries (N)</h2>
|
||
<div class="col-md-12">
|
||
<table class="table table-striped" id="most-frequent-queries-table">
|
||
<thead>
|
||
<tr>
|
||
<th>Rank</th>
|
||
<th>Times executed</th>
|
||
<th>Total duration</th>
|
||
<th>Min duration</th>
|
||
<th>Max duration</th>
|
||
<th>Avg duration</th>
|
||
<th>Query</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
|
||
<tr>
|
||
<td>1</td>
|
||
<td>5,220
|
||
<p><a href="#Amost_frequent_queries_details_1" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="most-frequent-queries-examples-details-rank-1">
|
||
<div id="query-f-1" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">SELECT</span>
|
||
<span class="kw2">oid</span><span class="sy0">,</span>
|
||
tableoid<span class="sy0">,</span>
|
||
pol<span class="sy0">.</span>polname<span class="sy0">,</span>
|
||
pol<span class="sy0">.</span>polcmd<span class="sy0">,</span>
|
||
pol<span class="sy0">.</span>polpermissive<span class="sy0">,</span>
|
||
<span class="kw1">CASE</span> <span class="kw1">WHEN</span> pol<span class="sy0">.</span>polroles <span class="sy0">=</span> ? <span class="kw1">THEN</span>
|
||
<span class="kw1">NULL</span>
|
||
<span class="kw1">ELSE</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">array_to_string</span><span class="br0">(</span><span class="kw1">ARRAY</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">quote_ident</span><span class="br0">(</span>rolname<span class="br0">)</span>
|
||
<span class="kw1">FROM</span> pg_catalog<span class="sy0">.</span>pg_roles
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">oid</span> <span class="sy0">=</span> <span class="kw1">ANY</span> <span class="br0">(</span>pol<span class="sy0">.</span>polroles<span class="br0">)</span><span class="br0">)</span><span class="sy0">,</span> ?<span class="br0">)</span>
|
||
<span class="kw1">END</span> <span class="kw1">AS</span> polroles<span class="sy0">,</span> pg_catalog<span class="sy0">.</span><span class="kw2">pg_get_expr</span><span class="br0">(</span>pol<span class="sy0">.</span>polqual<span class="sy0">,</span> pol<span class="sy0">.</span>polrelid<span class="br0">)</span> <span class="kw1">AS</span> polqual<span class="sy0">,</span> pg_catalog<span class="sy0">.</span><span class="kw2">pg_get_expr</span><span class="br0">(</span>pol<span class="sy0">.</span>polwithcheck<span class="sy0">,</span> pol<span class="sy0">.</span>polrelid<span class="br0">)</span> <span class="kw1">AS</span> polwithcheck
|
||
<span class="kw1">FROM</span>
|
||
pg_catalog<span class="sy0">.</span>pg_policy pol
|
||
<span class="kw1">WHERE</span>
|
||
polrelid <span class="sy0">=</span> ?;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_queries_details_1" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #1</small></h3>
|
||
<div id="most_frequent_queries_details_1" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_queries_details_1').on("shown.bs.collapse",function(){
|
||
var bars_55 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',5220],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_55 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var most_frequent_queries_details_1 = create_bargraph('most_frequent_queries_details_1', '', 'Queries', [ bars_55, lines_55 ], 'Avg. duration');
|
||
});
|
||
create_download_button(55, 'btn btn-default btn-xs');
|
||
add_download_button_event(55, 'most_frequent_queries_details_1');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>16</td><td>2,610</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>16</td><td>2,610</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_queries_details_1">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-1">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-queries-examples-rank-1" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-1">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>2</td>
|
||
<td>5,212
|
||
<p><a href="#Amost_frequent_queries_details_2" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="most-frequent-queries-examples-details-rank-2">
|
||
<div id="query-f-2" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">SELECT</span>
|
||
a<span class="sy0">.</span>attnum<span class="sy0">,</span>
|
||
a<span class="sy0">.</span>attname<span class="sy0">,</span>
|
||
a<span class="sy0">.</span>atttypmod<span class="sy0">,</span>
|
||
a<span class="sy0">.</span>attstattarget<span class="sy0">,</span>
|
||
a<span class="sy0">.</span>attstorage<span class="sy0">,</span>
|
||
t<span class="sy0">.</span>typstorage<span class="sy0">,</span>
|
||
a<span class="sy0">.</span>attnotnull<span class="sy0">,</span>
|
||
a<span class="sy0">.</span>atthasdef<span class="sy0">,</span>
|
||
a<span class="sy0">.</span>attisdropped<span class="sy0">,</span>
|
||
a<span class="sy0">.</span>attlen<span class="sy0">,</span>
|
||
a<span class="sy0">.</span>attalign<span class="sy0">,</span>
|
||
a<span class="sy0">.</span>attislocal<span class="sy0">,</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">format_type</span><span class="br0">(</span>t<span class="sy0">.</span><span class="kw2">oid</span><span class="sy0">,</span> a<span class="sy0">.</span>atttypmod<span class="br0">)</span> <span class="kw1">AS</span> atttypname<span class="sy0">,</span>
|
||
<span class="kw2">array_to_string</span><span class="br0">(</span>a<span class="sy0">.</span>attoptions<span class="sy0">,</span> ?<span class="br0">)</span> <span class="kw1">AS</span> attoptions<span class="sy0">,</span>
|
||
<span class="kw1">CASE</span> <span class="kw1">WHEN</span> a<span class="sy0">.</span>attcollation <span class="sy0"><</span><span class="sy0">></span> t<span class="sy0">.</span>typcollation <span class="kw1">THEN</span>
|
||
a<span class="sy0">.</span>attcollation
|
||
<span class="kw1">ELSE</span>
|
||
?
|
||
<span class="kw1">END</span> <span class="kw1">AS</span> attcollation<span class="sy0">,</span>
|
||
a<span class="sy0">.</span>attidentity<span class="sy0">,</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">array_to_string</span><span class="br0">(</span><span class="kw1">ARRAY</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">quote_ident</span><span class="br0">(</span>option_name<span class="br0">)</span> <span class="sy0">|</span><span class="sy0">|</span> ? <span class="sy0">|</span><span class="sy0">|</span> pg_catalog<span class="sy0">.</span><span class="kw2">quote_literal</span><span class="br0">(</span>option_value<span class="br0">)</span>
|
||
<span class="kw1">FROM</span> pg_catalog<span class="sy0">.</span><span class="kw2">pg_options_to_table</span><span class="br0">(</span>attfdwoptions<span class="br0">)</span>
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
option_name<span class="br0">)</span><span class="sy0">,</span> e ?<span class="br0">)</span> <span class="kw1">AS</span> attfdwoptions<span class="sy0">,</span>
|
||
<span class="kw1">CASE</span> <span class="kw1">WHEN</span> a<span class="sy0">.</span>atthasmissing
|
||
<span class="kw1">AND</span> <span class="kw1">NOT</span> a<span class="sy0">.</span>attisdropped <span class="kw1">THEN</span>
|
||
a<span class="sy0">.</span>attmissingval
|
||
<span class="kw1">ELSE</span>
|
||
<span class="kw1">NULL</span>
|
||
<span class="kw1">END</span> <span class="kw1">AS</span> attmissingval
|
||
<span class="kw1">FROM</span>
|
||
pg_catalog<span class="sy0">.</span>pg_attribute a
|
||
<span class="kw1">LEFT</span> <span class="kw1">JOIN</span> pg_catalog<span class="sy0">.</span>pg_type t <span class="kw1">ON</span> a<span class="sy0">.</span>atttypid <span class="sy0">=</span> t<span class="sy0">.</span><span class="kw2">oid</span>
|
||
<span class="kw1">WHERE</span>
|
||
a<span class="sy0">.</span>attrelid <span class="sy0">=</span> ?::pg_catalog<span class="sy0">.</span><span class="kw2">oid</span>
|
||
<span class="kw1">AND</span> a<span class="sy0">.</span>attnum <span class="sy0">></span> ?::pg_catalog<span class="sy0">.</span><span class="kw2">int2</span>
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
a<span class="sy0">.</span>attnum;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_queries_details_2" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #2</small></h3>
|
||
<div id="most_frequent_queries_details_2" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_queries_details_2').on("shown.bs.collapse",function(){
|
||
var bars_56 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',5212],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_56 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var most_frequent_queries_details_2 = create_bargraph('most_frequent_queries_details_2', '', 'Queries', [ bars_56, lines_56 ], 'Avg. duration');
|
||
});
|
||
create_download_button(56, 'btn btn-default btn-xs');
|
||
add_download_button_event(56, 'most_frequent_queries_details_2');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>16</td><td>2,606</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>16</td><td>2,606</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_queries_details_2">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-2">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-queries-examples-rank-2" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-2">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>3</td>
|
||
<td>5,190
|
||
<p><a href="#Amost_frequent_queries_details_3" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="most-frequent-queries-examples-details-rank-3">
|
||
<div id="query-f-3" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">SELECT</span>
|
||
pr<span class="sy0">.</span>tableoid<span class="sy0">,</span>
|
||
pr<span class="sy0">.</span><span class="kw2">oid</span><span class="sy0">,</span>
|
||
p<span class="sy0">.</span>pubname
|
||
<span class="kw1">FROM</span>
|
||
pg_publication_rel pr<span class="sy0">,</span>
|
||
pg_publication p
|
||
<span class="kw1">WHERE</span>
|
||
pr<span class="sy0">.</span>prrelid <span class="sy0">=</span> ?
|
||
<span class="kw1">AND</span> p<span class="sy0">.</span><span class="kw2">oid</span> <span class="sy0">=</span> pr<span class="sy0">.</span>prpubid;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_queries_details_3" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #3</small></h3>
|
||
<div id="most_frequent_queries_details_3" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_queries_details_3').on("shown.bs.collapse",function(){
|
||
var bars_57 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',5190],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_57 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var most_frequent_queries_details_3 = create_bargraph('most_frequent_queries_details_3', '', 'Queries', [ bars_57, lines_57 ], 'Avg. duration');
|
||
});
|
||
create_download_button(57, 'btn btn-default btn-xs');
|
||
add_download_button_event(57, 'most_frequent_queries_details_3');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>16</td><td>2,595</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>16</td><td>2,595</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_queries_details_3">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-3">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-queries-examples-rank-3" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-3">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>4</td>
|
||
<td>5,160
|
||
<p><a href="#Amost_frequent_queries_details_4" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="most-frequent-queries-examples-details-rank-4">
|
||
<div id="query-f-4" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">SELECT</span>
|
||
at<span class="sy0">.</span>attname<span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">array_agg</span><span class="br0">(</span>acl
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
row_n<span class="br0">)</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
acl<span class="sy0">,</span>
|
||
row_n
|
||
<span class="kw1">FROM</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">unnest</span><span class="br0">(</span><span class="kw2">coalesce</span><span class="br0">(</span>at<span class="sy0">.</span>attacl<span class="sy0">,</span> pg_catalog<span class="sy0">.</span><span class="kw2">acldefault</span><span class="br0">(</span>?<span class="sy0">,</span> c<span class="sy0">.</span>relowner<span class="br0">)</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">WITH</span> ordinality <span class="kw1">AS</span> perm <span class="br0">(</span>acl<span class="sy0">,</span>
|
||
row_n<span class="br0">)</span>
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw1">NOT</span> <span class="kw1">EXISTS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
?
|
||
<span class="kw1">FROM</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">unnest</span><span class="br0">(</span><span class="kw2">coalesce</span><span class="br0">(</span>pip<span class="sy0">.</span>initprivs<span class="sy0">,</span> pg_catalog<span class="sy0">.</span><span class="kw2">acldefault</span><span class="br0">(</span>?<span class="sy0">,</span> c<span class="sy0">.</span>relowner<span class="br0">)</span><span class="br0">)</span><span class="br0">)</span> <span class="kw1">AS</span> init <span class="br0">(</span>init_acl<span class="br0">)</span>
|
||
<span class="kw1">WHERE</span>
|
||
acl <span class="sy0">=</span> init_acl<span class="br0">)</span><span class="br0">)</span> <span class="kw1">AS</span> foo<span class="br0">)</span> <span class="kw1">AS</span> attacl<span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">array_agg</span><span class="br0">(</span>acl
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
row_n<span class="br0">)</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
acl<span class="sy0">,</span>
|
||
row_n
|
||
<span class="kw1">FROM</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">unnest</span><span class="br0">(</span><span class="kw2">coalesce</span><span class="br0">(</span>pip<span class="sy0">.</span>initprivs<span class="sy0">,</span> pg_catalog<span class="sy0">.</span><span class="kw2">acldefault</span><span class="br0">(</span>?<span class="sy0">,</span> c<span class="sy0">.</span>relowner<span class="br0">)</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">WITH</span> ordinality <span class="kw1">AS</span> initp <span class="br0">(</span>acl<span class="sy0">,</span>
|
||
row_n<span class="br0">)</span>
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw1">NOT</span> <span class="kw1">EXISTS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
?
|
||
<span class="kw1">FROM</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">unnest</span><span class="br0">(</span><span class="kw2">coalesce</span><span class="br0">(</span>at<span class="sy0">.</span>attacl<span class="sy0">,</span> pg_catalog<span class="sy0">.</span><span class="kw2">acldefault</span><span class="br0">(</span>?<span class="sy0">,</span> c<span class="sy0">.</span>relowner<span class="br0">)</span><span class="br0">)</span><span class="br0">)</span> <span class="kw1">AS</span> permp <span class="br0">(</span>orig_acl<span class="br0">)</span>
|
||
<span class="kw1">WHERE</span>
|
||
acl <span class="sy0">=</span> orig_acl<span class="br0">)</span><span class="br0">)</span> <span class="kw1">AS</span> foo<span class="br0">)</span> <span class="kw1">AS</span> rattacl<span class="sy0">,</span> <span class="kw1">NULL</span> <span class="kw1">AS</span> initattacl<span class="sy0">,</span> <span class="kw1">NULL</span> <span class="kw1">AS</span> initrattacl
|
||
<span class="kw1">FROM</span>
|
||
pg_catalog<span class="sy0">.</span>pg_attribute at
|
||
<span class="kw1">JOIN</span> pg_catalog<span class="sy0">.</span>pg_class c <span class="kw1">ON</span> <span class="br0">(</span>at<span class="sy0">.</span>attrelid <span class="sy0">=</span> c<span class="sy0">.</span><span class="kw2">oid</span><span class="br0">)</span>
|
||
<span class="kw1">LEFT</span> <span class="kw1">JOIN</span> pg_catalog<span class="sy0">.</span>pg_init_privs pip <span class="kw1">ON</span> <span class="br0">(</span>at<span class="sy0">.</span>attrelid <span class="sy0">=</span> pip<span class="sy0">.</span>objoid
|
||
<span class="kw1">AND</span> pip<span class="sy0">.</span>classoid <span class="sy0">=</span> ?::pg_catalog<span class="sy0">.</span><span class="kw2">regclass</span>
|
||
<span class="kw1">AND</span> at<span class="sy0">.</span>attnum <span class="sy0">=</span> pip<span class="sy0">.</span>objsubid<span class="br0">)</span>
|
||
<span class="kw1">WHERE</span>
|
||
at<span class="sy0">.</span>attrelid <span class="sy0">=</span> ?::pg_catalog<span class="sy0">.</span><span class="kw2">oid</span>
|
||
<span class="kw1">AND</span> <span class="kw1">NOT</span> at<span class="sy0">.</span>attisdropped
|
||
<span class="kw1">AND</span> <span class="br0">(</span><span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">array_agg</span><span class="br0">(</span>acl
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
row_n<span class="br0">)</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
acl<span class="sy0">,</span>
|
||
row_n
|
||
<span class="kw1">FROM</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">unnest</span><span class="br0">(</span><span class="kw2">coalesce</span><span class="br0">(</span>at<span class="sy0">.</span>attacl<span class="sy0">,</span> pg_catalog<span class="sy0">.</span><span class="kw2">acldefault</span><span class="br0">(</span>?<span class="sy0">,</span> c<span class="sy0">.</span>relowner<span class="br0">)</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">WITH</span> ordinality <span class="kw1">AS</span> perm <span class="br0">(</span>acl<span class="sy0">,</span>
|
||
row_n<span class="br0">)</span>
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw1">NOT</span> <span class="kw1">EXISTS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
?
|
||
<span class="kw1">FROM</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">unnest</span><span class="br0">(</span><span class="kw2">coalesce</span><span class="br0">(</span>pip<span class="sy0">.</span>initprivs<span class="sy0">,</span> pg_catalog<span class="sy0">.</span><span class="kw2">acldefault</span><span class="br0">(</span>?<span class="sy0">,</span> c<span class="sy0">.</span>relowner<span class="br0">)</span><span class="br0">)</span><span class="br0">)</span> <span class="kw1">AS</span> init <span class="br0">(</span>init_acl<span class="br0">)</span>
|
||
<span class="kw1">WHERE</span>
|
||
acl <span class="sy0">=</span> init_acl<span class="br0">)</span><span class="br0">)</span> <span class="kw1">AS</span> foo<span class="br0">)</span>
|
||
<span class="kw1">IS</span> <span class="kw1">NOT</span> <span class="kw1">NULL</span>
|
||
<span class="kw1">OR</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">array_agg</span><span class="br0">(</span>acl
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
row_n<span class="br0">)</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
acl<span class="sy0">,</span>
|
||
row_n
|
||
<span class="kw1">FROM</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">unnest</span><span class="br0">(</span><span class="kw2">coalesce</span><span class="br0">(</span>pip<span class="sy0">.</span>initprivs<span class="sy0">,</span> pg_catalog<span class="sy0">.</span><span class="kw2">acldefault</span><span class="br0">(</span>?<span class="sy0">,</span> c<span class="sy0">.</span>relowner<span class="br0">)</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">WITH</span> ordinality <span class="kw1">AS</span> initp <span class="br0">(</span>acl<span class="sy0">,</span>
|
||
row_n<span class="br0">)</span>
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw1">NOT</span> <span class="kw1">EXISTS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
?
|
||
<span class="kw1">FROM</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">unnest</span><span class="br0">(</span><span class="kw2">coalesce</span><span class="br0">(</span>at<span class="sy0">.</span>attacl<span class="sy0">,</span> pg_catalog<span class="sy0">.</span><span class="kw2">acldefault</span><span class="br0">(</span>?<span class="sy0">,</span> c<span class="sy0">.</span>relowner<span class="br0">)</span><span class="br0">)</span><span class="br0">)</span> <span class="kw1">AS</span> permp <span class="br0">(</span>orig_acl<span class="br0">)</span>
|
||
<span class="kw1">WHERE</span>
|
||
acl <span class="sy0">=</span> orig_acl<span class="br0">)</span><span class="br0">)</span> <span class="kw1">AS</span> foo<span class="br0">)</span>
|
||
<span class="kw1">IS</span> <span class="kw1">NOT</span> <span class="kw1">NULL</span>
|
||
<span class="kw1">OR</span> <span class="kw1">NULL</span> <span class="kw1">IS</span> <span class="kw1">NOT</span> <span class="kw1">NULL</span>
|
||
<span class="kw1">OR</span> <span class="kw1">NULL</span> <span class="kw1">IS</span> <span class="kw1">NOT</span> <span class="kw1">NULL</span><span class="br0">)</span>
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
at<span class="sy0">.</span>attnum;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_queries_details_4" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #4</small></h3>
|
||
<div id="most_frequent_queries_details_4" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_queries_details_4').on("shown.bs.collapse",function(){
|
||
var bars_58 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',5160],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_58 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var most_frequent_queries_details_4 = create_bargraph('most_frequent_queries_details_4', '', 'Queries', [ bars_58, lines_58 ], 'Avg. duration');
|
||
});
|
||
create_download_button(58, 'btn btn-default btn-xs');
|
||
add_download_button_event(58, 'most_frequent_queries_details_4');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>16</td><td>2,580</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>16</td><td>2,580</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_queries_details_4">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-4">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-queries-examples-rank-4" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-4">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>5</td>
|
||
<td>912
|
||
<p><a href="#Amost_frequent_queries_details_5" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="most-frequent-queries-examples-details-rank-5">
|
||
<div id="query-f-5" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">SELECT</span>
|
||
? <span class="kw1">AS</span> chart_name<span class="sy0">,</span>
|
||
<span class="kw2">row_to_json</span><span class="br0">(</span>t<span class="br0">)</span> <span class="kw1">AS</span> chart_data
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw2">count</span><span class="br0">(</span><span class="sy0">*</span><span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
pg_stat_activity
|
||
<span class="kw1">WHERE</span>
|
||
datname <span class="sy0">=</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
datname
|
||
<span class="kw1">FROM</span>
|
||
pg_database
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">oid</span> <span class="sy0">=</span> ?<span class="br0">)</span><span class="br0">)</span> <span class="kw1">AS</span> "Total"<span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw2">count</span><span class="br0">(</span><span class="sy0">*</span><span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
pg_stat_activity
|
||
<span class="kw1">WHERE</span>
|
||
state <span class="sy0">=</span> ?
|
||
<span class="kw1">AND</span> datname <span class="sy0">=</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
datname
|
||
<span class="kw1">FROM</span>
|
||
pg_database
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">oid</span> <span class="sy0">=</span> ?<span class="br0">)</span><span class="br0">)</span> <span class="kw1">AS</span> "Active"<span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw2">count</span><span class="br0">(</span><span class="sy0">*</span><span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
pg_stat_activity
|
||
<span class="kw1">WHERE</span>
|
||
state <span class="sy0">=</span> ?
|
||
<span class="kw1">AND</span> datname <span class="sy0">=</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
datname
|
||
<span class="kw1">FROM</span>
|
||
pg_database
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">oid</span> <span class="sy0">=</span> ?<span class="br0">)</span><span class="br0">)</span> <span class="kw1">AS</span> "Idle"<span class="br0">)</span> t
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
? <span class="kw1">AS</span> chart_name<span class="sy0">,</span>
|
||
<span class="kw2">row_to_json</span><span class="br0">(</span>t<span class="br0">)</span> <span class="kw1">AS</span> chart_data
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>xact_commit<span class="br0">)</span> <span class="sy0">+</span> <span class="kw2">sum</span><span class="br0">(</span>xact_rollback<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
pg_stat_database
|
||
<span class="kw1">WHERE</span>
|
||
datname <span class="sy0">=</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
datname
|
||
<span class="kw1">FROM</span>
|
||
pg_database
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">oid</span> <span class="sy0">=</span> ?<span class="br0">)</span><span class="br0">)</span> <span class="kw1">AS</span> "Transactions"<span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>xact_commit<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
pg_stat_database
|
||
<span class="kw1">WHERE</span>
|
||
datname <span class="sy0">=</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
datname
|
||
<span class="kw1">FROM</span>
|
||
pg_database
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">oid</span> <span class="sy0">=</span> ?<span class="br0">)</span><span class="br0">)</span> <span class="kw1">AS</span> "Commits"<span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>xact_rollback<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
pg_stat_database
|
||
<span class="kw1">WHERE</span>
|
||
datname <span class="sy0">=</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
datname
|
||
<span class="kw1">FROM</span>
|
||
pg_database
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">oid</span> <span class="sy0">=</span> ?<span class="br0">)</span><span class="br0">)</span> <span class="kw1">AS</span> "Rollbacks"<span class="br0">)</span> t
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
? <span class="kw1">AS</span> chart_name<span class="sy0">,</span>
|
||
<span class="kw2">row_to_json</span><span class="br0">(</span>t<span class="br0">)</span> <span class="kw1">AS</span> chart_data
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>tup_inserted<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
pg_stat_database
|
||
<span class="kw1">WHERE</span>
|
||
datname <span class="sy0">=</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
datname
|
||
<span class="kw1">FROM</span>
|
||
pg_database
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">oid</span> <span class="sy0">=</span> ?<span class="br0">)</span><span class="br0">)</span> <span class="kw1">AS</span> "Inserts"<span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>tup_updated<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
pg_stat_database
|
||
<span class="kw1">WHERE</span>
|
||
datname <span class="sy0">=</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
datname
|
||
<span class="kw1">FROM</span>
|
||
pg_database
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">oid</span> <span class="sy0">=</span> ?<span class="br0">)</span><span class="br0">)</span> <span class="kw1">AS</span> "Updates"<span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>tup_deleted<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
pg_stat_database
|
||
<span class="kw1">WHERE</span>
|
||
datname <span class="sy0">=</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
datname
|
||
<span class="kw1">FROM</span>
|
||
pg_database
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">oid</span> <span class="sy0">=</span> ?<span class="br0">)</span><span class="br0">)</span> <span class="kw1">AS</span> "Deletes"<span class="br0">)</span> t
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
? <span class="kw1">AS</span> chart_name<span class="sy0">,</span>
|
||
<span class="kw2">row_to_json</span><span class="br0">(</span>t<span class="br0">)</span> <span class="kw1">AS</span> chart_data
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>tup_fetched<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
pg_stat_database
|
||
<span class="kw1">WHERE</span>
|
||
datname <span class="sy0">=</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
datname
|
||
<span class="kw1">FROM</span>
|
||
pg_database
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">oid</span> <span class="sy0">=</span> ?<span class="br0">)</span><span class="br0">)</span> <span class="kw1">AS</span> "Fetched"<span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>tup_returned<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
pg_stat_database
|
||
<span class="kw1">WHERE</span>
|
||
datname <span class="sy0">=</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
datname
|
||
<span class="kw1">FROM</span>
|
||
pg_database
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">oid</span> <span class="sy0">=</span> ?<span class="br0">)</span><span class="br0">)</span> <span class="kw1">AS</span> "Returned"<span class="br0">)</span> t
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
? <span class="kw1">AS</span> chart_name<span class="sy0">,</span>
|
||
<span class="kw2">row_to_json</span><span class="br0">(</span>t<span class="br0">)</span> <span class="kw1">AS</span> chart_data
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>blks_read<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
pg_stat_database
|
||
<span class="kw1">WHERE</span>
|
||
datname <span class="sy0">=</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
datname
|
||
<span class="kw1">FROM</span>
|
||
pg_database
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">oid</span> <span class="sy0">=</span> ?<span class="br0">)</span><span class="br0">)</span> <span class="kw1">AS</span> "Reads"<span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>blks_hit<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
pg_stat_database
|
||
<span class="kw1">WHERE</span>
|
||
datname <span class="sy0">=</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
datname
|
||
<span class="kw1">FROM</span>
|
||
pg_database
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">oid</span> <span class="sy0">=</span> ?<span class="br0">)</span><span class="br0">)</span> <span class="kw1">AS</span> "Hits"<span class="br0">)</span> t;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_queries_details_5" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #5</small></h3>
|
||
<div id="most_frequent_queries_details_5" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_queries_details_5').on("shown.bs.collapse",function(){
|
||
var bars_59 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',912],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_59 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var most_frequent_queries_details_5 = create_bargraph('most_frequent_queries_details_5', '', 'Queries', [ bars_59, lines_59 ], 'Avg. duration');
|
||
});
|
||
create_download_button(59, 'btn btn-default btn-xs');
|
||
add_download_button_event(59, 'most_frequent_queries_details_5');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 18</td><td>09</td><td>912</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_queries_details_5">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-5">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-queries-examples-rank-5" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-5">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>6</td>
|
||
<td>378
|
||
<p><a href="#Amost_frequent_queries_details_6" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="most-frequent-queries-examples-details-rank-6">
|
||
<div id="query-f-6" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">SELECT</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">format_type</span><span class="br0">(</span>?::pg_catalog<span class="sy0">.</span><span class="kw2">oid</span><span class="sy0">,</span> <span class="kw1">NULL</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_queries_details_6" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #6</small></h3>
|
||
<div id="most_frequent_queries_details_6" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_queries_details_6').on("shown.bs.collapse",function(){
|
||
var bars_60 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',378],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_60 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var most_frequent_queries_details_6 = create_bargraph('most_frequent_queries_details_6', '', 'Queries', [ bars_60, lines_60 ], 'Avg. duration');
|
||
});
|
||
create_download_button(60, 'btn btn-default btn-xs');
|
||
add_download_button_event(60, 'most_frequent_queries_details_6');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>16</td><td>189</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>16</td><td>189</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_queries_details_6">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-6">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-queries-examples-rank-6" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-6">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>7</td>
|
||
<td>190
|
||
<p><a href="#Amost_frequent_queries_details_7" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="most-frequent-queries-examples-details-rank-7">
|
||
<div id="query-f-7" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">SELECT</span>
|
||
proretset<span class="sy0">,</span>
|
||
prosrc<span class="sy0">,</span>
|
||
probin<span class="sy0">,</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">pg_get_function_arguments</span><span class="br0">(</span><span class="kw2">oid</span><span class="br0">)</span> <span class="kw1">AS</span> funcargs<span class="sy0">,</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">pg_get_function_identity_arguments</span><span class="br0">(</span><span class="kw2">oid</span><span class="br0">)</span> <span class="kw1">AS</span> funciargs<span class="sy0">,</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">pg_get_function_result</span><span class="br0">(</span><span class="kw2">oid</span><span class="br0">)</span> <span class="kw1">AS</span> funcresult<span class="sy0">,</span>
|
||
<span class="kw2">array_to_string</span><span class="br0">(</span>protrftypes<span class="sy0">,</span> ?<span class="br0">)</span> <span class="kw1">AS</span> protrftypes<span class="sy0">,</span>
|
||
prokind<span class="sy0">,</span>
|
||
provolatile<span class="sy0">,</span>
|
||
proisstrict<span class="sy0">,</span>
|
||
prosecdef<span class="sy0">,</span>
|
||
proleakproof<span class="sy0">,</span>
|
||
proconfig<span class="sy0">,</span>
|
||
procost<span class="sy0">,</span>
|
||
prorows<span class="sy0">,</span>
|
||
proparallel<span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
lanname
|
||
<span class="kw1">FROM</span>
|
||
pg_catalog<span class="sy0">.</span>pg_language
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">oid</span> <span class="sy0">=</span> prolang<span class="br0">)</span> <span class="kw1">AS</span> lanname
|
||
<span class="kw1">FROM</span>
|
||
pg_catalog<span class="sy0">.</span>pg_proc
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">oid</span> <span class="sy0">=</span> ?::pg_catalog<span class="sy0">.</span><span class="kw2">oid</span>;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_queries_details_7" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #7</small></h3>
|
||
<div id="most_frequent_queries_details_7" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_queries_details_7').on("shown.bs.collapse",function(){
|
||
var bars_61 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',190],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_61 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var most_frequent_queries_details_7 = create_bargraph('most_frequent_queries_details_7', '', 'Queries', [ bars_61, lines_61 ], 'Avg. duration');
|
||
});
|
||
create_download_button(61, 'btn btn-default btn-xs');
|
||
add_download_button_event(61, 'most_frequent_queries_details_7');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>16</td><td>95</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>16</td><td>95</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_queries_details_7">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-7">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-queries-examples-rank-7" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-7">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>8</td>
|
||
<td>98
|
||
<p><a href="#Amost_frequent_queries_details_8" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="most-frequent-queries-examples-details-rank-8">
|
||
<div id="query-f-8" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">SELECT</span>
|
||
oprkind<span class="sy0">,</span>
|
||
oprcode::pg_catalog<span class="sy0">.</span>regprocedure<span class="sy0">,</span>
|
||
oprleft::pg_catalog<span class="sy0">.</span>regtype<span class="sy0">,</span>
|
||
oprright::pg_catalog<span class="sy0">.</span>regtype<span class="sy0">,</span>
|
||
oprcom<span class="sy0">,</span>
|
||
oprnegate<span class="sy0">,</span>
|
||
oprrest::pg_catalog<span class="sy0">.</span>regprocedure<span class="sy0">,</span>
|
||
oprjoin::pg_catalog<span class="sy0">.</span>regprocedure<span class="sy0">,</span>
|
||
oprcanmerge<span class="sy0">,</span>
|
||
oprcanhash
|
||
<span class="kw1">FROM</span>
|
||
pg_catalog<span class="sy0">.</span>pg_operator
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">oid</span> <span class="sy0">=</span> ?::pg_catalog<span class="sy0">.</span><span class="kw2">oid</span>;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_queries_details_8" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #8</small></h3>
|
||
<div id="most_frequent_queries_details_8" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_queries_details_8').on("shown.bs.collapse",function(){
|
||
var bars_62 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',98],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_62 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var most_frequent_queries_details_8 = create_bargraph('most_frequent_queries_details_8', '', 'Queries', [ bars_62, lines_62 ], 'Avg. duration');
|
||
});
|
||
create_download_button(62, 'btn btn-default btn-xs');
|
||
add_download_button_event(62, 'most_frequent_queries_details_8');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>16</td><td>49</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>16</td><td>49</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_queries_details_8">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-8">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-queries-examples-rank-8" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-8">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>9</td>
|
||
<td>46
|
||
<p><a href="#Amost_frequent_queries_details_9" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="most-frequent-queries-examples-details-rank-9">
|
||
<div id="query-f-9" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i>discard <span class="kw1">ALL</span>;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_queries_details_9" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #9</small></h3>
|
||
<div id="most_frequent_queries_details_9" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_queries_details_9').on("shown.bs.collapse",function(){
|
||
var bars_63 = [['00:00',7],['01:00',1],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',5],['10:00',7],['11:00',1],['12:00',1],['13:00',1],['14:00',3],['15:00',2],['16:00',2],['17:00',16],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_63 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var most_frequent_queries_details_9 = create_bargraph('most_frequent_queries_details_9', '', 'Queries', [ bars_63, lines_63 ], 'Avg. duration');
|
||
});
|
||
create_download_button(63, 'btn btn-default btn-xs');
|
||
add_download_button_event(63, 'most_frequent_queries_details_9');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>01</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>17</td><td>11</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>00</td><td>7</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>09</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>14</td><td>2</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>15</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>16</td><td>2</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>17</td><td>5</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 18</td><td>09</td><td>4</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>10</td><td>7</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>11</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>12</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>13</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>14</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>15</td><td>1</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_queries_details_9">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-9">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-queries-examples-rank-9" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-9">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>10</td>
|
||
<td>42
|
||
<p><a href="#Amost_frequent_queries_details_10" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="most-frequent-queries-examples-details-rank-10">
|
||
<div id="query-f-10" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">SELECT</span>
|
||
t<span class="sy0">.</span>tableoid<span class="sy0">,</span>
|
||
t<span class="sy0">.</span><span class="kw2">oid</span><span class="sy0">,</span>
|
||
t<span class="sy0">.</span>relname <span class="kw1">AS</span> indexname<span class="sy0">,</span>
|
||
inh<span class="sy0">.</span>inhparent <span class="kw1">AS</span> parentidx<span class="sy0">,</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">pg_get_indexdef</span><span class="br0">(</span>i<span class="sy0">.</span>indexrelid<span class="br0">)</span> <span class="kw1">AS</span> indexdef<span class="sy0">,</span>
|
||
i<span class="sy0">.</span>indnkeyatts <span class="kw1">AS</span> indnkeyatts<span class="sy0">,</span>
|
||
i<span class="sy0">.</span>indnatts <span class="kw1">AS</span> indnatts<span class="sy0">,</span>
|
||
i<span class="sy0">.</span>indkey<span class="sy0">,</span>
|
||
i<span class="sy0">.</span>indisclustered<span class="sy0">,</span>
|
||
i<span class="sy0">.</span>indisreplident<span class="sy0">,</span>
|
||
t<span class="sy0">.</span>relpages<span class="sy0">,</span>
|
||
c<span class="sy0">.</span>contype<span class="sy0">,</span>
|
||
c<span class="sy0">.</span>conname<span class="sy0">,</span>
|
||
c<span class="sy0">.</span>condeferrable<span class="sy0">,</span>
|
||
c<span class="sy0">.</span>condeferred<span class="sy0">,</span>
|
||
c<span class="sy0">.</span>tableoid <span class="kw1">AS</span> contableoid<span class="sy0">,</span>
|
||
c<span class="sy0">.</span><span class="kw2">oid</span> <span class="kw1">AS</span> conoid<span class="sy0">,</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">pg_get_constraintdef</span><span class="br0">(</span>c<span class="sy0">.</span><span class="kw2">oid</span><span class="sy0">,</span> <span class="kw1">FALSE</span><span class="br0">)</span> <span class="kw1">AS</span> condef<span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
spcname
|
||
<span class="kw1">FROM</span>
|
||
pg_catalog<span class="sy0">.</span>pg_tablespace s
|
||
<span class="kw1">WHERE</span>
|
||
s<span class="sy0">.</span><span class="kw2">oid</span> <span class="sy0">=</span> t<span class="sy0">.</span>reltablespace<span class="br0">)</span> <span class="kw1">AS</span> <span class="kw1">TABLESPACE</span><span class="sy0">,</span> t<span class="sy0">.</span>reloptions <span class="kw1">AS</span> indreloptions<span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">array_agg</span><span class="br0">(</span>attnum
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
attnum<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
pg_catalog<span class="sy0">.</span>pg_attribute
|
||
<span class="kw1">WHERE</span>
|
||
attrelid <span class="sy0">=</span> i<span class="sy0">.</span>indexrelid
|
||
<span class="kw1">AND</span> attstattarget <span class="sy0">></span><span class="sy0">=</span> ?<span class="br0">)</span> <span class="kw1">AS</span> indstatcols<span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">array_agg</span><span class="br0">(</span>attstattarget
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
attnum<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
pg_catalog<span class="sy0">.</span>pg_attribute
|
||
<span class="kw1">WHERE</span>
|
||
attrelid <span class="sy0">=</span> i<span class="sy0">.</span>indexrelid
|
||
<span class="kw1">AND</span> attstattarget <span class="sy0">></span><span class="sy0">=</span> ?<span class="br0">)</span> <span class="kw1">AS</span> indstatvals
|
||
<span class="kw1">FROM</span>
|
||
pg_catalog<span class="sy0">.</span>pg_index i
|
||
<span class="kw1">JOIN</span> pg_catalog<span class="sy0">.</span>pg_class t <span class="kw1">ON</span> <span class="br0">(</span>t<span class="sy0">.</span><span class="kw2">oid</span> <span class="sy0">=</span> i<span class="sy0">.</span>indexrelid<span class="br0">)</span>
|
||
<span class="kw1">JOIN</span> pg_catalog<span class="sy0">.</span>pg_class t2 <span class="kw1">ON</span> <span class="br0">(</span>t2<span class="sy0">.</span><span class="kw2">oid</span> <span class="sy0">=</span> i<span class="sy0">.</span>indrelid<span class="br0">)</span>
|
||
<span class="kw1">LEFT</span> <span class="kw1">JOIN</span> pg_catalog<span class="sy0">.</span>pg_constraint c <span class="kw1">ON</span> <span class="br0">(</span>i<span class="sy0">.</span>indrelid <span class="sy0">=</span> c<span class="sy0">.</span>conrelid
|
||
<span class="kw1">AND</span> i<span class="sy0">.</span>indexrelid <span class="sy0">=</span> c<span class="sy0">.</span>conindid
|
||
<span class="kw1">AND</span> c<span class="sy0">.</span>contype <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">LEFT</span> <span class="kw1">JOIN</span> pg_catalog<span class="sy0">.</span>pg_inherits inh <span class="kw1">ON</span> <span class="br0">(</span>inh<span class="sy0">.</span>inhrelid <span class="sy0">=</span> indexrelid<span class="br0">)</span>
|
||
<span class="kw1">WHERE</span>
|
||
i<span class="sy0">.</span>indrelid <span class="sy0">=</span> ?::pg_catalog<span class="sy0">.</span><span class="kw2">oid</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span>i<span class="sy0">.</span>indisvalid
|
||
<span class="kw1">OR</span> t2<span class="sy0">.</span>relkind <span class="sy0">=</span> ?<span class="br0">)</span>
|
||
<span class="kw1">AND</span> i<span class="sy0">.</span>indisready
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
indexname;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_queries_details_10" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #10</small></h3>
|
||
<div id="most_frequent_queries_details_10" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_queries_details_10').on("shown.bs.collapse",function(){
|
||
var bars_64 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',42],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_64 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var most_frequent_queries_details_10 = create_bargraph('most_frequent_queries_details_10', '', 'Queries', [ bars_64, lines_64 ], 'Avg. duration');
|
||
});
|
||
create_download_button(64, 'btn btn-default btn-xs');
|
||
add_download_button_event(64, 'most_frequent_queries_details_10');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>16</td><td>21</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>16</td><td>21</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_queries_details_10">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-10">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-queries-examples-rank-10" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-10">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>11</td>
|
||
<td>37
|
||
<p><a href="#Amost_frequent_queries_details_11" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>5m27s</td>
|
||
<td>2s217ms</td>
|
||
<td>27s560ms</td>
|
||
<td>8s855ms</td>
|
||
<td id="most-frequent-queries-examples-details-rank-11">
|
||
<div id="query-f-11" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>create <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> gld<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>; <span class="kw1">WITH</span> un <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> ? srce <span class="sy0">,</span>od<span class="sy0">.</span>ssyr oseas <span class="sy0">,</span>od<span class="sy0">.</span>sdat odate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr sseas <span class="sy0">,</span>sd<span class="sy0">.</span>sdat sdate <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> om <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> sm <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> oy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_qty <span class="br0">)</span> qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_val_loc <span class="sy0">*</span> r_rate <span class="br0">)</span> sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_cst_loc <span class="sy0">*</span> c_rate <span class="br0">)</span> stdcost <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osmf osm <span class="kw1">INNER</span> <span class="kw1">JOIN</span> gld od <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_orderdate <span class="kw1">BETWEEN</span> od<span class="sy0">.</span>sdat <span class="kw1">AND</span> od<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld sd <span class="kw1">ON</span> osm<span class="sy0">.</span>fspr <span class="sy0">=</span> sd<span class="sy0">.</span>fspr <span class="kw1">WHERE</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>glec<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>fs_line<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">=</span> ? <span class="kw1">AND</span> calc_status <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>all orders <span class="kw1">OR</span> shipments <span class="kw1">FOR</span> the period <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>current year <span class="kw1">TO</span> <span class="kw2">date</span> orders od<span class="sy0">.</span>cy <span class="sy0">=</span> ? <span class="sy0">-</span><span class="sy0">-</span>current year <span class="kw1">TO</span> <span class="kw2">date</span> shipments <span class="kw1">OR</span> sd<span class="sy0">.</span>cy <span class="sy0">=</span> ? <span class="br0">)</span> <span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>open orders sd<span class="sy0">.</span>cm <span class="sy0">=</span> ? <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future fspr <span class="br0">)</span> <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> od<span class="sy0">.</span>ssyr <span class="sy0">,</span>od<span class="sy0">.</span>sdat <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr <span class="sy0">,</span>sd<span class="sy0">.</span>sdat <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">UNION</span> <span class="kw1">ALL</span> <span class="kw1">SELECT</span> ? srce <span class="sy0">,</span>od<span class="sy0">.</span>ssyr oseas <span class="sy0">,</span>od<span class="sy0">.</span>sdat odate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr sseas <span class="sy0">,</span>sd<span class="sy0">.</span>sdat sdate <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> om <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> sm <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> oy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_qty <span class="br0">)</span> qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_val_loc <span class="sy0">*</span> r_rate <span class="br0">)</span> sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_cst_loc <span class="sy0">*</span> c_rate <span class="br0">)</span> stdcost <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm osm <span class="kw1">INNER</span> <span class="kw1">JOIN</span> gld od <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_orderdate <span class="kw1">BETWEEN</span> od<span class="sy0">.</span>sdat <span class="kw1">AND</span> od<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld sd <span class="kw1">ON</span> osm<span class="sy0">.</span>fspr <span class="sy0">=</span> sd<span class="sy0">.</span>fspr <span class="kw1">WHERE</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>fs_line<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">=</span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>glec<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">AND</span> calc_status <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>all <span class="kw1">ORDER</span> <span class="kw1">OR</span> shipments <span class="kw1">FOR</span> the period <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>current year <span class="kw1">TO</span> <span class="kw2">date</span> orders od<span class="sy0">.</span>cy <span class="sy0">=</span> ? <span class="sy0">-</span><span class="sy0">-</span>current year <span class="kw1">TO</span> <span class="kw2">date</span> shipments <span class="kw1">OR</span> sd<span class="sy0">.</span>cy <span class="sy0">=</span> ? <span class="br0">)</span> <span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>open orders <span class="br0">(</span>calc_status <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span> <span class="kw1">AND</span> flag <span class="sy0">=</span> ?<span class="br0">)</span> <span class="br0">)</span> <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> od<span class="sy0">.</span>ssyr <span class="sy0">,</span>od<span class="sy0">.</span>sdat <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr <span class="sy0">,</span>sd<span class="sy0">.</span>sdat <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="br0">)</span> <span class="kw1">SELECT</span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>qty<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>stdcost<span class="br0">)</span> "cost" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>sales<span class="br0">)</span> sales <span class="kw1">FROM</span> un <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy ;
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_queries_details_11" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #11</small></h3>
|
||
<div id="most_frequent_queries_details_11" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_queries_details_11').on("shown.bs.collapse",function(){
|
||
var bars_65 = [['00:00',5],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',10],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',22],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_65 = [['00:00',11678],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',5788],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',9608],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var most_frequent_queries_details_11 = create_bargraph('most_frequent_queries_details_11', '', 'Queries', [ bars_65, lines_65 ], 'Avg. duration');
|
||
});
|
||
create_download_button(65, 'btn btn-default btn-xs');
|
||
add_download_button_event(65, 'most_frequent_queries_details_11');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>17</td><td>17</td><td>2m29s</td><td>8s786ms</td></tr><tr><td>Mar 15</td><td>00</td><td>5</td><td>58s394ms</td><td>11s678ms</td></tr><tr><td></td><td>17</td><td>5</td><td>1m2s</td><td>12s403ms</td></tr><tr><td>Mar 18</td><td>10</td><td>10</td><td>57s886ms</td><td>5s788ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_queries_details_11">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-11">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-user-involved-rank-11">User(s) involved</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-app-involved-rank-11">App(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="most-frequent-queries-user-involved-rank-11" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> report - <b>Total duration:</b> 1m37s - <b>Times executed:</b> 7 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-user-involved-rank-11">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="most-frequent-queries-app-involved-rank-11" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> [unknown] - <b>Total duration:</b> 1m37s - <b>Times executed:</b> 7 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-app-involved-rank-11">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-queries-examples-rank-11" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-f-11-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-14 17:15:07
|
||
<b>Duration:</b> 27s560ms
|
||
</pre>
|
||
<div id="query-f-explain-11-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Parallel%20Seq%20Scan%20on%20osmf%20osm%20%20%28cost%3D0.00..30498.70%20rows%3D308%20width%3D42%29%20%28actual%20time%3D0.033..24368.549%20rows%3D190996%20loops%3D1%29%0A%09%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20Rows%20Removed%20by%20Filter%3A%20227%0A%09%20%20Buffers%3A%20shared%20hit%3D12201%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Parallel Seq Scan on osmf osm (cost=0.00..30498.70 rows=308 width=42) (actual time=0.033..24368.549 rows=190996 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 227
|
||
Buffers: shared hit=12201
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-f-11-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-14 17:15:07
|
||
<b>Duration:</b> 27s559ms
|
||
</pre>
|
||
<div id="query-f-explain-11-2" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Parallel%20Seq%20Scan%20on%20osmf%20osm%20%20%28cost%3D0.00..30498.70%20rows%3D308%20width%3D42%29%20%28actual%20time%3D0.018..23110.458%20rows%3D167047%20loops%3D1%29%0A%09%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20Rows%20Removed%20by%20Filter%3A%20120%0A%09%20%20Buffers%3A%20shared%20hit%3D10779%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Parallel Seq Scan on osmf osm (cost=0.00..30498.70 rows=308 width=42) (actual time=0.018..23110.458 rows=167047 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 120
|
||
Buffers: shared hit=10779
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-f-11-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 17:30:39
|
||
<b>Duration:</b> 21s242ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> report
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> [unknown]
|
||
</pre>
|
||
<div id="query-f-explain-11-3" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Sort%20%20%28cost%3D99922.38..99922.88%20rows%3D200%20width%3D232%29%20%28actual%20time%3D21211.683..21211.708%20rows%3D317%20loops%3D1%29%0A%09%20%20Sort%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2069kB%0A%09%20%20Buffers%3A%20shared%20hit%3D4%20read%3D84336%20written%3D124%2C%20local%20hit%3D2068827%20read%3D1%0A%09%20%20I%2FO%20Timings%3A%20read%3D47930.799%20write%3D1.505%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D32534.94..99887.14%20rows%3D502%20width%3D232%29%20%28actual%20time%3D5942.671..21209.531%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D84336%20written%3D124%2C%20local%20hit%3D2068827%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D47930.799%20write%3D1.505%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D32534.94..32547.80%20rows%3D245%20width%3D232%29%20%28actual%20time%3D5942.670..6367.056%20rows%3D197%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%20written%3D122%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10489.172%20write%3D1.431%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D32534.94..32535.55%20rows%3D245%20width%3D185%29%20%28actual%20time%3D5942.642..5990.837%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2069497kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%20written%3D122%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10489.172%20write%3D1.431%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..32525.21%20rows%3D245%20width%3D185%29%20%28actual%20time%3D3.834..5526.120%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cm%20%3D%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%20written%3D122%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10489.172%20write%3D1.431%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..31588.56%20rows%3D738%20width%3D113%29%20%28actual%20time%3D3.809..3558.965%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%20written%3D122%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10489.166%20write%3D1.431%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..31572.50%20rows%3D738%20width%3D42%29%20%28actual%20time%3D3.660..3400.209%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%20written%3D122%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10489.166%20write%3D1.431%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osmf%20osm%20%20%28cost%3D0.00..30498.70%20rows%3D308%20width%3D42%29%20%28actual%20time%3D0.781..3631.234%20rows%3D135605%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20119%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%20written%3D122%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10489.166%20write%3D1.431%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.083..0.083%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.013..0.049%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od%20%20%28cost%3D0.14..0.94%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813627%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.006%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D67318.31..67331.81%20rows%3D257%20width%3D232%29%20%28actual%20time%3D14757.926..14842.413%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%20written%3D2%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D37441.627%20write%3D0.074%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D67318.31..67318.96%20rows%3D257%20width%3D178%29%20%28actual%20time%3D14757.905..14766.226%20rows%3D94732%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2016394kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%20written%3D2%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D37441.627%20write%3D0.074%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..67308.03%20rows%3D257%20width%3D178%29%20%28actual%20time%3D65.185..14658.975%20rows%3D94732%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28%28osm_1.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28osm_1.flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%20532866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%20written%3D2%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D37441.627%20write%3D0.074%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..65849.40%20rows%3D1114%20width%3D122%29%20%28actual%20time%3D65.171..12232.663%20rows%3D628518%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.fspr%20%3D%20sd_1.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%20written%3D2%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D37441.627%20write%3D0.074%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..65829.04%20rows%3D1114%20width%3D51%29%20%28actual%20time%3D65.104..11994.997%20rows%3D628518%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%20written%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D37441.627%20write%3D0.074%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20osm_1%20%20%28cost%3D0.00..64717.64%20rows%3D464%20width%3D51%29%20%28actual%20time%3D56.186..12707.976%20rows%3D209506%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2052157%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%20written%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D37441.627%20write%3D0.074%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.055..0.055%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.009..0.031%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od_1%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D628518%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1255196%0A%09%20%20-%3E%20%20HashAggregate%20%20%28cost%3D25.10..27.60%20rows%3D200%20width%3D232%29%20%28actual%20time%3D21210.361..21210.698%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Group%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D84336%20written%3D124%2C%20local%20hit%3D2068827%20read%3D1%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D47930.799%20write%3D1.505%0A%09%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..10.04%20rows%3D502%20width%3D232%29%20%28actual%20time%3D5942.675..21209.793%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D84336%20written%3D124%2C%20local%20hit%3D2068827%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D47930.799%20write%3D1.505%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Sort (cost=99922.38..99922.88 rows=200 width=232) (actual time=21211.683..21211.708 rows=317 loops=1)
|
||
Sort Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Sort Method: quicksort Memory: 69kB
|
||
Buffers: shared hit=4 read=84336 written=124, local hit=2068827 read=1
|
||
I/O Timings: read=47930.799 write=1.505
|
||
CTE un
|
||
-> Append (cost=32534.94..99887.14 rows=502 width=232) (actual time=5942.671..21209.531 rows=317 loops=1)
|
||
Buffers: shared hit=1 read=84336 written=124, local hit=2068827 read=1
|
||
I/O Timings: read=47930.799 write=1.505
|
||
-> GroupAggregate (cost=32534.94..32547.80 rows=245 width=232) (actual time=5942.670..6367.056 rows=197 loops=1)
|
||
Group Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Buffers: shared read=26345 written=122, local hit=813629 read=1
|
||
I/O Timings: read=10489.172 write=1.431
|
||
-> Sort (cost=32534.94..32535.55 rows=245 width=185) (actual time=5942.642..5990.837 rows=406814 loops=1)
|
||
Sort Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 69497kB
|
||
Buffers: shared read=26345 written=122, local hit=813629 read=1
|
||
I/O Timings: read=10489.172 write=1.431
|
||
-> Nested Loop (cost=1006.06..32525.21 rows=245 width=185) (actual time=3.834..5526.120 rows=406814 loops=1)
|
||
Join Filter: ((od.cy = 'C'::text) OR (sd.cy = 'C'::text) OR (sd.cm = 'F'::text))
|
||
Buffers: shared read=26345 written=122, local hit=813629 read=1
|
||
I/O Timings: read=10489.172 write=1.431
|
||
-> Hash Left Join (cost=1005.91..31588.56 rows=738 width=113) (actual time=3.809..3558.965 rows=406814 loops=1)
|
||
Hash Cond: (osm.fspr = sd.fspr)
|
||
Buffers: shared read=26345 written=122, local hit=2
|
||
I/O Timings: read=10489.166 write=1.431
|
||
-> Gather (cost=1000.00..31572.50 rows=738 width=42) (actual time=3.660..3400.209 rows=406814 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared read=26345 written=122
|
||
I/O Timings: read=10489.166 write=1.431
|
||
-> Parallel Seq Scan on osmf osm (cost=0.00..30498.70 rows=308 width=42) (actual time=0.781..3631.234 rows=135605 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 119
|
||
Buffers: shared read=26345 written=122
|
||
I/O Timings: read=10489.166 write=1.431
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.083..0.083 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd (cost=0.00..3.74 rows=174 width=108) (actual time=0.013..0.049 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od (cost=0.14..0.94 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=406814)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=813627 read=1
|
||
I/O Timings: read=0.006
|
||
-> GroupAggregate (cost=67318.31..67331.81 rows=257 width=232) (actual time=14757.926..14842.413 rows=120 loops=1)
|
||
Group Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Buffers: shared hit=1 read=57991 written=2, local hit=1255198
|
||
I/O Timings: read=37441.627 write=0.074
|
||
-> Sort (cost=67318.31..67318.96 rows=257 width=178) (actual time=14757.905..14766.226 rows=94732 loops=1)
|
||
Sort Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 16394kB
|
||
Buffers: shared hit=1 read=57991 written=2, local hit=1255198
|
||
I/O Timings: read=37441.627 write=0.074
|
||
-> Nested Loop (cost=1006.06..67308.03 rows=257 width=178) (actual time=65.185..14658.975 rows=94732 loops=1)
|
||
Join Filter: ((od_1.cy = 'C'::text) OR (sd_1.cy = 'C'::text) OR ((osm_1.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (osm_1.flag = 'REMAINDER'::text)))
|
||
Rows Removed by Join Filter: 532866
|
||
Buffers: shared hit=1 read=57991 written=2, local hit=1255198
|
||
I/O Timings: read=37441.627 write=0.074
|
||
-> Hash Left Join (cost=1005.91..65849.40 rows=1114 width=122) (actual time=65.171..12232.663 rows=628518 loops=1)
|
||
Hash Cond: (osm_1.fspr = sd_1.fspr)
|
||
Buffers: shared hit=1 read=57991 written=2, local hit=2
|
||
I/O Timings: read=37441.627 write=0.074
|
||
-> Gather (cost=1000.00..65829.04 rows=1114 width=51) (actual time=65.104..11994.997 rows=628518 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=1 read=57991 written=2
|
||
I/O Timings: read=37441.627 write=0.074
|
||
-> Parallel Seq Scan on osm osm_1 (cost=0.00..64717.64 rows=464 width=51) (actual time=56.186..12707.976 rows=209506 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 52157
|
||
Buffers: shared hit=1 read=57991 written=2
|
||
I/O Timings: read=37441.627 write=0.074
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.055..0.055 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_1 (cost=0.00..3.74 rows=174 width=108) (actual time=0.009..0.031 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od_1 (cost=0.14..0.93 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=628518)
|
||
Index Cond: ((osm_1.adj_orderdate >= sdat) AND (osm_1.adj_orderdate <= edat))
|
||
Buffers: local hit=1255196
|
||
-> HashAggregate (cost=25.10..27.60 rows=200 width=232) (actual time=21210.361..21210.698 rows=317 loops=1)
|
||
Group Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Buffers: shared hit=1 read=84336 written=124, local hit=2068827 read=1
|
||
I/O Timings: read=47930.799 write=1.505
|
||
-> CTE Scan on un (cost=0.00..10.04 rows=502 width=232) (actual time=5942.675..21209.793 rows=317 loops=1)
|
||
Buffers: shared hit=1 read=84336 written=124, local hit=2068827 read=1
|
||
I/O Timings: read=47930.799 write=1.505
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-11">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>12</td>
|
||
<td>34
|
||
<p><a href="#Amost_frequent_queries_details_12" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="most-frequent-queries-examples-details-rank-12">
|
||
<div id="query-f-12" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">SELECT</span>
|
||
typ<span class="sy0">.</span><span class="kw2">oid</span><span class="sy0">,</span>
|
||
att<span class="sy0">.</span>attname<span class="sy0">,</span>
|
||
att<span class="sy0">.</span>atttypid
|
||
<span class="kw1">FROM</span>
|
||
pg_type <span class="kw1">AS</span> typ
|
||
<span class="kw1">JOIN</span> pg_namespace <span class="kw1">AS</span> ns <span class="kw1">ON</span> <span class="br0">(</span>ns<span class="sy0">.</span><span class="kw2">oid</span> <span class="sy0">=</span> typ<span class="sy0">.</span>typnamespace<span class="br0">)</span>
|
||
<span class="kw1">JOIN</span> pg_class <span class="kw1">AS</span> cls <span class="kw1">ON</span> <span class="br0">(</span>cls<span class="sy0">.</span><span class="kw2">oid</span> <span class="sy0">=</span> typ<span class="sy0">.</span>typrelid<span class="br0">)</span>
|
||
<span class="kw1">JOIN</span> pg_attribute <span class="kw1">AS</span> att <span class="kw1">ON</span> <span class="br0">(</span>att<span class="sy0">.</span>attrelid <span class="sy0">=</span> typ<span class="sy0">.</span>typrelid<span class="br0">)</span>
|
||
<span class="kw1">WHERE</span> <span class="br0">(</span>typ<span class="sy0">.</span>typtype <span class="sy0">=</span> ?
|
||
<span class="kw1">AND</span> cls<span class="sy0">.</span>relkind <span class="sy0">=</span> ?<span class="br0">)</span>
|
||
<span class="kw1">AND</span> attnum <span class="sy0">></span> ?
|
||
<span class="kw1">AND</span> <span class="kw1">NOT</span> attisdropped
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
typ<span class="sy0">.</span>typname<span class="sy0">,</span>
|
||
att<span class="sy0">.</span>attnum;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_queries_details_12" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #12</small></h3>
|
||
<div id="most_frequent_queries_details_12" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_queries_details_12').on("shown.bs.collapse",function(){
|
||
var bars_66 = [['00:00',5],['01:00',1],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',5],['10:00',4],['11:00',1],['12:00',1],['13:00',1],['14:00',3],['15:00',2],['16:00',3],['17:00',8],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_66 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var most_frequent_queries_details_12 = create_bargraph('most_frequent_queries_details_12', '', 'Queries', [ bars_66, lines_66 ], 'Avg. duration');
|
||
});
|
||
create_download_button(66, 'btn btn-default btn-xs');
|
||
add_download_button_event(66, 'most_frequent_queries_details_12');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>01</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>17</td><td>4</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>00</td><td>5</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>09</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>14</td><td>2</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>15</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>16</td><td>2</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>17</td><td>4</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 18</td><td>09</td><td>4</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>10</td><td>4</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>11</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>12</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>13</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>14</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>15</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_queries_details_12">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-12">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-queries-examples-rank-12" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-12">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>13</td>
|
||
<td>34
|
||
<p><a href="#Amost_frequent_queries_details_13" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="most-frequent-queries-examples-details-rank-13">
|
||
<div id="query-f-13" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">SELECT</span>
|
||
pg_type<span class="sy0">.</span><span class="kw2">oid</span><span class="sy0">,</span>
|
||
enumlabel
|
||
<span class="kw1">FROM</span>
|
||
pg_enum
|
||
<span class="kw1">JOIN</span> pg_type <span class="kw1">ON</span> pg_type<span class="sy0">.</span><span class="kw2">oid</span> <span class="sy0">=</span> enumtypid
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
<span class="kw2">oid</span><span class="sy0">,</span>
|
||
enumsortorder;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_queries_details_13" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #13</small></h3>
|
||
<div id="most_frequent_queries_details_13" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_queries_details_13').on("shown.bs.collapse",function(){
|
||
var bars_67 = [['00:00',5],['01:00',1],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',5],['10:00',4],['11:00',1],['12:00',1],['13:00',1],['14:00',3],['15:00',2],['16:00',3],['17:00',8],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_67 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var most_frequent_queries_details_13 = create_bargraph('most_frequent_queries_details_13', '', 'Queries', [ bars_67, lines_67 ], 'Avg. duration');
|
||
});
|
||
create_download_button(67, 'btn btn-default btn-xs');
|
||
add_download_button_event(67, 'most_frequent_queries_details_13');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>01</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>17</td><td>4</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>00</td><td>5</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>09</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>14</td><td>2</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>15</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>16</td><td>2</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>17</td><td>4</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 18</td><td>09</td><td>4</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>10</td><td>4</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>11</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>12</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>13</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>14</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>15</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_queries_details_13">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-13">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-queries-examples-rank-13" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-13">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>14</td>
|
||
<td>28
|
||
<p><a href="#Amost_frequent_queries_details_14" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="most-frequent-queries-examples-details-rank-14">
|
||
<div id="query-f-14" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing <span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span> <span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> <span class="sy0">*</span> <span class="kw1">FROM</span> <span class="br0">(</span> <span class="kw1">VALUES</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="br0">)</span> x<span class="br0">(</span>m<span class="sy0">,</span>s<span class="br0">)</span> <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq <span class="sy0">,</span>base <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span>order_month <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>part_descr <span class="sy0">,</span>bill_cust_descr <span class="sy0">,</span>ship_cust_descr <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm_fcpool <span class="kw1">WHERE</span> quota_rep_descr <span class="sy0">=</span> ? <span class="kw1">AND</span> segm <span class="sy0">=</span> ? <span class="kw1">AND</span> mod_chan <span class="sy0">=</span> ? <span class="kw1">AND</span> shipto_group <span class="sy0">=</span> ? <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span>order_month <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>part_descr <span class="sy0">,</span>bill_cust_descr <span class="sy0">,</span>ship_cust_descr <span class="br0">)</span> <span class="sy0">,</span>months <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>order_month <span class="sy0">,</span>mseq<span class="sy0">.</span>s seq <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> base <span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>order_month <span class="sy0">,</span>s <span class="br0">)</span> <span class="sy0">,</span>mpvt <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_month <span class="sy0">,</span>seq <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0">=</span> ?<span class="br0">)</span> "? base qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> ?<span class="br0">)</span> "? adj qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? tot qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0">=</span> ?<span class="br0">)</span> "? base value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> ?<span class="br0">)</span> "? adj value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? tot value_usd" <span class="kw1">FROM</span> months <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_month <span class="sy0">,</span>seq <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> seq <span class="kw1">ASC</span> <span class="br0">)</span> <span class="sy0">,</span>mlist <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> mseq<span class="sy0">.</span>m order_month <span class="sy0">,</span>"? qty" <span class="sy0">,</span>"? base qty" <span class="sy0">,</span>"? adj qty" <span class="sy0">,</span>"? tot qty" <span class="sy0">,</span>"? value_usd" <span class="sy0">,</span>"? base value_usd" <span class="sy0">,</span>"? adj value_usd" <span class="sy0">,</span>"? tot value_usd" <span class="kw1">FROM</span> mseq <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> mseq<span class="sy0">.</span>s <span class="kw1">ASC</span> <span class="br0">)</span> <span class="sy0">,</span>totals <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> months <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="br0">)</span> <span class="kw1">SELECT</span> jsonb_build_object<span class="br0">(</span> ? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> months<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> mlist<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> base<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> totals<span class="br0">)</span> <span class="br0">)</span> package;
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_queries_details_14" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #14</small></h3>
|
||
<div id="most_frequent_queries_details_14" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_queries_details_14').on("shown.bs.collapse",function(){
|
||
var bars_68 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',13],['11:00',14],['12:00',1],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_68 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var most_frequent_queries_details_14 = create_bargraph('most_frequent_queries_details_14', '', 'Queries', [ bars_68, lines_68 ], 'Avg. duration');
|
||
});
|
||
create_download_button(68, 'btn btn-default btn-xs');
|
||
add_download_button_event(68, 'most_frequent_queries_details_14');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>10</td><td>13</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>11</td><td>14</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>12</td><td>1</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_queries_details_14">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-14">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-queries-examples-rank-14" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-14">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>15</td>
|
||
<td>25
|
||
<p><a href="#Amost_frequent_queries_details_15" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="most-frequent-queries-examples-details-rank-15">
|
||
<div id="query-f-15" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">BEGIN</span>;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_queries_details_15" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #15</small></h3>
|
||
<div id="most_frequent_queries_details_15" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_queries_details_15').on("shown.bs.collapse",function(){
|
||
var bars_69 = [['00:00',2],['01:00',1],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',3],['10:00',2],['11:00',2],['12:00',1],['13:00',1],['14:00',4],['15:00',2],['16:00',5],['17:00',2],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_69 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var most_frequent_queries_details_15 = create_bargraph('most_frequent_queries_details_15', '', 'Queries', [ bars_69, lines_69 ], 'Avg. duration');
|
||
});
|
||
create_download_button(69, 'btn btn-default btn-xs');
|
||
add_download_button_event(69, 'most_frequent_queries_details_15');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>01</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>10</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>11</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>17</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>00</td><td>2</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>09</td><td>2</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>14</td><td>3</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>15</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>16</td><td>4</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>17</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 18</td><td>09</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>10</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>11</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>12</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>13</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>14</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>15</td><td>1</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_queries_details_15">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-15">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-queries-examples-rank-15" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-15">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>16</td>
|
||
<td>25
|
||
<p><a href="#Amost_frequent_queries_details_16" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="most-frequent-queries-examples-details-rank-16">
|
||
<div id="query-f-16" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">COMMIT</span>;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_queries_details_16" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #16</small></h3>
|
||
<div id="most_frequent_queries_details_16" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_queries_details_16').on("shown.bs.collapse",function(){
|
||
var bars_70 = [['00:00',3],['01:00',1],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',3],['10:00',1],['11:00',2],['12:00',1],['13:00',1],['14:00',5],['15:00',2],['16:00',4],['17:00',2],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_70 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var most_frequent_queries_details_16 = create_bargraph('most_frequent_queries_details_16', '', 'Queries', [ bars_70, lines_70 ], 'Avg. duration');
|
||
});
|
||
create_download_button(70, 'btn btn-default btn-xs');
|
||
add_download_button_event(70, 'most_frequent_queries_details_16');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>01</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>11</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>17</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>00</td><td>3</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>09</td><td>2</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>14</td><td>4</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>15</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>16</td><td>4</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>17</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 18</td><td>09</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>10</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>11</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>12</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>13</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>14</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>15</td><td>1</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_queries_details_16">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-16">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-queries-examples-rank-16" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-16">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>17</td>
|
||
<td>24
|
||
<p><a href="#Amost_frequent_queries_details_17" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="most-frequent-queries-examples-details-rank-17">
|
||
<div id="query-f-17" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing <span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span> <span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> <span class="sy0">*</span> <span class="kw1">FROM</span> <span class="br0">(</span> <span class="kw1">VALUES</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="br0">)</span> x<span class="br0">(</span>m<span class="sy0">,</span>s<span class="br0">)</span> <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq <span class="sy0">,</span>base <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span>order_month <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>part_descr <span class="sy0">,</span>bill_cust_descr <span class="sy0">,</span>ship_cust_descr <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm_fcpool <span class="kw1">WHERE</span> quota_rep_descr <span class="sy0">=</span> ? <span class="kw1">AND</span> segm <span class="sy0">=</span> ? <span class="kw1">AND</span> mod_chan <span class="sy0">=</span> ? <span class="kw1">AND</span> shipto_group <span class="sy0">=</span> ? <span class="kw1">AND</span> part_descr <span class="sy0">=</span> ? <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span>order_month <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>part_descr <span class="sy0">,</span>bill_cust_descr <span class="sy0">,</span>ship_cust_descr <span class="br0">)</span> <span class="sy0">,</span>months <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>order_month <span class="sy0">,</span>mseq<span class="sy0">.</span>s seq <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> base <span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>order_month <span class="sy0">,</span>s <span class="br0">)</span> <span class="sy0">,</span>mpvt <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_month <span class="sy0">,</span>seq <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0">=</span> ?<span class="br0">)</span> "? base qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> ?<span class="br0">)</span> "? adj qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? tot qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0">=</span> ?<span class="br0">)</span> "? base value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> ?<span class="br0">)</span> "? adj value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? tot value_usd" <span class="kw1">FROM</span> months <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_month <span class="sy0">,</span>seq <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> seq <span class="kw1">ASC</span> <span class="br0">)</span> <span class="sy0">,</span>mlist <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> mseq<span class="sy0">.</span>m order_month <span class="sy0">,</span>"? qty" <span class="sy0">,</span>"? base qty" <span class="sy0">,</span>"? adj qty" <span class="sy0">,</span>"? tot qty" <span class="sy0">,</span>"? value_usd" <span class="sy0">,</span>"? base value_usd" <span class="sy0">,</span>"? adj value_usd" <span class="sy0">,</span>"? tot value_usd" <span class="kw1">FROM</span> mseq <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> mseq<span class="sy0">.</span>s <span class="kw1">ASC</span> <span class="br0">)</span> <span class="sy0">,</span>totals <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> months <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="br0">)</span> <span class="kw1">SELECT</span> jsonb_build_object<span class="br0">(</span> ? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> months<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> mlist<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> base<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> totals<span class="br0">)</span> <span class="br0">)</span> package;
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_queries_details_17" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #17</small></h3>
|
||
<div id="most_frequent_queries_details_17" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_queries_details_17').on("shown.bs.collapse",function(){
|
||
var bars_71 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',11],['12:00',13],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_71 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var most_frequent_queries_details_17 = create_bargraph('most_frequent_queries_details_17', '', 'Queries', [ bars_71, lines_71 ], 'Avg. duration');
|
||
});
|
||
create_download_button(71, 'btn btn-default btn-xs');
|
||
add_download_button_event(71, 'most_frequent_queries_details_17');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>11</td><td>11</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>12</td><td>13</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_queries_details_17">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-17">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-queries-examples-rank-17" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-17">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>18</td>
|
||
<td>22
|
||
<p><a href="#Amost_frequent_queries_details_18" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="most-frequent-queries-examples-details-rank-18">
|
||
<div id="query-f-18" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">SELECT</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">pg_get_viewdef</span><span class="br0">(</span>?::pg_catalog<span class="sy0">.</span><span class="kw2">oid</span><span class="br0">)</span> <span class="kw1">AS</span> viewdef;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_queries_details_18" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #18</small></h3>
|
||
<div id="most_frequent_queries_details_18" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_queries_details_18').on("shown.bs.collapse",function(){
|
||
var bars_72 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',22],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_72 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var most_frequent_queries_details_18 = create_bargraph('most_frequent_queries_details_18', '', 'Queries', [ bars_72, lines_72 ], 'Avg. duration');
|
||
});
|
||
create_download_button(72, 'btn btn-default btn-xs');
|
||
add_download_button_event(72, 'most_frequent_queries_details_18');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>16</td><td>11</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>16</td><td>11</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_queries_details_18">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-18">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-queries-examples-rank-18" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-18">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>19</td>
|
||
<td>22
|
||
<p><a href="#Amost_frequent_queries_details_19" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="most-frequent-queries-examples-details-rank-19">
|
||
<div id="query-f-19" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing <span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span> <span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> <span class="sy0">*</span> <span class="kw1">FROM</span> <span class="br0">(</span> <span class="kw1">VALUES</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="br0">)</span> x<span class="br0">(</span>m<span class="sy0">,</span>s<span class="br0">)</span> <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq <span class="sy0">,</span>base <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span>order_month <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>part_descr <span class="sy0">,</span>bill_cust_descr <span class="sy0">,</span>ship_cust_descr <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm_fcpool <span class="kw1">WHERE</span> quota_rep_descr <span class="sy0">=</span> ? <span class="kw1">AND</span> segm <span class="sy0">=</span> ? <span class="kw1">AND</span> mod_chan <span class="sy0">=</span> ? <span class="kw1">AND</span> part_descr <span class="sy0">=</span> ? <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span>order_month <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>part_descr <span class="sy0">,</span>bill_cust_descr <span class="sy0">,</span>ship_cust_descr <span class="br0">)</span> <span class="sy0">,</span>months <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>order_month <span class="sy0">,</span>mseq<span class="sy0">.</span>s seq <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> base <span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>order_month <span class="sy0">,</span>s <span class="br0">)</span> <span class="sy0">,</span>mpvt <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_month <span class="sy0">,</span>seq <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0">=</span> ?<span class="br0">)</span> "? base qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> ?<span class="br0">)</span> "? adj qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? tot qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0">=</span> ?<span class="br0">)</span> "? base value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> ?<span class="br0">)</span> "? adj value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? tot value_usd" <span class="kw1">FROM</span> months <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_month <span class="sy0">,</span>seq <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> seq <span class="kw1">ASC</span> <span class="br0">)</span> <span class="sy0">,</span>mlist <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> mseq<span class="sy0">.</span>m order_month <span class="sy0">,</span>"? qty" <span class="sy0">,</span>"? base qty" <span class="sy0">,</span>"? adj qty" <span class="sy0">,</span>"? tot qty" <span class="sy0">,</span>"? value_usd" <span class="sy0">,</span>"? base value_usd" <span class="sy0">,</span>"? adj value_usd" <span class="sy0">,</span>"? tot value_usd" <span class="kw1">FROM</span> mseq <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> mseq<span class="sy0">.</span>s <span class="kw1">ASC</span> <span class="br0">)</span> <span class="sy0">,</span>totals <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> months <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="br0">)</span> <span class="kw1">SELECT</span> jsonb_build_object<span class="br0">(</span> ? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> months<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> mlist<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> base<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> totals<span class="br0">)</span> <span class="br0">)</span> package;
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_queries_details_19" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #19</small></h3>
|
||
<div id="most_frequent_queries_details_19" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_queries_details_19').on("shown.bs.collapse",function(){
|
||
var bars_73 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',1],['12:00',0],['13:00',0],['14:00',1],['15:00',10],['16:00',10],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_73 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var most_frequent_queries_details_19 = create_bargraph('most_frequent_queries_details_19', '', 'Queries', [ bars_73, lines_73 ], 'Avg. duration');
|
||
});
|
||
create_download_button(73, 'btn btn-default btn-xs');
|
||
add_download_button_event(73, 'most_frequent_queries_details_19');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 15</td><td>11</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>14</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>15</td><td>10</td><td>0ms</td><td>0ms</td></tr><tr><td></td><td>16</td><td>10</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_queries_details_19">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-19">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-queries-examples-rank-19" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-19">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>20</td>
|
||
<td>20
|
||
<p><a href="#Amost_frequent_queries_details_20" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td id="most-frequent-queries-examples-details-rank-20">
|
||
<div id="query-f-20" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">SELECT</span>
|
||
tgname<span class="sy0">,</span>
|
||
tgfoid::pg_catalog<span class="sy0">.</span>regproc <span class="kw1">AS</span> tgfname<span class="sy0">,</span>
|
||
pg_catalog<span class="sy0">.</span><span class="kw2">pg_get_triggerdef</span><span class="br0">(</span><span class="kw2">oid</span><span class="sy0">,</span> <span class="kw1">FALSE</span><span class="br0">)</span> <span class="kw1">AS</span> tgdef<span class="sy0">,</span>
|
||
tgenabled<span class="sy0">,</span>
|
||
tableoid<span class="sy0">,</span>
|
||
<span class="kw2">oid</span>
|
||
<span class="kw1">FROM</span>
|
||
pg_catalog<span class="sy0">.</span>pg_trigger t
|
||
<span class="kw1">WHERE</span>
|
||
tgrelid <span class="sy0">=</span> ?::pg_catalog<span class="sy0">.</span><span class="kw2">oid</span>
|
||
<span class="kw1">AND</span> <span class="kw1">NOT</span> tgisinternal;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_queries_details_20" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #20</small></h3>
|
||
<div id="most_frequent_queries_details_20" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_queries_details_20').on("shown.bs.collapse",function(){
|
||
var bars_74 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',20],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_74 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var most_frequent_queries_details_20 = create_bargraph('most_frequent_queries_details_20', '', 'Queries', [ bars_74, lines_74 ], 'Avg. duration');
|
||
});
|
||
create_download_button(74, 'btn btn-default btn-xs');
|
||
add_download_button_event(74, 'most_frequent_queries_details_20');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>16</td><td>10</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>16</td><td>10</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_queries_details_20">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-20">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-queries-examples-rank-20" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-queries-examples-rank-20">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div><!-- end of most-frequent-queries -->
|
||
|
||
<div class="analysis-item row" id="normalized-slowest-queries">
|
||
<h2><i class="glyphicon icon-time"></i> Normalized slowest queries (N)</h2>
|
||
<div class="col-md-12">
|
||
<table class="table table-striped" id="normalized-slowest-queries-table">
|
||
<thead>
|
||
<tr>
|
||
<th>Rank</th>
|
||
<th>Min duration</th>
|
||
<th>Max duration</th>
|
||
<th>Avg duration</th>
|
||
<th>Times executed</th>
|
||
<th>Total duration</th>
|
||
<th>Query</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
|
||
<tr>
|
||
<td>1</td>
|
||
<td>2m30s</td>
|
||
<td>4m7s</td>
|
||
<td>3m14s</td>
|
||
<td>3
|
||
<p><a href="#Anormalized_slowest_queries_details_1" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>9m44s</td>
|
||
<td id="normalized-slowest-queries-examples-details-rank-1">
|
||
<div id="query-g-1" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Anormalized_slowest_queries_details_1" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #1</small></h3>
|
||
<div id="normalized_slowest_queries_details_1" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Anormalized_slowest_queries_details_1').on("shown.bs.collapse",function(){
|
||
var bars_75 = [['00:00',1],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',1],['15:00',0],['16:00',1],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_75 = [['00:00',247216],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',150711],['15:00',0],['16:00',186692],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var normalized_slowest_queries_details_1 = create_bargraph('normalized_slowest_queries_details_1', '', 'Queries', [ bars_75, lines_75 ], 'Avg. duration');
|
||
});
|
||
create_download_button(75, 'btn btn-default btn-xs');
|
||
add_download_button_event(75, 'normalized_slowest_queries_details_1');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 15</td><td>00</td><td>1</td><td>4m7s</td><td>4m7s</td></tr><tr><td></td><td>14</td><td>1</td><td>2m30s</td><td>2m30s</td></tr><tr><td></td><td>16</td><td>1</td><td>3m6s</td><td>3m6s</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Anormalized_slowest_queries_details_1">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-1">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-1">User(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="normalized-slowest-queries-user-involved-rank-1" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> ptrowbridge_md5 - <b>Total duration:</b> 9m44s - <b>Times executed:</b> 3 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-1">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="normalized-slowest-queries-app-involved-rank-1" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> psql - <b>Total duration:</b> 9m44s - <b>Times executed:</b> 3 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-app-involved-rank-1">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="normalized-slowest-queries-examples-rank-1" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-g-1-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 00:53:37
|
||
<b>Duration:</b> 4m7s
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-g-explain-1-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Insert%20on%20osm_ppfa_varto_mv%20%20%28cost%3D0.25..10.25%20rows%3D1000%20width%3D1520%29%20%28actual%20time%3D247216.314..247216.314%20rows%3D0%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D1716294%20read%3D197994%20dirtied%3D106936%20written%3D127%2C%20local%20hit%3D5658761%20read%3D4%20dirtied%3D2%2C%20temp%20read%3D384787%20written%3D401694%0A%09%20%20I%2FO%20Timings%3A%20read%3D8265.132%20write%3D1.395%0A%09%20%20-%3E%20%20Function%20Scan%20on%20osm_ppfa_varto%20%20%28cost%3D0.25..10.25%20rows%3D1000%20width%3D1520%29%20%28actual%20time%3D209413.211..214181.385%20rows%3D1377873%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D106558%20read%3D91107%20dirtied%3D50%2C%20local%20hit%3D5658761%20read%3D4%20dirtied%3D2%2C%20temp%20read%3D384787%20written%3D401694%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8253.083%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Insert on osm_ppfa_varto_mv (cost=0.25..10.25 rows=1000 width=1520) (actual time=247216.314..247216.314 rows=0 loops=1)
|
||
Buffers: shared hit=1716294 read=197994 dirtied=106936 written=127, local hit=5658761 read=4 dirtied=2, temp read=384787 written=401694
|
||
I/O Timings: read=8265.132 write=1.395
|
||
-> Function Scan on osm_ppfa_varto (cost=0.25..10.25 rows=1000 width=1520) (actual time=209413.211..214181.385 rows=1377873 loops=1)
|
||
Buffers: shared hit=106558 read=91107 dirtied=50, local hit=5658761 read=4 dirtied=2, temp read=384787 written=401694
|
||
I/O Timings: read=8253.083
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-g-1-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 16:48:41
|
||
<b>Duration:</b> 3m6s
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-g-explain-1-2" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Insert%20on%20osm_ppfa_varto_mv%20%20%28cost%3D0.25..10.25%20rows%3D1000%20width%3D1520%29%20%28actual%20time%3D186692.239..186692.239%20rows%3D0%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D1652058%20read%3D262701%20dirtied%3D107023%20written%3D340%2C%20local%20hit%3D5660301%20read%3D4%20dirtied%3D2%2C%20temp%20read%3D384981%20written%3D401910%0A%09%20%20I%2FO%20Timings%3A%20read%3D5890.327%20write%3D3.241%0A%09%20%20-%3E%20%20Function%20Scan%20on%20osm_ppfa_varto%20%20%28cost%3D0.25..10.25%20rows%3D1000%20width%3D1520%29%20%28actual%20time%3D152354.359..164471.890%20rows%3D1378962%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D40911%20read%3D155742%20dirtied%3D65%2C%20local%20hit%3D5660301%20read%3D4%20dirtied%3D2%2C%20temp%20read%3D384981%20written%3D401910%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5888.364%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Insert on osm_ppfa_varto_mv (cost=0.25..10.25 rows=1000 width=1520) (actual time=186692.239..186692.239 rows=0 loops=1)
|
||
Buffers: shared hit=1652058 read=262701 dirtied=107023 written=340, local hit=5660301 read=4 dirtied=2, temp read=384981 written=401910
|
||
I/O Timings: read=5890.327 write=3.241
|
||
-> Function Scan on osm_ppfa_varto (cost=0.25..10.25 rows=1000 width=1520) (actual time=152354.359..164471.890 rows=1378962 loops=1)
|
||
Buffers: shared hit=40911 read=155742 dirtied=65, local hit=5660301 read=4 dirtied=2, temp read=384981 written=401910
|
||
I/O Timings: read=5888.364
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-g-1-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm_ppfa_varto_mv
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 14:09:42
|
||
<b>Duration:</b> 2m30s
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-g-explain-1-3" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Insert%20on%20osm_ppfa_varto_mv%20%20%28cost%3D0.25..10.25%20rows%3D1000%20width%3D1520%29%20%28actual%20time%3D150711.860..150711.860%20rows%3D0%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D1649817%20read%3D264466%20dirtied%3D106965%20written%3D88%2C%20local%20hit%3D5659525%20read%3D4%20dirtied%3D2%2C%20temp%20read%3D384879%20written%3D401797%0A%09%20%20I%2FO%20Timings%3A%20read%3D5508.081%20write%3D14.599%0A%09%20%20-%3E%20%20Function%20Scan%20on%20osm_ppfa_varto%20%20%28cost%3D0.25..10.25%20rows%3D1000%20width%3D1520%29%20%28actual%20time%3D127165.594..135951.084%20rows%3D1378380%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D39318%20read%3D157546%20dirtied%3D46%2C%20local%20hit%3D5659525%20read%3D4%20dirtied%3D2%2C%20temp%20read%3D384879%20written%3D401797%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5507.907%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Insert on osm_ppfa_varto_mv (cost=0.25..10.25 rows=1000 width=1520) (actual time=150711.860..150711.860 rows=0 loops=1)
|
||
Buffers: shared hit=1649817 read=264466 dirtied=106965 written=88, local hit=5659525 read=4 dirtied=2, temp read=384879 written=401797
|
||
I/O Timings: read=5508.081 write=14.599
|
||
-> Function Scan on osm_ppfa_varto (cost=0.25..10.25 rows=1000 width=1520) (actual time=127165.594..135951.084 rows=1378380 loops=1)
|
||
Buffers: shared hit=39318 read=157546 dirtied=46, local hit=5659525 read=4 dirtied=2, temp read=384879 written=401797
|
||
I/O Timings: read=5507.907
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-1">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>2</td>
|
||
<td>2m2s</td>
|
||
<td>3m19s</td>
|
||
<td>2m36s</td>
|
||
<td>3
|
||
<p><a href="#Anormalized_slowest_queries_details_2" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>7m50s</td>
|
||
<td id="normalized-slowest-queries-examples-details-rank-2">
|
||
<div id="query-g-2" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i>pl <span class="sy0">/</span> pgsql <span class="kw1">FUNCTION</span> rlarp<span class="sy0">.</span>osm_ppfa_varto <span class="br0">(</span><span class="br0">)</span>
|
||
<span class="kw2">line</span> ? at <span class="kw1">RETURN</span> querywith <span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span>segments<span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span> seg <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> x<span class="sy0">.</span>glec <span class="sy0">,</span>x<span class="sy0">.</span>segm <span class="kw1">FROM</span> <span class="br0">(</span> <span class="kw1">VALUES</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="br0">)</span> x<span class="br0">(</span>glec<span class="sy0">,</span> segm<span class="br0">)</span> <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span>branding flag<span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span> <span class="sy0">,</span>mg <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> x<span class="sy0">.</span>f1<span class="sy0">,</span> x<span class="sy0">.</span>ming<span class="sy0">,</span> x<span class="sy0">.</span>grp <span class="kw1">FROM</span> <span class="br0">(</span> <span class="kw1">VALUES</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="br0">)</span> <span class="kw1">AS</span> x <span class="br0">(</span>f1<span class="sy0">,</span> ming<span class="sy0">,</span> grp<span class="br0">)</span> <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span>directors<span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span> <span class="sy0">,</span>repc <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> <span class="kw2">ltrim</span><span class="br0">(</span><span class="kw2">rtrim</span><span class="br0">(</span>c<span class="sy0">.</span>a9<span class="br0">)</span><span class="br0">)</span> rcode <span class="sy0">,</span><span class="kw2">ltrim</span><span class="br0">(</span><span class="kw2">rtrim</span><span class="br0">(</span>c<span class="sy0">.</span>a9<span class="br0">)</span><span class="br0">)</span> <span class="sy0">|</span><span class="sy0">|</span> ? <span class="sy0">|</span><span class="sy0">|</span> c<span class="sy0">.</span>a30 repp <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>q<span class="sy0">.</span>dir<span class="sy0">,</span>?<span class="br0">)</span> director <span class="kw1">FROM</span> lgdat<span class="sy0">.</span>code c <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> rlarp<span class="sy0">.</span>qrh q <span class="kw1">ON</span> q<span class="sy0">.</span>qr <span class="sy0">=</span> <span class="kw2">ltrim</span><span class="br0">(</span><span class="kw2">rtrim</span><span class="br0">(</span>c<span class="sy0">.</span>a9<span class="br0">)</span><span class="br0">)</span> <span class="kw1">WHERE</span> c<span class="sy0">.</span>a2 <span class="sy0">=</span> ? <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>mold descriptions <span class="sy0">,</span>md <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> u<span class="sy0">.</span>mold <span class="sy0">,</span><span class="kw2">max</span><span class="br0">(</span>u<span class="sy0">.</span>descr<span class="br0">)</span> descr <span class="kw1">FROM</span> <span class="br0">(</span> <span class="kw1">SELECT</span> <span class="kw2">substr</span><span class="br0">(</span>m<span class="sy0">.</span>avpart<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> mold <span class="sy0">,</span><span class="kw2">max</span><span class="br0">(</span>m<span class="sy0">.</span>avdes1<span class="br0">)</span> descr <span class="kw1">FROM</span> lgdat<span class="sy0">.</span>stkmm m <span class="kw1">WHERE</span> <span class="kw2">length</span><span class="br0">(</span>m<span class="sy0">.</span>avpart<span class="br0">)</span> <span class="sy0">></span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>m<span class="sy0">.</span>avgled<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> <span class="kw2">substr</span><span class="br0">(</span>m<span class="sy0">.</span>avpart<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">UNION</span> <span class="kw1">ALL</span> <span class="kw1">SELECT</span> <span class="kw2">substr</span><span class="br0">(</span>p<span class="sy0">.</span>awpart<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> mold <span class="sy0">,</span><span class="kw2">max</span><span class="br0">(</span>p<span class="sy0">.</span>awdes1<span class="br0">)</span> descr <span class="kw1">FROM</span> lgdat<span class="sy0">.</span>stkmp p <span class="kw1">WHERE</span> <span class="kw2">length</span><span class="br0">(</span>p<span class="sy0">.</span>awpart<span class="br0">)</span> <span class="sy0">></span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>p<span class="sy0">.</span>awgled<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> <span class="kw2">substr</span><span class="br0">(</span>p<span class="sy0">.</span>awpart<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="br0">)</span> u <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> u<span class="sy0">.</span>mold <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span>sales major codes<span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span> <span class="sy0">,</span>sj <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> <span class="sy0">*</span> <span class="kw1">FROM</span> lgdat<span class="sy0">.</span>mmsl <span class="kw1">WHERE</span> <span class="kw2">coalesce</span><span class="br0">(</span>bsmncd<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">=</span> ? <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span>sales minor codes<span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span> <span class="sy0">,</span>si <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> <span class="sy0">*</span> <span class="kw1">FROM</span> lgdat<span class="sy0">.</span>mmsl <span class="kw1">WHERE</span> <span class="kw2">coalesce</span><span class="br0">(</span>bsmncd<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">></span> ? <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="kw2">date</span> ranges per season<span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span> <span class="sy0">,</span>seas <span class="kw1">AS</span><span class="br0">(</span> <span class="kw1">SELECT</span> ssyr <span class="sy0">,</span><span class="kw2">daterange</span><span class="br0">(</span><span class="kw2">min</span><span class="br0">(</span>sdat<span class="br0">)</span><span class="sy0">,</span><span class="kw2">max</span><span class="br0">(</span>edat<span class="br0">)</span><span class="sy0">,</span>?<span class="br0">)</span> dr <span class="sy0">,</span><span class="kw2">current_date</span> <span class="sy0"><</span>@ <span class="kw2">daterange</span><span class="br0">(</span><span class="kw2">min</span><span class="br0">(</span>sdat<span class="br0">)</span><span class="sy0">,</span><span class="kw2">max</span><span class="br0">(</span>edat<span class="br0">)</span><span class="sy0">,</span>?<span class="br0">)</span> cy <span class="kw1">FROM</span> gld <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> ssyr <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> ssyr <span class="kw1">DESC</span> <span class="br0">)</span> <span class="sy0">,</span>intv <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> <span class="kw1"><span class="kw2">current_date</span></span> <span class="sy0">-</span> <span class="kw2">lower</span><span class="br0">(</span>dr<span class="br0">)</span> dy <span class="kw1">FROM</span> seas <span class="kw1">WHERE</span> cy <span class="sy0">=</span> <span class="kw1">TRUE</span> <span class="br0">)</span> <span class="sy0">,</span>std <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> s<span class="sy0">.</span>ssyr <span class="sy0">,</span>s<span class="sy0">.</span>dr <span class="sy0">,</span>s<span class="sy0">.</span>cy <span class="sy0">,</span><span class="kw2">daterange</span><span class="br0">(</span><span class="kw2">lower</span><span class="br0">(</span>dr<span class="br0">)</span><span class="sy0">,</span>dy <span class="sy0">+</span> <span class="kw2">lower</span><span class="br0">(</span>dr<span class="br0">)</span><span class="sy0">,</span>?<span class="br0">)</span> ytd <span class="kw1">FROM</span> seas s <span class="kw1">CROSS</span> <span class="kw1">JOIN</span> intv <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span>union actual <span class="kw1">AND</span> forecast<span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span> <span class="sy0">,</span>un <span class="kw1">AS</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>plan <span class="kw1">SELECT</span> ? <span class="kw1">AS</span> <span class="kw2">version</span> <span class="sy0">,</span>? iter <span class="sy0">,</span>od<span class="sy0">.</span>ssyr oseas <span class="sy0">,</span>osm<span class="sy0">.</span>adj_orderdate <span class="kw1">AS</span> odate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr sseas <span class="sy0">,</span>least<span class="br0">(</span>greatest<span class="br0">(</span>osm<span class="sy0">.</span>adj_shipdate<span class="sy0">,</span>sd<span class="sy0">.</span>sdat<span class="br0">)</span><span class="sy0">,</span>sd<span class="sy0">.</span>edat<span class="br0">)</span> sdate <span class="sy0">,</span>rd<span class="sy0">.</span>ssyr rseas <span class="sy0">,</span>osm<span class="sy0">.</span>adj_requestdate rdate <span class="sy0">-</span><span class="sy0">-</span>if the <span class="kw1">ORDER</span> period <span class="kw1">IS</span> <span class="kw1">NULL</span><span class="sy0">,</span> <span class="kw1">THEN</span> there isn?f?f?t one<span class="sy0">,</span> just assign <span class="kw1">TO</span> invoice period <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> oy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> sy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>rd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> ry <span class="sy0">,</span>osm<span class="sy0">.</span>plnt <span class="sy0">,</span>osm<span class="sy0">.</span>account <span class="sy0">,</span>osm<span class="sy0">.</span>bill_cust <span class="sy0">,</span>osm<span class="sy0">.</span>shipgrp <span class="sy0">,</span>osm<span class="sy0">.</span>ship_cust <span class="sy0">,</span>osm<span class="sy0">.</span>chan <span class="sy0">,</span>l<span class="sy0">.</span>retail <span class="sy0">,</span>l<span class="sy0">.</span>retailsub <span class="sy0">,</span>osm<span class="sy0">.</span>promo <span class="sy0">,</span>osm<span class="sy0">.</span>majg <span class="sy0">,</span>osm<span class="sy0">.</span>ming <span class="sy0">,</span>osm<span class="sy0">.</span>majs <span class="sy0">,</span>osm<span class="sy0">.</span>mins <span class="sy0">,</span>osm<span class="sy0">.</span>part <span class="sy0">,</span>osm<span class="sy0">.</span>part <span class="sy0">|</span><span class="sy0">|</span> ? <span class="sy0">|</span><span class="sy0">|</span> <span class="kw2">rtrim</span><span class="br0">(</span><span class="kw2">coalesce</span><span class="br0">(</span>m<span class="sy0">.</span>avdes1<span class="sy0">,</span>p<span class="sy0">.</span>awdes1<span class="br0">)</span><span class="br0">)</span> part_descr <span class="sy0">,</span>f<span class="sy0">.</span>f3<span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>f<span class="sy0">.</span>descr part_family <span class="sy0">,</span><span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>md<span class="sy0">.</span>descr part_group <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>mg<span class="sy0">.</span>grp<span class="sy0">,</span>?<span class="br0">)</span> branding <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>seg<span class="sy0">.</span>segm<span class="sy0">,</span>?<span class="br0">)</span> segm <span class="sy0">,</span>osm<span class="sy0">.</span>quota_rep <span class="sy0">,</span>case osm<span class="sy0">.</span>fspr <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> osm<span class="sy0">.</span>calc_status <span class="kw1">END</span> calc_status <span class="sy0">,</span>osm<span class="sy0">.</span>c_rate <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_qty <span class="br0">)</span> qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_val_loc <span class="sy0">*</span> osm<span class="sy0">.</span>r_rate<span class="br0">)</span> sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_cst_loc <span class="sy0">*</span> osm<span class="sy0">.</span>c_rate<span class="br0">)</span> stdcost <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_cst_loc_cur <span class="sy0">*</span> osm<span class="sy0">.</span>c_rate<span class="br0">)</span> stdcost_cur <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_qty <span class="sy0">*</span> <span class="kw2">coalesce</span><span class="br0">(</span>m<span class="sy0">.</span>avnwht<span class="sy0">,</span>p<span class="sy0">.</span>awnwht<span class="br0">)</span> <span class="sy0">*</span> <span class="kw1">CASE</span> <span class="kw2">coalesce</span><span class="br0">(</span>m<span class="sy0">.</span>avnwun<span class="sy0">,</span> p<span class="sy0">.</span>awnwun<span class="br0">)</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> ?<span class="sy0">.</span>? <span class="kw1">ELSE</span> ? <span class="kw1">END</span><span class="br0">)</span> pounds <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osmp osm <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld sd <span class="kw1">ON</span> osm<span class="sy0">.</span>fspr <span class="sy0">=</span> sd<span class="sy0">.</span>fspr <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld od <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_orderdate <span class="kw1">BETWEEN</span> od<span class="sy0">.</span>sdat <span class="kw1">AND</span> od<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld rd <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_requestdate <span class="kw1">BETWEEN</span> rd<span class="sy0">.</span>sdat <span class="kw1">AND</span> rd<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> seg <span class="kw1">ON</span> seg<span class="sy0">.</span>glec <span class="sy0">=</span> osm<span class="sy0">.</span>glec <span class="sy0">-</span><span class="sy0">-</span>and seg<span class="sy0">.</span>segm <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mg <span class="kw1">ON</span> mg<span class="sy0">.</span>f1 <span class="sy0">=</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">AND</span> mg<span class="sy0">.</span>ming <span class="sy0">=</span> osm<span class="sy0">.</span>ming <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> rlarp<span class="sy0">.</span><span class="kw2">family</span> f <span class="kw1">ON</span> f<span class="sy0">.</span>f3 <span class="sy0">=</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>stkmm m <span class="kw1">ON</span> m<span class="sy0">.</span>avpart <span class="sy0">=</span> osm<span class="sy0">.</span>part <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>stkmp p <span class="kw1">ON</span> p<span class="sy0">.</span>awpart <span class="sy0">=</span> osm<span class="sy0">.</span>part <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> md <span class="kw1">ON</span> md<span class="sy0">.</span>mold <span class="sy0">=</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> rlarp<span class="sy0">.</span>ffchnl l <span class="kw1">ON</span> l<span class="sy0">.</span>bill <span class="sy0">=</span> osm<span class="sy0">.</span>bill_class <span class="kw1">AND</span> l<span class="sy0">.</span>ship <span class="sy0">=</span> osm<span class="sy0">.</span>ship_class <span class="kw1">WHERE</span> osm<span class="sy0">.</span>fs_line <span class="sy0">=</span> ? <span class="kw1">AND</span> osm<span class="sy0">.</span>calc_status <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>glec<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">AND</span> osm<span class="sy0">.</span><span class="kw2">version</span> <span class="sy0">=</span> ? <span class="kw1">AND</span> <span class="br0">(</span> osm<span class="sy0">.</span>fspr <span class="sy0">></span><span class="sy0">=</span> ? <span class="kw1">OR</span> osm<span class="sy0">.</span>adj_orderdate <span class="sy0">></span><span class="sy0">=</span> ? <span class="br0">)</span> <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> <span class="sy0">-</span><span class="sy0">-</span><span class="kw2">version</span> <span class="sy0">-</span><span class="sy0">-</span>iter od<span class="sy0">.</span>ssyr <span class="sy0">,</span>osm<span class="sy0">.</span>adj_orderdate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr <span class="sy0">,</span>least<span class="br0">(</span>greatest<span class="br0">(</span>osm<span class="sy0">.</span>adj_shipdate<span class="sy0">,</span>sd<span class="sy0">.</span>sdat<span class="br0">)</span><span class="sy0">,</span>sd<span class="sy0">.</span>edat<span class="br0">)</span> <span class="sy0">,</span>rd<span class="sy0">.</span>ssyr <span class="sy0">,</span>osm<span class="sy0">.</span>adj_requestdate <span class="sy0">-</span><span class="sy0">-</span>if the <span class="kw1">ORDER</span> period <span class="kw1">IS</span> <span class="kw1">NULL</span><span class="sy0">,</span> <span class="kw1">THEN</span> there isn?f?f?t one<span class="sy0">,</span> just assign <span class="kw1">TO</span> invoice period <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>rd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span>osm<span class="sy0">.</span>plnt <span class="sy0">,</span>osm<span class="sy0">.</span>account <span class="sy0">,</span>osm<span class="sy0">.</span>bill_cust <span class="sy0">,</span>osm<span class="sy0">.</span>shipgrp <span class="sy0">,</span>osm<span class="sy0">.</span>ship_cust <span class="sy0">,</span>osm<span class="sy0">.</span>chan <span class="sy0">,</span>l<span class="sy0">.</span>retail <span class="sy0">,</span>l<span class="sy0">.</span>retailsub <span class="sy0">,</span>osm<span class="sy0">.</span>promo <span class="sy0">,</span>osm<span class="sy0">.</span>majg <span class="sy0">,</span>osm<span class="sy0">.</span>ming <span class="sy0">,</span>osm<span class="sy0">.</span>majs <span class="sy0">,</span>osm<span class="sy0">.</span>mins <span class="sy0">,</span>osm<span class="sy0">.</span>part <span class="sy0">,</span>osm<span class="sy0">.</span>part <span class="sy0">|</span><span class="sy0">|</span> ? <span class="sy0">|</span><span class="sy0">|</span> <span class="kw2">rtrim</span><span class="br0">(</span><span class="kw2">coalesce</span><span class="br0">(</span>m<span class="sy0">.</span>avdes1<span class="sy0">,</span>p<span class="sy0">.</span>awdes1<span class="br0">)</span><span class="br0">)</span> <span class="sy0">,</span>f<span class="sy0">.</span>f3<span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>f<span class="sy0">.</span>descr <span class="sy0">,</span><span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>md<span class="sy0">.</span>descr <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>mg<span class="sy0">.</span>grp<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>seg<span class="sy0">.</span>segm<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span>osm<span class="sy0">.</span>quota_rep <span class="sy0">,</span>case osm<span class="sy0">.</span>fspr <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> osm<span class="sy0">.</span>calc_status <span class="kw1">END</span> <span class="sy0">,</span>osm<span class="sy0">.</span>c_rate <span class="kw1">UNION</span> <span class="kw1">ALL</span> <span class="sy0">-</span><span class="sy0">-</span>staged forecast <span class="kw1">SELECT</span> ? <span class="kw1">AS</span> <span class="kw2">version</span> <span class="sy0">,</span>? iter <span class="sy0">,</span>od<span class="sy0">.</span>ssyr oseas <span class="sy0">,</span>osm<span class="sy0">.</span>adj_orderdate odate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr sseas <span class="sy0">,</span>least<span class="br0">(</span>greatest<span class="br0">(</span>osm<span class="sy0">.</span>adj_shipdate<span class="sy0">,</span>sd<span class="sy0">.</span>sdat<span class="br0">)</span><span class="sy0">,</span>sd<span class="sy0">.</span>edat<span class="br0">)</span> sdate <span class="sy0">,</span>rd<span class="sy0">.</span>ssyr rseas <span class="sy0">,</span>osm<span class="sy0">.</span>adj_requestdate rdate <span class="sy0">-</span><span class="sy0">-</span>if the <span class="kw1">ORDER</span> period <span class="kw1">IS</span> <span class="kw1">NULL</span><span class="sy0">,</span> <span class="kw1">THEN</span> there isn?f?f?t one<span class="sy0">,</span> just assign <span class="kw1">TO</span> invoice period <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> oy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> sy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>rd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> ry <span class="sy0">,</span>osm<span class="sy0">.</span>plnt <span class="sy0">,</span>osm<span class="sy0">.</span>account <span class="sy0">,</span>osm<span class="sy0">.</span>bill_cust <span class="sy0">,</span>osm<span class="sy0">.</span>shipgrp <span class="sy0">,</span>osm<span class="sy0">.</span>ship_cust <span class="sy0">,</span>osm<span class="sy0">.</span>chan <span class="sy0">,</span>l<span class="sy0">.</span>retail <span class="sy0">,</span>l<span class="sy0">.</span>retailsub <span class="sy0">,</span>osm<span class="sy0">.</span>promo <span class="sy0">,</span>osm<span class="sy0">.</span>majg <span class="sy0">,</span>osm<span class="sy0">.</span>ming <span class="sy0">,</span>osm<span class="sy0">.</span>majs <span class="sy0">,</span>osm<span class="sy0">.</span>mins <span class="sy0">,</span>osm<span class="sy0">.</span>part <span class="sy0">,</span>osm<span class="sy0">.</span>part <span class="sy0">|</span><span class="sy0">|</span> ? <span class="sy0">|</span><span class="sy0">|</span> <span class="kw2">rtrim</span><span class="br0">(</span><span class="kw2">coalesce</span><span class="br0">(</span>m<span class="sy0">.</span>avdes1<span class="sy0">,</span>p<span class="sy0">.</span>awdes1<span class="br0">)</span><span class="br0">)</span> part_descr <span class="sy0">,</span>f<span class="sy0">.</span>f3<span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>f<span class="sy0">.</span>descr part_family <span class="sy0">,</span><span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>md<span class="sy0">.</span>descr part_group <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>mg<span class="sy0">.</span>grp<span class="sy0">,</span>?<span class="br0">)</span> branding <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>seg<span class="sy0">.</span>segm<span class="sy0">,</span>?<span class="br0">)</span> segm <span class="sy0">,</span>osm<span class="sy0">.</span>quota_rep <span class="sy0">,</span>case osm<span class="sy0">.</span>fspr <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> osm<span class="sy0">.</span>calc_status <span class="kw1">END</span> calc_status <span class="sy0">,</span>osm<span class="sy0">.</span>c_rate <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_qty <span class="br0">)</span> qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_val_loc <span class="sy0">*</span> osm<span class="sy0">.</span>r_rate<span class="br0">)</span> sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_cst_loc <span class="sy0">*</span> osm<span class="sy0">.</span>c_rate<span class="br0">)</span> stdcost <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_cst_loc_cur <span class="sy0">*</span> osm<span class="sy0">.</span>c_rate<span class="br0">)</span> stdcost_cur <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_qty <span class="sy0">*</span> <span class="kw2">coalesce</span><span class="br0">(</span>m<span class="sy0">.</span>avnwht<span class="sy0">,</span>p<span class="sy0">.</span>awnwht<span class="br0">)</span> <span class="sy0">*</span> <span class="kw1">CASE</span> <span class="kw2">coalesce</span><span class="br0">(</span>m<span class="sy0">.</span>avnwun<span class="sy0">,</span> p<span class="sy0">.</span>awnwun<span class="br0">)</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> ?<span class="sy0">.</span>? <span class="kw1">ELSE</span> ? <span class="kw1">END</span><span class="br0">)</span> pounds <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osmf osm <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld sd <span class="kw1">ON</span> osm<span class="sy0">.</span>fspr <span class="sy0">=</span> sd<span class="sy0">.</span>fspr <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld od <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_orderdate <span class="kw1">BETWEEN</span> od<span class="sy0">.</span>sdat <span class="kw1">AND</span> od<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld rd <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_requestdate <span class="kw1">BETWEEN</span> rd<span class="sy0">.</span>sdat <span class="kw1">AND</span> rd<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> seg <span class="kw1">ON</span> seg<span class="sy0">.</span>glec <span class="sy0">=</span> osm<span class="sy0">.</span>glec <span class="sy0">-</span><span class="sy0">-</span>and seg<span class="sy0">.</span>segm <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mg <span class="kw1">ON</span> mg<span class="sy0">.</span>f1 <span class="sy0">=</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">AND</span> mg<span class="sy0">.</span>ming <span class="sy0">=</span> osm<span class="sy0">.</span>ming <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> rlarp<span class="sy0">.</span><span class="kw2">family</span> f <span class="kw1">ON</span> f<span class="sy0">.</span>f3 <span class="sy0">=</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>stkmm m <span class="kw1">ON</span> m<span class="sy0">.</span>avpart <span class="sy0">=</span> osm<span class="sy0">.</span>part <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>stkmp p <span class="kw1">ON</span> p<span class="sy0">.</span>awpart <span class="sy0">=</span> osm<span class="sy0">.</span>part <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> md <span class="kw1">ON</span> md<span class="sy0">.</span>mold <span class="sy0">=</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> rlarp<span class="sy0">.</span>ffchnl l <span class="kw1">ON</span> l<span class="sy0">.</span>bill <span class="sy0">=</span> osm<span class="sy0">.</span>bill_class <span class="kw1">AND</span> l<span class="sy0">.</span>ship <span class="sy0">=</span> osm<span class="sy0">.</span>ship_class <span class="kw1">WHERE</span> osm<span class="sy0">.</span>fs_line <span class="sy0">=</span> ? <span class="kw1">AND</span> osm<span class="sy0">.</span>calc_status <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>glec<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">AND</span> osm<span class="sy0">.</span><span class="kw2">version</span> <span class="sy0">=</span> ? <span class="kw1">AND</span> <span class="br0">(</span> osm<span class="sy0">.</span>fspr <span class="sy0">></span><span class="sy0">=</span> ? <span class="kw1">OR</span> osm<span class="sy0">.</span>adj_orderdate <span class="sy0">></span><span class="sy0">=</span> ? <span class="br0">)</span> <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> <span class="sy0">-</span><span class="sy0">-</span><span class="kw2">version</span> <span class="sy0">-</span><span class="sy0">-</span>iter od<span class="sy0">.</span>ssyr <span class="sy0">,</span>osm<span class="sy0">.</span>adj_orderdate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr <span class="sy0">,</span>least<span class="br0">(</span>greatest<span class="br0">(</span>osm<span class="sy0">.</span>adj_shipdate<span class="sy0">,</span>sd<span class="sy0">.</span>sdat<span class="br0">)</span><span class="sy0">,</span>sd<span class="sy0">.</span>edat<span class="br0">)</span> <span class="sy0">,</span>rd<span class="sy0">.</span>ssyr <span class="sy0">,</span>osm<span class="sy0">.</span>adj_requestdate <span class="sy0">-</span><span class="sy0">-</span>if the <span class="kw1">ORDER</span> period <span class="kw1">IS</span> <span class="kw1">NULL</span><span class="sy0">,</span> <span class="kw1">THEN</span> there isn?f?f?t one<span class="sy0">,</span> just assign <span class="kw1">TO</span> invoice period <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>rd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span>osm<span class="sy0">.</span>plnt <span class="sy0">,</span>osm<span class="sy0">.</span>account <span class="sy0">,</span>osm<span class="sy0">.</span>bill_cust <span class="sy0">,</span>osm<span class="sy0">.</span>shipgrp <span class="sy0">,</span>osm<span class="sy0">.</span>ship_cust <span class="sy0">,</span>osm<span class="sy0">.</span>chan <span class="sy0">,</span>l<span class="sy0">.</span>retail <span class="sy0">,</span>l<span class="sy0">.</span>retailsub <span class="sy0">,</span>osm<span class="sy0">.</span>promo <span class="sy0">,</span>osm<span class="sy0">.</span>majg <span class="sy0">,</span>osm<span class="sy0">.</span>ming <span class="sy0">,</span>osm<span class="sy0">.</span>majs <span class="sy0">,</span>osm<span class="sy0">.</span>mins <span class="sy0">,</span>osm<span class="sy0">.</span>part <span class="sy0">,</span>osm<span class="sy0">.</span>part <span class="sy0">|</span><span class="sy0">|</span> ? <span class="sy0">|</span><span class="sy0">|</span> <span class="kw2">rtrim</span><span class="br0">(</span><span class="kw2">coalesce</span><span class="br0">(</span>m<span class="sy0">.</span>avdes1<span class="sy0">,</span>p<span class="sy0">.</span>awdes1<span class="br0">)</span><span class="br0">)</span> <span class="sy0">,</span>f<span class="sy0">.</span>f3<span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>f<span class="sy0">.</span>descr <span class="sy0">,</span><span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>md<span class="sy0">.</span>descr <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>mg<span class="sy0">.</span>grp<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>seg<span class="sy0">.</span>segm<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span>osm<span class="sy0">.</span>quota_rep <span class="sy0">,</span>case osm<span class="sy0">.</span>fspr <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> osm<span class="sy0">.</span>calc_status <span class="kw1">END</span> <span class="sy0">,</span>osm<span class="sy0">.</span>c_rate <span class="kw1">UNION</span> <span class="kw1">ALL</span> <span class="sy0">-</span><span class="sy0">-</span>actual <span class="kw1">SELECT</span> ? <span class="kw1">AS</span> <span class="kw2">version</span> <span class="sy0">,</span>? iter <span class="sy0">,</span>od<span class="sy0">.</span>ssyr oseas <span class="sy0">,</span>osm<span class="sy0">.</span>adj_orderdate odate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr sseas <span class="sy0">,</span>least<span class="br0">(</span>greatest<span class="br0">(</span>osm<span class="sy0">.</span>adj_shipdate<span class="sy0">,</span>sd<span class="sy0">.</span>sdat<span class="br0">)</span><span class="sy0">,</span>sd<span class="sy0">.</span>edat<span class="br0">)</span> sdate <span class="sy0">,</span>rd<span class="sy0">.</span>ssyr rseas <span class="sy0">,</span>osm<span class="sy0">.</span>adj_requestdate rdate <span class="sy0">-</span><span class="sy0">-</span>if the <span class="kw1">ORDER</span> period <span class="kw1">IS</span> <span class="kw1">NULL</span><span class="sy0">,</span> <span class="kw1">THEN</span> there isn?f?f?t one<span class="sy0">,</span> just assign <span class="kw1">TO</span> invoice period <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> oy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> sy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>rd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> ry <span class="sy0">,</span>osm<span class="sy0">.</span>plnt <span class="sy0">,</span>osm<span class="sy0">.</span>account <span class="sy0">,</span>osm<span class="sy0">.</span>bill_cust <span class="sy0">,</span>osm<span class="sy0">.</span>shipgrp <span class="sy0">,</span>osm<span class="sy0">.</span>ship_cust <span class="sy0">,</span>osm<span class="sy0">.</span>chan <span class="sy0">,</span>l<span class="sy0">.</span>retail <span class="sy0">,</span>l<span class="sy0">.</span>retailsub <span class="sy0">,</span>osm<span class="sy0">.</span>promo <span class="sy0">,</span>osm<span class="sy0">.</span>majg <span class="sy0">,</span>osm<span class="sy0">.</span>ming <span class="sy0">,</span>osm<span class="sy0">.</span>majs <span class="sy0">,</span>osm<span class="sy0">.</span>mins <span class="sy0">,</span>osm<span class="sy0">.</span>part <span class="sy0">,</span>osm<span class="sy0">.</span>part <span class="sy0">|</span><span class="sy0">|</span> ? <span class="sy0">|</span><span class="sy0">|</span> <span class="kw2">rtrim</span><span class="br0">(</span><span class="kw2">coalesce</span><span class="br0">(</span>m<span class="sy0">.</span>avdes1<span class="sy0">,</span>p<span class="sy0">.</span>awdes1<span class="br0">)</span><span class="br0">)</span> part_descr <span class="sy0">,</span>f<span class="sy0">.</span>f3<span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>f<span class="sy0">.</span>descr part_family <span class="sy0">,</span><span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>md<span class="sy0">.</span>descr part_group <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>mg<span class="sy0">.</span>grp<span class="sy0">,</span>?<span class="br0">)</span> branding <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>seg<span class="sy0">.</span>segm<span class="sy0">,</span>?<span class="br0">)</span> segm <span class="sy0">,</span>osm<span class="sy0">.</span>quota_rep <span class="sy0">,</span>case osm<span class="sy0">.</span>fspr <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> osm<span class="sy0">.</span>calc_status <span class="kw1">END</span> calc_status <span class="sy0">,</span>osm<span class="sy0">.</span>c_rate <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_qty <span class="br0">)</span> qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_val_loc <span class="sy0">*</span> osm<span class="sy0">.</span>r_rate<span class="br0">)</span> sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_cst_loc <span class="sy0">*</span> osm<span class="sy0">.</span>c_rate<span class="br0">)</span> stdcost <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_cst_loc_cur <span class="sy0">*</span> osm<span class="sy0">.</span>c_rate<span class="br0">)</span> stdcost_cur <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> osm<span class="sy0">.</span>fb_qty <span class="sy0">*</span> <span class="kw2">coalesce</span><span class="br0">(</span>m<span class="sy0">.</span>avnwht<span class="sy0">,</span>p<span class="sy0">.</span>awnwht<span class="br0">)</span> <span class="sy0">*</span> <span class="kw1">CASE</span> <span class="kw2">coalesce</span><span class="br0">(</span>m<span class="sy0">.</span>avnwun<span class="sy0">,</span> p<span class="sy0">.</span>awnwun<span class="br0">)</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> ?<span class="sy0">.</span>? <span class="kw1">ELSE</span> ? <span class="kw1">END</span><span class="br0">)</span> pounds <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm osm <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld sd <span class="kw1">ON</span> osm<span class="sy0">.</span>fspr <span class="sy0">=</span> sd<span class="sy0">.</span>fspr <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld od <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_orderdate <span class="kw1">BETWEEN</span> od<span class="sy0">.</span>sdat <span class="kw1">AND</span> od<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld rd <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_requestdate <span class="kw1">BETWEEN</span> rd<span class="sy0">.</span>sdat <span class="kw1">AND</span> rd<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> seg <span class="kw1">ON</span> seg<span class="sy0">.</span>glec <span class="sy0">=</span> osm<span class="sy0">.</span>glec <span class="sy0">-</span><span class="sy0">-</span>and seg<span class="sy0">.</span>segm <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mg <span class="kw1">ON</span> mg<span class="sy0">.</span>f1 <span class="sy0">=</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">AND</span> mg<span class="sy0">.</span>ming <span class="sy0">=</span> osm<span class="sy0">.</span>ming <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> rlarp<span class="sy0">.</span><span class="kw2">family</span> f <span class="kw1">ON</span> f<span class="sy0">.</span>f3 <span class="sy0">=</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>stkmm m <span class="kw1">ON</span> m<span class="sy0">.</span>avpart <span class="sy0">=</span> osm<span class="sy0">.</span>part <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>stkmp p <span class="kw1">ON</span> p<span class="sy0">.</span>awpart <span class="sy0">=</span> osm<span class="sy0">.</span>part <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> md <span class="kw1">ON</span> md<span class="sy0">.</span>mold <span class="sy0">=</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> rlarp<span class="sy0">.</span>ffchnl l <span class="kw1">ON</span> l<span class="sy0">.</span>bill <span class="sy0">=</span> osm<span class="sy0">.</span>bill_class <span class="kw1">AND</span> l<span class="sy0">.</span>ship <span class="sy0">=</span> osm<span class="sy0">.</span>ship_class <span class="kw1">WHERE</span> osm<span class="sy0">.</span>fs_line <span class="sy0">=</span> ? <span class="sy0">-</span><span class="sy0">-</span>and <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>glec<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">AND</span> osm<span class="sy0">.</span>calc_status <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">AND</span> <span class="br0">(</span> osm<span class="sy0">.</span>fspr <span class="sy0">></span><span class="sy0">=</span> ? <span class="kw1">OR</span> osm<span class="sy0">.</span>adj_orderdate <span class="sy0">></span><span class="sy0">=</span> ? <span class="br0">)</span> <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> <span class="sy0">-</span><span class="sy0">-</span><span class="kw2">version</span> od<span class="sy0">.</span>ssyr <span class="sy0">,</span>osm<span class="sy0">.</span>adj_orderdate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr <span class="sy0">,</span>least<span class="br0">(</span>greatest<span class="br0">(</span>osm<span class="sy0">.</span>adj_shipdate<span class="sy0">,</span>sd<span class="sy0">.</span>sdat<span class="br0">)</span><span class="sy0">,</span>sd<span class="sy0">.</span>edat<span class="br0">)</span> <span class="sy0">,</span>rd<span class="sy0">.</span>ssyr <span class="sy0">,</span>osm<span class="sy0">.</span>adj_requestdate <span class="sy0">-</span><span class="sy0">-</span>if the <span class="kw1">ORDER</span> period <span class="kw1">IS</span> <span class="kw1">NULL</span><span class="sy0">,</span> <span class="kw1">THEN</span> there isn?f?f?t one<span class="sy0">,</span> just assign <span class="kw1">TO</span> invoice period <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>rd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span>osm<span class="sy0">.</span>plnt <span class="sy0">,</span>osm<span class="sy0">.</span>account <span class="sy0">,</span>osm<span class="sy0">.</span>bill_cust <span class="sy0">,</span>osm<span class="sy0">.</span>shipgrp <span class="sy0">,</span>osm<span class="sy0">.</span>ship_cust <span class="sy0">,</span>osm<span class="sy0">.</span>chan <span class="sy0">,</span>l<span class="sy0">.</span>retail <span class="sy0">,</span>l<span class="sy0">.</span>retailsub <span class="sy0">,</span>osm<span class="sy0">.</span>promo <span class="sy0">,</span>osm<span class="sy0">.</span>majg <span class="sy0">,</span>osm<span class="sy0">.</span>ming <span class="sy0">,</span>osm<span class="sy0">.</span>majs <span class="sy0">,</span>osm<span class="sy0">.</span>mins <span class="sy0">,</span>osm<span class="sy0">.</span>part <span class="sy0">,</span>osm<span class="sy0">.</span>part <span class="sy0">|</span><span class="sy0">|</span> ? <span class="sy0">|</span><span class="sy0">|</span> <span class="kw2">rtrim</span><span class="br0">(</span><span class="kw2">coalesce</span><span class="br0">(</span>m<span class="sy0">.</span>avdes1<span class="sy0">,</span>p<span class="sy0">.</span>awdes1<span class="br0">)</span><span class="br0">)</span> <span class="sy0">,</span>f<span class="sy0">.</span>f3<span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>f<span class="sy0">.</span>descr <span class="sy0">,</span><span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>md<span class="sy0">.</span>descr <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>mg<span class="sy0">.</span>grp<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>seg<span class="sy0">.</span>segm<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span>osm<span class="sy0">.</span>quota_rep <span class="sy0">,</span>case osm<span class="sy0">.</span>fspr <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> osm<span class="sy0">.</span>calc_status <span class="kw1">END</span> <span class="sy0">,</span>osm<span class="sy0">.</span>c_rate <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span>aggregate actual <span class="kw1">AND</span> forecast<span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span><span class="sy0">-</span> <span class="sy0">,</span>agg <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> un<span class="sy0">.</span><span class="kw2">version</span>::text "version" <span class="sy0">,</span>un<span class="sy0">.</span>iter::text "iter" <span class="sy0">,</span>un<span class="sy0">.</span>oseas::numeric oseas <span class="sy0">,</span>un<span class="sy0">.</span>odate::date odate <span class="sy0">,</span>un<span class="sy0">.</span>sseas::numeric sseas <span class="sy0">,</span>un<span class="sy0">.</span>sdate::date sdate <span class="sy0">,</span>un<span class="sy0">.</span>rseas::numeric rseas <span class="sy0">,</span>un<span class="sy0">.</span>rdate::date rdate <span class="sy0">,</span>un<span class="sy0">.</span>om::text om <span class="sy0">,</span>un<span class="sy0">.</span>sm::text sm <span class="sy0">,</span>un<span class="sy0">.</span>rm::text rm <span class="sy0">,</span>un<span class="sy0">.</span>oy::text oy <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span>odate <span class="sy0"><</span>@ _ytd<span class="br0">)</span>::boolean ocytd <span class="sy0">-</span><span class="sy0">-</span>current year <span class="kw1">TO</span> <span class="kw2">date</span> <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span>odate <span class="sy0"><</span>@ so<span class="sy0">.</span>ytd<span class="br0">)</span>::boolean oytd <span class="sy0">-</span><span class="sy0">-</span>year <span class="kw1">TO</span> <span class="kw2">date</span> recast <span class="kw1">FOR</span> prior<span class="sy0">/</span>forecast periods <span class="sy0">,</span>un<span class="sy0">.</span>sy::text sy <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span>sdate <span class="sy0"><</span>@ _ytd<span class="br0">)</span>::boolean scytd <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span>sdate <span class="sy0"><</span>@ ss<span class="sy0">.</span>ytd<span class="br0">)</span>::boolean sytd <span class="sy0">-</span><span class="sy0">-</span>had this <span class="kw1">ORDER</span> been placed yet? <span class="br0">(</span>current day prior year <span class="kw1">IS</span> greater than the <span class="kw1">ORDER</span> <span class="kw2">date</span><span class="br0">)</span> <span class="sy0">,</span>case <span class="kw1">WHEN</span> <span class="br0">(</span><span class="kw2">upper</span><span class="br0">(</span>so<span class="sy0">.</span>ytd<span class="br0">)</span> <span class="sy0">-</span> <span class="kw2">interval</span> ?<span class="br0">)</span> <span class="sy0">></span><span class="sy0">=</span> un<span class="sy0">.</span>odate <span class="kw1">THEN</span> <span class="sy0">-</span><span class="sy0">-</span>was the <span class="kw1">ORDER</span> <span class="kw1">OPEN</span> at this <span class="kw2">time</span> <span class="kw1">LAST</span> year? <span class="br0">(</span><span class="kw1">FOR</span> orders that were placed <span class="kw1"><span class="kw1">BY</span></span> this <span class="kw2">time</span><span class="sy0">,</span> was the ship <span class="kw2">date</span> greater <span class="kw1">THEN</span> the <span class="kw1">ORDER</span> <span class="kw2">date</span><span class="br0">)</span> <span class="kw1">CASE</span> <span class="kw1">WHEN</span> <span class="br0">(</span><span class="br0">(</span>un<span class="sy0">.</span>sdate <span class="sy0">></span> <span class="br0">(</span><span class="kw2">upper</span><span class="br0">(</span>so<span class="sy0">.</span>ytd<span class="br0">)</span> <span class="sy0">-</span> <span class="kw2">interval</span> ?<span class="br0">)</span><span class="br0">)</span> <span class="kw1">OR</span> <span class="br0">(</span>un<span class="sy0">.</span>sy <span class="sy0">=</span> ?<span class="br0">)</span><span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>for orders that were placed <span class="kw1">AND</span> <span class="kw1">OPEN</span> at this <span class="kw2">time</span> <span class="kw1">LAST</span> year<span class="sy0">,</span> was the <span class="kw1">ORDER</span> considered past due? <span class="br0">(</span>current <span class="kw2">date</span> prior year <span class="sy0">></span> request <span class="kw2">date</span><span class="br0">)</span> <span class="kw1">THEN</span> <span class="kw1">CASE</span> <span class="kw1">WHEN</span> <span class="br0">(</span><span class="kw2">upper</span><span class="br0">(</span>so<span class="sy0">.</span>ytd<span class="br0">)</span> <span class="sy0">-</span> <span class="kw2">interval</span> ?<span class="br0">)</span> <span class="sy0">></span> un<span class="sy0">.</span>rdate <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> ? <span class="kw1">END</span> <span class="kw1">ELSE</span> ? <span class="kw1">END</span> <span class="kw1">ELSE</span> ? <span class="kw1">END</span> status_py <span class="sy0">,</span>un<span class="sy0">.</span>ry::text ry <span class="sy0">,</span>un<span class="sy0">.</span>plnt::text plnt <span class="sy0">,</span>un<span class="sy0">.</span>account::text bill_group <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span>bill_cust <span class="sy0">|</span><span class="sy0">|</span> ? <span class="sy0">|</span><span class="sy0">|</span> <span class="kw2">rtrim</span><span class="br0">(</span>bc<span class="sy0">.</span>bvname<span class="br0">)</span><span class="br0">)</span>::text bill_cust <span class="sy0">,</span>bc<span class="sy0">.</span>bvctry bill_ctry <span class="sy0">,</span>bc<span class="sy0">.</span>bvprcd bill_prov <span class="sy0">,</span>un<span class="sy0">.</span>shipgrp::text ship_group <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span>ship_cust <span class="sy0">|</span><span class="sy0">|</span> ? <span class="sy0">|</span><span class="sy0">|</span> <span class="kw2">rtrim</span><span class="br0">(</span>sc<span class="sy0">.</span>bvname<span class="br0">)</span><span class="br0">)</span>::text ship_cust <span class="sy0">,</span>sc<span class="sy0">.</span>bvctry ship_ctry <span class="sy0">,</span>sc<span class="sy0">.</span>bvprcd ship_prov <span class="sy0">,</span>un<span class="sy0">.</span>chan::text chan <span class="sy0">,</span>case un<span class="sy0">.</span>segm <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> un<span class="sy0">.</span>retail <span class="kw1">ELSE</span> un<span class="sy0">.</span>chan <span class="kw1">END</span>::text mod_chan <span class="sy0">,</span>case un<span class="sy0">.</span>segm <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> un<span class="sy0">.</span>retailsub <span class="kw1">ELSE</span> ? <span class="kw1">END</span>::text mod_chansub <span class="sy0">,</span>un<span class="sy0">.</span>promo::text promo <span class="sy0">,</span>un<span class="sy0">.</span>majg<span class="sy0">|</span><span class="sy0">|</span><span class="kw2">coalesce</span><span class="br0">(</span>?<span class="sy0">|</span><span class="sy0">|</span>bqdes<span class="sy0">,</span>?<span class="br0">)</span>::text majg <span class="sy0">,</span>un<span class="sy0">.</span>ming<span class="sy0">|</span><span class="sy0">|</span><span class="kw2">coalesce</span><span class="br0">(</span>?<span class="sy0">|</span><span class="sy0">|</span>brdes<span class="sy0">,</span>?<span class="br0">)</span>::text ming <span class="sy0">,</span>un<span class="sy0">.</span>majs<span class="sy0">|</span><span class="sy0">|</span><span class="kw2">coalesce</span><span class="br0">(</span>?<span class="sy0">|</span><span class="sy0">|</span>sj<span class="sy0">.</span>bsdes1<span class="sy0">,</span>?<span class="br0">)</span>::text majs <span class="sy0">,</span>un<span class="sy0">.</span>mins<span class="sy0">|</span><span class="sy0">|</span><span class="kw2">coalesce</span><span class="br0">(</span>?<span class="sy0">|</span><span class="sy0">|</span>si<span class="sy0">.</span>bsdes1<span class="sy0">,</span>?<span class="br0">)</span>::text mins <span class="sy0">,</span>un<span class="sy0">.</span>part::text part <span class="sy0">,</span>un<span class="sy0">.</span>part_descr::text part_descr <span class="sy0">,</span>un<span class="sy0">.</span>part_family::text part_family <span class="sy0">,</span>un<span class="sy0">.</span>part_group::text part_group <span class="sy0">,</span>un<span class="sy0">.</span>branding::text branding <span class="sy0">,</span>un<span class="sy0">.</span>segm::text segm <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>repc<span class="sy0">.</span>repp<span class="sy0">,</span>un<span class="sy0">.</span>quota_rep<span class="br0">)</span>::text quota_rep <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>repc<span class="sy0">.</span>director<span class="sy0">,</span>un<span class="sy0">.</span>quota_rep<span class="br0">)</span>::text director <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>un<span class="sy0">.</span>qty<span class="br0">)</span>::numeric qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>un<span class="sy0">.</span>sales<span class="br0">)</span>::numeric sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>un<span class="sy0">.</span>stdcost<span class="br0">)</span>::numeric stdcost <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>un<span class="sy0">.</span>qty <span class="sy0">*</span> <span class="kw2">coalesce</span><span class="br0">(</span>cm<span class="sy0">.</span>cgstcs<span class="sy0">,</span> cp<span class="sy0">.</span>chstcs<span class="sy0">,</span> cr<span class="sy0">.</span>y0stcs<span class="br0">)</span> <span class="sy0">*</span> un<span class="sy0">.</span>c_rate<span class="br0">)</span>::numeric stdcost_cur <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>un<span class="sy0">.</span>pounds<span class="br0">)</span>::numeric pounds <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span><span class="kw2">version</span><span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>un<span class="sy0">.</span>sy<span class="br0">)</span>::text flag_s <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span><span class="kw2">version</span><span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>un<span class="sy0">.</span>oy<span class="br0">)</span>::text flag_o <span class="sy0">,</span>case <span class="kw1">WHEN</span> un<span class="sy0">.</span>calc_status <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span> <span class="kw1">THEN</span> <span class="kw1">CASE</span> <span class="kw1">WHEN</span> un<span class="sy0">.</span>rdate <span class="sy0"><</span> <span class="kw1"><span class="kw2">current_date</span></span> <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> ? <span class="kw1">END</span> <span class="kw1">ELSE</span> un<span class="sy0">.</span>calc_status <span class="kw1">END</span>::text status <span class="sy0">,</span><span class="br0">(</span><span class="kw2">substr</span><span class="br0">(</span>un<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>un<span class="sy0">.</span>branding<span class="br0">)</span>::text "options" <span class="sy0">,</span>?::text grandtotal <span class="kw1">FROM</span> un <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> repc <span class="kw1">ON</span> repc<span class="sy0">.</span>rcode <span class="sy0">=</span> un<span class="sy0">.</span>quota_rep <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> si <span class="kw1">ON</span> si<span class="sy0">.</span>bsmjcd <span class="sy0">=</span> un<span class="sy0">.</span>majs <span class="kw1">AND</span> si<span class="sy0">.</span>bsmncd <span class="sy0">=</span> un<span class="sy0">.</span>mins <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> sj <span class="kw1">ON</span> sj<span class="sy0">.</span>bsmjcd <span class="sy0">=</span> un<span class="sy0">.</span>majs <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>majg <span class="kw1">ON</span> bqgrp <span class="sy0">=</span> un<span class="sy0">.</span>majg <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>mmgp <span class="kw1">ON</span> brmgrp <span class="sy0">=</span> un<span class="sy0">.</span>ming <span class="kw1">AND</span> brgrp <span class="sy0">=</span> un<span class="sy0">.</span>majg <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>cust bc <span class="kw1">ON</span> bc<span class="sy0">.</span>bvcust <span class="sy0">=</span> un<span class="sy0">.</span>bill_cust <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>cust sc <span class="kw1">ON</span> sc<span class="sy0">.</span>bvcust <span class="sy0">=</span> un<span class="sy0">.</span>bill_cust <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>icstm cm <span class="kw1">ON</span> cm<span class="sy0">.</span>cgpart <span class="sy0">=</span> un<span class="sy0">.</span>part <span class="kw1">AND</span> cm<span class="sy0">.</span>cgplnt <span class="sy0">=</span> un<span class="sy0">.</span>plnt <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>icstp cp <span class="kw1">ON</span> cp<span class="sy0">.</span>chpart <span class="sy0">=</span> un<span class="sy0">.</span>part <span class="kw1">AND</span> cp<span class="sy0">.</span>chplnt <span class="sy0">=</span> un<span class="sy0">.</span>plnt <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>icstr cr <span class="kw1">ON</span> cr<span class="sy0">.</span>y0part <span class="sy0">=</span> un<span class="sy0">.</span>part <span class="kw1">AND</span> cr<span class="sy0">.</span>y0plnt <span class="sy0">=</span> un<span class="sy0">.</span>plnt <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> std so <span class="kw1">ON</span> so<span class="sy0">.</span>ssyr <span class="sy0">=</span> un<span class="sy0">.</span>oseas <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> std ss <span class="kw1">ON</span> ss<span class="sy0">.</span>ssyr <span class="sy0">=</span> un<span class="sy0">.</span>sseas <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> un<span class="sy0">.</span><span class="kw2">version</span>::text <span class="sy0">,</span>un<span class="sy0">.</span>iter::text <span class="sy0">,</span>un<span class="sy0">.</span>oseas::numeric <span class="sy0">,</span>un<span class="sy0">.</span>odate::date <span class="sy0">,</span>un<span class="sy0">.</span>sseas::numeric <span class="sy0">,</span>un<span class="sy0">.</span>sdate::date <span class="sy0">,</span>un<span class="sy0">.</span>rseas::numeric <span class="sy0">,</span>un<span class="sy0">.</span>rdate::date <span class="sy0">,</span>un<span class="sy0">.</span>om::text <span class="sy0">,</span>un<span class="sy0">.</span>sm::text <span class="sy0">,</span>un<span class="sy0">.</span>rm::text <span class="sy0">,</span>un<span class="sy0">.</span>oy::text <span class="sy0">-</span><span class="sy0">-</span>current year <span class="kw1">TO</span> <span class="kw2">date</span> <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span>odate <span class="sy0"><</span>@ _ytd<span class="br0">)</span>::boolean <span class="sy0">-</span><span class="sy0">-</span>year <span class="kw1">TO</span> <span class="kw2">date</span> recast <span class="kw1">FOR</span> prior<span class="sy0">/</span>forecast periods <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span>odate <span class="sy0"><</span>@ so<span class="sy0">.</span>ytd<span class="br0">)</span>::boolean <span class="sy0">,</span>un<span class="sy0">.</span>sy::text <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span>sdate <span class="sy0"><</span>@ _ytd<span class="br0">)</span>::boolean <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span>sdate <span class="sy0"><</span>@ ss<span class="sy0">.</span>ytd<span class="br0">)</span>::boolean <span class="sy0">,</span>case <span class="kw1">WHEN</span> <span class="br0">(</span><span class="kw2">upper</span><span class="br0">(</span>so<span class="sy0">.</span>ytd<span class="br0">)</span> <span class="sy0">-</span> <span class="kw2">interval</span> ?<span class="br0">)</span> <span class="sy0">></span><span class="sy0">=</span> un<span class="sy0">.</span>odate <span class="kw1">THEN</span> <span class="sy0">-</span><span class="sy0">-</span>was the <span class="kw1">ORDER</span> <span class="kw1">OPEN</span> at this <span class="kw2">time</span> <span class="kw1">LAST</span> year? <span class="br0">(</span><span class="kw1">FOR</span> orders that were placed <span class="kw1"><span class="kw1">BY</span></span> this <span class="kw2">time</span><span class="sy0">,</span> was the ship <span class="kw2">date</span> greater <span class="kw1">THEN</span> the <span class="kw1">ORDER</span> <span class="kw2">date</span><span class="br0">)</span> <span class="kw1">CASE</span> <span class="kw1">WHEN</span> <span class="br0">(</span><span class="br0">(</span>un<span class="sy0">.</span>sdate <span class="sy0">></span> <span class="br0">(</span><span class="kw2">upper</span><span class="br0">(</span>so<span class="sy0">.</span>ytd<span class="br0">)</span> <span class="sy0">-</span> <span class="kw2">interval</span> ?<span class="br0">)</span><span class="br0">)</span> <span class="kw1">OR</span> <span class="br0">(</span>un<span class="sy0">.</span>sy <span class="sy0">=</span> ?<span class="br0">)</span><span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>for orders that were placed <span class="kw1">AND</span> <span class="kw1">OPEN</span> at this <span class="kw2">time</span> <span class="kw1">LAST</span> year<span class="sy0">,</span> was the <span class="kw1">ORDER</span> considered past due? <span class="br0">(</span>current <span class="kw2">date</span> prior year <span class="sy0">></span> request <span class="kw2">date</span><span class="br0">)</span> <span class="kw1">THEN</span> <span class="kw1">CASE</span> <span class="kw1">WHEN</span> <span class="br0">(</span><span class="kw2">upper</span><span class="br0">(</span>so<span class="sy0">.</span>ytd<span class="br0">)</span> <span class="sy0">-</span> <span class="kw2">interval</span> ?<span class="br0">)</span> <span class="sy0">></span> un<span class="sy0">.</span>rdate <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> ? <span class="kw1">END</span> <span class="kw1">ELSE</span> ? <span class="kw1">END</span> <span class="kw1">ELSE</span> ? <span class="kw1">END</span> <span class="sy0">,</span>un<span class="sy0">.</span>ry::text <span class="sy0">,</span>un<span class="sy0">.</span>plnt::text <span class="sy0">,</span>un<span class="sy0">.</span>account::text <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span>bill_cust <span class="sy0">|</span><span class="sy0">|</span> ? <span class="sy0">|</span><span class="sy0">|</span> <span class="kw2">rtrim</span><span class="br0">(</span>bc<span class="sy0">.</span>bvname<span class="br0">)</span><span class="br0">)</span>::text <span class="sy0">,</span>bc<span class="sy0">.</span>bvctry <span class="sy0">,</span>bc<span class="sy0">.</span>bvprcd <span class="sy0">,</span>un<span class="sy0">.</span>shipgrp::text <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span>ship_cust <span class="sy0">|</span><span class="sy0">|</span> ? <span class="sy0">|</span><span class="sy0">|</span> <span class="kw2">rtrim</span><span class="br0">(</span>sc<span class="sy0">.</span>bvname<span class="br0">)</span><span class="br0">)</span>::text <span class="sy0">,</span>sc<span class="sy0">.</span>bvctry <span class="sy0">,</span>sc<span class="sy0">.</span>bvprcd <span class="sy0">,</span>un<span class="sy0">.</span>chan::text <span class="sy0">,</span>case un<span class="sy0">.</span>segm <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> un<span class="sy0">.</span>retail <span class="kw1">ELSE</span> un<span class="sy0">.</span>chan <span class="kw1">END</span>::text <span class="sy0">,</span>case un<span class="sy0">.</span>segm <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> un<span class="sy0">.</span>retailsub <span class="kw1">ELSE</span> ? <span class="kw1">END</span>::text <span class="sy0">,</span>un<span class="sy0">.</span>promo::text <span class="sy0">,</span>un<span class="sy0">.</span>majg<span class="sy0">|</span><span class="sy0">|</span><span class="kw2">coalesce</span><span class="br0">(</span>?<span class="sy0">|</span><span class="sy0">|</span>bqdes<span class="sy0">,</span>?<span class="br0">)</span>::text <span class="sy0">,</span>un<span class="sy0">.</span>ming<span class="sy0">|</span><span class="sy0">|</span><span class="kw2">coalesce</span><span class="br0">(</span>?<span class="sy0">|</span><span class="sy0">|</span>brdes<span class="sy0">,</span>?<span class="br0">)</span>::text <span class="sy0">,</span>un<span class="sy0">.</span>majs<span class="sy0">|</span><span class="sy0">|</span><span class="kw2">coalesce</span><span class="br0">(</span>?<span class="sy0">|</span><span class="sy0">|</span>sj<span class="sy0">.</span>bsdes1<span class="sy0">,</span>?<span class="br0">)</span>::text <span class="sy0">,</span>un<span class="sy0">.</span>mins<span class="sy0">|</span><span class="sy0">|</span><span class="kw2">coalesce</span><span class="br0">(</span>?<span class="sy0">|</span><span class="sy0">|</span>si<span class="sy0">.</span>bsdes1<span class="sy0">,</span>?<span class="br0">)</span>::text <span class="sy0">,</span>un<span class="sy0">.</span>part::text <span class="sy0">,</span>un<span class="sy0">.</span>part_descr::text <span class="sy0">,</span>un<span class="sy0">.</span>part_family::text <span class="sy0">,</span>un<span class="sy0">.</span>part_group::text <span class="sy0">,</span>un<span class="sy0">.</span>branding::text <span class="sy0">,</span>un<span class="sy0">.</span>segm::text <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>repc<span class="sy0">.</span>repp<span class="sy0">,</span>un<span class="sy0">.</span>quota_rep<span class="br0">)</span>::text <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>repc<span class="sy0">.</span>director<span class="sy0">,</span>un<span class="sy0">.</span>quota_rep<span class="br0">)</span>::text <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span><span class="kw2">version</span><span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>un<span class="sy0">.</span>sy<span class="br0">)</span>::text <span class="sy0">,</span><span class="br0">(</span>un<span class="sy0">.</span><span class="kw2">version</span><span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>un<span class="sy0">.</span>oy<span class="br0">)</span>::text <span class="sy0">,</span>case <span class="kw1">WHEN</span> un<span class="sy0">.</span>calc_status <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span> <span class="kw1">THEN</span> <span class="kw1">CASE</span> <span class="kw1">WHEN</span> un<span class="sy0">.</span>rdate <span class="sy0"><</span> <span class="kw1"><span class="kw2">current_date</span></span> <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> ? <span class="kw1">END</span> <span class="kw1">ELSE</span> un<span class="sy0">.</span>calc_status <span class="kw1">END</span>::text <span class="sy0">,</span><span class="br0">(</span><span class="kw2">substr</span><span class="br0">(</span>un<span class="sy0">.</span>part<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>un<span class="sy0">.</span>branding<span class="br0">)</span>::text <span class="sy0">,</span>?::text <span class="br0">)</span> <span class="kw1">SELECT</span> a<span class="sy0">.</span><span class="kw2">version</span> <span class="sy0">,</span>a<span class="sy0">.</span>iter <span class="sy0">,</span>a<span class="sy0">.</span>oseas <span class="sy0">,</span>a<span class="sy0">.</span>odate <span class="sy0">,</span>a<span class="sy0">.</span>sseas <span class="sy0">,</span>a<span class="sy0">.</span>sdate <span class="sy0">,</span>a<span class="sy0">.</span>rseas <span class="sy0">,</span>a<span class="sy0">.</span>rdate <span class="sy0">,</span>a<span class="sy0">.</span>om <span class="sy0">,</span>a<span class="sy0">.</span>sm <span class="sy0">,</span>a<span class="sy0">.</span>rm <span class="sy0">,</span>a<span class="sy0">.</span>oy <span class="sy0">,</span>a<span class="sy0">.</span>ocytd <span class="sy0">,</span>a<span class="sy0">.</span>oytd <span class="sy0">,</span>a<span class="sy0">.</span>sy <span class="sy0">,</span>a<span class="sy0">.</span>scytd <span class="sy0">,</span>a<span class="sy0">.</span>sytd <span class="sy0">,</span>a<span class="sy0">.</span>status_py <span class="sy0">,</span>a<span class="sy0">.</span>ry <span class="sy0">,</span>a<span class="sy0">.</span>plnt <span class="sy0">,</span>a<span class="sy0">.</span>bill_group <span class="sy0">,</span>a<span class="sy0">.</span>bill_cust <span class="sy0">,</span>a<span class="sy0">.</span>bill_ctry <span class="sy0">,</span>a<span class="sy0">.</span>bill_prov <span class="sy0">,</span>a<span class="sy0">.</span>ship_group <span class="sy0">,</span>a<span class="sy0">.</span>ship_cust <span class="sy0">,</span>a<span class="sy0">.</span>ship_ctry <span class="sy0">,</span>a<span class="sy0">.</span>ship_prov <span class="sy0">,</span>a<span class="sy0">.</span>chan <span class="sy0">,</span>a<span class="sy0">.</span>mod_chan <span class="sy0">,</span>a<span class="sy0">.</span>mod_chansub <span class="sy0">,</span>a<span class="sy0">.</span>promo <span class="sy0">,</span>a<span class="sy0">.</span>majg <span class="sy0">,</span>a<span class="sy0">.</span>ming <span class="sy0">,</span>a<span class="sy0">.</span>majs <span class="sy0">,</span>a<span class="sy0">.</span>mins <span class="sy0">,</span>a<span class="sy0">.</span>part <span class="sy0">,</span>a<span class="sy0">.</span>part_descr <span class="sy0">,</span>a<span class="sy0">.</span>part_family <span class="sy0">,</span>a<span class="sy0">.</span>part_group <span class="sy0">,</span>a<span class="sy0">.</span>branding <span class="sy0">,</span>a<span class="sy0">.</span>segm <span class="sy0">,</span>a<span class="sy0">.</span>quota_rep <span class="sy0">,</span>a<span class="sy0">.</span>director <span class="sy0">,</span>a<span class="sy0">.</span>qty <span class="sy0">,</span>a<span class="sy0">.</span>sales <span class="sy0">,</span>a<span class="sy0">.</span>stdcost <span class="sy0">,</span>a<span class="sy0">.</span>stdcost_cur <span class="sy0">,</span>a<span class="sy0">.</span>pounds <span class="sy0">,</span>a<span class="sy0">.</span>flag_s <span class="sy0">,</span>a<span class="sy0">.</span>flag_o <span class="sy0">,</span>a<span class="sy0">.</span>status <span class="sy0">,</span>a<span class="sy0">.</span>options <span class="sy0">,</span>a<span class="sy0">.</span>grandtotal <span class="kw1">FROM</span> agg a <span class="kw1">UNION</span> <span class="kw1">ALL</span> <span class="kw1">SELECT</span> ? <span class="kw1">AS</span> <span class="kw2">version</span> <span class="sy0">,</span>? <span class="kw1">AS</span> iter <span class="sy0">,</span>a<span class="sy0">.</span>oseas <span class="sy0">,</span>a<span class="sy0">.</span>odate <span class="sy0">,</span>a<span class="sy0">.</span>sseas <span class="sy0">,</span>a<span class="sy0">.</span>sdate <span class="sy0">,</span>a<span class="sy0">.</span>rseas <span class="sy0">,</span>a<span class="sy0">.</span>rdate <span class="sy0">,</span>a<span class="sy0">.</span>om <span class="sy0">,</span>a<span class="sy0">.</span>sm <span class="sy0">,</span>a<span class="sy0">.</span>rm <span class="sy0">,</span>a<span class="sy0">.</span>oy <span class="sy0">,</span>a<span class="sy0">.</span>ocytd <span class="sy0">,</span>a<span class="sy0">.</span>oytd <span class="sy0">,</span>a<span class="sy0">.</span>sy <span class="sy0">,</span>a<span class="sy0">.</span>scytd <span class="sy0">,</span>a<span class="sy0">.</span>sytd <span class="sy0">,</span>a<span class="sy0">.</span>status_py <span class="sy0">,</span>a<span class="sy0">.</span>ry <span class="sy0">,</span>a<span class="sy0">.</span>plnt <span class="sy0">,</span>a<span class="sy0">.</span>bill_group <span class="sy0">,</span>a<span class="sy0">.</span>bill_cust <span class="sy0">,</span>a<span class="sy0">.</span>bill_ctry <span class="sy0">,</span>a<span class="sy0">.</span>bill_prov <span class="sy0">,</span>a<span class="sy0">.</span>ship_group <span class="sy0">,</span>a<span class="sy0">.</span>ship_cust <span class="sy0">,</span>a<span class="sy0">.</span>ship_ctry <span class="sy0">,</span>a<span class="sy0">.</span>ship_prov <span class="sy0">,</span>a<span class="sy0">.</span>chan <span class="sy0">,</span>a<span class="sy0">.</span>mod_chan <span class="sy0">,</span>a<span class="sy0">.</span>mod_chansub <span class="sy0">,</span>a<span class="sy0">.</span>promo <span class="sy0">,</span>a<span class="sy0">.</span>majg <span class="sy0">,</span>a<span class="sy0">.</span>ming <span class="sy0">,</span>a<span class="sy0">.</span>majs <span class="sy0">,</span>a<span class="sy0">.</span>mins <span class="sy0">,</span>a<span class="sy0">.</span>part <span class="sy0">,</span>a<span class="sy0">.</span>part_descr <span class="sy0">,</span>a<span class="sy0">.</span>part_family <span class="sy0">,</span>a<span class="sy0">.</span>part_group <span class="sy0">,</span>a<span class="sy0">.</span>branding <span class="sy0">,</span>a<span class="sy0">.</span>segm <span class="sy0">,</span>a<span class="sy0">.</span>quota_rep <span class="sy0">,</span>a<span class="sy0">.</span>director <span class="sy0">,</span>case a<span class="sy0">.</span><span class="kw2">version</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> a<span class="sy0">.</span>qty <span class="kw1">ELSE</span> <span class="sy0">-</span>a<span class="sy0">.</span>qty <span class="kw1">END</span>::numeric qty <span class="sy0">,</span>case a<span class="sy0">.</span><span class="kw2">version</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> a<span class="sy0">.</span>sales <span class="kw1">ELSE</span> <span class="sy0">-</span>a<span class="sy0">.</span>sales <span class="kw1">END</span>::numeric sales <span class="sy0">,</span>case a<span class="sy0">.</span><span class="kw2">version</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> a<span class="sy0">.</span>stdcost <span class="kw1">ELSE</span> <span class="sy0">-</span>a<span class="sy0">.</span>stdcost <span class="kw1">END</span>::numeric stdcost <span class="sy0">,</span>case a<span class="sy0">.</span><span class="kw2">version</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> a<span class="sy0">.</span>stdcost_cur <span class="kw1">ELSE</span> <span class="sy0">-</span>a<span class="sy0">.</span>stdcost_cur <span class="kw1">END</span>::numeric stdcost_cur <span class="sy0">,</span>case a<span class="sy0">.</span><span class="kw2">version</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> a<span class="sy0">.</span>pounds <span class="kw1">ELSE</span> <span class="sy0">-</span>a<span class="sy0">.</span>pounds <span class="kw1">END</span>::numeric pounds <span class="sy0">,</span>?<span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>a<span class="sy0">.</span>scytd flag_s <span class="sy0">,</span>?<span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>a<span class="sy0">.</span>ocytd flag_o <span class="sy0">,</span>a<span class="sy0">.</span>status <span class="sy0">,</span>a<span class="sy0">.</span>options <span class="sy0">,</span>a<span class="sy0">.</span>grandtotal <span class="kw1">FROM</span> agg a <span class="kw1">WHERE</span> a<span class="sy0">.</span><span class="kw2">version</span> <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span> <span class="kw1">AND</span> <span class="br0">(</span>a<span class="sy0">.</span>ocytd <span class="kw1">OR</span> a<span class="sy0">.</span>scytd<span class="br0">)</span> <span class="kw1">UNION</span> <span class="kw1">ALL</span> <span class="kw1">SELECT</span> ? <span class="kw1">AS</span> <span class="kw2">version</span> <span class="sy0">,</span>? <span class="kw1">AS</span> iter <span class="sy0">,</span>a<span class="sy0">.</span>oseas <span class="sy0">,</span>a<span class="sy0">.</span>odate <span class="sy0">,</span>a<span class="sy0">.</span>sseas <span class="sy0">,</span>a<span class="sy0">.</span>sdate <span class="sy0">,</span>a<span class="sy0">.</span>rseas <span class="sy0">,</span>a<span class="sy0">.</span>rdate <span class="sy0">,</span>a<span class="sy0">.</span>om <span class="sy0">,</span>a<span class="sy0">.</span>sm <span class="sy0">,</span>a<span class="sy0">.</span>rm <span class="sy0">,</span>a<span class="sy0">.</span>oy <span class="sy0">,</span>a<span class="sy0">.</span>ocytd <span class="sy0">,</span>a<span class="sy0">.</span>oytd <span class="sy0">,</span>a<span class="sy0">.</span>sy <span class="sy0">,</span>a<span class="sy0">.</span>scytd <span class="sy0">,</span>a<span class="sy0">.</span>sytd <span class="sy0">,</span>a<span class="sy0">.</span>status_py <span class="sy0">,</span>a<span class="sy0">.</span>ry <span class="sy0">,</span>a<span class="sy0">.</span>plnt <span class="sy0">,</span>a<span class="sy0">.</span>bill_group <span class="sy0">,</span>a<span class="sy0">.</span>bill_cust <span class="sy0">,</span>a<span class="sy0">.</span>bill_ctry <span class="sy0">,</span>a<span class="sy0">.</span>bill_prov <span class="sy0">,</span>a<span class="sy0">.</span>ship_group <span class="sy0">,</span>a<span class="sy0">.</span>ship_cust <span class="sy0">,</span>a<span class="sy0">.</span>ship_ctry <span class="sy0">,</span>a<span class="sy0">.</span>ship_prov <span class="sy0">,</span>a<span class="sy0">.</span>chan <span class="sy0">,</span>a<span class="sy0">.</span>mod_chan <span class="sy0">,</span>a<span class="sy0">.</span>mod_chansub <span class="sy0">,</span>a<span class="sy0">.</span>promo <span class="sy0">,</span>a<span class="sy0">.</span>majg <span class="sy0">,</span>a<span class="sy0">.</span>ming <span class="sy0">,</span>a<span class="sy0">.</span>majs <span class="sy0">,</span>a<span class="sy0">.</span>mins <span class="sy0">,</span>a<span class="sy0">.</span>part <span class="sy0">,</span>a<span class="sy0">.</span>part_descr <span class="sy0">,</span>a<span class="sy0">.</span>part_family <span class="sy0">,</span>a<span class="sy0">.</span>part_group <span class="sy0">,</span>a<span class="sy0">.</span>branding <span class="sy0">,</span>a<span class="sy0">.</span>segm <span class="sy0">,</span>a<span class="sy0">.</span>quota_rep <span class="sy0">,</span>a<span class="sy0">.</span>director <span class="sy0">,</span>case a<span class="sy0">.</span><span class="kw2">version</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> a<span class="sy0">.</span>qty <span class="kw1">ELSE</span> <span class="sy0">-</span>a<span class="sy0">.</span>qty <span class="kw1">END</span>::numeric qty <span class="sy0">,</span>case a<span class="sy0">.</span><span class="kw2">version</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> a<span class="sy0">.</span>sales <span class="kw1">ELSE</span> <span class="sy0">-</span>a<span class="sy0">.</span>sales <span class="kw1">END</span>::numeric sales <span class="sy0">,</span>case a<span class="sy0">.</span><span class="kw2">version</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> a<span class="sy0">.</span>stdcost <span class="kw1">ELSE</span> <span class="sy0">-</span>a<span class="sy0">.</span>stdcost <span class="kw1">END</span>::numeric stdcost <span class="sy0">,</span>case a<span class="sy0">.</span><span class="kw2">version</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> a<span class="sy0">.</span>stdcost_cur <span class="kw1">ELSE</span> <span class="sy0">-</span>a<span class="sy0">.</span>stdcost_cur <span class="kw1">END</span>::numeric stdcost_cur <span class="sy0">,</span>case a<span class="sy0">.</span><span class="kw2">version</span> <span class="kw1">WHEN</span> ? <span class="kw1">THEN</span> a<span class="sy0">.</span>pounds <span class="kw1">ELSE</span> <span class="sy0">-</span>a<span class="sy0">.</span>pounds <span class="kw1">END</span>::numeric pounds <span class="sy0">,</span>?<span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>a<span class="sy0">.</span>scytd flag_s <span class="sy0">,</span>?<span class="sy0">|</span><span class="sy0">|</span>?<span class="sy0">|</span><span class="sy0">|</span>a<span class="sy0">.</span>ocytd flag_o <span class="sy0">,</span>a<span class="sy0">.</span>status <span class="sy0">,</span>a<span class="sy0">.</span>options <span class="sy0">,</span>a<span class="sy0">.</span>grandtotal <span class="kw1">FROM</span> agg a <span class="kw1">WHERE</span> a<span class="sy0">.</span><span class="kw2">version</span> <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span> <span class="kw1">AND</span> <span class="br0">(</span>a<span class="sy0">.</span>ocytd <span class="kw1">OR</span> a<span class="sy0">.</span>scytd<span class="br0">)</span> ;
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Anormalized_slowest_queries_details_2" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #2</small></h3>
|
||
<div id="normalized_slowest_queries_details_2" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Anormalized_slowest_queries_details_2').on("shown.bs.collapse",function(){
|
||
var bars_76 = [['00:00',1],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',1],['15:00',0],['16:00',1],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_76 = [['00:00',199113],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',122635],['15:00',0],['16:00',148329],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var normalized_slowest_queries_details_2 = create_bargraph('normalized_slowest_queries_details_2', '', 'Queries', [ bars_76, lines_76 ], 'Avg. duration');
|
||
});
|
||
create_download_button(76, 'btn btn-default btn-xs');
|
||
add_download_button_event(76, 'normalized_slowest_queries_details_2');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 15</td><td>00</td><td>1</td><td>3m19s</td><td>3m19s</td></tr><tr><td></td><td>14</td><td>1</td><td>2m2s</td><td>2m2s</td></tr><tr><td></td><td>16</td><td>1</td><td>2m28s</td><td>2m28s</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Anormalized_slowest_queries_details_2">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-2">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-2">User(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="normalized-slowest-queries-user-involved-rank-2" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> ptrowbridge_md5 - <b>Total duration:</b> 7m50s - <b>Times executed:</b> 3 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-2">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="normalized-slowest-queries-app-involved-rank-2" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> psql - <b>Total duration:</b> 7m50s - <b>Times executed:</b> 3 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-app-involved-rank-2">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="normalized-slowest-queries-examples-rank-2" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-g-2-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i>PL/pgSQL function rlarp.osm_ppfa_varto() line 69 at RETURN QUERYWITH
|
||
---------------------------------------segments--------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
SEG AS (
|
||
SELECT
|
||
x.GLEC
|
||
,x.SEGM
|
||
FROM
|
||
(
|
||
VALUES
|
||
('1CU','Retail'),
|
||
('1GR','Greenhouse'),
|
||
('1NU','Nursery'),
|
||
('1RE','Retail'),
|
||
('2WI','Greenhouse'),
|
||
('3BM','Other'),
|
||
('3CO','Other'),
|
||
('3PE','Other'),
|
||
('3PP','Other'),
|
||
('4CO','Other'),
|
||
('4RA','Other'),
|
||
('9MI','Other'),
|
||
('9SA','Other'),
|
||
('9TO','Other')
|
||
) X(GLEC, SEGM)
|
||
)
|
||
---------------------------------------branding flag---------------------------------------------------------------------------------------------------------------------------------------------------
|
||
,MG AS (
|
||
SELECT
|
||
X.F1, X.MING, X.GRP
|
||
FROM
|
||
(
|
||
VALUES
|
||
('L','000','Branded'),
|
||
('L','B10','Branded'),
|
||
('L','B11','Branded'),
|
||
('L','B52','Branded'),
|
||
('L','C10','Branded'),
|
||
('L','D12','Branded'),
|
||
('L','M11','Branded'),
|
||
('L','P12','Branded'),
|
||
('L','P13','Branded'),
|
||
('L','S10','Branded'),
|
||
('L','Y10','Branded'),
|
||
('L','Y11','Branded'),
|
||
('L','Y12','Branded'),
|
||
('P','B10','Branded'),
|
||
('P','B11','Branded'),
|
||
('P','B52','Branded')
|
||
) AS X (F1, MING, GRP)
|
||
)
|
||
---------------------------------------directors-------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
,REPC AS (
|
||
SELECT
|
||
LTRIM(RTRIM(C.A9)) RCODE
|
||
,LTRIM(RTRIM(C.A9)) || ' - ' || C.A30 REPP
|
||
,COALESCE(Q.DIR,'Other') DIRECTOR
|
||
FROM
|
||
LGDAT.CODE C
|
||
LEFT OUTER JOIN RLARP.QRH Q ON
|
||
Q.QR = LTRIM(RTRIM(C.A9))
|
||
WHERE
|
||
C.A2 = 'MM'
|
||
)
|
||
--MOLD DESCRIPTIONS
|
||
,MD AS (
|
||
SELECT
|
||
U.MOLD
|
||
,MAX(U.DESCR) DESCR
|
||
FROM
|
||
(
|
||
SELECT
|
||
SUBSTR(M.AVPART,1,8) MOLD
|
||
,MAX(M.AVDES1) DESCR
|
||
FROM
|
||
LGDAT.STKMM M
|
||
WHERE
|
||
LENGTH(M.AVPART) > 8
|
||
AND SUBSTR(M.AVGLED,1,1) <= '2'
|
||
GROUP BY
|
||
SUBSTR(M.AVPART,1,8)
|
||
UNION ALL
|
||
SELECT
|
||
SUBSTR(P.AWPART,1,8) MOLD
|
||
,MAX(P.AWDES1) DESCR
|
||
FROM
|
||
LGDAT.STKMP P
|
||
WHERE
|
||
LENGTH(P.AWPART) > 8
|
||
AND SUBSTR(P.AWGLED,1,1) <= '2'
|
||
GROUP BY
|
||
SUBSTR(P.AWPART,1,8)
|
||
) U
|
||
GROUP BY
|
||
U.MOLD
|
||
)
|
||
----------------------------------------------------sales major codes----------------------------------------------------------------------------------------------------------------------------------
|
||
,SJ AS (
|
||
SELECT * FROM LGDAT.MMSL WHERE COALESCE(BSMNCD,'') = ''
|
||
)
|
||
----------------------------------------------------sales minor codes----------------------------------------------------------------------------------------------------------------------------------
|
||
,SI AS (
|
||
SELECT * FROM LGDAT.MMSL WHERE COALESCE(BSMNCD,'') <> ''
|
||
)
|
||
----------------------------------------------------date ranges per season------------------------------------------------------------------------------------------------------------------------------
|
||
,seas AS(
|
||
SELECT
|
||
ssyr
|
||
,daterange(MIN(sdat),MAX(edat),'[]') dr
|
||
,current_date <@ daterange(MIN(sdat),MAX(edat),'[]') cy
|
||
FROM
|
||
gld
|
||
GROUP BY
|
||
ssyr
|
||
ORDER BY
|
||
ssyr DESC
|
||
)
|
||
,intv AS (
|
||
SELECT current_date - lower(dr) dy from seas where cy = true
|
||
)
|
||
,std AS (
|
||
SELECT
|
||
s.ssyr
|
||
,s.dr
|
||
,s.cy
|
||
,daterange(lower(dr),dy + LOWER(dr),'[]') ytd
|
||
FROM
|
||
seas s
|
||
CROSS JOIN intv
|
||
)
|
||
---------------------------------------union actual and forecast---------------------------------------------------------------------------------------------------------------------------------------
|
||
,UN AS (
|
||
--plan
|
||
SELECT
|
||
'Budget' AS VERSION
|
||
,'Budget' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE as ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(m.avDES1,p.awDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(m.avNWHT,p.awNWHT) * CASE COALESCE(m.avNWUN, p.awNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSMP OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.VERSION = 'b19'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1901'
|
||
OR OSM.ADJ_ORDERDATE >= '2018-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
--ITER
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(m.avDES1,p.awDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
UNION ALL
|
||
--staged forecast
|
||
SELECT
|
||
'Forecast' AS VERSION
|
||
,'Forecast' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(M.AVNWHT,P.AWNWHT) * CASE COALESCE(M.AVNWUN, P.AWNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSMF OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.VERSION = '5p7'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1901'
|
||
OR OSM.ADJ_ORDERDATE >= '2018-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
--ITER
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
UNION ALL
|
||
--actual
|
||
SELECT
|
||
'Actual' AS VERSION
|
||
,'Actual' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(M.AVNWHT,P.AWNWHT) * CASE COALESCE(M.AVNWUN, P.AWNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSM OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
--AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1606'
|
||
OR OSM.ADJ_ORDERDATE >= '2016-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
)
|
||
---------------------------------------aggregate actual and forecast-----------------------------------------------------------------------------------------------------------------------------------
|
||
,AGG AS (
|
||
SELECT
|
||
un.VERSION::text "version"
|
||
,un.ITER::text "iter"
|
||
,un.OSEAS::numeric oseas
|
||
,un.ODATE::date odate
|
||
,un.SSEAS::numeric sseas
|
||
,un.SDATE::date sdate
|
||
,un.RSEAS::numeric rseas
|
||
,un.RDATE::date rdate
|
||
,un.OM::text om
|
||
,un.SM::text sm
|
||
,un.RM::text rm
|
||
,un.OY::text oy
|
||
,(un.odate <@ _ytd)::boolean ocytd --current year to date
|
||
,(un.odate <@ so.ytd)::boolean oytd --year to date recast for prior/forecast periods
|
||
,un.SY::text sy
|
||
,(un.sdate <@ _ytd)::boolean scytd
|
||
,(un.sdate <@ ss.ytd)::boolean sytd
|
||
--had this order been placed yet? (current day prior year is greater than the order date)
|
||
,CASE WHEN (upper(so.ytd) - interval '1 day') >= un.odate THEN
|
||
--was the order open at this time last year? (for orders that were placed by this time, was the ship date greater then the order date)
|
||
CASE WHEN ((un.sdate > (upper(so.ytd) - interval '1 day')) OR (un.SY = 'F'))
|
||
--for orders that were placed and open at this time last year, was the order considered past due? (current date prior year > request date)
|
||
THEN
|
||
CASE WHEN (upper(so.ytd) - interval '1 day') > un.rdate
|
||
THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE 'Shipped'
|
||
END
|
||
ELSE 'Not Yet Placed'
|
||
END status_py
|
||
,un.RY::text ry
|
||
,un.PLNT::text plnt
|
||
,un.ACCOUNT::text bill_group
|
||
,(un.BILL_CUST || ' - ' || RTRIM(BC.BVNAME))::text bill_cust
|
||
,bc.bvctry bill_ctry
|
||
,bc.bvprcd bill_prov
|
||
,un.SHIPGRP::text ship_group
|
||
,(un.SHIP_CUST || ' - ' || RTRIM(SC.BVNAME))::text ship_cust
|
||
,sc.bvctry ship_ctry
|
||
,sc.bvprcd ship_prov
|
||
,un.CHAN::text chan
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAIL
|
||
ELSE un.CHAN
|
||
END::text mod_chan
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAILSUB
|
||
ELSE ''
|
||
END::text mod_chansub
|
||
,un.PROMO::text promo
|
||
,un.MAJG||COALESCE(' - '||BQDES,'')::text majg
|
||
,un.MING||COALESCE(' - '||BRDES,'')::text ming
|
||
,un.MAJS||COALESCE(' - '||SJ.BSDES1,'')::text majs
|
||
,un.MINS||COALESCE(' - '||SI.BSDES1,'')::text mins
|
||
,un.PART::text part
|
||
,un.PART_DESCR::text part_descr
|
||
,un.PART_FAMILY::text part_family
|
||
,un.PART_GROUP::text part_group
|
||
,un.BRANDING::text branding
|
||
,un.SEGM::text segm
|
||
,COALESCE(REPC.REPP,un.QUOTA_REP)::text quota_rep
|
||
,COALESCE(REPC.DIRECTOR,un.QUOTA_REP)::text director
|
||
,SUM(un.QTY)::numeric qty
|
||
,SUM(un.SALES)::numeric sales
|
||
,SUM(un.STDCOST)::numeric stdcost
|
||
,SUM(un.QTY * COALESCE(cm.cgstcs, cp.chstcs, cr.y0stcs) * un.c_rate)::numeric stdcost_cur
|
||
,SUM(un.POUNDS)::numeric pounds
|
||
,(un.VERSION||'-'||un.SY)::text flag_s
|
||
,(un.VERSION||'-'||un.OY)::text flag_o
|
||
,CASE
|
||
WHEN un.calc_status IN ('BACKORDER','OPEN') THEN
|
||
CASE
|
||
WHEN un.rdate < current_date THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE un.calc_status
|
||
END::text status
|
||
,(SUBSTR(UN.PART,9,3)||'-'||un.BRANDING)::text "options"
|
||
,'Grand Total'::text grandtotal
|
||
FROM
|
||
UN
|
||
LEFT OUTER JOIN REPC ON
|
||
REPC.RCODE = un.QUOTA_REP
|
||
LEFT OUTER JOIN SI ON
|
||
SI.BSMJCD = UN.MAJS
|
||
AND SI.BSMNCD = UN.MINS
|
||
LEFT OUTER JOIN SJ ON
|
||
SJ.BSMJCD = UN.MAJS
|
||
LEFT OUTER JOIN LGDAT.MAJG ON
|
||
BQGRP = un.MAJG
|
||
LEFT OUTER JOIN LGDAT.MMGP ON
|
||
BRMGRP = un.MING
|
||
AND BRGRP = un.MAJG
|
||
LEFT OUTER JOIN LGDAT.CUST BC ON
|
||
BC.BVCUST = UN.BILL_CUST
|
||
LEFT OUTER JOIN LGDAT.CUST SC ON
|
||
SC.BVCUST = UN.BILL_CUST
|
||
LEFT OUTER JOIN LGDAT.ICSTM cm ON
|
||
cm.cgpart = un.part
|
||
AND cm.cgplnt = un.plnt
|
||
LEFT OUTER JOIN LGDAT.ICSTP cp ON
|
||
cp.chpart = un.part
|
||
AND cp.chplnt = un.plnt
|
||
LEFT OUTER JOIN LGDAT.ICSTR cr ON
|
||
cr.y0part = un.part
|
||
AND cr.y0plnt = un.plnt
|
||
LEFT OUTER JOIN STD so ON
|
||
so.ssyr = un.oseas
|
||
LEFT OUTER JOIN STD ss ON
|
||
ss.ssyr = un.sseas
|
||
GROUP BY
|
||
un.VERSION::text
|
||
,un.ITER::text
|
||
,un.OSEAS::numeric
|
||
,un.ODATE::date
|
||
,un.SSEAS::numeric
|
||
,un.SDATE::date
|
||
,un.RSEAS::numeric
|
||
,un.RDATE::date
|
||
,un.OM::text
|
||
,un.SM::text
|
||
,un.RM::text
|
||
,un.OY::text
|
||
--current year to date
|
||
,(un.odate <@ _ytd)::boolean
|
||
--year to date recast for prior/forecast periods
|
||
,(un.odate <@ so.ytd)::boolean
|
||
,un.SY::text
|
||
,(un.sdate <@ _ytd)::boolean
|
||
,(un.sdate <@ ss.ytd)::boolean
|
||
,CASE WHEN (upper(so.ytd) - interval '1 day') >= un.odate THEN
|
||
--was the order open at this time last year? (for orders that were placed by this time, was the ship date greater then the order date)
|
||
CASE WHEN ((un.sdate > (upper(so.ytd) - interval '1 day')) OR (un.SY = 'F'))
|
||
--for orders that were placed and open at this time last year, was the order considered past due? (current date prior year > request date)
|
||
THEN
|
||
CASE WHEN (upper(so.ytd) - interval '1 day') > un.rdate
|
||
THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE 'Shipped'
|
||
END
|
||
ELSE 'Not Yet Placed'
|
||
END
|
||
,un.RY::text
|
||
,un.PLNT::text
|
||
,un.ACCOUNT::text
|
||
,(un.BILL_CUST || ' - ' || RTRIM(BC.BVNAME))::text
|
||
,bc.bvctry
|
||
,bc.bvprcd
|
||
,un.SHIPGRP::text
|
||
,(un.SHIP_CUST || ' - ' || RTRIM(SC.BVNAME))::text
|
||
,sc.bvctry
|
||
,sc.bvprcd
|
||
,un.CHAN::text
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAIL
|
||
ELSE un.CHAN
|
||
END::text
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAILSUB
|
||
ELSE ''
|
||
END::text
|
||
,un.PROMO::text
|
||
,un.MAJG||COALESCE(' - '||BQDES,'')::text
|
||
,un.MING||COALESCE(' - '||BRDES,'')::text
|
||
,un.MAJS||COALESCE(' - '||SJ.BSDES1,'')::text
|
||
,un.MINS||COALESCE(' - '||SI.BSDES1,'')::text
|
||
,un.PART::text
|
||
,un.PART_DESCR::text
|
||
,un.PART_FAMILY::text
|
||
,un.PART_GROUP::text
|
||
,un.BRANDING::text
|
||
,un.SEGM::text
|
||
,COALESCE(REPC.REPP,un.QUOTA_REP)::text
|
||
,COALESCE(REPC.DIRECTOR,un.QUOTA_REP)::text
|
||
,(un.VERSION||'-'||un.SY)::text
|
||
,(un.VERSION||'-'||un.OY)::text
|
||
,CASE
|
||
WHEN un.calc_status IN ('BACKORDER','OPEN') THEN
|
||
CASE
|
||
WHEN un.rdate < current_date THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE un.calc_status
|
||
END::text
|
||
,(SUBSTR(UN.PART,9,3)||'-'||un.BRANDING)::text
|
||
,'Grand Total'::text
|
||
)
|
||
SELECT
|
||
a.version
|
||
,a.iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,a.qty
|
||
,a.sales
|
||
,a.stdcost
|
||
,a.stdcost_cur
|
||
,a.pounds
|
||
,a.flag_s
|
||
,a.flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
agg a
|
||
UNION ALL
|
||
SELECT
|
||
'Var to Fcst' as version
|
||
,'Var to Fcst' as iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.QTY ELSE -a.QTY END::numeric QTY
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.SALES ELSE -a.SALES END::numeric SALES
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST ELSE -a.STDCOST END::numeric STDCOST
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST_CUR ELSE -a.STDCOST_CUR END::numeric STDCOST_CUR
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.POUNDS ELSE -a.POUNDS END::numeric POUNDS
|
||
,'Var to Fcst'||'-'||a.scytd flag_s
|
||
,'Var to Fcst'||'-'||a.ocytd flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
AGG a
|
||
WHERE
|
||
a.VERSION IN ('Actual','Forecast')
|
||
AND (a.ocytd OR a.scytd)
|
||
|
||
UNION ALL
|
||
SELECT
|
||
'Var to Bdgt' as version
|
||
,'Var to Bdgt' as iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.QTY ELSE -a.QTY END::numeric QTY
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.SALES ELSE -a.SALES END::numeric SALES
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST ELSE -a.STDCOST END::numeric STDCOST
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST_CUR ELSE -a.STDCOST_CUR END::numeric STDCOST_CUR
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.POUNDS ELSE -a.POUNDS END::numeric POUNDS
|
||
,'Var to Bdgt'||'-'||a.scytd flag_s
|
||
,'Var to Bdgt'||'-'||a.ocytd flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
AGG a
|
||
WHERE
|
||
a.VERSION IN ('Actual','Budget')
|
||
AND (a.ocytd OR a.scytd)
|
||
;</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 00:52:54
|
||
<b>Duration:</b> 3m19s
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-g-explain-2-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Append%20%20%28cost%3D4510966117154.68..4644894879274.93%20rows%3D1921380827591%20width%3D1520%29%20%28actual%20time%3D182826.066..198343.560%20rows%3D1377873%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D101605%20read%3D90963%2C%20local%20hit%3D5658755%20read%3D1%2C%20temp%20read%3D285245%20written%3D302150%0A%09%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20CTE%20seg%0A%09%20%20%20%20-%3E%20%20Values%20Scan%20on%20%22%2AVALUES%2A%22%20%20%28cost%3D0.00..0.18%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.001..0.004%20rows%3D14%20loops%3D1%29%0A%09%20%20CTE%20mg%0A%09%20%20%20%20-%3E%20%20Values%20Scan%20on%20%22%2AVALUES%2A_1%22%20%20%28cost%3D0.00..0.20%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.002..0.006%20rows%3D16%20loops%3D1%29%0A%09%20%20CTE%20repc%0A%09%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11.47..123.28%20rows%3D120%20width%3D96%29%20%28actual%20time%3D2.591..12.439%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28ltrim%28rtrim%28c.a9%29%29%20%3D%20q.qr%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D11.445%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20code%20c%20%20%28cost%3D9.21..118.86%20rows%3D120%20width%3D25%29%20%28actual%20time%3D2.207..11.727%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28a2%20%3D%20%27MM%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D21%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D25%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D11.107%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20pk_code%20%20%28cost%3D0.00..9.18%20rows%3D120%20width%3D0%29%20%28actual%20time%3D1.684..1.684%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28a2%20%3D%20%27MM%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1.575%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.56..1.56%20rows%3D56%20width%3D12%29%20%28actual%20time%3D0.368..0.368%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2011kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.337%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20qrh%20q%20%20%28cost%3D0.00..1.56%20rows%3D56%20width%3D12%29%20%28actual%20time%3D0.349..0.355%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.337%0A%09%20%20CTE%20md%0A%09%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D11936.00..11938.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D95.558..96.083%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20%28substr%28m.avpart%2C%201%2C%208%29%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Append%20%20%28cost%3D8137.31..11870.54%20rows%3D13091%20width%3D64%29%20%28actual%20time%3D83.235..94.596%20rows%3D3375%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D8137.31..8249.94%20rows%3D9010%20width%3D64%29%20%28actual%20time%3D83.233..84.126%20rows%3D3285%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20substr%28m.avpart%2C%201%2C%208%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m%20%20%28cost%3D0.00..8092.26%20rows%3D9010%20width%3D59%29%20%28actual%20time%3D0.012..41.548%20rows%3D76269%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28length%28avpart%29%20%3E%208%29%20AND%20%28substr%28avgled%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%204728%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D3373.23..3424.24%20rows%3D4081%20width%3D64%29%20%28actual%20time%3D10.241..10.276%20rows%3D90%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20substr%28p.awpart%2C%201%2C%208%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p%20%20%28cost%3D0.00..3352.82%20rows%3D4081%20width%3D52%29%20%28actual%20time%3D0.579..10.168%20rows%3D142%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28length%28awpart%29%20%3E%208%29%20AND%20%28substr%28awgled%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2036557%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20CTE%20sj%0A%09%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmsl%20%20%28cost%3D0.00..1.84%20rows%3D1%20width%3D22%29%20%28actual%20time%3D0.006..0.010%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28COALESCE%28bsmncd%2C%20%27%27%3A%3Atext%29%20%3D%20%27%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2056%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20CTE%20si%0A%09%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmsl%20mmsl_1%20%20%28cost%3D0.00..1.84%20rows%3D66%20width%3D22%29%20%28actual%20time%3D0.342..0.348%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28COALESCE%28bsmncd%2C%20%27%27%3A%3Atext%29%20%3C%3E%20%27%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2011%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.330%0A%09%20%20CTE%20seas%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D10.22..16.31%20rows%3D174%20width%3D41%29%20%28actual%20time%3D0.064..0.094%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20gld.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D10.22..10.65%20rows%3D174%20width%3D16%29%20%28actual%20time%3D0.052..0.059%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20gld.ssyr%20DESC%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2033kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D16%29%20%28actual%20time%3D0.010..0.029%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20CTE%20intv%0A%09%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seas%20%20%28cost%3D0.00..4.13%20rows%3D87%20width%3D4%29%20%28actual%20time%3D0.077..0.078%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20cy%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2014%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20CTE%20std%0A%09%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D0.00..457.62%20rows%3D15138%20width%3D73%29%20%28actual%20time%3D0.080..0.112%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20intv%20%20%28cost%3D0.00..1.74%20rows%3D87%20width%3D4%29%20%28actual%20time%3D0.078..0.079%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seas%20s%20%20%28cost%3D0.00..3.48%20rows%3D174%20width%3D41%29%20%28actual%20time%3D0.000..0.026%20rows%3D15%20loops%3D1%29%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D50003223.80..255856479.46%20rows%3D330423099%20width%3D697%29%20%28actual%20time%3D34264.289..81644.471%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D98372%20read%3D72635%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7746.456%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D50003223.80..63823292.65%20rows%3D83757993%20width%3D701%29%20%28actual%20time%3D34264.288..36465.643%20rows%3D212793%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20osm.adj_orderdate%2C%20sd.ssyr%2C%20%28LEAST%28GREATEST%28osm.adj_shipdate%2C%20sd.sdat%29%2C%20sd.edat%29%29%2C%20rd.ssyr%2C%20osm.adj_requestdate%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm.plnt%2C%20osm.account%2C%20osm.bill_cust%2C%20osm.shipgrp%2C%20osm.ship_cust%2C%20osm.chan%2C%20l.retail%2C%20l.retailsub%2C%20osm.promo%2C%20osm.majg%2C%20osm.ming%2C%20osm.majs%2C%20osm.mins%2C%20osm.part%2C%20%28%28%28osm.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_1.avdes1%2C%20p_1.awdes1%29%29%29%29%2C%20%28%28%28f.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f.descr%29%29%2C%20%28%28%28substr%28osm.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md.descr%29%29%2C%20%28COALESCE%28mg.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm.quota_rep%2C%20%28CASE%20osm.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm.calc_status%20END%29%2C%20osm.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D45043%20read%3D23493%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3613.602%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D50003223.80..50212618.79%20rows%3D83757993%20width%3D594%29%20%28actual%20time%3D34264.218..34431.899%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20osm.adj_orderdate%2C%20sd.ssyr%2C%20%28LEAST%28GREATEST%28osm.adj_shipdate%2C%20sd.sdat%29%2C%20sd.edat%29%29%2C%20rd.ssyr%2C%20osm.adj_requestdate%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm.plnt%2C%20osm.account%2C%20osm.bill_cust%2C%20osm.shipgrp%2C%20osm.ship_cust%2C%20osm.chan%2C%20l.retail%2C%20l.retailsub%2C%20osm.promo%2C%20osm.majg%2C%20osm.ming%2C%20osm.majs%2C%20osm.mins%2C%20osm.part%2C%20%28%28%28osm.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_1.avdes1%2C%20p_1.awdes1%29%29%29%29%2C%20%28%28%28f.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f.descr%29%29%2C%20%28%28%28substr%28osm.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md.descr%29%29%2C%20%28COALESCE%28mg.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm.quota_rep%2C%20%28CASE%20osm.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm.calc_status%20END%29%2C%20osm.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20352782kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D45043%20read%3D23493%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3613.602%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..16650773.71%20rows%3D83757993%20width%3D594%29%20%28actual%20time%3D523.585..12806.506%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm.bill_class%20%3D%20l.bill%29%20AND%20%28osm.ship_class%20%3D%20l.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D45040%20read%3D23493%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3613.602%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..10583311.94%20rows%3D83757993%20width%3D583%29%20%28actual%20time%3D522.937..12019.634%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm.part%2C%201%2C%208%29%20%3D%20md.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D45040%20read%3D23491%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3613.055%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..5348430.88%20rows%3D83757993%20width%3D551%29%20%28actual%20time%3D425.063..11458.763%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.part%20%3D%20p_1.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35984%20read%3D23491%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3613.055%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..5125106.33%20rows%3D83757993%20width%3D527%29%20%28actual%20time%3D313.496..11101.481%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35982%20read%3D20885%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3534.677%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..337594.45%20rows%3D4332310%20width%3D455%29%20%28actual%20time%3D313.488..8642.098%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35982%20read%3D20885%2C%20local%20hit%3D1281897%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3534.677%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..89964.52%20rows%3D224085%20width%3D383%29%20%28actual%20time%3D313.453..5992.381%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.part%20%3D%20m_1.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35982%20read%3D20885%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3534.662%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..81103.81%20rows%3D224085%20width%3D348%29%20%28actual%20time%3D12.984..5414.171%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm.part%2C%201%2C%203%29%20%3D%20f.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35980%20read%3D14439%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3281.743%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..77718.84%20rows%3D224085%20width%3D324%29%20%28actual%20time%3D0.106..4996.296%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm.part%2C%2016%2C%201%29%20%3D%20mg.f1%29%20AND%20%28osm.ming%20%3D%20mg.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35980%20read%3D14430%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3269.024%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..75750.09%20rows%3D224085%20width%3D292%29%20%28actual%20time%3D0.084..4563.487%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.glec%20%3D%20seg.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35980%20read%3D14430%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3269.024%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..72674.81%20rows%3D224085%20width%3D264%29%20%28actual%20time%3D0.070..4318.873%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35980%20read%3D14430%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3269.024%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmp%20osm%20%20%28cost%3D0.00..69587.73%20rows%3D224085%20width%3D184%29%20%28actual%20time%3D0.017..4055.770%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28version%20%3D%20%27b19%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271901%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272018-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2057051%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35980%20read%3D14430%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3269.024%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.048..0.048%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.003..0.024%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.011..0.011%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.002..0.008%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.015..0.015%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.003..0.012%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D12.868..12.868%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D12.719%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D12.733..12.786%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D12.719%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D300.407..300.407%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D6446%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D252.919%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_1%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D0.600..277.166%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D6446%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D252.919%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D641010%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1281895%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.015%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D641010%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1281894%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D108.057..108.057%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D2606%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D78.378%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_1%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D1.096..89.328%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D2606%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D78.378%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D97.843..97.843%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D95.561..97.114%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.629..0.629%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.546%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.574..0.596%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.546%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D33445583.00..42801951.72%20rows%3D56705265%20width%3D699%29%20%28actual%20time%3D21899.780..27106.566%20rows%3D250477%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20osm_1.adj_orderdate%2C%20sd_1.ssyr%2C%20%28LEAST%28GREATEST%28osm_1.adj_shipdate%2C%20sd_1.sdat%29%2C%20sd_1.edat%29%29%2C%20rd_1.ssyr%2C%20osm_1.adj_requestdate%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_1.plnt%2C%20osm_1.account%2C%20osm_1.bill_cust%2C%20osm_1.shipgrp%2C%20osm_1.ship_cust%2C%20osm_1.chan%2C%20l_1.retail%2C%20l_1.retailsub%2C%20osm_1.promo%2C%20osm_1.majg%2C%20osm_1.ming%2C%20osm_1.majs%2C%20osm_1.mins%2C%20osm_1.part%2C%20%28%28%28osm_1.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_2.avdes1%2C%20p_2.awdes1%29%29%29%29%2C%20%28%28%28f_1.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_1.descr%29%29%2C%20%28%28%28substr%28osm_1.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_1.descr%29%29%2C%20%28COALESCE%28mg_1.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_1.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_1.quota_rep%2C%20%28CASE%20osm_1.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_1.calc_status%20END%29%2C%20osm_1.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35412%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D33445583.00..33587346.16%20rows%3D56705265%20width%3D595%29%20%28actual%20time%3D21899.740..22369.501%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20osm_1.adj_orderdate%2C%20sd_1.ssyr%2C%20%28LEAST%28GREATEST%28osm_1.adj_shipdate%2C%20sd_1.sdat%29%2C%20sd_1.edat%29%29%2C%20rd_1.ssyr%2C%20osm_1.adj_requestdate%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_1.plnt%2C%20osm_1.account%2C%20osm_1.bill_cust%2C%20osm_1.shipgrp%2C%20osm_1.ship_cust%2C%20osm_1.chan%2C%20l_1.retail%2C%20l_1.retailsub%2C%20osm_1.promo%2C%20osm_1.majg%2C%20osm_1.ming%2C%20osm_1.majs%2C%20osm_1.mins%2C%20osm_1.part%2C%20%28%28%28osm_1.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_2.avdes1%2C%20p_2.awdes1%29%29%29%29%2C%20%28%28%28f_1.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_1.descr%29%29%2C%20%28%28%28substr%28osm_1.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_1.descr%29%29%2C%20%28COALESCE%28mg_1.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_1.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_1.quota_rep%2C%20%28CASE%20osm_1.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_1.calc_status%20END%29%2C%20osm_1.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20222052kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35412%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..11025086.80%20rows%3D56705265%20width%3D595%29%20%28actual%20time%3D82.385..8358.833%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm_1.bill_class%20%3D%20l_1.bill%29%20AND%20%28osm_1.ship_class%20%3D%20l_1.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35412%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..6967724.27%20rows%3D55168846%20width%3D584%29%20%28actual%20time%3D82.294..7619.217%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_1.part%2C%201%2C%208%29%20%3D%20md_1.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35410%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..3519664.90%20rows%3D55168846%20width%3D552%29%20%28actual%20time%3D81.174..7139.198%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.part%20%3D%20p_2.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35410%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..3371395.52%20rows%3D55168846%20width%3D528%29%20%28actual%20time%3D50.759..6837.840%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32802%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..217901.28%20rows%3D2853561%20width%3D456%29%20%28actual%20time%3D50.749..4566.299%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32802%2C%20local%20hit%3D813630%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..54789.49%20rows%3D147598%20width%3D384%29%20%28actual%20time%3D50.729..2196.620%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.part%20%3D%20m_2.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32802%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..46129.57%20rows%3D147598%20width%3D349%29%20%28actual%20time%3D0.257..1813.794%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_1.part%2C%201%2C%203%29%20%3D%20f_1.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26354%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..43891.91%20rows%3D147598%20width%3D325%29%20%28actual%20time%3D0.121..1436.906%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm_1.part%2C%2016%2C%201%29%20%3D%20mg_1.f1%29%20AND%20%28osm_1.ming%20%3D%20mg_1.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..42594.49%20rows%3D147598%20width%3D293%29%20%28actual%20time%3D0.110..1056.449%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.glec%20%3D%20seg_1.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..40564.57%20rows%3D147598%20width%3D265%29%20%28actual%20time%3D0.098..857.465%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.fspr%20%3D%20sd_1.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmf%20osm_1%20%20%28cost%3D0.00..38529.18%20rows%3D147598%20width%3D185%29%20%28actual%20time%3D0.026..619.289%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28version%20%3D%20%275p7%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271901%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272018-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D26345%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.065..0.065%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.008..0.035%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.007..0.007%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20seg_1%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.002..0.004%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.007..0.007%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20mg_1%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.001..0.003%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.131..0.131%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f_1%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.010..0.054%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D50.417..50.417%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_2%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D0.005..27.523%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od_1%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.005..0.005%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813628%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd_1%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.005%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813628%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D30.201..30.201%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_2%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D0.009..17.401%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D1.104..1.104%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20md_1%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.002..0.386%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.063..0.063%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l_1%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.011..0.032%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D112931514.84..144274888.60%20rows%3D189959841%20width%3D695%29%20%28actual%20time%3D16710.998..17936.290%20rows%3D348959%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_2.ssyr%2C%20osm_2.adj_orderdate%2C%20sd_2.ssyr%2C%20%28LEAST%28GREATEST%28osm_2.adj_shipdate%2C%20sd_2.sdat%29%2C%20sd_2.edat%29%29%2C%20rd_2.ssyr%2C%20osm_2.adj_requestdate%2C%20%28COALESCE%28od_2.cm%2C%20sd_2.cm%29%29%2C%20%28COALESCE%28sd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_2.cy%2C%20sd_2.cy%29%29%2C%20%28COALESCE%28sd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_2.plnt%2C%20osm_2.account%2C%20osm_2.bill_cust%2C%20osm_2.shipgrp%2C%20osm_2.ship_cust%2C%20osm_2.chan%2C%20l_2.retail%2C%20l_2.retailsub%2C%20osm_2.promo%2C%20osm_2.majg%2C%20osm_2.ming%2C%20osm_2.majs%2C%20osm_2.mins%2C%20osm_2.part%2C%20%28%28%28osm_2.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_3.avdes1%2C%20p_3.awdes1%29%29%29%29%2C%20%28%28%28f_2.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_2.descr%29%29%2C%20%28%28%28substr%28osm_2.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_2.descr%29%29%2C%20%28COALESCE%28mg_2.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_2.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_2.quota_rep%2C%20%28CASE%20osm_2.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_2.calc_status%20END%29%2C%20osm_2.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D17917%20read%3D49142%2C%20local%20hit%3D1467704%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D112931514.84..113406414.44%20rows%3D189959841%20width%3D584%29%20%28actual%20time%3D16710.946..16814.969%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_2.ssyr%2C%20osm_2.adj_orderdate%2C%20sd_2.ssyr%2C%20%28LEAST%28GREATEST%28osm_2.adj_shipdate%2C%20sd_2.sdat%29%2C%20sd_2.edat%29%29%2C%20rd_2.ssyr%2C%20osm_2.adj_requestdate%2C%20%28COALESCE%28od_2.cm%2C%20sd_2.cm%29%29%2C%20%28COALESCE%28sd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_2.cy%2C%20sd_2.cy%29%29%2C%20%28COALESCE%28sd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_2.plnt%2C%20osm_2.account%2C%20osm_2.bill_cust%2C%20osm_2.shipgrp%2C%20osm_2.ship_cust%2C%20osm_2.chan%2C%20l_2.retail%2C%20l_2.retailsub%2C%20osm_2.promo%2C%20osm_2.majg%2C%20osm_2.ming%2C%20osm_2.majs%2C%20osm_2.mins%2C%20osm_2.part%2C%20%28%28%28osm_2.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_3.avdes1%2C%20p_3.awdes1%29%29%29%29%2C%20%28%28%28f_2.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_2.descr%29%29%2C%20%28%28%28substr%28osm_2.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_2.descr%29%29%2C%20%28COALESCE%28mg_2.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_2.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_2.quota_rep%2C%20%28CASE%20osm_2.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_2.calc_status%20END%29%2C%20osm_2.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20201623kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D17917%20read%3D49142%2C%20local%20hit%3D1467704%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..37465936.67%20rows%3D189959841%20width%3D584%29%20%28actual%20time%3D154.009..11372.141%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm_2.bill_class%20%3D%20l_2.bill%29%20AND%20%28osm_2.ship_class%20%3D%20l_2.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D17917%20read%3D49142%2C%20local%20hit%3D1467704%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..23902628.82%20rows%3D189959841%20width%3D574%29%20%28actual%20time%3D153.913..10698.691%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_2.part%2C%201%2C%208%29%20%3D%20md_2.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D17915%20read%3D49142%2C%20local%20hit%3D1467704%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..12030132.26%20rows%3D189959841%20width%3D542%29%20%28actual%20time%3D148.767..10299.042%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.part%20%3D%20p_3.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D17915%20read%3D49142%2C%20local%20hit%3D1467704%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..11527995.69%20rows%3D189959841%20width%3D518%29%20%28actual%20time%3D102.067..10041.030%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D15307%20read%3D49142%2C%20local%20hit%3D1467704%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..670498.91%20rows%3D9825509%20width%3D446%29%20%28actual%20time%3D102.059..8236.690%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D15307%20read%3D49142%2C%20local%20hit%3D733854%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..108904.23%20rows%3D508216%20width%3D374%29%20%28actual%20time%3D102.031..6271.278%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.part%20%3D%20m_3.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D15307%20read%3D49142%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..99297.64%20rows%3D508216%20width%3D339%29%20%28actual%20time%3D6.361..5913.268%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_2.part%2C%201%2C%203%29%20%3D%20f_2.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D8859%20read%3D49142%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..91650.71%20rows%3D508216%20width%3D315%29%20%28actual%20time%3D6.219..5568.521%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm_2.part%2C%2016%2C%201%29%20%3D%20mg_2.f1%29%20AND%20%28osm_2.ming%20%3D%20mg_2.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D8850%20read%3D49142%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..87189.88%20rows%3D508216%20width%3D283%29%20%28actual%20time%3D6.207..5231.289%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.glec%20%3D%20seg_2.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D8850%20read%3D49142%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..80265.15%20rows%3D508216%20width%3D255%29%20%28actual%20time%3D6.193..5042.515%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.fspr%20%3D%20sd_2.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D8850%20read%3D49142%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osm%20osm_2%20%20%28cost%3D0.00..73663.10%20rows%3D508216%20width%3D175%29%20%28actual%20time%3D6.115..4852.376%20rows%3D367211%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271606%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272016-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20417318%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D8850%20read%3D49142%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4132.855%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.064..0.064%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_2%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.009..0.036%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.006..0.006%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20seg_2%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.002..0.003%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.006..0.006%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20mg_2%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.001..0.002%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.131..0.131%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f_2%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.010..0.051%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D95.611..95.611%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_3%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D0.005..42.484%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od_2%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D367211%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_2.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_2.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D733852%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd_2%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D367211%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_2.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm_2.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D733850%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D46.657..46.657%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_3%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D0.010..23.613%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D5.110..5.110%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20md_2%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.002..0.405%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.068..0.068%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l_2%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.021..0.039%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20CTE%20agg%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D3990139087947.22..4510710248131.84%20rows%3D1892986037035%20width%3D1404%29%20%28actual%20time%3D182825.587..189012.716%20rows%3D809487%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20un.version%2C%20un.iter%2C%20%28%28un.oseas%29%3A%3Anumeric%29%2C%20un.odate%2C%20%28%28un.sseas%29%3A%3Anumeric%29%2C%20un.sdate%2C%20%28%28un.rseas%29%3A%3Anumeric%29%2C%20un.rdate%2C%20un.om%2C%20un.sm%2C%20un.rm%2C%20un.oy%2C%20%28%28un.odate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.odate%20%3C%40%20so.ytd%29%29%2C%20un.sy%2C%20%28%28un.sdate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.sdate%20%3C%40%20ss.ytd%29%29%2C%20%28CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%3D%20un.odate%29%20THEN%20CASE%20WHEN%20%28%28un.sdate%20%3E%20%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%29%20OR%20%28un.sy%20%3D%20%27F%27%3A%3Atext%29%29%20THEN%20CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%20un.rdate%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20%27Shipped%27%3A%3Atext%20END%20ELSE%20%27Not%20Yet%20Placed%27%3A%3Atext%20END%29%2C%20un.ry%2C%20un.plnt%2C%20un.account%2C%20%28%28%28un.bill_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28bc.bvname%29%29%29%2C%20bc.bvctry%2C%20bc.bvprcd%2C%20un.shipgrp%2C%20%28%28%28un.ship_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28sc.bvname%29%29%29%2C%20sc.bvctry%2C%20sc.bvprcd%2C%20un.chan%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retail%20ELSE%20un.chan%20END%29%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retailsub%20ELSE%20%27%27%3A%3Atext%20END%29%2C%20un.promo%2C%20%28%28un.majg%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20majg.bqdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.ming%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20mmgp.brdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.majs%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20sj.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.mins%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20si.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20un.part%2C%20un.part_descr%2C%20un.part_family%2C%20un.part_group%2C%20un.branding%2C%20un.segm%2C%20%28COALESCE%28repc.repp%2C%20un.quota_rep%29%29%2C%20%28COALESCE%28repc.director%2C%20un.quota_rep%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.sy%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.oy%29%29%2C%20%28CASE%20WHEN%20%28un.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20THEN%20CASE%20WHEN%20%28un.rdate%20%3C%20CURRENT_DATE%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20un.calc_status%20END%29%2C%20%28%28%28substr%28un.part%2C%209%2C%203%29%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.branding%29%29%2C%20%27Grand%20Total%27%3A%3Atext%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101605%20read%3D90963%2C%20local%20hit%3D5658755%20read%3D1%2C%20temp%20read%3D169551%20written%3D244303%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D3990139087947.22..3994871553039.80%20rows%3D1892986037035%20width%3D1346%29%20%28actual%20time%3D182817.706..183828.314%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.version%2C%20un.iter%2C%20%28%28un.oseas%29%3A%3Anumeric%29%2C%20un.odate%2C%20%28%28un.sseas%29%3A%3Anumeric%29%2C%20un.sdate%2C%20%28%28un.rseas%29%3A%3Anumeric%29%2C%20un.rdate%2C%20un.om%2C%20un.sm%2C%20un.rm%2C%20un.oy%2C%20%28%28un.odate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.odate%20%3C%40%20so.ytd%29%29%2C%20un.sy%2C%20%28%28un.sdate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.sdate%20%3C%40%20ss.ytd%29%29%2C%20%28CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%3D%20un.odate%29%20THEN%20CASE%20WHEN%20%28%28un.sdate%20%3E%20%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%29%20OR%20%28un.sy%20%3D%20%27F%27%3A%3Atext%29%29%20THEN%20CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%20un.rdate%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20%27Shipped%27%3A%3Atext%20END%20ELSE%20%27Not%20Yet%20Placed%27%3A%3Atext%20END%29%2C%20un.ry%2C%20un.plnt%2C%20un.account%2C%20%28%28%28un.bill_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28bc.bvname%29%29%29%2C%20bc.bvctry%2C%20bc.bvprcd%2C%20un.shipgrp%2C%20%28%28%28un.ship_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28sc.bvname%29%29%29%2C%20sc.bvctry%2C%20sc.bvprcd%2C%20un.chan%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retail%20ELSE%20un.chan%20END%29%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retailsub%20ELSE%20%27%27%3A%3Atext%20END%29%2C%20un.promo%2C%20%28%28un.majg%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20majg.bqdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.ming%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20mmgp.brdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.majs%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20sj.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.mins%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20si.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20un.part%2C%20un.part_descr%2C%20un.part_family%2C%20un.part_group%2C%20un.branding%2C%20un.segm%2C%20%28COALESCE%28repc.repp%2C%20un.quota_rep%29%29%2C%20%28COALESCE%28repc.director%2C%20un.quota_rep%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.sy%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.oy%29%29%2C%20%28CASE%20WHEN%20%28un.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20THEN%20CASE%20WHEN%20%28un.rdate%20%3C%20CURRENT_DATE%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20un.calc_status%20END%29%2C%20%28%28%28substr%28un.part%2C%209%2C%203%29%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.branding%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20475848kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101605%20read%3D90963%2C%20local%20hit%3D5658755%20read%3D1%2C%20temp%20read%3D169551%20written%3D244303%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Merge%20Right%20Join%20%20%28cost%3D33563712447.31..265517026370.70%20rows%3D1892986037035%20width%3D1346%29%20%28actual%20time%3D117209.936..123600.017%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Merge%20Cond%3A%20%28ss.ssyr%20%3D%20un.sseas%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D90963%2C%20local%20hit%3D5658755%20read%3D1%2C%20temp%20read%3D110070%20written%3D184821%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D1353.78..1391.63%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.122..0.740%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20ss.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20std%20ss%20%20%28cost%3D0.00..302.76%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.081..0.117%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D33563711093.53..33688759715.34%20rows%3D25009724363%20width%3D1300%29%20%28actual%20time%3D117198.447..119674.219%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D90963%2C%20local%20hit%3D5658753%20read%3D1%2C%20temp%20read%3D110070%20written%3D184821%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D33563711093.53..33626235404.44%20rows%3D25009724363%20width%3D1300%29%20%28actual%20time%3D117198.083..117976.508%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.sseas%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20445840kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D90963%2C%20local%20hit%3D5658753%20read%3D1%2C%20temp%20read%3D110070%20written%3D146582%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Merge%20Right%20Join%20%20%28cost%3D488162845.81..864134844.69%20rows%3D25009724363%20width%3D1300%29%20%28actual%20time%3D105501.163..109753.807%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Merge%20Cond%3A%20%28so.ssyr%20%3D%20un.oseas%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D90963%2C%20local%20hit%3D5658753%20read%3D1%2C%20temp%20read%3D54340%20written%3D90851%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D1353.78..1391.63%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.005..0.009%20rows%3D13%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20so.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20std%20so%20%20%28cost%3D0.00..302.76%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.000..0.002%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D488161492.03..489813607.52%20rows%3D330423099%20width%3D1268%29%20%28actual%20time%3D105468.884..108956.573%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D90963%2C%20local%20hit%3D5658753%20read%3D1%2C%20temp%20read%3D54340%20written%3D90851%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D488161492.03..488987549.77%20rows%3D330423099%20width%3D1268%29%20%28actual%20time%3D105419.215..105977.954%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.oseas%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20434720kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D90963%2C%20local%20hit%3D5658753%20read%3D1%2C%20temp%20read%3D54340%20written%3D54341%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30326.40..75489285.22%20rows%3D330423099%20width%3D1268%29%20%28actual%20time%3D34892.831..94537.687%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cr.y0part%29%20AND%20%28un.plnt%20%3D%20cr.y0plnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D90963%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D22414.65..56426266.97%20rows%3D330423099%20width%3D1262%29%20%28actual%20time%3D34668.780..93298.840%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cp.chpart%29%20AND%20%28un.plnt%20%3D%20cp.chplnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D85711%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8003.465%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D14299.03..36533966.06%20rows%3D330423099%20width%3D1256%29%20%28actual%20time%3D34522.917..92143.759%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cm.cgpart%29%20AND%20%28un.plnt%20%3D%20cm.cgplnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D80395%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7920.833%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D7433.88..34026391.85%20rows%3D330423099%20width%3D1250%29%20%28actual%20time%3D34383.160..90732.988%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.bill_cust%20%3D%20sc.bvcust%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101597%20read%3D75888%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7833.063%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D3723.16..29479363.52%20rows%3D330423099%20width%3D1223%29%20%28actual%20time%3D34366.365..89923.315%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.bill_cust%20%3D%20bc.bvcust%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D98373%20read%3D75888%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7833.063%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D12.44..24932335.18%20rows%3D330423099%20width%3D1196%29%20%28actual%20time%3D34277.988..88987.624%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.ming%20%3D%20mmgp.brmgrp%29%20AND%20%28un.majg%20%3D%20mmgp.brgrp%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D98373%20read%3D72664%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7758.824%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D7.51..15006668.18%20rows%3D330423099%20width%3D1186%29%20%28actual%20time%3D34277.622..88269.216%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.majg%20%3D%20majg.bqgrp%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D98373%20read%3D72663%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7758.524%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.24..13569326.43%20rows%3D330423099%20width%3D1176%29%20%28actual%20time%3D34277.304..87627.015%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.majs%20%3D%20sj.bsmjcd%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D98373%20read%3D72662%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7758.231%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.21..12313718.62%20rows%3D330423099%20width%3D1144%29%20%28actual%20time%3D34277.281..87019.163%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.majs%20%3D%20si.bsmjcd%29%20AND%20%28un.mins%20%3D%20si.bsmncd%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D98372%20read%3D72662%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7758.231%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D3.90..9830091.09%20rows%3D330423099%20width%3D1112%29%20%28actual%20time%3D34276.887..86204.919%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.quota_rep%20%3D%20repc.rcode%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D98372%20read%3D72661%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7757.901%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..6608461.98%20rows%3D330423099%20width%3D1048%29%20%28actual%20time%3D34264.293..85100.705%20rows%3D812229%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D98372%20read%3D72635%2C%20local%20hit%3D5658753%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7746.456%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2.40..2.40%20rows%3D120%20width%3D96%29%20%28actual%20time%3D12.582..12.582%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2017kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D11.445%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20repc%20%20%28cost%3D0.00..2.40%20rows%3D120%20width%3D96%29%20%28actual%20time%3D2.594..12.537%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D11.445%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.32..1.32%20rows%3D66%20width%3D96%29%20%28actual%20time%3D0.382..0.382%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2011kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.330%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20si%20%20%28cost%3D0.00..1.32%20rows%3D66%20width%3D96%29%20%28actual%20time%3D0.344..0.363%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.330%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.02..0.02%20rows%3D1%20width%3D64%29%20%28actual%20time%3D0.016..0.016%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20sj%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D64%29%20%28actual%20time%3D0.007..0.013%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.12..1.12%20rows%3D12%20width%3D14%29%20%28actual%20time%3D0.312..0.312%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.293%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20majg%20%20%28cost%3D0.00..1.12%20rows%3D12%20width%3D14%29%20%28actual%20time%3D0.301..0.303%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.293%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2.57..2.57%20rows%3D157%20width%3D18%29%20%28actual%20time%3D0.359..0.359%20rows%3D157%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.300%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmgp%20%20%28cost%3D0.00..2.57%20rows%3D157%20width%3D18%29%20%28actual%20time%3D0.309..0.326%20rows%3D157%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.300%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3440.32..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D88.356..88.356%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2032768%20%20Batches%3A%201%20%20Memory%20Usage%3A%201721kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D74.239%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20cust%20bc%20%20%28cost%3D0.00..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D0.900..82.368%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D74.239%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3440.32..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D16.771..16.771%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2032768%20%20Batches%3A%201%20%20Memory%20Usage%3A%201721kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20cust%20sc%20%20%28cost%3D0.00..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D0.007..10.557%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D5450.26..5450.26%20rows%3D94326%20width%3D29%29%20%28actual%20time%3D139.654..139.654%20rows%3D94326%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%206699kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4507%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D87.770%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstm%20cm%20%20%28cost%3D0.00..5450.26%20rows%3D94326%20width%3D29%29%20%28actual%20time%3D1.271..114.520%20rows%3D94326%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4507%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D87.770%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D6435.85..6435.85%20rows%3D111985%20width%3D20%29%20%28actual%20time%3D145.806..145.806%20rows%3D111985%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%206768kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5316%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D82.632%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstp%20cp%20%20%28cost%3D0.00..6435.85%20rows%3D111985%20width%3D20%29%20%28actual%20time%3D3.411..114.774%20rows%3D111985%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5316%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D82.632%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D6315.90..6315.90%20rows%3D106390%20width%3D27%29%20%28actual%20time%3D223.650..223.650%20rows%3D106390%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207334kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5252%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D175.960%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstr%20cr%20%20%28cost%3D0.00..6315.90%20rows%3D106390%20width%3D27%29%20%28actual%20time%3D1.134..193.496%20rows%3D106390%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5252%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D175.960%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a%20%20%28cost%3D0.00..37859720740.70%20rows%3D1892986037035%20width%3D1520%29%20%28actual%20time%3D182825.842..192275.884%20rows%3D809487%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D101605%20read%3D90963%2C%20local%20hit%3D5658755%20read%3D1%2C%20temp%20read%3D169551%20written%3D302149%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8179.425%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a_1%20%20%28cost%3D0.00..43089094668.02%20rows%3D14197395278%20width%3D1520%29%20%28actual%20time%3D336.760..2113.121%20rows%3D298364%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Filter%3A%20%28%28ocytd%20OR%20scytd%29%20AND%20%28version%20%3D%20ANY%20%28%27%7BActual%2CForecast%7D%27%3A%3Atext%5B%5D%29%29%29%0A%09%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20511123%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20temp%20read%3D57847%20written%3D1%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a_2%20%20%28cost%3D0.00..43089094668.02%20rows%3D14197395278%20width%3D1520%29%20%28actual%20time%3D218.764..3615.793%20rows%3D270022%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Filter%3A%20%28%28ocytd%20OR%20scytd%29%20AND%20%28version%20%3D%20ANY%20%28%27%7BActual%2CBudget%7D%27%3A%3Atext%5B%5D%29%29%29%0A%09%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20539465%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20temp%20read%3D57847%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Append (cost=4510966117154.68..4644894879274.93 rows=1921380827591 width=1520) (actual time=182826.066..198343.560 rows=1377873 loops=1)
|
||
Buffers: shared hit=101605 read=90963, local hit=5658755 read=1, temp read=285245 written=302150
|
||
I/O Timings: read=8179.425
|
||
CTE seg
|
||
-> Values Scan on "*VALUES*" (cost=0.00..0.18 rows=14 width=64) (actual time=0.001..0.004 rows=14 loops=1)
|
||
CTE mg
|
||
-> Values Scan on "*VALUES*_1" (cost=0.00..0.20 rows=16 width=96) (actual time=0.002..0.006 rows=16 loops=1)
|
||
CTE repc
|
||
-> Hash Left Join (cost=11.47..123.28 rows=120 width=96) (actual time=2.591..12.439 rows=120 loops=1)
|
||
Hash Cond: (ltrim(rtrim(c.a9)) = q.qr)
|
||
Buffers: shared read=26
|
||
I/O Timings: read=11.445
|
||
-> Bitmap Heap Scan on code c (cost=9.21..118.86 rows=120 width=25) (actual time=2.207..11.727 rows=120 loops=1)
|
||
Recheck Cond: (a2 = 'MM'::text)
|
||
Heap Blocks: exact=21
|
||
Buffers: shared read=25
|
||
I/O Timings: read=11.107
|
||
-> Bitmap Index Scan on pk_code (cost=0.00..9.18 rows=120 width=0) (actual time=1.684..1.684 rows=120 loops=1)
|
||
Index Cond: (a2 = 'MM'::text)
|
||
Buffers: shared read=4
|
||
I/O Timings: read=1.575
|
||
-> Hash (cost=1.56..1.56 rows=56 width=12) (actual time=0.368..0.368 rows=56 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 11kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.337
|
||
-> Seq Scan on qrh q (cost=0.00..1.56 rows=56 width=12) (actual time=0.349..0.355 rows=56 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.337
|
||
CTE md
|
||
-> HashAggregate (cost=11936.00..11938.00 rows=200 width=64) (actual time=95.558..96.083 rows=3368 loops=1)
|
||
Group Key: (substr(m.avpart, 1, 8))
|
||
Buffers: shared hit=9056
|
||
-> Append (cost=8137.31..11870.54 rows=13091 width=64) (actual time=83.235..94.596 rows=3375 loops=1)
|
||
Buffers: shared hit=9056
|
||
-> HashAggregate (cost=8137.31..8249.94 rows=9010 width=64) (actual time=83.233..84.126 rows=3285 loops=1)
|
||
Group Key: substr(m.avpart, 1, 8)
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m (cost=0.00..8092.26 rows=9010 width=59) (actual time=0.012..41.548 rows=76269 loops=1)
|
||
Filter: ((length(avpart) > 8) AND (substr(avgled, 1, 1) <= '2'::text))
|
||
Rows Removed by Filter: 4728
|
||
Buffers: shared hit=6448
|
||
-> HashAggregate (cost=3373.23..3424.24 rows=4081 width=64) (actual time=10.241..10.276 rows=90 loops=1)
|
||
Group Key: substr(p.awpart, 1, 8)
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p (cost=0.00..3352.82 rows=4081 width=52) (actual time=0.579..10.168 rows=142 loops=1)
|
||
Filter: ((length(awpart) > 8) AND (substr(awgled, 1, 1) <= '2'::text))
|
||
Rows Removed by Filter: 36557
|
||
Buffers: shared hit=2608
|
||
CTE sj
|
||
-> Seq Scan on mmsl (cost=0.00..1.84 rows=1 width=22) (actual time=0.006..0.010 rows=11 loops=1)
|
||
Filter: (COALESCE(bsmncd, ''::text) = ''::text)
|
||
Rows Removed by Filter: 56
|
||
Buffers: shared hit=1
|
||
CTE si
|
||
-> Seq Scan on mmsl mmsl_1 (cost=0.00..1.84 rows=66 width=22) (actual time=0.342..0.348 rows=56 loops=1)
|
||
Filter: (COALESCE(bsmncd, ''::text) <> ''::text)
|
||
Rows Removed by Filter: 11
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.330
|
||
CTE seas
|
||
-> GroupAggregate (cost=10.22..16.31 rows=174 width=41) (actual time=0.064..0.094 rows=15 loops=1)
|
||
Group Key: gld.ssyr
|
||
Buffers: local hit=2
|
||
-> Sort (cost=10.22..10.65 rows=174 width=16) (actual time=0.052..0.059 rows=174 loops=1)
|
||
Sort Key: gld.ssyr DESC
|
||
Sort Method: quicksort Memory: 33kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld (cost=0.00..3.74 rows=174 width=16) (actual time=0.010..0.029 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
CTE intv
|
||
-> CTE Scan on seas (cost=0.00..4.13 rows=87 width=4) (actual time=0.077..0.078 rows=1 loops=1)
|
||
Filter: cy
|
||
Rows Removed by Filter: 14
|
||
Buffers: local hit=2
|
||
CTE std
|
||
-> Nested Loop (cost=0.00..457.62 rows=15138 width=73) (actual time=0.080..0.112 rows=15 loops=1)
|
||
Buffers: local hit=2
|
||
-> CTE Scan on intv (cost=0.00..1.74 rows=87 width=4) (actual time=0.078..0.079 rows=1 loops=1)
|
||
Buffers: local hit=2
|
||
-> CTE Scan on seas s (cost=0.00..3.48 rows=174 width=41) (actual time=0.000..0.026 rows=15 loops=1)
|
||
CTE un
|
||
-> Append (cost=50003223.80..255856479.46 rows=330423099 width=697) (actual time=34264.289..81644.471 rows=812229 loops=1)
|
||
Buffers: shared hit=98372 read=72635, local hit=5658753 read=1
|
||
I/O Timings: read=7746.456
|
||
-> GroupAggregate (cost=50003223.80..63823292.65 rows=83757993 width=701) (actual time=34264.288..36465.643 rows=212793 loops=1)
|
||
Group Key: od.ssyr, osm.adj_orderdate, sd.ssyr, (LEAST(GREATEST(osm.adj_shipdate, sd.sdat), sd.edat)), rd.ssyr, osm.adj_requestdate, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(rd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text)), (COALESCE(rd.cy, 'F'::text)), osm.plnt, osm.account, osm.bill_cust, osm.shipgrp, osm.ship_cust, osm.chan, l.retail, l.retailsub, osm.promo, osm.majg, osm.ming, osm.majs, osm.mins, osm.part, (((osm.part || ' - '::text) || rtrim(COALESCE(m_1.avdes1, p_1.awdes1)))), (((f.f3 || ' - '::text) || f.descr)), (((substr(osm.part, 1, 8) || ' - '::text) || md.descr)), (COALESCE(mg.grp, 'Unbranded'::text)), (COALESCE(seg.segm, 'Other'::text)), osm.quota_rep, (CASE osm.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm.calc_status END), osm.c_rate
|
||
Buffers: shared hit=45043 read=23493, local hit=2563791 read=1
|
||
I/O Timings: read=3613.602
|
||
-> Sort (cost=50003223.80..50212618.79 rows=83757993 width=594) (actual time=34264.218..34431.899 rows=641010 loops=1)
|
||
Sort Key: od.ssyr, osm.adj_orderdate, sd.ssyr, (LEAST(GREATEST(osm.adj_shipdate, sd.sdat), sd.edat)), rd.ssyr, osm.adj_requestdate, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(rd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text)), (COALESCE(rd.cy, 'F'::text)), osm.plnt, osm.account, osm.bill_cust, osm.shipgrp, osm.ship_cust, osm.chan, l.retail, l.retailsub, osm.promo, osm.majg, osm.ming, osm.majs, osm.mins, osm.part, (((osm.part || ' - '::text) || rtrim(COALESCE(m_1.avdes1, p_1.awdes1)))), (((f.f3 || ' - '::text) || f.descr)), (((substr(osm.part, 1, 8) || ' - '::text) || md.descr)), (COALESCE(mg.grp, 'Unbranded'::text)), (COALESCE(seg.segm, 'Other'::text)), osm.quota_rep, (CASE osm.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm.calc_status END), osm.c_rate
|
||
Sort Method: quicksort Memory: 352782kB
|
||
Buffers: shared hit=45043 read=23493, local hit=2563791 read=1
|
||
I/O Timings: read=3613.602
|
||
-> Hash Left Join (cost=11749.79..16650773.71 rows=83757993 width=594) (actual time=523.585..12806.506 rows=641010 loops=1)
|
||
Hash Cond: ((osm.bill_class = l.bill) AND (osm.ship_class = l.ship))
|
||
Buffers: shared hit=45040 read=23493, local hit=2563791 read=1
|
||
I/O Timings: read=3613.602
|
||
-> Hash Left Join (cost=11744.32..10583311.94 rows=83757993 width=583) (actual time=522.937..12019.634 rows=641010 loops=1)
|
||
Hash Cond: (substr(osm.part, 1, 8) = md.mold)
|
||
Buffers: shared hit=45040 read=23491, local hit=2563791 read=1
|
||
I/O Timings: read=3613.055
|
||
-> Hash Left Join (cost=11737.82..5348430.88 rows=83757993 width=551) (actual time=425.063..11458.763 rows=641010 loops=1)
|
||
Hash Cond: (osm.part = p_1.awpart)
|
||
Buffers: shared hit=35984 read=23491, local hit=2563791 read=1
|
||
I/O Timings: read=3613.055
|
||
-> Nested Loop Left Join (cost=8303.37..5125106.33 rows=83757993 width=527) (actual time=313.496..11101.481 rows=641010 loops=1)
|
||
Buffers: shared hit=35982 read=20885, local hit=2563791 read=1
|
||
I/O Timings: read=3534.677
|
||
-> Nested Loop Left Join (cost=8303.23..337594.45 rows=4332310 width=455) (actual time=313.488..8642.098 rows=641010 loops=1)
|
||
Buffers: shared hit=35982 read=20885, local hit=1281897 read=1
|
||
I/O Timings: read=3534.677
|
||
-> Hash Left Join (cost=8303.08..89964.52 rows=224085 width=383) (actual time=313.453..5992.381 rows=641010 loops=1)
|
||
Hash Cond: (osm.part = m_1.avpart)
|
||
Buffers: shared hit=35982 read=20885, local hit=2
|
||
I/O Timings: read=3534.662
|
||
-> Hash Left Join (cost=30.62..81103.81 rows=224085 width=348) (actual time=12.984..5414.171 rows=641010 loops=1)
|
||
Hash Cond: (substr(osm.part, 1, 3) = f.f3)
|
||
Buffers: shared hit=35980 read=14439, local hit=2
|
||
I/O Timings: read=3281.743
|
||
-> Hash Left Join (cost=6.93..77718.84 rows=224085 width=324) (actual time=0.106..4996.296 rows=641010 loops=1)
|
||
Hash Cond: ((substr(osm.part, 16, 1) = mg.f1) AND (osm.ming = mg.ming))
|
||
Buffers: shared hit=35980 read=14430, local hit=2
|
||
I/O Timings: read=3269.024
|
||
-> Hash Left Join (cost=6.37..75750.09 rows=224085 width=292) (actual time=0.084..4563.487 rows=641010 loops=1)
|
||
Hash Cond: (osm.glec = seg.glec)
|
||
Buffers: shared hit=35980 read=14430, local hit=2
|
||
I/O Timings: read=3269.024
|
||
-> Hash Left Join (cost=5.92..72674.81 rows=224085 width=264) (actual time=0.070..4318.873 rows=641010 loops=1)
|
||
Hash Cond: (osm.fspr = sd.fspr)
|
||
Buffers: shared hit=35980 read=14430, local hit=2
|
||
I/O Timings: read=3269.024
|
||
-> Seq Scan on osmp osm (cost=0.00..69587.73 rows=224085 width=184) (actual time=0.017..4055.770 rows=641010 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND (version = 'b19'::text) AND (substr(glec, 1, 1) <= '2'::text) AND ((fspr >= '1901'::text) OR (adj_orderdate >= '2018-06-01'::date)))
|
||
Rows Removed by Filter: 57051
|
||
Buffers: shared hit=35980 read=14430
|
||
I/O Timings: read=3269.024
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.048..0.048 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd (cost=0.00..3.74 rows=174 width=112) (actual time=0.003..0.024 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.011..0.011 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg (cost=0.00..0.28 rows=14 width=64) (actual time=0.002..0.008 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.015..0.015 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg (cost=0.00..0.32 rows=16 width=96) (actual time=0.003..0.012 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=12.868..12.868 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared read=9
|
||
I/O Timings: read=12.719
|
||
-> Seq Scan on family f (cost=0.00..15.53 rows=653 width=24) (actual time=12.733..12.786 rows=653 loops=1)
|
||
Buffers: shared read=9
|
||
I/O Timings: read=12.719
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=300.407..300.407 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=2 read=6446
|
||
I/O Timings: read=252.919
|
||
-> Seq Scan on stkmm m_1 (cost=0.00..7258.87 rows=81087 width=54) (actual time=0.600..277.166 rows=80997 loops=1)
|
||
Buffers: shared hit=2 read=6446
|
||
I/O Timings: read=252.919
|
||
-> Index Scan using se_dat on gld od (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=641010)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=1281895 read=1
|
||
I/O Timings: read=0.015
|
||
-> Index Scan using se_dat on gld rd (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=641010)
|
||
Index Cond: ((osm.adj_requestdate >= sdat) AND (osm.adj_requestdate <= edat))
|
||
Buffers: local hit=1281894
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=108.057..108.057 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2 read=2606
|
||
I/O Timings: read=78.378
|
||
-> Seq Scan on stkmp p_1 (cost=0.00..2975.31 rows=36731 width=33) (actual time=1.096..89.328 rows=36699 loops=1)
|
||
Buffers: shared hit=2 read=2606
|
||
I/O Timings: read=78.378
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=97.843..97.843 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
Buffers: shared hit=9056
|
||
-> CTE Scan on md (cost=0.00..4.00 rows=200 width=64) (actual time=95.561..97.114 rows=3368 loops=1)
|
||
Buffers: shared hit=9056
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.629..0.629 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared read=2
|
||
I/O Timings: read=0.546
|
||
-> Seq Scan on ffchnl l (cost=0.00..3.39 rows=139 width=25) (actual time=0.574..0.596 rows=139 loops=1)
|
||
Buffers: shared read=2
|
||
I/O Timings: read=0.546
|
||
-> GroupAggregate (cost=33445583.00..42801951.72 rows=56705265 width=699) (actual time=21899.780..27106.566 rows=250477 loops=1)
|
||
Group Key: od_1.ssyr, osm_1.adj_orderdate, sd_1.ssyr, (LEAST(GREATEST(osm_1.adj_shipdate, sd_1.sdat), sd_1.edat)), rd_1.ssyr, osm_1.adj_requestdate, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(rd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text)), (COALESCE(rd_1.cy, 'F'::text)), osm_1.plnt, osm_1.account, osm_1.bill_cust, osm_1.shipgrp, osm_1.ship_cust, osm_1.chan, l_1.retail, l_1.retailsub, osm_1.promo, osm_1.majg, osm_1.ming, osm_1.majs, osm_1.mins, osm_1.part, (((osm_1.part || ' - '::text) || rtrim(COALESCE(m_2.avdes1, p_2.awdes1)))), (((f_1.f3 || ' - '::text) || f_1.descr)), (((substr(osm_1.part, 1, 8) || ' - '::text) || md_1.descr)), (COALESCE(mg_1.grp, 'Unbranded'::text)), (COALESCE(seg_1.segm, 'Other'::text)), osm_1.quota_rep, (CASE osm_1.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_1.calc_status END), osm_1.c_rate
|
||
Buffers: shared hit=35412, local hit=1627258
|
||
-> Sort (cost=33445583.00..33587346.16 rows=56705265 width=595) (actual time=21899.740..22369.501 rows=406814 loops=1)
|
||
Sort Key: od_1.ssyr, osm_1.adj_orderdate, sd_1.ssyr, (LEAST(GREATEST(osm_1.adj_shipdate, sd_1.sdat), sd_1.edat)), rd_1.ssyr, osm_1.adj_requestdate, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(rd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text)), (COALESCE(rd_1.cy, 'F'::text)), osm_1.plnt, osm_1.account, osm_1.bill_cust, osm_1.shipgrp, osm_1.ship_cust, osm_1.chan, l_1.retail, l_1.retailsub, osm_1.promo, osm_1.majg, osm_1.ming, osm_1.majs, osm_1.mins, osm_1.part, (((osm_1.part || ' - '::text) || rtrim(COALESCE(m_2.avdes1, p_2.awdes1)))), (((f_1.f3 || ' - '::text) || f_1.descr)), (((substr(osm_1.part, 1, 8) || ' - '::text) || md_1.descr)), (COALESCE(mg_1.grp, 'Unbranded'::text)), (COALESCE(seg_1.segm, 'Other'::text)), osm_1.quota_rep, (CASE osm_1.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_1.calc_status END), osm_1.c_rate
|
||
Sort Method: quicksort Memory: 222052kB
|
||
Buffers: shared hit=35412, local hit=1627258
|
||
-> Hash Left Join (cost=11749.79..11025086.80 rows=56705265 width=595) (actual time=82.385..8358.833 rows=406814 loops=1)
|
||
Hash Cond: ((osm_1.bill_class = l_1.bill) AND (osm_1.ship_class = l_1.ship))
|
||
Buffers: shared hit=35412, local hit=1627258
|
||
-> Hash Left Join (cost=11744.32..6967724.27 rows=55168846 width=584) (actual time=82.294..7619.217 rows=406814 loops=1)
|
||
Hash Cond: (substr(osm_1.part, 1, 8) = md_1.mold)
|
||
Buffers: shared hit=35410, local hit=1627258
|
||
-> Hash Left Join (cost=11737.82..3519664.90 rows=55168846 width=552) (actual time=81.174..7139.198 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.part = p_2.awpart)
|
||
Buffers: shared hit=35410, local hit=1627258
|
||
-> Nested Loop Left Join (cost=8303.37..3371395.52 rows=55168846 width=528) (actual time=50.759..6837.840 rows=406814 loops=1)
|
||
Buffers: shared hit=32802, local hit=1627258
|
||
-> Nested Loop Left Join (cost=8303.23..217901.28 rows=2853561 width=456) (actual time=50.749..4566.299 rows=406814 loops=1)
|
||
Buffers: shared hit=32802, local hit=813630
|
||
-> Hash Left Join (cost=8303.08..54789.49 rows=147598 width=384) (actual time=50.729..2196.620 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.part = m_2.avpart)
|
||
Buffers: shared hit=32802, local hit=2
|
||
-> Hash Left Join (cost=30.62..46129.57 rows=147598 width=349) (actual time=0.257..1813.794 rows=406814 loops=1)
|
||
Hash Cond: (substr(osm_1.part, 1, 3) = f_1.f3)
|
||
Buffers: shared hit=26354, local hit=2
|
||
-> Hash Left Join (cost=6.93..43891.91 rows=147598 width=325) (actual time=0.121..1436.906 rows=406814 loops=1)
|
||
Hash Cond: ((substr(osm_1.part, 16, 1) = mg_1.f1) AND (osm_1.ming = mg_1.ming))
|
||
Buffers: shared hit=26345, local hit=2
|
||
-> Hash Left Join (cost=6.37..42594.49 rows=147598 width=293) (actual time=0.110..1056.449 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.glec = seg_1.glec)
|
||
Buffers: shared hit=26345, local hit=2
|
||
-> Hash Left Join (cost=5.92..40564.57 rows=147598 width=265) (actual time=0.098..857.465 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.fspr = sd_1.fspr)
|
||
Buffers: shared hit=26345, local hit=2
|
||
-> Seq Scan on osmf osm_1 (cost=0.00..38529.18 rows=147598 width=185) (actual time=0.026..619.289 rows=406814 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND (version = '5p7'::text) AND (substr(glec, 1, 1) <= '2'::text) AND ((fspr >= '1901'::text) OR (adj_orderdate >= '2018-06-01'::date)))
|
||
Rows Removed by Filter: 358
|
||
Buffers: shared hit=26345
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.065..0.065 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_1 (cost=0.00..3.74 rows=174 width=112) (actual time=0.008..0.035 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.007..0.007 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg seg_1 (cost=0.00..0.28 rows=14 width=64) (actual time=0.002..0.004 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.007..0.007 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg mg_1 (cost=0.00..0.32 rows=16 width=96) (actual time=0.001..0.003 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=0.131..0.131 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared hit=9
|
||
-> Seq Scan on family f_1 (cost=0.00..15.53 rows=653 width=24) (actual time=0.010..0.054 rows=653 loops=1)
|
||
Buffers: shared hit=9
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=50.417..50.417 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m_2 (cost=0.00..7258.87 rows=81087 width=54) (actual time=0.005..27.523 rows=80997 loops=1)
|
||
Buffers: shared hit=6448
|
||
-> Index Scan using se_dat on gld od_1 (cost=0.14..0.92 rows=19 width=80) (actual time=0.005..0.005 rows=1 loops=406814)
|
||
Index Cond: ((osm_1.adj_orderdate >= sdat) AND (osm_1.adj_orderdate <= edat))
|
||
Buffers: local hit=813628
|
||
-> Index Scan using se_dat on gld rd_1 (cost=0.14..0.92 rows=19 width=80) (actual time=0.004..0.005 rows=1 loops=406814)
|
||
Index Cond: ((osm_1.adj_requestdate >= sdat) AND (osm_1.adj_requestdate <= edat))
|
||
Buffers: local hit=813628
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=30.201..30.201 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p_2 (cost=0.00..2975.31 rows=36731 width=33) (actual time=0.009..17.401 rows=36699 loops=1)
|
||
Buffers: shared hit=2608
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=1.104..1.104 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
-> CTE Scan on md md_1 (cost=0.00..4.00 rows=200 width=64) (actual time=0.002..0.386 rows=3368 loops=1)
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.063..0.063 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared hit=2
|
||
-> Seq Scan on ffchnl l_1 (cost=0.00..3.39 rows=139 width=25) (actual time=0.011..0.032 rows=139 loops=1)
|
||
Buffers: shared hit=2
|
||
-> GroupAggregate (cost=112931514.84..144274888.60 rows=189959841 width=695) (actual time=16710.998..17936.290 rows=348959 loops=1)
|
||
Group Key: od_2.ssyr, osm_2.adj_orderdate, sd_2.ssyr, (LEAST(GREATEST(osm_2.adj_shipdate, sd_2.sdat), sd_2.edat)), rd_2.ssyr, osm_2.adj_requestdate, (COALESCE(od_2.cm, sd_2.cm)), (COALESCE(sd_2.cm, 'F'::text)), (COALESCE(rd_2.cm, 'F'::text)), (COALESCE(od_2.cy, sd_2.cy)), (COALESCE(sd_2.cy, 'F'::text)), (COALESCE(rd_2.cy, 'F'::text)), osm_2.plnt, osm_2.account, osm_2.bill_cust, osm_2.shipgrp, osm_2.ship_cust, osm_2.chan, l_2.retail, l_2.retailsub, osm_2.promo, osm_2.majg, osm_2.ming, osm_2.majs, osm_2.mins, osm_2.part, (((osm_2.part || ' - '::text) || rtrim(COALESCE(m_3.avdes1, p_3.awdes1)))), (((f_2.f3 || ' - '::text) || f_2.descr)), (((substr(osm_2.part, 1, 8) || ' - '::text) || md_2.descr)), (COALESCE(mg_2.grp, 'Unbranded'::text)), (COALESCE(seg_2.segm, 'Other'::text)), osm_2.quota_rep, (CASE osm_2.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_2.calc_status END), osm_2.c_rate
|
||
Buffers: shared hit=17917 read=49142, local hit=1467704
|
||
I/O Timings: read=4132.855
|
||
-> Sort (cost=112931514.84..113406414.44 rows=189959841 width=584) (actual time=16710.946..16814.969 rows=367211 loops=1)
|
||
Sort Key: od_2.ssyr, osm_2.adj_orderdate, sd_2.ssyr, (LEAST(GREATEST(osm_2.adj_shipdate, sd_2.sdat), sd_2.edat)), rd_2.ssyr, osm_2.adj_requestdate, (COALESCE(od_2.cm, sd_2.cm)), (COALESCE(sd_2.cm, 'F'::text)), (COALESCE(rd_2.cm, 'F'::text)), (COALESCE(od_2.cy, sd_2.cy)), (COALESCE(sd_2.cy, 'F'::text)), (COALESCE(rd_2.cy, 'F'::text)), osm_2.plnt, osm_2.account, osm_2.bill_cust, osm_2.shipgrp, osm_2.ship_cust, osm_2.chan, l_2.retail, l_2.retailsub, osm_2.promo, osm_2.majg, osm_2.ming, osm_2.majs, osm_2.mins, osm_2.part, (((osm_2.part || ' - '::text) || rtrim(COALESCE(m_3.avdes1, p_3.awdes1)))), (((f_2.f3 || ' - '::text) || f_2.descr)), (((substr(osm_2.part, 1, 8) || ' - '::text) || md_2.descr)), (COALESCE(mg_2.grp, 'Unbranded'::text)), (COALESCE(seg_2.segm, 'Other'::text)), osm_2.quota_rep, (CASE osm_2.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_2.calc_status END), osm_2.c_rate
|
||
Sort Method: quicksort Memory: 201623kB
|
||
Buffers: shared hit=17917 read=49142, local hit=1467704
|
||
I/O Timings: read=4132.855
|
||
-> Hash Left Join (cost=11749.79..37465936.67 rows=189959841 width=584) (actual time=154.009..11372.141 rows=367211 loops=1)
|
||
Hash Cond: ((osm_2.bill_class = l_2.bill) AND (osm_2.ship_class = l_2.ship))
|
||
Buffers: shared hit=17917 read=49142, local hit=1467704
|
||
I/O Timings: read=4132.855
|
||
-> Hash Left Join (cost=11744.32..23902628.82 rows=189959841 width=574) (actual time=153.913..10698.691 rows=367211 loops=1)
|
||
Hash Cond: (substr(osm_2.part, 1, 8) = md_2.mold)
|
||
Buffers: shared hit=17915 read=49142, local hit=1467704
|
||
I/O Timings: read=4132.855
|
||
-> Hash Left Join (cost=11737.82..12030132.26 rows=189959841 width=542) (actual time=148.767..10299.042 rows=367211 loops=1)
|
||
Hash Cond: (osm_2.part = p_3.awpart)
|
||
Buffers: shared hit=17915 read=49142, local hit=1467704
|
||
I/O Timings: read=4132.855
|
||
-> Nested Loop Left Join (cost=8303.37..11527995.69 rows=189959841 width=518) (actual time=102.067..10041.030 rows=367211 loops=1)
|
||
Buffers: shared hit=15307 read=49142, local hit=1467704
|
||
I/O Timings: read=4132.855
|
||
-> Nested Loop Left Join (cost=8303.23..670498.91 rows=9825509 width=446) (actual time=102.059..8236.690 rows=367211 loops=1)
|
||
Buffers: shared hit=15307 read=49142, local hit=733854
|
||
I/O Timings: read=4132.855
|
||
-> Hash Left Join (cost=8303.08..108904.23 rows=508216 width=374) (actual time=102.031..6271.278 rows=367211 loops=1)
|
||
Hash Cond: (osm_2.part = m_3.avpart)
|
||
Buffers: shared hit=15307 read=49142, local hit=2
|
||
I/O Timings: read=4132.855
|
||
-> Hash Left Join (cost=30.62..99297.64 rows=508216 width=339) (actual time=6.361..5913.268 rows=367211 loops=1)
|
||
Hash Cond: (substr(osm_2.part, 1, 3) = f_2.f3)
|
||
Buffers: shared hit=8859 read=49142, local hit=2
|
||
I/O Timings: read=4132.855
|
||
-> Hash Left Join (cost=6.93..91650.71 rows=508216 width=315) (actual time=6.219..5568.521 rows=367211 loops=1)
|
||
Hash Cond: ((substr(osm_2.part, 16, 1) = mg_2.f1) AND (osm_2.ming = mg_2.ming))
|
||
Buffers: shared hit=8850 read=49142, local hit=2
|
||
I/O Timings: read=4132.855
|
||
-> Hash Left Join (cost=6.37..87189.88 rows=508216 width=283) (actual time=6.207..5231.289 rows=367211 loops=1)
|
||
Hash Cond: (osm_2.glec = seg_2.glec)
|
||
Buffers: shared hit=8850 read=49142, local hit=2
|
||
I/O Timings: read=4132.855
|
||
-> Hash Left Join (cost=5.92..80265.15 rows=508216 width=255) (actual time=6.193..5042.515 rows=367211 loops=1)
|
||
Hash Cond: (osm_2.fspr = sd_2.fspr)
|
||
Buffers: shared hit=8850 read=49142, local hit=2
|
||
I/O Timings: read=4132.855
|
||
-> Seq Scan on osm osm_2 (cost=0.00..73663.10 rows=508216 width=175) (actual time=6.115..4852.376 rows=367211 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND ((fspr >= '1606'::text) OR (adj_orderdate >= '2016-06-01'::date)))
|
||
Rows Removed by Filter: 417318
|
||
Buffers: shared hit=8850 read=49142
|
||
I/O Timings: read=4132.855
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.064..0.064 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_2 (cost=0.00..3.74 rows=174 width=112) (actual time=0.009..0.036 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.006..0.006 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg seg_2 (cost=0.00..0.28 rows=14 width=64) (actual time=0.002..0.003 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.006..0.006 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg mg_2 (cost=0.00..0.32 rows=16 width=96) (actual time=0.001..0.002 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=0.131..0.131 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared hit=9
|
||
-> Seq Scan on family f_2 (cost=0.00..15.53 rows=653 width=24) (actual time=0.010..0.051 rows=653 loops=1)
|
||
Buffers: shared hit=9
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=95.611..95.611 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m_3 (cost=0.00..7258.87 rows=81087 width=54) (actual time=0.005..42.484 rows=80997 loops=1)
|
||
Buffers: shared hit=6448
|
||
-> Index Scan using se_dat on gld od_2 (cost=0.14..0.92 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=367211)
|
||
Index Cond: ((osm_2.adj_orderdate >= sdat) AND (osm_2.adj_orderdate <= edat))
|
||
Buffers: local hit=733852
|
||
-> Index Scan using se_dat on gld rd_2 (cost=0.14..0.92 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=367211)
|
||
Index Cond: ((osm_2.adj_requestdate >= sdat) AND (osm_2.adj_requestdate <= edat))
|
||
Buffers: local hit=733850
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=46.657..46.657 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p_3 (cost=0.00..2975.31 rows=36731 width=33) (actual time=0.010..23.613 rows=36699 loops=1)
|
||
Buffers: shared hit=2608
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=5.110..5.110 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
-> CTE Scan on md md_2 (cost=0.00..4.00 rows=200 width=64) (actual time=0.002..0.405 rows=3368 loops=1)
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.068..0.068 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared hit=2
|
||
-> Seq Scan on ffchnl l_2 (cost=0.00..3.39 rows=139 width=25) (actual time=0.021..0.039 rows=139 loops=1)
|
||
Buffers: shared hit=2
|
||
CTE agg
|
||
-> GroupAggregate (cost=3990139087947.22..4510710248131.84 rows=1892986037035 width=1404) (actual time=182825.587..189012.716 rows=809487 loops=1)
|
||
Group Key: un.version, un.iter, ((un.oseas)::numeric), un.odate, ((un.sseas)::numeric), un.sdate, ((un.rseas)::numeric), un.rdate, un.om, un.sm, un.rm, un.oy, ((un.odate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.odate <@ so.ytd)), un.sy, ((un.sdate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.sdate <@ ss.ytd)), (CASE WHEN ((upper(so.ytd) - '1 day'::interval) >= un.odate) THEN CASE WHEN ((un.sdate > (upper(so.ytd) - '1 day'::interval)) OR (un.sy = 'F'::text)) THEN CASE WHEN ((upper(so.ytd) - '1 day'::interval) > un.rdate) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE 'Shipped'::text END ELSE 'Not Yet Placed'::text END), un.ry, un.plnt, un.account, (((un.bill_cust || ' - '::text) || rtrim(bc.bvname))), bc.bvctry, bc.bvprcd, un.shipgrp, (((un.ship_cust || ' - '::text) || rtrim(sc.bvname))), sc.bvctry, sc.bvprcd, un.chan, (CASE un.segm WHEN 'Retail'::text THEN un.retail ELSE un.chan END), (CASE un.segm WHEN 'Retail'::text THEN un.retailsub ELSE ''::text END), un.promo, ((un.majg || COALESCE((' - '::text || majg.bqdes), ''::text))), ((un.ming || COALESCE((' - '::text || mmgp.brdes), ''::text))), ((un.majs || COALESCE((' - '::text || sj.bsdes1), ''::text))), ((un.mins || COALESCE((' - '::text || si.bsdes1), ''::text))), un.part, un.part_descr, un.part_family, un.part_group, un.branding, un.segm, (COALESCE(repc.repp, un.quota_rep)), (COALESCE(repc.director, un.quota_rep)), (((un.version || '-'::text) || un.sy)), (((un.version || '-'::text) || un.oy)), (CASE WHEN (un.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) THEN CASE WHEN (un.rdate < CURRENT_DATE) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE un.calc_status END), (((substr(un.part, 9, 3) || '-'::text) || un.branding)), 'Grand Total'::text
|
||
Buffers: shared hit=101605 read=90963, local hit=5658755 read=1, temp read=169551 written=244303
|
||
I/O Timings: read=8179.425
|
||
-> Sort (cost=3990139087947.22..3994871553039.80 rows=1892986037035 width=1346) (actual time=182817.706..183828.314 rows=812229 loops=1)
|
||
Sort Key: un.version, un.iter, ((un.oseas)::numeric), un.odate, ((un.sseas)::numeric), un.sdate, ((un.rseas)::numeric), un.rdate, un.om, un.sm, un.rm, un.oy, ((un.odate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.odate <@ so.ytd)), un.sy, ((un.sdate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.sdate <@ ss.ytd)), (CASE WHEN ((upper(so.ytd) - '1 day'::interval) >= un.odate) THEN CASE WHEN ((un.sdate > (upper(so.ytd) - '1 day'::interval)) OR (un.sy = 'F'::text)) THEN CASE WHEN ((upper(so.ytd) - '1 day'::interval) > un.rdate) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE 'Shipped'::text END ELSE 'Not Yet Placed'::text END), un.ry, un.plnt, un.account, (((un.bill_cust || ' - '::text) || rtrim(bc.bvname))), bc.bvctry, bc.bvprcd, un.shipgrp, (((un.ship_cust || ' - '::text) || rtrim(sc.bvname))), sc.bvctry, sc.bvprcd, un.chan, (CASE un.segm WHEN 'Retail'::text THEN un.retail ELSE un.chan END), (CASE un.segm WHEN 'Retail'::text THEN un.retailsub ELSE ''::text END), un.promo, ((un.majg || COALESCE((' - '::text || majg.bqdes), ''::text))), ((un.ming || COALESCE((' - '::text || mmgp.brdes), ''::text))), ((un.majs || COALESCE((' - '::text || sj.bsdes1), ''::text))), ((un.mins || COALESCE((' - '::text || si.bsdes1), ''::text))), un.part, un.part_descr, un.part_family, un.part_group, un.branding, un.segm, (COALESCE(repc.repp, un.quota_rep)), (COALESCE(repc.director, un.quota_rep)), (((un.version || '-'::text) || un.sy)), (((un.version || '-'::text) || un.oy)), (CASE WHEN (un.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) THEN CASE WHEN (un.rdate < CURRENT_DATE) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE un.calc_status END), (((substr(un.part, 9, 3) || '-'::text) || un.branding))
|
||
Sort Method: external merge Disk: 475848kB
|
||
Buffers: shared hit=101605 read=90963, local hit=5658755 read=1, temp read=169551 written=244303
|
||
I/O Timings: read=8179.425
|
||
-> Merge Right Join (cost=33563712447.31..265517026370.70 rows=1892986037035 width=1346) (actual time=117209.936..123600.017 rows=812229 loops=1)
|
||
Merge Cond: (ss.ssyr = un.sseas)
|
||
Buffers: shared hit=101597 read=90963, local hit=5658755 read=1, temp read=110070 written=184821
|
||
I/O Timings: read=8179.425
|
||
-> Sort (cost=1353.78..1391.63 rows=15138 width=40) (actual time=0.122..0.740 rows=15 loops=1)
|
||
Sort Key: ss.ssyr
|
||
Sort Method: quicksort Memory: 26kB
|
||
Buffers: local hit=2
|
||
-> CTE Scan on std ss (cost=0.00..302.76 rows=15138 width=40) (actual time=0.081..0.117 rows=15 loops=1)
|
||
Buffers: local hit=2
|
||
-> Materialize (cost=33563711093.53..33688759715.34 rows=25009724363 width=1300) (actual time=117198.447..119674.219 rows=812229 loops=1)
|
||
Buffers: shared hit=101597 read=90963, local hit=5658753 read=1, temp read=110070 written=184821
|
||
I/O Timings: read=8179.425
|
||
-> Sort (cost=33563711093.53..33626235404.44 rows=25009724363 width=1300) (actual time=117198.083..117976.508 rows=812229 loops=1)
|
||
Sort Key: un.sseas
|
||
Sort Method: external merge Disk: 445840kB
|
||
Buffers: shared hit=101597 read=90963, local hit=5658753 read=1, temp read=110070 written=146582
|
||
I/O Timings: read=8179.425
|
||
-> Merge Right Join (cost=488162845.81..864134844.69 rows=25009724363 width=1300) (actual time=105501.163..109753.807 rows=812229 loops=1)
|
||
Merge Cond: (so.ssyr = un.oseas)
|
||
Buffers: shared hit=101597 read=90963, local hit=5658753 read=1, temp read=54340 written=90851
|
||
I/O Timings: read=8179.425
|
||
-> Sort (cost=1353.78..1391.63 rows=15138 width=40) (actual time=0.005..0.009 rows=13 loops=1)
|
||
Sort Key: so.ssyr
|
||
Sort Method: quicksort Memory: 26kB
|
||
-> CTE Scan on std so (cost=0.00..302.76 rows=15138 width=40) (actual time=0.000..0.002 rows=15 loops=1)
|
||
-> Materialize (cost=488161492.03..489813607.52 rows=330423099 width=1268) (actual time=105468.884..108956.573 rows=812229 loops=1)
|
||
Buffers: shared hit=101597 read=90963, local hit=5658753 read=1, temp read=54340 written=90851
|
||
I/O Timings: read=8179.425
|
||
-> Sort (cost=488161492.03..488987549.77 rows=330423099 width=1268) (actual time=105419.215..105977.954 rows=812229 loops=1)
|
||
Sort Key: un.oseas
|
||
Sort Method: external merge Disk: 434720kB
|
||
Buffers: shared hit=101597 read=90963, local hit=5658753 read=1, temp read=54340 written=54341
|
||
I/O Timings: read=8179.425
|
||
-> Hash Left Join (cost=30326.40..75489285.22 rows=330423099 width=1268) (actual time=34892.831..94537.687 rows=812229 loops=1)
|
||
Hash Cond: ((un.part = cr.y0part) AND (un.plnt = cr.y0plnt))
|
||
Buffers: shared hit=101597 read=90963, local hit=5658753 read=1
|
||
I/O Timings: read=8179.425
|
||
-> Hash Left Join (cost=22414.65..56426266.97 rows=330423099 width=1262) (actual time=34668.780..93298.840 rows=812229 loops=1)
|
||
Hash Cond: ((un.part = cp.chpart) AND (un.plnt = cp.chplnt))
|
||
Buffers: shared hit=101597 read=85711, local hit=5658753 read=1
|
||
I/O Timings: read=8003.465
|
||
-> Hash Left Join (cost=14299.03..36533966.06 rows=330423099 width=1256) (actual time=34522.917..92143.759 rows=812229 loops=1)
|
||
Hash Cond: ((un.part = cm.cgpart) AND (un.plnt = cm.cgplnt))
|
||
Buffers: shared hit=101597 read=80395, local hit=5658753 read=1
|
||
I/O Timings: read=7920.833
|
||
-> Hash Left Join (cost=7433.88..34026391.85 rows=330423099 width=1250) (actual time=34383.160..90732.988 rows=812229 loops=1)
|
||
Hash Cond: (un.bill_cust = sc.bvcust)
|
||
Buffers: shared hit=101597 read=75888, local hit=5658753 read=1
|
||
I/O Timings: read=7833.063
|
||
-> Hash Left Join (cost=3723.16..29479363.52 rows=330423099 width=1223) (actual time=34366.365..89923.315 rows=812229 loops=1)
|
||
Hash Cond: (un.bill_cust = bc.bvcust)
|
||
Buffers: shared hit=98373 read=75888, local hit=5658753 read=1
|
||
I/O Timings: read=7833.063
|
||
-> Hash Left Join (cost=12.44..24932335.18 rows=330423099 width=1196) (actual time=34277.988..88987.624 rows=812229 loops=1)
|
||
Hash Cond: ((un.ming = mmgp.brmgrp) AND (un.majg = mmgp.brgrp))
|
||
Buffers: shared hit=98373 read=72664, local hit=5658753 read=1
|
||
I/O Timings: read=7758.824
|
||
-> Hash Left Join (cost=7.51..15006668.18 rows=330423099 width=1186) (actual time=34277.622..88269.216 rows=812229 loops=1)
|
||
Hash Cond: (un.majg = majg.bqgrp)
|
||
Buffers: shared hit=98373 read=72663, local hit=5658753 read=1
|
||
I/O Timings: read=7758.524
|
||
-> Hash Left Join (cost=6.24..13569326.43 rows=330423099 width=1176) (actual time=34277.304..87627.015 rows=812229 loops=1)
|
||
Hash Cond: (un.majs = sj.bsmjcd)
|
||
Buffers: shared hit=98373 read=72662, local hit=5658753 read=1
|
||
I/O Timings: read=7758.231
|
||
-> Hash Left Join (cost=6.21..12313718.62 rows=330423099 width=1144) (actual time=34277.281..87019.163 rows=812229 loops=1)
|
||
Hash Cond: ((un.majs = si.bsmjcd) AND (un.mins = si.bsmncd))
|
||
Buffers: shared hit=98372 read=72662, local hit=5658753 read=1
|
||
I/O Timings: read=7758.231
|
||
-> Hash Left Join (cost=3.90..9830091.09 rows=330423099 width=1112) (actual time=34276.887..86204.919 rows=812229 loops=1)
|
||
Hash Cond: (un.quota_rep = repc.rcode)
|
||
Buffers: shared hit=98372 read=72661, local hit=5658753 read=1
|
||
I/O Timings: read=7757.901
|
||
-> CTE Scan on un (cost=0.00..6608461.98 rows=330423099 width=1048) (actual time=34264.293..85100.705 rows=812229 loops=1)
|
||
Buffers: shared hit=98372 read=72635, local hit=5658753 read=1
|
||
I/O Timings: read=7746.456
|
||
-> Hash (cost=2.40..2.40 rows=120 width=96) (actual time=12.582..12.582 rows=120 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 17kB
|
||
Buffers: shared read=26
|
||
I/O Timings: read=11.445
|
||
-> CTE Scan on repc (cost=0.00..2.40 rows=120 width=96) (actual time=2.594..12.537 rows=120 loops=1)
|
||
Buffers: shared read=26
|
||
I/O Timings: read=11.445
|
||
-> Hash (cost=1.32..1.32 rows=66 width=96) (actual time=0.382..0.382 rows=56 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 11kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.330
|
||
-> CTE Scan on si (cost=0.00..1.32 rows=66 width=96) (actual time=0.344..0.363 rows=56 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.330
|
||
-> Hash (cost=0.02..0.02 rows=1 width=64) (actual time=0.016..0.016 rows=11 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
Buffers: shared hit=1
|
||
-> CTE Scan on sj (cost=0.00..0.02 rows=1 width=64) (actual time=0.007..0.013 rows=11 loops=1)
|
||
Buffers: shared hit=1
|
||
-> Hash (cost=1.12..1.12 rows=12 width=14) (actual time=0.312..0.312 rows=12 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.293
|
||
-> Seq Scan on majg (cost=0.00..1.12 rows=12 width=14) (actual time=0.301..0.303 rows=12 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.293
|
||
-> Hash (cost=2.57..2.57 rows=157 width=18) (actual time=0.359..0.359 rows=157 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.300
|
||
-> Seq Scan on mmgp (cost=0.00..2.57 rows=157 width=18) (actual time=0.309..0.326 rows=157 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.300
|
||
-> Hash (cost=3440.32..3440.32 rows=21632 width=35) (actual time=88.356..88.356 rows=21632 loops=1)
|
||
Buckets: 32768 Batches: 1 Memory Usage: 1721kB
|
||
Buffers: shared read=3224
|
||
I/O Timings: read=74.239
|
||
-> Seq Scan on cust bc (cost=0.00..3440.32 rows=21632 width=35) (actual time=0.900..82.368 rows=21632 loops=1)
|
||
Buffers: shared read=3224
|
||
I/O Timings: read=74.239
|
||
-> Hash (cost=3440.32..3440.32 rows=21632 width=35) (actual time=16.771..16.771 rows=21632 loops=1)
|
||
Buckets: 32768 Batches: 1 Memory Usage: 1721kB
|
||
Buffers: shared hit=3224
|
||
-> Seq Scan on cust sc (cost=0.00..3440.32 rows=21632 width=35) (actual time=0.007..10.557 rows=21632 loops=1)
|
||
Buffers: shared hit=3224
|
||
-> Hash (cost=5450.26..5450.26 rows=94326 width=29) (actual time=139.654..139.654 rows=94326 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 6699kB
|
||
Buffers: shared read=4507
|
||
I/O Timings: read=87.770
|
||
-> Seq Scan on icstm cm (cost=0.00..5450.26 rows=94326 width=29) (actual time=1.271..114.520 rows=94326 loops=1)
|
||
Buffers: shared read=4507
|
||
I/O Timings: read=87.770
|
||
-> Hash (cost=6435.85..6435.85 rows=111985 width=20) (actual time=145.806..145.806 rows=111985 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 6768kB
|
||
Buffers: shared read=5316
|
||
I/O Timings: read=82.632
|
||
-> Seq Scan on icstp cp (cost=0.00..6435.85 rows=111985 width=20) (actual time=3.411..114.774 rows=111985 loops=1)
|
||
Buffers: shared read=5316
|
||
I/O Timings: read=82.632
|
||
-> Hash (cost=6315.90..6315.90 rows=106390 width=27) (actual time=223.650..223.650 rows=106390 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7334kB
|
||
Buffers: shared read=5252
|
||
I/O Timings: read=175.960
|
||
-> Seq Scan on icstr cr (cost=0.00..6315.90 rows=106390 width=27) (actual time=1.134..193.496 rows=106390 loops=1)
|
||
Buffers: shared read=5252
|
||
I/O Timings: read=175.960
|
||
-> CTE Scan on agg a (cost=0.00..37859720740.70 rows=1892986037035 width=1520) (actual time=182825.842..192275.884 rows=809487 loops=1)
|
||
Buffers: shared hit=101605 read=90963, local hit=5658755 read=1, temp read=169551 written=302149
|
||
I/O Timings: read=8179.425
|
||
-> CTE Scan on agg a_1 (cost=0.00..43089094668.02 rows=14197395278 width=1520) (actual time=336.760..2113.121 rows=298364 loops=1)
|
||
Filter: ((ocytd OR scytd) AND (version = ANY ('{Actual,Forecast}'::text[])))
|
||
Rows Removed by Filter: 511123
|
||
Buffers: temp read=57847 written=1
|
||
-> CTE Scan on agg a_2 (cost=0.00..43089094668.02 rows=14197395278 width=1520) (actual time=218.764..3615.793 rows=270022 loops=1)
|
||
Filter: ((ocytd OR scytd) AND (version = ANY ('{Actual,Budget}'::text[])))
|
||
Rows Removed by Filter: 539465
|
||
Buffers: temp read=57847
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-g-2-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i>PL/pgSQL function rlarp.osm_ppfa_varto() line 69 at RETURN QUERYWITH
|
||
---------------------------------------segments--------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
SEG AS (
|
||
SELECT
|
||
x.GLEC
|
||
,x.SEGM
|
||
FROM
|
||
(
|
||
VALUES
|
||
('1CU','Retail'),
|
||
('1GR','Greenhouse'),
|
||
('1NU','Nursery'),
|
||
('1RE','Retail'),
|
||
('2WI','Greenhouse'),
|
||
('3BM','Other'),
|
||
('3CO','Other'),
|
||
('3PE','Other'),
|
||
('3PP','Other'),
|
||
('4CO','Other'),
|
||
('4RA','Other'),
|
||
('9MI','Other'),
|
||
('9SA','Other'),
|
||
('9TO','Other')
|
||
) X(GLEC, SEGM)
|
||
)
|
||
---------------------------------------branding flag---------------------------------------------------------------------------------------------------------------------------------------------------
|
||
,MG AS (
|
||
SELECT
|
||
X.F1, X.MING, X.GRP
|
||
FROM
|
||
(
|
||
VALUES
|
||
('L','000','Branded'),
|
||
('L','B10','Branded'),
|
||
('L','B11','Branded'),
|
||
('L','B52','Branded'),
|
||
('L','C10','Branded'),
|
||
('L','D12','Branded'),
|
||
('L','M11','Branded'),
|
||
('L','P12','Branded'),
|
||
('L','P13','Branded'),
|
||
('L','S10','Branded'),
|
||
('L','Y10','Branded'),
|
||
('L','Y11','Branded'),
|
||
('L','Y12','Branded'),
|
||
('P','B10','Branded'),
|
||
('P','B11','Branded'),
|
||
('P','B52','Branded')
|
||
) AS X (F1, MING, GRP)
|
||
)
|
||
---------------------------------------directors-------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
,REPC AS (
|
||
SELECT
|
||
LTRIM(RTRIM(C.A9)) RCODE
|
||
,LTRIM(RTRIM(C.A9)) || ' - ' || C.A30 REPP
|
||
,COALESCE(Q.DIR,'Other') DIRECTOR
|
||
FROM
|
||
LGDAT.CODE C
|
||
LEFT OUTER JOIN RLARP.QRH Q ON
|
||
Q.QR = LTRIM(RTRIM(C.A9))
|
||
WHERE
|
||
C.A2 = 'MM'
|
||
)
|
||
--MOLD DESCRIPTIONS
|
||
,MD AS (
|
||
SELECT
|
||
U.MOLD
|
||
,MAX(U.DESCR) DESCR
|
||
FROM
|
||
(
|
||
SELECT
|
||
SUBSTR(M.AVPART,1,8) MOLD
|
||
,MAX(M.AVDES1) DESCR
|
||
FROM
|
||
LGDAT.STKMM M
|
||
WHERE
|
||
LENGTH(M.AVPART) > 8
|
||
AND SUBSTR(M.AVGLED,1,1) <= '2'
|
||
GROUP BY
|
||
SUBSTR(M.AVPART,1,8)
|
||
UNION ALL
|
||
SELECT
|
||
SUBSTR(P.AWPART,1,8) MOLD
|
||
,MAX(P.AWDES1) DESCR
|
||
FROM
|
||
LGDAT.STKMP P
|
||
WHERE
|
||
LENGTH(P.AWPART) > 8
|
||
AND SUBSTR(P.AWGLED,1,1) <= '2'
|
||
GROUP BY
|
||
SUBSTR(P.AWPART,1,8)
|
||
) U
|
||
GROUP BY
|
||
U.MOLD
|
||
)
|
||
----------------------------------------------------sales major codes----------------------------------------------------------------------------------------------------------------------------------
|
||
,SJ AS (
|
||
SELECT * FROM LGDAT.MMSL WHERE COALESCE(BSMNCD,'') = ''
|
||
)
|
||
----------------------------------------------------sales minor codes----------------------------------------------------------------------------------------------------------------------------------
|
||
,SI AS (
|
||
SELECT * FROM LGDAT.MMSL WHERE COALESCE(BSMNCD,'') <> ''
|
||
)
|
||
----------------------------------------------------date ranges per season------------------------------------------------------------------------------------------------------------------------------
|
||
,seas AS(
|
||
SELECT
|
||
ssyr
|
||
,daterange(MIN(sdat),MAX(edat),'[]') dr
|
||
,current_date <@ daterange(MIN(sdat),MAX(edat),'[]') cy
|
||
FROM
|
||
gld
|
||
GROUP BY
|
||
ssyr
|
||
ORDER BY
|
||
ssyr DESC
|
||
)
|
||
,intv AS (
|
||
SELECT current_date - lower(dr) dy from seas where cy = true
|
||
)
|
||
,std AS (
|
||
SELECT
|
||
s.ssyr
|
||
,s.dr
|
||
,s.cy
|
||
,daterange(lower(dr),dy + LOWER(dr),'[]') ytd
|
||
FROM
|
||
seas s
|
||
CROSS JOIN intv
|
||
)
|
||
---------------------------------------union actual and forecast---------------------------------------------------------------------------------------------------------------------------------------
|
||
,UN AS (
|
||
--plan
|
||
SELECT
|
||
'Budget' AS VERSION
|
||
,'Budget' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE as ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(m.avDES1,p.awDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(m.avNWHT,p.awNWHT) * CASE COALESCE(m.avNWUN, p.awNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSMP OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.VERSION = 'b19'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1901'
|
||
OR OSM.ADJ_ORDERDATE >= '2018-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
--ITER
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(m.avDES1,p.awDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
UNION ALL
|
||
--staged forecast
|
||
SELECT
|
||
'Forecast' AS VERSION
|
||
,'Forecast' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(M.AVNWHT,P.AWNWHT) * CASE COALESCE(M.AVNWUN, P.AWNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSMF OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.VERSION = '5p7'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1901'
|
||
OR OSM.ADJ_ORDERDATE >= '2018-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
--ITER
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
UNION ALL
|
||
--actual
|
||
SELECT
|
||
'Actual' AS VERSION
|
||
,'Actual' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(M.AVNWHT,P.AWNWHT) * CASE COALESCE(M.AVNWUN, P.AWNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSM OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
--AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1606'
|
||
OR OSM.ADJ_ORDERDATE >= '2016-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
)
|
||
---------------------------------------aggregate actual and forecast-----------------------------------------------------------------------------------------------------------------------------------
|
||
,AGG AS (
|
||
SELECT
|
||
un.VERSION::text "version"
|
||
,un.ITER::text "iter"
|
||
,un.OSEAS::numeric oseas
|
||
,un.ODATE::date odate
|
||
,un.SSEAS::numeric sseas
|
||
,un.SDATE::date sdate
|
||
,un.RSEAS::numeric rseas
|
||
,un.RDATE::date rdate
|
||
,un.OM::text om
|
||
,un.SM::text sm
|
||
,un.RM::text rm
|
||
,un.OY::text oy
|
||
,(un.odate <@ _ytd)::boolean ocytd --current year to date
|
||
,(un.odate <@ so.ytd)::boolean oytd --year to date recast for prior/forecast periods
|
||
,un.SY::text sy
|
||
,(un.sdate <@ _ytd)::boolean scytd
|
||
,(un.sdate <@ ss.ytd)::boolean sytd
|
||
--had this order been placed yet? (current day prior year is greater than the order date)
|
||
,CASE WHEN (upper(so.ytd) - interval '1 day') >= un.odate THEN
|
||
--was the order open at this time last year? (for orders that were placed by this time, was the ship date greater then the order date)
|
||
CASE WHEN ((un.sdate > (upper(so.ytd) - interval '1 day')) OR (un.SY = 'F'))
|
||
--for orders that were placed and open at this time last year, was the order considered past due? (current date prior year > request date)
|
||
THEN
|
||
CASE WHEN (upper(so.ytd) - interval '1 day') > un.rdate
|
||
THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE 'Shipped'
|
||
END
|
||
ELSE 'Not Yet Placed'
|
||
END status_py
|
||
,un.RY::text ry
|
||
,un.PLNT::text plnt
|
||
,un.ACCOUNT::text bill_group
|
||
,(un.BILL_CUST || ' - ' || RTRIM(BC.BVNAME))::text bill_cust
|
||
,bc.bvctry bill_ctry
|
||
,bc.bvprcd bill_prov
|
||
,un.SHIPGRP::text ship_group
|
||
,(un.SHIP_CUST || ' - ' || RTRIM(SC.BVNAME))::text ship_cust
|
||
,sc.bvctry ship_ctry
|
||
,sc.bvprcd ship_prov
|
||
,un.CHAN::text chan
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAIL
|
||
ELSE un.CHAN
|
||
END::text mod_chan
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAILSUB
|
||
ELSE ''
|
||
END::text mod_chansub
|
||
,un.PROMO::text promo
|
||
,un.MAJG||COALESCE(' - '||BQDES,'')::text majg
|
||
,un.MING||COALESCE(' - '||BRDES,'')::text ming
|
||
,un.MAJS||COALESCE(' - '||SJ.BSDES1,'')::text majs
|
||
,un.MINS||COALESCE(' - '||SI.BSDES1,'')::text mins
|
||
,un.PART::text part
|
||
,un.PART_DESCR::text part_descr
|
||
,un.PART_FAMILY::text part_family
|
||
,un.PART_GROUP::text part_group
|
||
,un.BRANDING::text branding
|
||
,un.SEGM::text segm
|
||
,COALESCE(REPC.REPP,un.QUOTA_REP)::text quota_rep
|
||
,COALESCE(REPC.DIRECTOR,un.QUOTA_REP)::text director
|
||
,SUM(un.QTY)::numeric qty
|
||
,SUM(un.SALES)::numeric sales
|
||
,SUM(un.STDCOST)::numeric stdcost
|
||
,SUM(un.QTY * COALESCE(cm.cgstcs, cp.chstcs, cr.y0stcs) * un.c_rate)::numeric stdcost_cur
|
||
,SUM(un.POUNDS)::numeric pounds
|
||
,(un.VERSION||'-'||un.SY)::text flag_s
|
||
,(un.VERSION||'-'||un.OY)::text flag_o
|
||
,CASE
|
||
WHEN un.calc_status IN ('BACKORDER','OPEN') THEN
|
||
CASE
|
||
WHEN un.rdate < current_date THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE un.calc_status
|
||
END::text status
|
||
,(SUBSTR(UN.PART,9,3)||'-'||un.BRANDING)::text "options"
|
||
,'Grand Total'::text grandtotal
|
||
FROM
|
||
UN
|
||
LEFT OUTER JOIN REPC ON
|
||
REPC.RCODE = un.QUOTA_REP
|
||
LEFT OUTER JOIN SI ON
|
||
SI.BSMJCD = UN.MAJS
|
||
AND SI.BSMNCD = UN.MINS
|
||
LEFT OUTER JOIN SJ ON
|
||
SJ.BSMJCD = UN.MAJS
|
||
LEFT OUTER JOIN LGDAT.MAJG ON
|
||
BQGRP = un.MAJG
|
||
LEFT OUTER JOIN LGDAT.MMGP ON
|
||
BRMGRP = un.MING
|
||
AND BRGRP = un.MAJG
|
||
LEFT OUTER JOIN LGDAT.CUST BC ON
|
||
BC.BVCUST = UN.BILL_CUST
|
||
LEFT OUTER JOIN LGDAT.CUST SC ON
|
||
SC.BVCUST = UN.BILL_CUST
|
||
LEFT OUTER JOIN LGDAT.ICSTM cm ON
|
||
cm.cgpart = un.part
|
||
AND cm.cgplnt = un.plnt
|
||
LEFT OUTER JOIN LGDAT.ICSTP cp ON
|
||
cp.chpart = un.part
|
||
AND cp.chplnt = un.plnt
|
||
LEFT OUTER JOIN LGDAT.ICSTR cr ON
|
||
cr.y0part = un.part
|
||
AND cr.y0plnt = un.plnt
|
||
LEFT OUTER JOIN STD so ON
|
||
so.ssyr = un.oseas
|
||
LEFT OUTER JOIN STD ss ON
|
||
ss.ssyr = un.sseas
|
||
GROUP BY
|
||
un.VERSION::text
|
||
,un.ITER::text
|
||
,un.OSEAS::numeric
|
||
,un.ODATE::date
|
||
,un.SSEAS::numeric
|
||
,un.SDATE::date
|
||
,un.RSEAS::numeric
|
||
,un.RDATE::date
|
||
,un.OM::text
|
||
,un.SM::text
|
||
,un.RM::text
|
||
,un.OY::text
|
||
--current year to date
|
||
,(un.odate <@ _ytd)::boolean
|
||
--year to date recast for prior/forecast periods
|
||
,(un.odate <@ so.ytd)::boolean
|
||
,un.SY::text
|
||
,(un.sdate <@ _ytd)::boolean
|
||
,(un.sdate <@ ss.ytd)::boolean
|
||
,CASE WHEN (upper(so.ytd) - interval '1 day') >= un.odate THEN
|
||
--was the order open at this time last year? (for orders that were placed by this time, was the ship date greater then the order date)
|
||
CASE WHEN ((un.sdate > (upper(so.ytd) - interval '1 day')) OR (un.SY = 'F'))
|
||
--for orders that were placed and open at this time last year, was the order considered past due? (current date prior year > request date)
|
||
THEN
|
||
CASE WHEN (upper(so.ytd) - interval '1 day') > un.rdate
|
||
THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE 'Shipped'
|
||
END
|
||
ELSE 'Not Yet Placed'
|
||
END
|
||
,un.RY::text
|
||
,un.PLNT::text
|
||
,un.ACCOUNT::text
|
||
,(un.BILL_CUST || ' - ' || RTRIM(BC.BVNAME))::text
|
||
,bc.bvctry
|
||
,bc.bvprcd
|
||
,un.SHIPGRP::text
|
||
,(un.SHIP_CUST || ' - ' || RTRIM(SC.BVNAME))::text
|
||
,sc.bvctry
|
||
,sc.bvprcd
|
||
,un.CHAN::text
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAIL
|
||
ELSE un.CHAN
|
||
END::text
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAILSUB
|
||
ELSE ''
|
||
END::text
|
||
,un.PROMO::text
|
||
,un.MAJG||COALESCE(' - '||BQDES,'')::text
|
||
,un.MING||COALESCE(' - '||BRDES,'')::text
|
||
,un.MAJS||COALESCE(' - '||SJ.BSDES1,'')::text
|
||
,un.MINS||COALESCE(' - '||SI.BSDES1,'')::text
|
||
,un.PART::text
|
||
,un.PART_DESCR::text
|
||
,un.PART_FAMILY::text
|
||
,un.PART_GROUP::text
|
||
,un.BRANDING::text
|
||
,un.SEGM::text
|
||
,COALESCE(REPC.REPP,un.QUOTA_REP)::text
|
||
,COALESCE(REPC.DIRECTOR,un.QUOTA_REP)::text
|
||
,(un.VERSION||'-'||un.SY)::text
|
||
,(un.VERSION||'-'||un.OY)::text
|
||
,CASE
|
||
WHEN un.calc_status IN ('BACKORDER','OPEN') THEN
|
||
CASE
|
||
WHEN un.rdate < current_date THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE un.calc_status
|
||
END::text
|
||
,(SUBSTR(UN.PART,9,3)||'-'||un.BRANDING)::text
|
||
,'Grand Total'::text
|
||
)
|
||
SELECT
|
||
a.version
|
||
,a.iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,a.qty
|
||
,a.sales
|
||
,a.stdcost
|
||
,a.stdcost_cur
|
||
,a.pounds
|
||
,a.flag_s
|
||
,a.flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
agg a
|
||
UNION ALL
|
||
SELECT
|
||
'Var to Fcst' as version
|
||
,'Var to Fcst' as iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.QTY ELSE -a.QTY END::numeric QTY
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.SALES ELSE -a.SALES END::numeric SALES
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST ELSE -a.STDCOST END::numeric STDCOST
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST_CUR ELSE -a.STDCOST_CUR END::numeric STDCOST_CUR
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.POUNDS ELSE -a.POUNDS END::numeric POUNDS
|
||
,'Var to Fcst'||'-'||a.scytd flag_s
|
||
,'Var to Fcst'||'-'||a.ocytd flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
AGG a
|
||
WHERE
|
||
a.VERSION IN ('Actual','Forecast')
|
||
AND (a.ocytd OR a.scytd)
|
||
|
||
UNION ALL
|
||
SELECT
|
||
'Var to Bdgt' as version
|
||
,'Var to Bdgt' as iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.QTY ELSE -a.QTY END::numeric QTY
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.SALES ELSE -a.SALES END::numeric SALES
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST ELSE -a.STDCOST END::numeric STDCOST
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST_CUR ELSE -a.STDCOST_CUR END::numeric STDCOST_CUR
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.POUNDS ELSE -a.POUNDS END::numeric POUNDS
|
||
,'Var to Bdgt'||'-'||a.scytd flag_s
|
||
,'Var to Bdgt'||'-'||a.ocytd flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
AGG a
|
||
WHERE
|
||
a.VERSION IN ('Actual','Budget')
|
||
AND (a.ocytd OR a.scytd)
|
||
;</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 16:48:07
|
||
<b>Duration:</b> 2m28s
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-g-explain-2-2" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Append%20%20%28cost%3D4309162605406.33..4437117814888.42%20rows%3D1835682510591%20width%3D1520%29%20%28actual%20time%3D130217.190..147603.781%20rows%3D1378962%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D37003%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660295%20read%3D1%2C%20temp%20read%3D285365%20written%3D302292%0A%09%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20CTE%20seg%0A%09%20%20%20%20-%3E%20%20Values%20Scan%20on%20%22%2AVALUES%2A%22%20%20%28cost%3D0.00..0.18%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.003..0.006%20rows%3D14%20loops%3D1%29%0A%09%20%20CTE%20mg%0A%09%20%20%20%20-%3E%20%20Values%20Scan%20on%20%22%2AVALUES%2A_1%22%20%20%28cost%3D0.00..0.20%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.003..0.011%20rows%3D16%20loops%3D1%29%0A%09%20%20CTE%20repc%0A%09%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11.47..123.28%20rows%3D120%20width%3D96%29%20%28actual%20time%3D7.419..15.669%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28ltrim%28rtrim%28c.a9%29%29%20%3D%20q.qr%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D25%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D14.644%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20code%20c%20%20%28cost%3D9.21..118.86%20rows%3D120%20width%3D25%29%20%28actual%20time%3D7.351..15.256%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28a2%20%3D%20%27MM%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D21%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D25%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D14.644%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20pk_code%20%20%28cost%3D0.00..9.18%20rows%3D120%20width%3D0%29%20%28actual%20time%3D6.872..6.872%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28a2%20%3D%20%27MM%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D6.737%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.56..1.56%20rows%3D56%20width%3D12%29%20%28actual%20time%3D0.044..0.044%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2011kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20qrh%20q%20%20%28cost%3D0.00..1.56%20rows%3D56%20width%3D12%29%20%28actual%20time%3D0.016..0.024%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20CTE%20md%0A%09%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D11936.00..11938.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D109.370..109.781%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20%28substr%28m.avpart%2C%201%2C%208%29%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Append%20%20%28cost%3D8137.31..11870.54%20rows%3D13091%20width%3D64%29%20%28actual%20time%3D98.760..108.518%20rows%3D3375%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D8137.31..8249.94%20rows%3D9010%20width%3D64%29%20%28actual%20time%3D98.758..99.319%20rows%3D3285%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20substr%28m.avpart%2C%201%2C%208%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m%20%20%28cost%3D0.00..8092.26%20rows%3D9010%20width%3D59%29%20%28actual%20time%3D0.016..53.186%20rows%3D76269%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28length%28avpart%29%20%3E%208%29%20AND%20%28substr%28avgled%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%204728%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D3373.23..3424.24%20rows%3D4081%20width%3D64%29%20%28actual%20time%3D8.960..8.993%20rows%3D90%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20substr%28p.awpart%2C%201%2C%208%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p%20%20%28cost%3D0.00..3352.82%20rows%3D4081%20width%3D52%29%20%28actual%20time%3D0.460..8.898%20rows%3D142%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28length%28awpart%29%20%3E%208%29%20AND%20%28substr%28awgled%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2036557%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20CTE%20sj%0A%09%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmsl%20%20%28cost%3D0.00..1.84%20rows%3D1%20width%3D22%29%20%28actual%20time%3D0.005..0.011%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28COALESCE%28bsmncd%2C%20%27%27%3A%3Atext%29%20%3D%20%27%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2056%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20CTE%20si%0A%09%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmsl%20mmsl_1%20%20%28cost%3D0.00..1.84%20rows%3D66%20width%3D22%29%20%28actual%20time%3D1.513..1.521%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28COALESCE%28bsmncd%2C%20%27%27%3A%3Atext%29%20%3C%3E%20%27%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2011%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1.503%0A%09%20%20CTE%20seas%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D10.22..16.31%20rows%3D174%20width%3D41%29%20%28actual%20time%3D0.067..0.097%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20gld.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D10.22..10.65%20rows%3D174%20width%3D16%29%20%28actual%20time%3D0.052..0.059%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20gld.ssyr%20DESC%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2033kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D16%29%20%28actual%20time%3D0.010..0.030%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20CTE%20intv%0A%09%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seas%20%20%28cost%3D0.00..4.13%20rows%3D87%20width%3D4%29%20%28actual%20time%3D0.078..0.079%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20cy%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2014%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20CTE%20std%0A%09%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D0.00..457.62%20rows%3D15138%20width%3D73%29%20%28actual%20time%3D0.081..0.114%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20intv%20%20%28cost%3D0.00..1.74%20rows%3D87%20width%3D4%29%20%28actual%20time%3D0.078..0.079%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seas%20s%20%20%28cost%3D0.00..3.48%20rows%3D174%20width%3D41%29%20%28actual%20time%3D0.000..0.027%20rows%3D15%20loops%3D1%29%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D50003223.80..244355794.95%20rows%3D315685415%20width%3D697%29%20%28actual%20time%3D24427.622..55248.745%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D33769%20read%3D137238%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5418.990%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D50003223.80..63823292.65%20rows%3D83757993%20width%3D701%29%20%28actual%20time%3D24427.621..26180.035%20rows%3D212793%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20osm.adj_orderdate%2C%20sd.ssyr%2C%20%28LEAST%28GREATEST%28osm.adj_shipdate%2C%20sd.sdat%29%2C%20sd.edat%29%29%2C%20rd.ssyr%2C%20osm.adj_requestdate%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm.plnt%2C%20osm.account%2C%20osm.bill_cust%2C%20osm.shipgrp%2C%20osm.ship_cust%2C%20osm.chan%2C%20l.retail%2C%20l.retailsub%2C%20osm.promo%2C%20osm.majg%2C%20osm.ming%2C%20osm.majs%2C%20osm.mins%2C%20osm.part%2C%20%28%28%28osm.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_1.avdes1%2C%20p_1.awdes1%29%29%29%29%2C%20%28%28%28f.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f.descr%29%29%2C%20%28%28%28substr%28osm.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md.descr%29%29%2C%20%28COALESCE%28mg.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm.quota_rep%2C%20%28CASE%20osm.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm.calc_status%20END%29%2C%20osm.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9106%20read%3D59430%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2239.382%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D50003223.80..50212618.79%20rows%3D83757993%20width%3D594%29%20%28actual%20time%3D24427.582..24584.713%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20osm.adj_orderdate%2C%20sd.ssyr%2C%20%28LEAST%28GREATEST%28osm.adj_shipdate%2C%20sd.sdat%29%2C%20sd.edat%29%29%2C%20rd.ssyr%2C%20osm.adj_requestdate%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm.plnt%2C%20osm.account%2C%20osm.bill_cust%2C%20osm.shipgrp%2C%20osm.ship_cust%2C%20osm.chan%2C%20l.retail%2C%20l.retailsub%2C%20osm.promo%2C%20osm.majg%2C%20osm.ming%2C%20osm.majs%2C%20osm.mins%2C%20osm.part%2C%20%28%28%28osm.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_1.avdes1%2C%20p_1.awdes1%29%29%29%29%2C%20%28%28%28f.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f.descr%29%29%2C%20%28%28%28substr%28osm.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md.descr%29%29%2C%20%28COALESCE%28mg.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm.quota_rep%2C%20%28CASE%20osm.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm.calc_status%20END%29%2C%20osm.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20352782kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9106%20read%3D59430%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2239.382%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..16650773.71%20rows%3D83757993%20width%3D594%29%20%28actual%20time%3D594.631..11450.131%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm.bill_class%20%3D%20l.bill%29%20AND%20%28osm.ship_class%20%3D%20l.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9103%20read%3D59430%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2239.382%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..10583311.94%20rows%3D83757993%20width%3D583%29%20%28actual%20time%3D594.565..10651.699%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm.part%2C%201%2C%208%29%20%3D%20md.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9101%20read%3D59430%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2239.382%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..5348430.88%20rows%3D83757993%20width%3D551%29%20%28actual%20time%3D483.328..10064.882%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.part%20%3D%20p_1.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D45%20read%3D59430%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2239.382%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..5125106.33%20rows%3D83757993%20width%3D527%29%20%28actual%20time%3D372.833..9705.810%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D43%20read%3D56824%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2158.329%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..337594.45%20rows%3D4332310%20width%3D455%29%20%28actual%20time%3D372.826..7154.118%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D43%20read%3D56824%2C%20local%20hit%3D1281897%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2158.329%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..89964.52%20rows%3D224085%20width%3D383%29%20%28actual%20time%3D372.784..4519.221%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.part%20%3D%20m_1.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D43%20read%3D56824%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2158.311%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..81103.81%20rows%3D224085%20width%3D348%29%20%28actual%20time%3D1.380..3884.310%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm.part%2C%201%2C%203%29%20%3D%20f.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D41%20read%3D50378%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1843.013%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..77718.84%20rows%3D224085%20width%3D324%29%20%28actual%20time%3D1.257..3476.551%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm.part%2C%2016%2C%201%29%20%3D%20mg.f1%29%20AND%20%28osm.ming%20%3D%20mg.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32%20read%3D50378%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1843.013%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..75750.09%20rows%3D224085%20width%3D292%29%20%28actual%20time%3D1.228..3039.988%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.glec%20%3D%20seg.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32%20read%3D50378%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1843.013%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..72674.81%20rows%3D224085%20width%3D264%29%20%28actual%20time%3D1.210..2805.095%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32%20read%3D50378%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1843.013%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmp%20osm%20%20%28cost%3D0.00..69587.73%20rows%3D224085%20width%3D184%29%20%28actual%20time%3D1.134..2545.900%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28version%20%3D%20%27b19%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271901%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272018-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2057051%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32%20read%3D50378%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1843.013%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.058..0.058%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.010..0.033%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.013..0.013%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.005..0.011%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.018..0.018%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.003..0.015%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.118..0.118%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.017..0.054%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D371.346..371.346%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D6446%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D315.299%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_1%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D1.087..344.662%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D6446%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D315.299%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D641010%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1281895%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.018%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D641010%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1281894%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D110.296..110.296%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D2606%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D81.053%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_1%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D0.977..97.487%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D2606%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D81.053%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D111.215..111.215%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D109.374..110.690%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.051..0.051%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.012..0.026%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D33445583.00..42801951.72%20rows%3D56705265%20width%3D699%29%20%28actual%20time%3D16460.682..17590.319%20rows%3D250477%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20osm_1.adj_orderdate%2C%20sd_1.ssyr%2C%20%28LEAST%28GREATEST%28osm_1.adj_shipdate%2C%20sd_1.sdat%29%2C%20sd_1.edat%29%29%2C%20rd_1.ssyr%2C%20osm_1.adj_requestdate%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_1.plnt%2C%20osm_1.account%2C%20osm_1.bill_cust%2C%20osm_1.shipgrp%2C%20osm_1.ship_cust%2C%20osm_1.chan%2C%20l_1.retail%2C%20l_1.retailsub%2C%20osm_1.promo%2C%20osm_1.majg%2C%20osm_1.ming%2C%20osm_1.majs%2C%20osm_1.mins%2C%20osm_1.part%2C%20%28%28%28osm_1.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_2.avdes1%2C%20p_2.awdes1%29%29%29%29%2C%20%28%28%28f_1.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_1.descr%29%29%2C%20%28%28%28substr%28osm_1.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_1.descr%29%29%2C%20%28COALESCE%28mg_1.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_1.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_1.quota_rep%2C%20%28CASE%20osm_1.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_1.calc_status%20END%29%2C%20osm_1.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9067%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D33445583.00..33587346.16%20rows%3D56705265%20width%3D595%29%20%28actual%20time%3D16460.650..16563.021%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20osm_1.adj_orderdate%2C%20sd_1.ssyr%2C%20%28LEAST%28GREATEST%28osm_1.adj_shipdate%2C%20sd_1.sdat%29%2C%20sd_1.edat%29%29%2C%20rd_1.ssyr%2C%20osm_1.adj_requestdate%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_1.plnt%2C%20osm_1.account%2C%20osm_1.bill_cust%2C%20osm_1.shipgrp%2C%20osm_1.ship_cust%2C%20osm_1.chan%2C%20l_1.retail%2C%20l_1.retailsub%2C%20osm_1.promo%2C%20osm_1.majg%2C%20osm_1.ming%2C%20osm_1.majs%2C%20osm_1.mins%2C%20osm_1.part%2C%20%28%28%28osm_1.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_2.avdes1%2C%20p_2.awdes1%29%29%29%29%2C%20%28%28%28f_1.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_1.descr%29%29%2C%20%28%28%28substr%28osm_1.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_1.descr%29%29%2C%20%28COALESCE%28mg_1.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_1.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_1.quota_rep%2C%20%28CASE%20osm_1.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_1.calc_status%20END%29%2C%20osm_1.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20222052kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9067%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..11025086.80%20rows%3D56705265%20width%3D595%29%20%28actual%20time%3D61.424..7759.480%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm_1.bill_class%20%3D%20l_1.bill%29%20AND%20%28osm_1.ship_class%20%3D%20l_1.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9067%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..6967724.27%20rows%3D55168846%20width%3D584%29%20%28actual%20time%3D61.349..7305.324%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_1.part%2C%201%2C%208%29%20%3D%20md_1.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9065%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..3519664.90%20rows%3D55168846%20width%3D552%29%20%28actual%20time%3D60.509..6993.509%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.part%20%3D%20p_2.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9065%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..3371395.52%20rows%3D55168846%20width%3D528%29%20%28actual%20time%3D43.514..6803.629%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6457%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..217901.28%20rows%3D2853561%20width%3D456%29%20%28actual%20time%3D43.508..5300.883%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6457%20read%3D26345%2C%20local%20hit%3D813630%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..54789.49%20rows%3D147598%20width%3D384%29%20%28actual%20time%3D43.490..3729.138%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.part%20%3D%20m_2.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6457%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..46129.57%20rows%3D147598%20width%3D349%29%20%28actual%20time%3D5.697..3467.540%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_1.part%2C%201%2C%203%29%20%3D%20f_1.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..43891.91%20rows%3D147598%20width%3D325%29%20%28actual%20time%3D5.585..3211.131%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm_1.part%2C%2016%2C%201%29%20%3D%20mg_1.f1%29%20AND%20%28osm_1.ming%20%3D%20mg_1.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..42594.49%20rows%3D147598%20width%3D293%29%20%28actual%20time%3D5.575..2952.469%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.glec%20%3D%20seg_1.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..40564.57%20rows%3D147598%20width%3D265%29%20%28actual%20time%3D5.564..2812.752%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.fspr%20%3D%20sd_1.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmf%20osm_1%20%20%28cost%3D0.00..38529.18%20rows%3D147598%20width%3D185%29%20%28actual%20time%3D5.391..2669.916%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28version%20%3D%20%275p7%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271901%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272018-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2275.461%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.158..0.158%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.080..0.111%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.006..0.006%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20seg_1%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.002..0.004%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.005..0.005%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20mg_1%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.001..0.002%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.108..0.108%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f_1%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.010..0.047%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D37.738..37.738%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_2%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D0.007..22.454%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od_1%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813628%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd_1%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813628%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D16.826..16.826%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_2%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D0.007..9.949%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.825..0.825%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20md_1%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.002..0.290%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.045..0.045%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l_1%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.008..0.022%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D104083613.45..132995269.35%20rows%3D175222157%20width%3D695%29%20%28actual%20time%3D10242.201..11403.381%20rows%3D349322%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_2.ssyr%2C%20osm_2.adj_orderdate%2C%20sd_2.ssyr%2C%20%28LEAST%28GREATEST%28osm_2.adj_shipdate%2C%20sd_2.sdat%29%2C%20sd_2.edat%29%29%2C%20rd_2.ssyr%2C%20osm_2.adj_requestdate%2C%20%28COALESCE%28od_2.cm%2C%20sd_2.cm%29%29%2C%20%28COALESCE%28sd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_2.cy%2C%20sd_2.cy%29%29%2C%20%28COALESCE%28sd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_2.plnt%2C%20osm_2.account%2C%20osm_2.bill_cust%2C%20osm_2.shipgrp%2C%20osm_2.ship_cust%2C%20osm_2.chan%2C%20l_2.retail%2C%20l_2.retailsub%2C%20osm_2.promo%2C%20osm_2.majg%2C%20osm_2.ming%2C%20osm_2.majs%2C%20osm_2.mins%2C%20osm_2.part%2C%20%28%28%28osm_2.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_3.avdes1%2C%20p_3.awdes1%29%29%29%29%2C%20%28%28%28f_2.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_2.descr%29%29%2C%20%28%28%28substr%28osm_2.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_2.descr%29%29%2C%20%28COALESCE%28mg_2.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_2.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_2.quota_rep%2C%20%28CASE%20osm_2.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_2.calc_status%20END%29%2C%20osm_2.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D15596%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D1469244%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D104083613.45..104521668.84%20rows%3D175222157%20width%3D584%29%20%28actual%20time%3D10242.147..10337.649%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_2.ssyr%2C%20osm_2.adj_orderdate%2C%20sd_2.ssyr%2C%20%28LEAST%28GREATEST%28osm_2.adj_shipdate%2C%20sd_2.sdat%29%2C%20sd_2.edat%29%29%2C%20rd_2.ssyr%2C%20osm_2.adj_requestdate%2C%20%28COALESCE%28od_2.cm%2C%20sd_2.cm%29%29%2C%20%28COALESCE%28sd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_2.cy%2C%20sd_2.cy%29%29%2C%20%28COALESCE%28sd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_2.plnt%2C%20osm_2.account%2C%20osm_2.bill_cust%2C%20osm_2.shipgrp%2C%20osm_2.ship_cust%2C%20osm_2.chan%2C%20l_2.retail%2C%20l_2.retailsub%2C%20osm_2.promo%2C%20osm_2.majg%2C%20osm_2.ming%2C%20osm_2.majs%2C%20osm_2.mins%2C%20osm_2.part%2C%20%28%28%28osm_2.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_3.avdes1%2C%20p_3.awdes1%29%29%29%29%2C%20%28%28%28f_2.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_2.descr%29%29%2C%20%28%28%28substr%28osm_2.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_2.descr%29%29%2C%20%28COALESCE%28mg_2.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_2.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_2.quota_rep%2C%20%28CASE%20osm_2.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_2.calc_status%20END%29%2C%20osm_2.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20201821kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D15596%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D1469244%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..34574966.31%20rows%3D175222157%20width%3D584%29%20%28actual%20time%3D54.045..5505.369%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm_2.bill_class%20%3D%20l_2.bill%29%20AND%20%28osm_2.ship_class%20%3D%20l_2.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D15596%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D1469244%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..22053510.74%20rows%3D175222157%20width%3D572%29%20%28actual%20time%3D53.991..5099.469%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_2.part%2C%201%2C%208%29%20%3D%20md_2.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D15594%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D1469244%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..11102119.43%20rows%3D175222157%20width%3D540%29%20%28actual%20time%3D53.191..4854.338%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.part%20%3D%20p_3.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D15594%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D1469244%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..10638673.75%20rows%3D175222157%20width%3D516%29%20%28actual%20time%3D37.296..4707.080%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D12986%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D1469244%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..623511.84%20rows%3D9063215%20width%3D444%29%20%28actual%20time%3D37.291..3491.892%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D12986%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D734624%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..105486.21%20rows%3D468787%20width%3D372%29%20%28actual%20time%3D37.263..2223.924%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.part%20%3D%20m_3.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D12986%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..95983.12%20rows%3D468787%20width%3D337%29%20%28actual%20time%3D0.270..2039.720%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_2.part%2C%201%2C%203%29%20%3D%20f_2.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6538%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..88927.62%20rows%3D468787%20width%3D313%29%20%28actual%20time%3D0.129..1823.936%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm_2.part%2C%2016%2C%201%29%20%3D%20mg_2.f1%29%20AND%20%28osm_2.ming%20%3D%20mg_2.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6529%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..84811.93%20rows%3D468787%20width%3D281%29%20%28actual%20time%3D0.119..1623.505%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.glec%20%3D%20seg_2.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6529%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..78421.13%20rows%3D468787%20width%3D253%29%20%28actual%20time%3D0.111..1504.191%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.fspr%20%3D%20sd_2.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6529%20read%3D51463%20dirtied%3D4%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osm%20osm_2%20%20%28cost%3D0.00..72340.04%20rows%3D468787%20width%3D173%29%20%28actual%20time%3D0.052..1372.311%20rows%3D367596%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271606%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272016-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20417392%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6529%20read%3D51463%20dirtied%3D4%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D904.147%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.053..0.053%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_2%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.007..0.029%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.006..0.006%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20seg_2%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.002..0.003%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.006..0.006%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20mg_2%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.001..0.002%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.136..0.136%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f_2%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.008..0.047%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D36.937..36.937%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_3%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D0.006..22.525%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od_2%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D367596%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_2.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_2.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D734622%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd_2%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D367596%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_2.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm_2.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D734620%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D15.858..15.858%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_3%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D0.007..9.906%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.788..0.788%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20md_2%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.002..0.291%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.043..0.043%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l_2%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.007..0.021%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20CTE%20agg%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D3811565832720.57..4308918237067.99%20rows%3D1808554197627%20width%3D1404%29%20%28actual%20time%3D130217.184..134929.396%20rows%3D809850%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20un.version%2C%20un.iter%2C%20%28%28un.oseas%29%3A%3Anumeric%29%2C%20un.odate%2C%20%28%28un.sseas%29%3A%3Anumeric%29%2C%20un.sdate%2C%20%28%28un.rseas%29%3A%3Anumeric%29%2C%20un.rdate%2C%20un.om%2C%20un.sm%2C%20un.rm%2C%20un.oy%2C%20%28%28un.odate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.odate%20%3C%40%20so.ytd%29%29%2C%20un.sy%2C%20%28%28un.sdate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.sdate%20%3C%40%20ss.ytd%29%29%2C%20%28CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%3D%20un.odate%29%20THEN%20CASE%20WHEN%20%28%28un.sdate%20%3E%20%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%29%20OR%20%28un.sy%20%3D%20%27F%27%3A%3Atext%29%29%20THEN%20CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%20un.rdate%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20%27Shipped%27%3A%3Atext%20END%20ELSE%20%27Not%20Yet%20Placed%27%3A%3Atext%20END%29%2C%20un.ry%2C%20un.plnt%2C%20un.account%2C%20%28%28%28un.bill_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28bc.bvname%29%29%29%2C%20bc.bvctry%2C%20bc.bvprcd%2C%20un.shipgrp%2C%20%28%28%28un.ship_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28sc.bvname%29%29%29%2C%20sc.bvctry%2C%20sc.bvprcd%2C%20un.chan%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retail%20ELSE%20un.chan%20END%29%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retailsub%20ELSE%20%27%27%3A%3Atext%20END%29%2C%20un.promo%2C%20%28%28un.majg%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20majg.bqdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.ming%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20mmgp.brdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.majs%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20sj.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.mins%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20si.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20un.part%2C%20un.part_descr%2C%20un.part_family%2C%20un.part_group%2C%20un.branding%2C%20un.segm%2C%20%28COALESCE%28repc.repp%2C%20un.quota_rep%29%29%2C%20%28COALESCE%28repc.director%2C%20un.quota_rep%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.sy%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.oy%29%29%2C%20%28CASE%20WHEN%20%28un.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20THEN%20CASE%20WHEN%20%28un.rdate%20%3C%20CURRENT_DATE%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20un.calc_status%20END%29%2C%20%28%28%28substr%28un.part%2C%209%2C%203%29%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.branding%29%29%2C%20%27Grand%20Total%27%3A%3Atext%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D37003%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660295%20read%3D1%2C%20temp%20read%3D169623%20written%3D244421%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D3811565832720.57..3816087218214.63%20rows%3D1808554197627%20width%3D1346%29%20%28actual%20time%3D130217.139..131170.872%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.version%2C%20un.iter%2C%20%28%28un.oseas%29%3A%3Anumeric%29%2C%20un.odate%2C%20%28%28un.sseas%29%3A%3Anumeric%29%2C%20un.sdate%2C%20%28%28un.rseas%29%3A%3Anumeric%29%2C%20un.rdate%2C%20un.om%2C%20un.sm%2C%20un.rm%2C%20un.oy%2C%20%28%28un.odate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.odate%20%3C%40%20so.ytd%29%29%2C%20un.sy%2C%20%28%28un.sdate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.sdate%20%3C%40%20ss.ytd%29%29%2C%20%28CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%3D%20un.odate%29%20THEN%20CASE%20WHEN%20%28%28un.sdate%20%3E%20%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%29%20OR%20%28un.sy%20%3D%20%27F%27%3A%3Atext%29%29%20THEN%20CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%20un.rdate%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20%27Shipped%27%3A%3Atext%20END%20ELSE%20%27Not%20Yet%20Placed%27%3A%3Atext%20END%29%2C%20un.ry%2C%20un.plnt%2C%20un.account%2C%20%28%28%28un.bill_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28bc.bvname%29%29%29%2C%20bc.bvctry%2C%20bc.bvprcd%2C%20un.shipgrp%2C%20%28%28%28un.ship_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28sc.bvname%29%29%29%2C%20sc.bvctry%2C%20sc.bvprcd%2C%20un.chan%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retail%20ELSE%20un.chan%20END%29%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retailsub%20ELSE%20%27%27%3A%3Atext%20END%29%2C%20un.promo%2C%20%28%28un.majg%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20majg.bqdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.ming%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20mmgp.brdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.majs%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20sj.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.mins%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20si.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20un.part%2C%20un.part_descr%2C%20un.part_family%2C%20un.part_group%2C%20un.branding%2C%20un.segm%2C%20%28COALESCE%28repc.repp%2C%20un.quota_rep%29%29%2C%20%28COALESCE%28repc.director%2C%20un.quota_rep%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.sy%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.oy%29%29%2C%20%28CASE%20WHEN%20%28un.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20THEN%20CASE%20WHEN%20%28un.rdate%20%3C%20CURRENT_DATE%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20un.calc_status%20END%29%2C%20%28%28%28substr%28un.part%2C%209%2C%203%29%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.branding%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20476048kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D37003%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660295%20read%3D1%2C%20temp%20read%3D169623%20written%3D244421%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Merge%20Right%20Join%20%20%28cost%3D32058721370.12..253666346227.77%20rows%3D1808554197627%20width%3D1346%29%20%28actual%20time%3D79725.467..85819.348%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Merge%20Cond%3A%20%28ss.ssyr%20%3D%20un.sseas%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660295%20read%3D1%2C%20temp%20read%3D110117%20written%3D184914%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D1353.78..1391.63%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.123..0.131%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20ss.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20std%20ss%20%20%28cost%3D0.00..302.76%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.082..0.119%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D32058720016.34..32178191161.64%20rows%3D23894229061%20width%3D1300%29%20%28actual%20time%3D79718.116..82479.293%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%2C%20temp%20read%3D110117%20written%3D184914%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D32058720016.34..32118455588.99%20rows%3D23894229061%20width%3D1300%29%20%28actual%20time%3D79718.091..80948.227%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.sseas%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20446032kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%2C%20temp%20read%3D110117%20written%3D146652%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Merge%20Right%20Join%20%20%28cost%3D466287095.31..825489820.45%20rows%3D23894229061%20width%3D1300%29%20%28actual%20time%3D67066.711..71526.574%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Merge%20Cond%3A%20%28so.ssyr%20%3D%20un.oseas%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%2C%20temp%20read%3D54363%20written%3D90897%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D1353.78..1391.63%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.004..0.008%20rows%3D13%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20so.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20std%20so%20%20%28cost%3D0.00..302.76%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.000..0.002%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D466285741.52..467864168.60%20rows%3D315685415%20width%3D1268%29%20%28actual%20time%3D67055.329..70663.573%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%2C%20temp%20read%3D54363%20written%3D90897%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D466285741.52..467074955.06%20rows%3D315685415%20width%3D1268%29%20%28actual%20time%3D67050.634..68022.803%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.oseas%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20434904kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%2C%20temp%20read%3D54363%20written%3D54364%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30326.40..72123629.81%20rows%3D315685415%20width%3D1268%29%20%28actual%20time%3D24989.685..60611.536%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cr.y0part%29%20AND%20%28un.plnt%20%3D%20cr.y0plnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D22414.65..53910516.25%20rows%3D315685415%20width%3D1262%29%20%28actual%20time%3D24857.162..60071.090%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cp.chpart%29%20AND%20%28un.plnt%20%3D%20cp.chplnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D150313%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5704.175%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D14299.03..34905098.97%20rows%3D315685415%20width%3D1256%29%20%28actual%20time%3D24690.716..59482.739%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cm.cgpart%29%20AND%20%28un.plnt%20%3D%20cm.cgplnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D144997%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5598.963%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D7433.88..32509062.54%20rows%3D315685415%20width%3D1250%29%20%28actual%20time%3D24542.324..58815.424%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.bill_cust%20%3D%20sc.bvcust%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D36995%20read%3D140490%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5507.001%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D3723.16..28164677.36%20rows%3D315685415%20width%3D1223%29%20%28actual%20time%3D24531.977..58466.240%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.bill_cust%20%3D%20bc.bvcust%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D33771%20read%3D140490%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5507.001%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D12.44..23820292.19%20rows%3D315685415%20width%3D1196%29%20%28actual%20time%3D24445.824..58031.724%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.ming%20%3D%20mmgp.brmgrp%29%20AND%20%28un.majg%20%3D%20mmgp.brgrp%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D33771%20read%3D137266%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5435.817%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D7.51..14337334.16%20rows%3D315685415%20width%3D1186%29%20%28actual%20time%3D24445.412..57697.186%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.majg%20%3D%20majg.bqgrp%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D33771%20read%3D137265%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5435.479%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.24..12964101.34%20rows%3D315685415%20width%3D1176%29%20%28actual%20time%3D24445.051..57415.327%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.majs%20%3D%20sj.bsmjcd%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D33771%20read%3D137264%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5435.137%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.21..11764496.73%20rows%3D315685415%20width%3D1144%29%20%28actual%20time%3D24445.027..57139.761%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.majs%20%3D%20si.bsmjcd%29%20AND%20%28un.mins%20%3D%20si.bsmncd%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D33770%20read%3D137264%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5435.137%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D3.90..9391645.00%20rows%3D315685415%20width%3D1112%29%20%28actual%20time%3D24443.462..56809.926%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.quota_rep%20%3D%20repc.rcode%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D33770%20read%3D137263%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5433.634%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..6313708.30%20rows%3D315685415%20width%3D1048%29%20%28actual%20time%3D24427.626..56309.934%20rows%3D812592%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D33769%20read%3D137238%20dirtied%3D4%2C%20local%20hit%3D5660293%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5418.990%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2.40..2.40%20rows%3D120%20width%3D96%29%20%28actual%20time%3D15.823..15.823%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2017kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D25%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D14.644%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20repc%20%20%28cost%3D0.00..2.40%20rows%3D120%20width%3D96%29%20%28actual%20time%3D7.422..15.771%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D25%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D14.644%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.32..1.32%20rows%3D66%20width%3D96%29%20%28actual%20time%3D1.556..1.556%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2011kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1.503%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20si%20%20%28cost%3D0.00..1.32%20rows%3D66%20width%3D96%29%20%28actual%20time%3D1.516..1.541%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1.503%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.02..0.02%20rows%3D1%20width%3D64%29%20%28actual%20time%3D0.017..0.017%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20sj%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D64%29%20%28actual%20time%3D0.006..0.014%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.12..1.12%20rows%3D12%20width%3D14%29%20%28actual%20time%3D0.357..0.357%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.342%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20majg%20%20%28cost%3D0.00..1.12%20rows%3D12%20width%3D14%29%20%28actual%20time%3D0.349..0.351%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.342%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2.57..2.57%20rows%3D157%20width%3D18%29%20%28actual%20time%3D0.404..0.404%20rows%3D157%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.338%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmgp%20%20%28cost%3D0.00..2.57%20rows%3D157%20width%3D18%29%20%28actual%20time%3D0.350..0.369%20rows%3D157%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.338%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3440.32..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D86.128..86.128%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2032768%20%20Batches%3A%201%20%20Memory%20Usage%3A%201721kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D71.184%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20cust%20bc%20%20%28cost%3D0.00..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D1.719..80.386%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D71.184%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3440.32..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D10.320..10.320%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2032768%20%20Batches%3A%201%20%20Memory%20Usage%3A%201721kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20cust%20sc%20%20%28cost%3D0.00..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D0.007..6.682%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D5450.26..5450.26%20rows%3D94326%20width%3D29%29%20%28actual%20time%3D148.322..148.322%20rows%3D94326%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%206699kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4507%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D91.962%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstm%20cm%20%20%28cost%3D0.00..5450.26%20rows%3D94326%20width%3D29%29%20%28actual%20time%3D1.674..121.636%20rows%3D94326%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4507%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D91.962%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D6435.85..6435.85%20rows%3D111985%20width%3D20%29%20%28actual%20time%3D166.382..166.382%20rows%3D111985%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%206768kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5316%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D105.211%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstp%20cp%20%20%28cost%3D0.00..6435.85%20rows%3D111985%20width%3D20%29%20%28actual%20time%3D2.877..136.300%20rows%3D111985%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5316%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D105.211%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D6315.90..6315.90%20rows%3D106390%20width%3D27%29%20%28actual%20time%3D132.044..132.044%20rows%3D106390%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207334kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5252%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D92.401%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstr%20cr%20%20%28cost%3D0.00..6315.90%20rows%3D106390%20width%3D27%29%20%28actual%20time%3D1.095..107.748%20rows%3D106390%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5252%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D92.401%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a%20%20%28cost%3D0.00..36171083952.54%20rows%3D1808554197627%20width%3D1520%29%20%28actual%20time%3D130217.189..139003.919%20rows%3D809850%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D37003%20read%3D155565%20dirtied%3D4%2C%20local%20hit%3D5660295%20read%3D1%2C%20temp%20read%3D169623%20written%3D302291%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5796.575%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a_1%20%20%28cost%3D0.00..41167214923.48%20rows%3D13564156482%20width%3D1520%29%20%28actual%20time%3D313.638..4190.172%20rows%3D298727%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Filter%3A%20%28%28ocytd%20OR%20scytd%29%20AND%20%28version%20%3D%20ANY%20%28%27%7BActual%2CForecast%7D%27%3A%3Atext%5B%5D%29%29%29%0A%09%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20511123%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20temp%20read%3D57871%20written%3D1%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a_2%20%20%28cost%3D0.00..41167214923.48%20rows%3D13564156482%20width%3D1520%29%20%28actual%20time%3D77.645..4240.941%20rows%3D270385%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Filter%3A%20%28%28ocytd%20OR%20scytd%29%20AND%20%28version%20%3D%20ANY%20%28%27%7BActual%2CBudget%7D%27%3A%3Atext%5B%5D%29%29%29%0A%09%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20539465%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20temp%20read%3D57871%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Append (cost=4309162605406.33..4437117814888.42 rows=1835682510591 width=1520) (actual time=130217.190..147603.781 rows=1378962 loops=1)
|
||
Buffers: shared hit=37003 read=155565 dirtied=4, local hit=5660295 read=1, temp read=285365 written=302292
|
||
I/O Timings: read=5796.575
|
||
CTE seg
|
||
-> Values Scan on "*VALUES*" (cost=0.00..0.18 rows=14 width=64) (actual time=0.003..0.006 rows=14 loops=1)
|
||
CTE mg
|
||
-> Values Scan on "*VALUES*_1" (cost=0.00..0.20 rows=16 width=96) (actual time=0.003..0.011 rows=16 loops=1)
|
||
CTE repc
|
||
-> Hash Left Join (cost=11.47..123.28 rows=120 width=96) (actual time=7.419..15.669 rows=120 loops=1)
|
||
Hash Cond: (ltrim(rtrim(c.a9)) = q.qr)
|
||
Buffers: shared hit=1 read=25
|
||
I/O Timings: read=14.644
|
||
-> Bitmap Heap Scan on code c (cost=9.21..118.86 rows=120 width=25) (actual time=7.351..15.256 rows=120 loops=1)
|
||
Recheck Cond: (a2 = 'MM'::text)
|
||
Heap Blocks: exact=21
|
||
Buffers: shared read=25
|
||
I/O Timings: read=14.644
|
||
-> Bitmap Index Scan on pk_code (cost=0.00..9.18 rows=120 width=0) (actual time=6.872..6.872 rows=120 loops=1)
|
||
Index Cond: (a2 = 'MM'::text)
|
||
Buffers: shared read=4
|
||
I/O Timings: read=6.737
|
||
-> Hash (cost=1.56..1.56 rows=56 width=12) (actual time=0.044..0.044 rows=56 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 11kB
|
||
Buffers: shared hit=1
|
||
-> Seq Scan on qrh q (cost=0.00..1.56 rows=56 width=12) (actual time=0.016..0.024 rows=56 loops=1)
|
||
Buffers: shared hit=1
|
||
CTE md
|
||
-> HashAggregate (cost=11936.00..11938.00 rows=200 width=64) (actual time=109.370..109.781 rows=3368 loops=1)
|
||
Group Key: (substr(m.avpart, 1, 8))
|
||
Buffers: shared hit=9056
|
||
-> Append (cost=8137.31..11870.54 rows=13091 width=64) (actual time=98.760..108.518 rows=3375 loops=1)
|
||
Buffers: shared hit=9056
|
||
-> HashAggregate (cost=8137.31..8249.94 rows=9010 width=64) (actual time=98.758..99.319 rows=3285 loops=1)
|
||
Group Key: substr(m.avpart, 1, 8)
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m (cost=0.00..8092.26 rows=9010 width=59) (actual time=0.016..53.186 rows=76269 loops=1)
|
||
Filter: ((length(avpart) > 8) AND (substr(avgled, 1, 1) <= '2'::text))
|
||
Rows Removed by Filter: 4728
|
||
Buffers: shared hit=6448
|
||
-> HashAggregate (cost=3373.23..3424.24 rows=4081 width=64) (actual time=8.960..8.993 rows=90 loops=1)
|
||
Group Key: substr(p.awpart, 1, 8)
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p (cost=0.00..3352.82 rows=4081 width=52) (actual time=0.460..8.898 rows=142 loops=1)
|
||
Filter: ((length(awpart) > 8) AND (substr(awgled, 1, 1) <= '2'::text))
|
||
Rows Removed by Filter: 36557
|
||
Buffers: shared hit=2608
|
||
CTE sj
|
||
-> Seq Scan on mmsl (cost=0.00..1.84 rows=1 width=22) (actual time=0.005..0.011 rows=11 loops=1)
|
||
Filter: (COALESCE(bsmncd, ''::text) = ''::text)
|
||
Rows Removed by Filter: 56
|
||
Buffers: shared hit=1
|
||
CTE si
|
||
-> Seq Scan on mmsl mmsl_1 (cost=0.00..1.84 rows=66 width=22) (actual time=1.513..1.521 rows=56 loops=1)
|
||
Filter: (COALESCE(bsmncd, ''::text) <> ''::text)
|
||
Rows Removed by Filter: 11
|
||
Buffers: shared read=1
|
||
I/O Timings: read=1.503
|
||
CTE seas
|
||
-> GroupAggregate (cost=10.22..16.31 rows=174 width=41) (actual time=0.067..0.097 rows=15 loops=1)
|
||
Group Key: gld.ssyr
|
||
Buffers: local hit=2
|
||
-> Sort (cost=10.22..10.65 rows=174 width=16) (actual time=0.052..0.059 rows=174 loops=1)
|
||
Sort Key: gld.ssyr DESC
|
||
Sort Method: quicksort Memory: 33kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld (cost=0.00..3.74 rows=174 width=16) (actual time=0.010..0.030 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
CTE intv
|
||
-> CTE Scan on seas (cost=0.00..4.13 rows=87 width=4) (actual time=0.078..0.079 rows=1 loops=1)
|
||
Filter: cy
|
||
Rows Removed by Filter: 14
|
||
Buffers: local hit=2
|
||
CTE std
|
||
-> Nested Loop (cost=0.00..457.62 rows=15138 width=73) (actual time=0.081..0.114 rows=15 loops=1)
|
||
Buffers: local hit=2
|
||
-> CTE Scan on intv (cost=0.00..1.74 rows=87 width=4) (actual time=0.078..0.079 rows=1 loops=1)
|
||
Buffers: local hit=2
|
||
-> CTE Scan on seas s (cost=0.00..3.48 rows=174 width=41) (actual time=0.000..0.027 rows=15 loops=1)
|
||
CTE un
|
||
-> Append (cost=50003223.80..244355794.95 rows=315685415 width=697) (actual time=24427.622..55248.745 rows=812592 loops=1)
|
||
Buffers: shared hit=33769 read=137238 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5418.990
|
||
-> GroupAggregate (cost=50003223.80..63823292.65 rows=83757993 width=701) (actual time=24427.621..26180.035 rows=212793 loops=1)
|
||
Group Key: od.ssyr, osm.adj_orderdate, sd.ssyr, (LEAST(GREATEST(osm.adj_shipdate, sd.sdat), sd.edat)), rd.ssyr, osm.adj_requestdate, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(rd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text)), (COALESCE(rd.cy, 'F'::text)), osm.plnt, osm.account, osm.bill_cust, osm.shipgrp, osm.ship_cust, osm.chan, l.retail, l.retailsub, osm.promo, osm.majg, osm.ming, osm.majs, osm.mins, osm.part, (((osm.part || ' - '::text) || rtrim(COALESCE(m_1.avdes1, p_1.awdes1)))), (((f.f3 || ' - '::text) || f.descr)), (((substr(osm.part, 1, 8) || ' - '::text) || md.descr)), (COALESCE(mg.grp, 'Unbranded'::text)), (COALESCE(seg.segm, 'Other'::text)), osm.quota_rep, (CASE osm.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm.calc_status END), osm.c_rate
|
||
Buffers: shared hit=9106 read=59430, local hit=2563791 read=1
|
||
I/O Timings: read=2239.382
|
||
-> Sort (cost=50003223.80..50212618.79 rows=83757993 width=594) (actual time=24427.582..24584.713 rows=641010 loops=1)
|
||
Sort Key: od.ssyr, osm.adj_orderdate, sd.ssyr, (LEAST(GREATEST(osm.adj_shipdate, sd.sdat), sd.edat)), rd.ssyr, osm.adj_requestdate, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(rd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text)), (COALESCE(rd.cy, 'F'::text)), osm.plnt, osm.account, osm.bill_cust, osm.shipgrp, osm.ship_cust, osm.chan, l.retail, l.retailsub, osm.promo, osm.majg, osm.ming, osm.majs, osm.mins, osm.part, (((osm.part || ' - '::text) || rtrim(COALESCE(m_1.avdes1, p_1.awdes1)))), (((f.f3 || ' - '::text) || f.descr)), (((substr(osm.part, 1, 8) || ' - '::text) || md.descr)), (COALESCE(mg.grp, 'Unbranded'::text)), (COALESCE(seg.segm, 'Other'::text)), osm.quota_rep, (CASE osm.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm.calc_status END), osm.c_rate
|
||
Sort Method: quicksort Memory: 352782kB
|
||
Buffers: shared hit=9106 read=59430, local hit=2563791 read=1
|
||
I/O Timings: read=2239.382
|
||
-> Hash Left Join (cost=11749.79..16650773.71 rows=83757993 width=594) (actual time=594.631..11450.131 rows=641010 loops=1)
|
||
Hash Cond: ((osm.bill_class = l.bill) AND (osm.ship_class = l.ship))
|
||
Buffers: shared hit=9103 read=59430, local hit=2563791 read=1
|
||
I/O Timings: read=2239.382
|
||
-> Hash Left Join (cost=11744.32..10583311.94 rows=83757993 width=583) (actual time=594.565..10651.699 rows=641010 loops=1)
|
||
Hash Cond: (substr(osm.part, 1, 8) = md.mold)
|
||
Buffers: shared hit=9101 read=59430, local hit=2563791 read=1
|
||
I/O Timings: read=2239.382
|
||
-> Hash Left Join (cost=11737.82..5348430.88 rows=83757993 width=551) (actual time=483.328..10064.882 rows=641010 loops=1)
|
||
Hash Cond: (osm.part = p_1.awpart)
|
||
Buffers: shared hit=45 read=59430, local hit=2563791 read=1
|
||
I/O Timings: read=2239.382
|
||
-> Nested Loop Left Join (cost=8303.37..5125106.33 rows=83757993 width=527) (actual time=372.833..9705.810 rows=641010 loops=1)
|
||
Buffers: shared hit=43 read=56824, local hit=2563791 read=1
|
||
I/O Timings: read=2158.329
|
||
-> Nested Loop Left Join (cost=8303.23..337594.45 rows=4332310 width=455) (actual time=372.826..7154.118 rows=641010 loops=1)
|
||
Buffers: shared hit=43 read=56824, local hit=1281897 read=1
|
||
I/O Timings: read=2158.329
|
||
-> Hash Left Join (cost=8303.08..89964.52 rows=224085 width=383) (actual time=372.784..4519.221 rows=641010 loops=1)
|
||
Hash Cond: (osm.part = m_1.avpart)
|
||
Buffers: shared hit=43 read=56824, local hit=2
|
||
I/O Timings: read=2158.311
|
||
-> Hash Left Join (cost=30.62..81103.81 rows=224085 width=348) (actual time=1.380..3884.310 rows=641010 loops=1)
|
||
Hash Cond: (substr(osm.part, 1, 3) = f.f3)
|
||
Buffers: shared hit=41 read=50378, local hit=2
|
||
I/O Timings: read=1843.013
|
||
-> Hash Left Join (cost=6.93..77718.84 rows=224085 width=324) (actual time=1.257..3476.551 rows=641010 loops=1)
|
||
Hash Cond: ((substr(osm.part, 16, 1) = mg.f1) AND (osm.ming = mg.ming))
|
||
Buffers: shared hit=32 read=50378, local hit=2
|
||
I/O Timings: read=1843.013
|
||
-> Hash Left Join (cost=6.37..75750.09 rows=224085 width=292) (actual time=1.228..3039.988 rows=641010 loops=1)
|
||
Hash Cond: (osm.glec = seg.glec)
|
||
Buffers: shared hit=32 read=50378, local hit=2
|
||
I/O Timings: read=1843.013
|
||
-> Hash Left Join (cost=5.92..72674.81 rows=224085 width=264) (actual time=1.210..2805.095 rows=641010 loops=1)
|
||
Hash Cond: (osm.fspr = sd.fspr)
|
||
Buffers: shared hit=32 read=50378, local hit=2
|
||
I/O Timings: read=1843.013
|
||
-> Seq Scan on osmp osm (cost=0.00..69587.73 rows=224085 width=184) (actual time=1.134..2545.900 rows=641010 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND (version = 'b19'::text) AND (substr(glec, 1, 1) <= '2'::text) AND ((fspr >= '1901'::text) OR (adj_orderdate >= '2018-06-01'::date)))
|
||
Rows Removed by Filter: 57051
|
||
Buffers: shared hit=32 read=50378
|
||
I/O Timings: read=1843.013
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.058..0.058 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd (cost=0.00..3.74 rows=174 width=112) (actual time=0.010..0.033 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.013..0.013 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg (cost=0.00..0.28 rows=14 width=64) (actual time=0.005..0.011 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.018..0.018 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg (cost=0.00..0.32 rows=16 width=96) (actual time=0.003..0.015 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=0.118..0.118 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared hit=9
|
||
-> Seq Scan on family f (cost=0.00..15.53 rows=653 width=24) (actual time=0.017..0.054 rows=653 loops=1)
|
||
Buffers: shared hit=9
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=371.346..371.346 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=2 read=6446
|
||
I/O Timings: read=315.299
|
||
-> Seq Scan on stkmm m_1 (cost=0.00..7258.87 rows=81087 width=54) (actual time=1.087..344.662 rows=80997 loops=1)
|
||
Buffers: shared hit=2 read=6446
|
||
I/O Timings: read=315.299
|
||
-> Index Scan using se_dat on gld od (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=641010)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=1281895 read=1
|
||
I/O Timings: read=0.018
|
||
-> Index Scan using se_dat on gld rd (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=641010)
|
||
Index Cond: ((osm.adj_requestdate >= sdat) AND (osm.adj_requestdate <= edat))
|
||
Buffers: local hit=1281894
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=110.296..110.296 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2 read=2606
|
||
I/O Timings: read=81.053
|
||
-> Seq Scan on stkmp p_1 (cost=0.00..2975.31 rows=36731 width=33) (actual time=0.977..97.487 rows=36699 loops=1)
|
||
Buffers: shared hit=2 read=2606
|
||
I/O Timings: read=81.053
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=111.215..111.215 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
Buffers: shared hit=9056
|
||
-> CTE Scan on md (cost=0.00..4.00 rows=200 width=64) (actual time=109.374..110.690 rows=3368 loops=1)
|
||
Buffers: shared hit=9056
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.051..0.051 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared hit=2
|
||
-> Seq Scan on ffchnl l (cost=0.00..3.39 rows=139 width=25) (actual time=0.012..0.026 rows=139 loops=1)
|
||
Buffers: shared hit=2
|
||
-> GroupAggregate (cost=33445583.00..42801951.72 rows=56705265 width=699) (actual time=16460.682..17590.319 rows=250477 loops=1)
|
||
Group Key: od_1.ssyr, osm_1.adj_orderdate, sd_1.ssyr, (LEAST(GREATEST(osm_1.adj_shipdate, sd_1.sdat), sd_1.edat)), rd_1.ssyr, osm_1.adj_requestdate, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(rd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text)), (COALESCE(rd_1.cy, 'F'::text)), osm_1.plnt, osm_1.account, osm_1.bill_cust, osm_1.shipgrp, osm_1.ship_cust, osm_1.chan, l_1.retail, l_1.retailsub, osm_1.promo, osm_1.majg, osm_1.ming, osm_1.majs, osm_1.mins, osm_1.part, (((osm_1.part || ' - '::text) || rtrim(COALESCE(m_2.avdes1, p_2.awdes1)))), (((f_1.f3 || ' - '::text) || f_1.descr)), (((substr(osm_1.part, 1, 8) || ' - '::text) || md_1.descr)), (COALESCE(mg_1.grp, 'Unbranded'::text)), (COALESCE(seg_1.segm, 'Other'::text)), osm_1.quota_rep, (CASE osm_1.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_1.calc_status END), osm_1.c_rate
|
||
Buffers: shared hit=9067 read=26345, local hit=1627258
|
||
I/O Timings: read=2275.461
|
||
-> Sort (cost=33445583.00..33587346.16 rows=56705265 width=595) (actual time=16460.650..16563.021 rows=406814 loops=1)
|
||
Sort Key: od_1.ssyr, osm_1.adj_orderdate, sd_1.ssyr, (LEAST(GREATEST(osm_1.adj_shipdate, sd_1.sdat), sd_1.edat)), rd_1.ssyr, osm_1.adj_requestdate, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(rd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text)), (COALESCE(rd_1.cy, 'F'::text)), osm_1.plnt, osm_1.account, osm_1.bill_cust, osm_1.shipgrp, osm_1.ship_cust, osm_1.chan, l_1.retail, l_1.retailsub, osm_1.promo, osm_1.majg, osm_1.ming, osm_1.majs, osm_1.mins, osm_1.part, (((osm_1.part || ' - '::text) || rtrim(COALESCE(m_2.avdes1, p_2.awdes1)))), (((f_1.f3 || ' - '::text) || f_1.descr)), (((substr(osm_1.part, 1, 8) || ' - '::text) || md_1.descr)), (COALESCE(mg_1.grp, 'Unbranded'::text)), (COALESCE(seg_1.segm, 'Other'::text)), osm_1.quota_rep, (CASE osm_1.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_1.calc_status END), osm_1.c_rate
|
||
Sort Method: quicksort Memory: 222052kB
|
||
Buffers: shared hit=9067 read=26345, local hit=1627258
|
||
I/O Timings: read=2275.461
|
||
-> Hash Left Join (cost=11749.79..11025086.80 rows=56705265 width=595) (actual time=61.424..7759.480 rows=406814 loops=1)
|
||
Hash Cond: ((osm_1.bill_class = l_1.bill) AND (osm_1.ship_class = l_1.ship))
|
||
Buffers: shared hit=9067 read=26345, local hit=1627258
|
||
I/O Timings: read=2275.461
|
||
-> Hash Left Join (cost=11744.32..6967724.27 rows=55168846 width=584) (actual time=61.349..7305.324 rows=406814 loops=1)
|
||
Hash Cond: (substr(osm_1.part, 1, 8) = md_1.mold)
|
||
Buffers: shared hit=9065 read=26345, local hit=1627258
|
||
I/O Timings: read=2275.461
|
||
-> Hash Left Join (cost=11737.82..3519664.90 rows=55168846 width=552) (actual time=60.509..6993.509 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.part = p_2.awpart)
|
||
Buffers: shared hit=9065 read=26345, local hit=1627258
|
||
I/O Timings: read=2275.461
|
||
-> Nested Loop Left Join (cost=8303.37..3371395.52 rows=55168846 width=528) (actual time=43.514..6803.629 rows=406814 loops=1)
|
||
Buffers: shared hit=6457 read=26345, local hit=1627258
|
||
I/O Timings: read=2275.461
|
||
-> Nested Loop Left Join (cost=8303.23..217901.28 rows=2853561 width=456) (actual time=43.508..5300.883 rows=406814 loops=1)
|
||
Buffers: shared hit=6457 read=26345, local hit=813630
|
||
I/O Timings: read=2275.461
|
||
-> Hash Left Join (cost=8303.08..54789.49 rows=147598 width=384) (actual time=43.490..3729.138 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.part = m_2.avpart)
|
||
Buffers: shared hit=6457 read=26345, local hit=2
|
||
I/O Timings: read=2275.461
|
||
-> Hash Left Join (cost=30.62..46129.57 rows=147598 width=349) (actual time=5.697..3467.540 rows=406814 loops=1)
|
||
Hash Cond: (substr(osm_1.part, 1, 3) = f_1.f3)
|
||
Buffers: shared hit=9 read=26345, local hit=2
|
||
I/O Timings: read=2275.461
|
||
-> Hash Left Join (cost=6.93..43891.91 rows=147598 width=325) (actual time=5.585..3211.131 rows=406814 loops=1)
|
||
Hash Cond: ((substr(osm_1.part, 16, 1) = mg_1.f1) AND (osm_1.ming = mg_1.ming))
|
||
Buffers: shared read=26345, local hit=2
|
||
I/O Timings: read=2275.461
|
||
-> Hash Left Join (cost=6.37..42594.49 rows=147598 width=293) (actual time=5.575..2952.469 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.glec = seg_1.glec)
|
||
Buffers: shared read=26345, local hit=2
|
||
I/O Timings: read=2275.461
|
||
-> Hash Left Join (cost=5.92..40564.57 rows=147598 width=265) (actual time=5.564..2812.752 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.fspr = sd_1.fspr)
|
||
Buffers: shared read=26345, local hit=2
|
||
I/O Timings: read=2275.461
|
||
-> Seq Scan on osmf osm_1 (cost=0.00..38529.18 rows=147598 width=185) (actual time=5.391..2669.916 rows=406814 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND (version = '5p7'::text) AND (substr(glec, 1, 1) <= '2'::text) AND ((fspr >= '1901'::text) OR (adj_orderdate >= '2018-06-01'::date)))
|
||
Rows Removed by Filter: 358
|
||
Buffers: shared read=26345
|
||
I/O Timings: read=2275.461
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.158..0.158 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_1 (cost=0.00..3.74 rows=174 width=112) (actual time=0.080..0.111 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.006..0.006 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg seg_1 (cost=0.00..0.28 rows=14 width=64) (actual time=0.002..0.004 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.005..0.005 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg mg_1 (cost=0.00..0.32 rows=16 width=96) (actual time=0.001..0.002 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=0.108..0.108 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared hit=9
|
||
-> Seq Scan on family f_1 (cost=0.00..15.53 rows=653 width=24) (actual time=0.010..0.047 rows=653 loops=1)
|
||
Buffers: shared hit=9
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=37.738..37.738 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m_2 (cost=0.00..7258.87 rows=81087 width=54) (actual time=0.007..22.454 rows=80997 loops=1)
|
||
Buffers: shared hit=6448
|
||
-> Index Scan using se_dat on gld od_1 (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=406814)
|
||
Index Cond: ((osm_1.adj_orderdate >= sdat) AND (osm_1.adj_orderdate <= edat))
|
||
Buffers: local hit=813628
|
||
-> Index Scan using se_dat on gld rd_1 (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=406814)
|
||
Index Cond: ((osm_1.adj_requestdate >= sdat) AND (osm_1.adj_requestdate <= edat))
|
||
Buffers: local hit=813628
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=16.826..16.826 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p_2 (cost=0.00..2975.31 rows=36731 width=33) (actual time=0.007..9.949 rows=36699 loops=1)
|
||
Buffers: shared hit=2608
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=0.825..0.825 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
-> CTE Scan on md md_1 (cost=0.00..4.00 rows=200 width=64) (actual time=0.002..0.290 rows=3368 loops=1)
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.045..0.045 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared hit=2
|
||
-> Seq Scan on ffchnl l_1 (cost=0.00..3.39 rows=139 width=25) (actual time=0.008..0.022 rows=139 loops=1)
|
||
Buffers: shared hit=2
|
||
-> GroupAggregate (cost=104083613.45..132995269.35 rows=175222157 width=695) (actual time=10242.201..11403.381 rows=349322 loops=1)
|
||
Group Key: od_2.ssyr, osm_2.adj_orderdate, sd_2.ssyr, (LEAST(GREATEST(osm_2.adj_shipdate, sd_2.sdat), sd_2.edat)), rd_2.ssyr, osm_2.adj_requestdate, (COALESCE(od_2.cm, sd_2.cm)), (COALESCE(sd_2.cm, 'F'::text)), (COALESCE(rd_2.cm, 'F'::text)), (COALESCE(od_2.cy, sd_2.cy)), (COALESCE(sd_2.cy, 'F'::text)), (COALESCE(rd_2.cy, 'F'::text)), osm_2.plnt, osm_2.account, osm_2.bill_cust, osm_2.shipgrp, osm_2.ship_cust, osm_2.chan, l_2.retail, l_2.retailsub, osm_2.promo, osm_2.majg, osm_2.ming, osm_2.majs, osm_2.mins, osm_2.part, (((osm_2.part || ' - '::text) || rtrim(COALESCE(m_3.avdes1, p_3.awdes1)))), (((f_2.f3 || ' - '::text) || f_2.descr)), (((substr(osm_2.part, 1, 8) || ' - '::text) || md_2.descr)), (COALESCE(mg_2.grp, 'Unbranded'::text)), (COALESCE(seg_2.segm, 'Other'::text)), osm_2.quota_rep, (CASE osm_2.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_2.calc_status END), osm_2.c_rate
|
||
Buffers: shared hit=15596 read=51463 dirtied=4, local hit=1469244
|
||
I/O Timings: read=904.147
|
||
-> Sort (cost=104083613.45..104521668.84 rows=175222157 width=584) (actual time=10242.147..10337.649 rows=367596 loops=1)
|
||
Sort Key: od_2.ssyr, osm_2.adj_orderdate, sd_2.ssyr, (LEAST(GREATEST(osm_2.adj_shipdate, sd_2.sdat), sd_2.edat)), rd_2.ssyr, osm_2.adj_requestdate, (COALESCE(od_2.cm, sd_2.cm)), (COALESCE(sd_2.cm, 'F'::text)), (COALESCE(rd_2.cm, 'F'::text)), (COALESCE(od_2.cy, sd_2.cy)), (COALESCE(sd_2.cy, 'F'::text)), (COALESCE(rd_2.cy, 'F'::text)), osm_2.plnt, osm_2.account, osm_2.bill_cust, osm_2.shipgrp, osm_2.ship_cust, osm_2.chan, l_2.retail, l_2.retailsub, osm_2.promo, osm_2.majg, osm_2.ming, osm_2.majs, osm_2.mins, osm_2.part, (((osm_2.part || ' - '::text) || rtrim(COALESCE(m_3.avdes1, p_3.awdes1)))), (((f_2.f3 || ' - '::text) || f_2.descr)), (((substr(osm_2.part, 1, 8) || ' - '::text) || md_2.descr)), (COALESCE(mg_2.grp, 'Unbranded'::text)), (COALESCE(seg_2.segm, 'Other'::text)), osm_2.quota_rep, (CASE osm_2.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_2.calc_status END), osm_2.c_rate
|
||
Sort Method: quicksort Memory: 201821kB
|
||
Buffers: shared hit=15596 read=51463 dirtied=4, local hit=1469244
|
||
I/O Timings: read=904.147
|
||
-> Hash Left Join (cost=11749.79..34574966.31 rows=175222157 width=584) (actual time=54.045..5505.369 rows=367596 loops=1)
|
||
Hash Cond: ((osm_2.bill_class = l_2.bill) AND (osm_2.ship_class = l_2.ship))
|
||
Buffers: shared hit=15596 read=51463 dirtied=4, local hit=1469244
|
||
I/O Timings: read=904.147
|
||
-> Hash Left Join (cost=11744.32..22053510.74 rows=175222157 width=572) (actual time=53.991..5099.469 rows=367596 loops=1)
|
||
Hash Cond: (substr(osm_2.part, 1, 8) = md_2.mold)
|
||
Buffers: shared hit=15594 read=51463 dirtied=4, local hit=1469244
|
||
I/O Timings: read=904.147
|
||
-> Hash Left Join (cost=11737.82..11102119.43 rows=175222157 width=540) (actual time=53.191..4854.338 rows=367596 loops=1)
|
||
Hash Cond: (osm_2.part = p_3.awpart)
|
||
Buffers: shared hit=15594 read=51463 dirtied=4, local hit=1469244
|
||
I/O Timings: read=904.147
|
||
-> Nested Loop Left Join (cost=8303.37..10638673.75 rows=175222157 width=516) (actual time=37.296..4707.080 rows=367596 loops=1)
|
||
Buffers: shared hit=12986 read=51463 dirtied=4, local hit=1469244
|
||
I/O Timings: read=904.147
|
||
-> Nested Loop Left Join (cost=8303.23..623511.84 rows=9063215 width=444) (actual time=37.291..3491.892 rows=367596 loops=1)
|
||
Buffers: shared hit=12986 read=51463 dirtied=4, local hit=734624
|
||
I/O Timings: read=904.147
|
||
-> Hash Left Join (cost=8303.08..105486.21 rows=468787 width=372) (actual time=37.263..2223.924 rows=367596 loops=1)
|
||
Hash Cond: (osm_2.part = m_3.avpart)
|
||
Buffers: shared hit=12986 read=51463 dirtied=4, local hit=2
|
||
I/O Timings: read=904.147
|
||
-> Hash Left Join (cost=30.62..95983.12 rows=468787 width=337) (actual time=0.270..2039.720 rows=367596 loops=1)
|
||
Hash Cond: (substr(osm_2.part, 1, 3) = f_2.f3)
|
||
Buffers: shared hit=6538 read=51463 dirtied=4, local hit=2
|
||
I/O Timings: read=904.147
|
||
-> Hash Left Join (cost=6.93..88927.62 rows=468787 width=313) (actual time=0.129..1823.936 rows=367596 loops=1)
|
||
Hash Cond: ((substr(osm_2.part, 16, 1) = mg_2.f1) AND (osm_2.ming = mg_2.ming))
|
||
Buffers: shared hit=6529 read=51463 dirtied=4, local hit=2
|
||
I/O Timings: read=904.147
|
||
-> Hash Left Join (cost=6.37..84811.93 rows=468787 width=281) (actual time=0.119..1623.505 rows=367596 loops=1)
|
||
Hash Cond: (osm_2.glec = seg_2.glec)
|
||
Buffers: shared hit=6529 read=51463 dirtied=4, local hit=2
|
||
I/O Timings: read=904.147
|
||
-> Hash Left Join (cost=5.92..78421.13 rows=468787 width=253) (actual time=0.111..1504.191 rows=367596 loops=1)
|
||
Hash Cond: (osm_2.fspr = sd_2.fspr)
|
||
Buffers: shared hit=6529 read=51463 dirtied=4, local hit=2
|
||
I/O Timings: read=904.147
|
||
-> Seq Scan on osm osm_2 (cost=0.00..72340.04 rows=468787 width=173) (actual time=0.052..1372.311 rows=367596 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND ((fspr >= '1606'::text) OR (adj_orderdate >= '2016-06-01'::date)))
|
||
Rows Removed by Filter: 417392
|
||
Buffers: shared hit=6529 read=51463 dirtied=4
|
||
I/O Timings: read=904.147
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.053..0.053 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_2 (cost=0.00..3.74 rows=174 width=112) (actual time=0.007..0.029 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.006..0.006 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg seg_2 (cost=0.00..0.28 rows=14 width=64) (actual time=0.002..0.003 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.006..0.006 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg mg_2 (cost=0.00..0.32 rows=16 width=96) (actual time=0.001..0.002 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=0.136..0.136 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared hit=9
|
||
-> Seq Scan on family f_2 (cost=0.00..15.53 rows=653 width=24) (actual time=0.008..0.047 rows=653 loops=1)
|
||
Buffers: shared hit=9
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=36.937..36.937 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m_3 (cost=0.00..7258.87 rows=81087 width=54) (actual time=0.006..22.525 rows=80997 loops=1)
|
||
Buffers: shared hit=6448
|
||
-> Index Scan using se_dat on gld od_2 (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=367596)
|
||
Index Cond: ((osm_2.adj_orderdate >= sdat) AND (osm_2.adj_orderdate <= edat))
|
||
Buffers: local hit=734622
|
||
-> Index Scan using se_dat on gld rd_2 (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=367596)
|
||
Index Cond: ((osm_2.adj_requestdate >= sdat) AND (osm_2.adj_requestdate <= edat))
|
||
Buffers: local hit=734620
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=15.858..15.858 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p_3 (cost=0.00..2975.31 rows=36731 width=33) (actual time=0.007..9.906 rows=36699 loops=1)
|
||
Buffers: shared hit=2608
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=0.788..0.788 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
-> CTE Scan on md md_2 (cost=0.00..4.00 rows=200 width=64) (actual time=0.002..0.291 rows=3368 loops=1)
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.043..0.043 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared hit=2
|
||
-> Seq Scan on ffchnl l_2 (cost=0.00..3.39 rows=139 width=25) (actual time=0.007..0.021 rows=139 loops=1)
|
||
Buffers: shared hit=2
|
||
CTE agg
|
||
-> GroupAggregate (cost=3811565832720.57..4308918237067.99 rows=1808554197627 width=1404) (actual time=130217.184..134929.396 rows=809850 loops=1)
|
||
Group Key: un.version, un.iter, ((un.oseas)::numeric), un.odate, ((un.sseas)::numeric), un.sdate, ((un.rseas)::numeric), un.rdate, un.om, un.sm, un.rm, un.oy, ((un.odate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.odate <@ so.ytd)), un.sy, ((un.sdate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.sdate <@ ss.ytd)), (CASE WHEN ((upper(so.ytd) - '1 day'::interval) >= un.odate) THEN CASE WHEN ((un.sdate > (upper(so.ytd) - '1 day'::interval)) OR (un.sy = 'F'::text)) THEN CASE WHEN ((upper(so.ytd) - '1 day'::interval) > un.rdate) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE 'Shipped'::text END ELSE 'Not Yet Placed'::text END), un.ry, un.plnt, un.account, (((un.bill_cust || ' - '::text) || rtrim(bc.bvname))), bc.bvctry, bc.bvprcd, un.shipgrp, (((un.ship_cust || ' - '::text) || rtrim(sc.bvname))), sc.bvctry, sc.bvprcd, un.chan, (CASE un.segm WHEN 'Retail'::text THEN un.retail ELSE un.chan END), (CASE un.segm WHEN 'Retail'::text THEN un.retailsub ELSE ''::text END), un.promo, ((un.majg || COALESCE((' - '::text || majg.bqdes), ''::text))), ((un.ming || COALESCE((' - '::text || mmgp.brdes), ''::text))), ((un.majs || COALESCE((' - '::text || sj.bsdes1), ''::text))), ((un.mins || COALESCE((' - '::text || si.bsdes1), ''::text))), un.part, un.part_descr, un.part_family, un.part_group, un.branding, un.segm, (COALESCE(repc.repp, un.quota_rep)), (COALESCE(repc.director, un.quota_rep)), (((un.version || '-'::text) || un.sy)), (((un.version || '-'::text) || un.oy)), (CASE WHEN (un.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) THEN CASE WHEN (un.rdate < CURRENT_DATE) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE un.calc_status END), (((substr(un.part, 9, 3) || '-'::text) || un.branding)), 'Grand Total'::text
|
||
Buffers: shared hit=37003 read=155565 dirtied=4, local hit=5660295 read=1, temp read=169623 written=244421
|
||
I/O Timings: read=5796.575
|
||
-> Sort (cost=3811565832720.57..3816087218214.63 rows=1808554197627 width=1346) (actual time=130217.139..131170.872 rows=812592 loops=1)
|
||
Sort Key: un.version, un.iter, ((un.oseas)::numeric), un.odate, ((un.sseas)::numeric), un.sdate, ((un.rseas)::numeric), un.rdate, un.om, un.sm, un.rm, un.oy, ((un.odate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.odate <@ so.ytd)), un.sy, ((un.sdate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.sdate <@ ss.ytd)), (CASE WHEN ((upper(so.ytd) - '1 day'::interval) >= un.odate) THEN CASE WHEN ((un.sdate > (upper(so.ytd) - '1 day'::interval)) OR (un.sy = 'F'::text)) THEN CASE WHEN ((upper(so.ytd) - '1 day'::interval) > un.rdate) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE 'Shipped'::text END ELSE 'Not Yet Placed'::text END), un.ry, un.plnt, un.account, (((un.bill_cust || ' - '::text) || rtrim(bc.bvname))), bc.bvctry, bc.bvprcd, un.shipgrp, (((un.ship_cust || ' - '::text) || rtrim(sc.bvname))), sc.bvctry, sc.bvprcd, un.chan, (CASE un.segm WHEN 'Retail'::text THEN un.retail ELSE un.chan END), (CASE un.segm WHEN 'Retail'::text THEN un.retailsub ELSE ''::text END), un.promo, ((un.majg || COALESCE((' - '::text || majg.bqdes), ''::text))), ((un.ming || COALESCE((' - '::text || mmgp.brdes), ''::text))), ((un.majs || COALESCE((' - '::text || sj.bsdes1), ''::text))), ((un.mins || COALESCE((' - '::text || si.bsdes1), ''::text))), un.part, un.part_descr, un.part_family, un.part_group, un.branding, un.segm, (COALESCE(repc.repp, un.quota_rep)), (COALESCE(repc.director, un.quota_rep)), (((un.version || '-'::text) || un.sy)), (((un.version || '-'::text) || un.oy)), (CASE WHEN (un.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) THEN CASE WHEN (un.rdate < CURRENT_DATE) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE un.calc_status END), (((substr(un.part, 9, 3) || '-'::text) || un.branding))
|
||
Sort Method: external merge Disk: 476048kB
|
||
Buffers: shared hit=37003 read=155565 dirtied=4, local hit=5660295 read=1, temp read=169623 written=244421
|
||
I/O Timings: read=5796.575
|
||
-> Merge Right Join (cost=32058721370.12..253666346227.77 rows=1808554197627 width=1346) (actual time=79725.467..85819.348 rows=812592 loops=1)
|
||
Merge Cond: (ss.ssyr = un.sseas)
|
||
Buffers: shared hit=36995 read=155565 dirtied=4, local hit=5660295 read=1, temp read=110117 written=184914
|
||
I/O Timings: read=5796.575
|
||
-> Sort (cost=1353.78..1391.63 rows=15138 width=40) (actual time=0.123..0.131 rows=15 loops=1)
|
||
Sort Key: ss.ssyr
|
||
Sort Method: quicksort Memory: 26kB
|
||
Buffers: local hit=2
|
||
-> CTE Scan on std ss (cost=0.00..302.76 rows=15138 width=40) (actual time=0.082..0.119 rows=15 loops=1)
|
||
Buffers: local hit=2
|
||
-> Materialize (cost=32058720016.34..32178191161.64 rows=23894229061 width=1300) (actual time=79718.116..82479.293 rows=812592 loops=1)
|
||
Buffers: shared hit=36995 read=155565 dirtied=4, local hit=5660293 read=1, temp read=110117 written=184914
|
||
I/O Timings: read=5796.575
|
||
-> Sort (cost=32058720016.34..32118455588.99 rows=23894229061 width=1300) (actual time=79718.091..80948.227 rows=812592 loops=1)
|
||
Sort Key: un.sseas
|
||
Sort Method: external merge Disk: 446032kB
|
||
Buffers: shared hit=36995 read=155565 dirtied=4, local hit=5660293 read=1, temp read=110117 written=146652
|
||
I/O Timings: read=5796.575
|
||
-> Merge Right Join (cost=466287095.31..825489820.45 rows=23894229061 width=1300) (actual time=67066.711..71526.574 rows=812592 loops=1)
|
||
Merge Cond: (so.ssyr = un.oseas)
|
||
Buffers: shared hit=36995 read=155565 dirtied=4, local hit=5660293 read=1, temp read=54363 written=90897
|
||
I/O Timings: read=5796.575
|
||
-> Sort (cost=1353.78..1391.63 rows=15138 width=40) (actual time=0.004..0.008 rows=13 loops=1)
|
||
Sort Key: so.ssyr
|
||
Sort Method: quicksort Memory: 26kB
|
||
-> CTE Scan on std so (cost=0.00..302.76 rows=15138 width=40) (actual time=0.000..0.002 rows=15 loops=1)
|
||
-> Materialize (cost=466285741.52..467864168.60 rows=315685415 width=1268) (actual time=67055.329..70663.573 rows=812592 loops=1)
|
||
Buffers: shared hit=36995 read=155565 dirtied=4, local hit=5660293 read=1, temp read=54363 written=90897
|
||
I/O Timings: read=5796.575
|
||
-> Sort (cost=466285741.52..467074955.06 rows=315685415 width=1268) (actual time=67050.634..68022.803 rows=812592 loops=1)
|
||
Sort Key: un.oseas
|
||
Sort Method: external merge Disk: 434904kB
|
||
Buffers: shared hit=36995 read=155565 dirtied=4, local hit=5660293 read=1, temp read=54363 written=54364
|
||
I/O Timings: read=5796.575
|
||
-> Hash Left Join (cost=30326.40..72123629.81 rows=315685415 width=1268) (actual time=24989.685..60611.536 rows=812592 loops=1)
|
||
Hash Cond: ((un.part = cr.y0part) AND (un.plnt = cr.y0plnt))
|
||
Buffers: shared hit=36995 read=155565 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5796.575
|
||
-> Hash Left Join (cost=22414.65..53910516.25 rows=315685415 width=1262) (actual time=24857.162..60071.090 rows=812592 loops=1)
|
||
Hash Cond: ((un.part = cp.chpart) AND (un.plnt = cp.chplnt))
|
||
Buffers: shared hit=36995 read=150313 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5704.175
|
||
-> Hash Left Join (cost=14299.03..34905098.97 rows=315685415 width=1256) (actual time=24690.716..59482.739 rows=812592 loops=1)
|
||
Hash Cond: ((un.part = cm.cgpart) AND (un.plnt = cm.cgplnt))
|
||
Buffers: shared hit=36995 read=144997 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5598.963
|
||
-> Hash Left Join (cost=7433.88..32509062.54 rows=315685415 width=1250) (actual time=24542.324..58815.424 rows=812592 loops=1)
|
||
Hash Cond: (un.bill_cust = sc.bvcust)
|
||
Buffers: shared hit=36995 read=140490 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5507.001
|
||
-> Hash Left Join (cost=3723.16..28164677.36 rows=315685415 width=1223) (actual time=24531.977..58466.240 rows=812592 loops=1)
|
||
Hash Cond: (un.bill_cust = bc.bvcust)
|
||
Buffers: shared hit=33771 read=140490 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5507.001
|
||
-> Hash Left Join (cost=12.44..23820292.19 rows=315685415 width=1196) (actual time=24445.824..58031.724 rows=812592 loops=1)
|
||
Hash Cond: ((un.ming = mmgp.brmgrp) AND (un.majg = mmgp.brgrp))
|
||
Buffers: shared hit=33771 read=137266 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5435.817
|
||
-> Hash Left Join (cost=7.51..14337334.16 rows=315685415 width=1186) (actual time=24445.412..57697.186 rows=812592 loops=1)
|
||
Hash Cond: (un.majg = majg.bqgrp)
|
||
Buffers: shared hit=33771 read=137265 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5435.479
|
||
-> Hash Left Join (cost=6.24..12964101.34 rows=315685415 width=1176) (actual time=24445.051..57415.327 rows=812592 loops=1)
|
||
Hash Cond: (un.majs = sj.bsmjcd)
|
||
Buffers: shared hit=33771 read=137264 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5435.137
|
||
-> Hash Left Join (cost=6.21..11764496.73 rows=315685415 width=1144) (actual time=24445.027..57139.761 rows=812592 loops=1)
|
||
Hash Cond: ((un.majs = si.bsmjcd) AND (un.mins = si.bsmncd))
|
||
Buffers: shared hit=33770 read=137264 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5435.137
|
||
-> Hash Left Join (cost=3.90..9391645.00 rows=315685415 width=1112) (actual time=24443.462..56809.926 rows=812592 loops=1)
|
||
Hash Cond: (un.quota_rep = repc.rcode)
|
||
Buffers: shared hit=33770 read=137263 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5433.634
|
||
-> CTE Scan on un (cost=0.00..6313708.30 rows=315685415 width=1048) (actual time=24427.626..56309.934 rows=812592 loops=1)
|
||
Buffers: shared hit=33769 read=137238 dirtied=4, local hit=5660293 read=1
|
||
I/O Timings: read=5418.990
|
||
-> Hash (cost=2.40..2.40 rows=120 width=96) (actual time=15.823..15.823 rows=120 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 17kB
|
||
Buffers: shared hit=1 read=25
|
||
I/O Timings: read=14.644
|
||
-> CTE Scan on repc (cost=0.00..2.40 rows=120 width=96) (actual time=7.422..15.771 rows=120 loops=1)
|
||
Buffers: shared hit=1 read=25
|
||
I/O Timings: read=14.644
|
||
-> Hash (cost=1.32..1.32 rows=66 width=96) (actual time=1.556..1.556 rows=56 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 11kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=1.503
|
||
-> CTE Scan on si (cost=0.00..1.32 rows=66 width=96) (actual time=1.516..1.541 rows=56 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=1.503
|
||
-> Hash (cost=0.02..0.02 rows=1 width=64) (actual time=0.017..0.017 rows=11 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
Buffers: shared hit=1
|
||
-> CTE Scan on sj (cost=0.00..0.02 rows=1 width=64) (actual time=0.006..0.014 rows=11 loops=1)
|
||
Buffers: shared hit=1
|
||
-> Hash (cost=1.12..1.12 rows=12 width=14) (actual time=0.357..0.357 rows=12 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.342
|
||
-> Seq Scan on majg (cost=0.00..1.12 rows=12 width=14) (actual time=0.349..0.351 rows=12 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.342
|
||
-> Hash (cost=2.57..2.57 rows=157 width=18) (actual time=0.404..0.404 rows=157 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.338
|
||
-> Seq Scan on mmgp (cost=0.00..2.57 rows=157 width=18) (actual time=0.350..0.369 rows=157 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.338
|
||
-> Hash (cost=3440.32..3440.32 rows=21632 width=35) (actual time=86.128..86.128 rows=21632 loops=1)
|
||
Buckets: 32768 Batches: 1 Memory Usage: 1721kB
|
||
Buffers: shared read=3224
|
||
I/O Timings: read=71.184
|
||
-> Seq Scan on cust bc (cost=0.00..3440.32 rows=21632 width=35) (actual time=1.719..80.386 rows=21632 loops=1)
|
||
Buffers: shared read=3224
|
||
I/O Timings: read=71.184
|
||
-> Hash (cost=3440.32..3440.32 rows=21632 width=35) (actual time=10.320..10.320 rows=21632 loops=1)
|
||
Buckets: 32768 Batches: 1 Memory Usage: 1721kB
|
||
Buffers: shared hit=3224
|
||
-> Seq Scan on cust sc (cost=0.00..3440.32 rows=21632 width=35) (actual time=0.007..6.682 rows=21632 loops=1)
|
||
Buffers: shared hit=3224
|
||
-> Hash (cost=5450.26..5450.26 rows=94326 width=29) (actual time=148.322..148.322 rows=94326 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 6699kB
|
||
Buffers: shared read=4507
|
||
I/O Timings: read=91.962
|
||
-> Seq Scan on icstm cm (cost=0.00..5450.26 rows=94326 width=29) (actual time=1.674..121.636 rows=94326 loops=1)
|
||
Buffers: shared read=4507
|
||
I/O Timings: read=91.962
|
||
-> Hash (cost=6435.85..6435.85 rows=111985 width=20) (actual time=166.382..166.382 rows=111985 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 6768kB
|
||
Buffers: shared read=5316
|
||
I/O Timings: read=105.211
|
||
-> Seq Scan on icstp cp (cost=0.00..6435.85 rows=111985 width=20) (actual time=2.877..136.300 rows=111985 loops=1)
|
||
Buffers: shared read=5316
|
||
I/O Timings: read=105.211
|
||
-> Hash (cost=6315.90..6315.90 rows=106390 width=27) (actual time=132.044..132.044 rows=106390 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7334kB
|
||
Buffers: shared read=5252
|
||
I/O Timings: read=92.401
|
||
-> Seq Scan on icstr cr (cost=0.00..6315.90 rows=106390 width=27) (actual time=1.095..107.748 rows=106390 loops=1)
|
||
Buffers: shared read=5252
|
||
I/O Timings: read=92.401
|
||
-> CTE Scan on agg a (cost=0.00..36171083952.54 rows=1808554197627 width=1520) (actual time=130217.189..139003.919 rows=809850 loops=1)
|
||
Buffers: shared hit=37003 read=155565 dirtied=4, local hit=5660295 read=1, temp read=169623 written=302291
|
||
I/O Timings: read=5796.575
|
||
-> CTE Scan on agg a_1 (cost=0.00..41167214923.48 rows=13564156482 width=1520) (actual time=313.638..4190.172 rows=298727 loops=1)
|
||
Filter: ((ocytd OR scytd) AND (version = ANY ('{Actual,Forecast}'::text[])))
|
||
Rows Removed by Filter: 511123
|
||
Buffers: temp read=57871 written=1
|
||
-> CTE Scan on agg a_2 (cost=0.00..41167214923.48 rows=13564156482 width=1520) (actual time=77.645..4240.941 rows=270385 loops=1)
|
||
Filter: ((ocytd OR scytd) AND (version = ANY ('{Actual,Budget}'::text[])))
|
||
Rows Removed by Filter: 539465
|
||
Buffers: temp read=57871
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-g-2-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i>PL/pgSQL function rlarp.osm_ppfa_varto() line 69 at RETURN QUERYWITH
|
||
---------------------------------------segments--------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
SEG AS (
|
||
SELECT
|
||
x.GLEC
|
||
,x.SEGM
|
||
FROM
|
||
(
|
||
VALUES
|
||
('1CU','Retail'),
|
||
('1GR','Greenhouse'),
|
||
('1NU','Nursery'),
|
||
('1RE','Retail'),
|
||
('2WI','Greenhouse'),
|
||
('3BM','Other'),
|
||
('3CO','Other'),
|
||
('3PE','Other'),
|
||
('3PP','Other'),
|
||
('4CO','Other'),
|
||
('4RA','Other'),
|
||
('9MI','Other'),
|
||
('9SA','Other'),
|
||
('9TO','Other')
|
||
) X(GLEC, SEGM)
|
||
)
|
||
---------------------------------------branding flag---------------------------------------------------------------------------------------------------------------------------------------------------
|
||
,MG AS (
|
||
SELECT
|
||
X.F1, X.MING, X.GRP
|
||
FROM
|
||
(
|
||
VALUES
|
||
('L','000','Branded'),
|
||
('L','B10','Branded'),
|
||
('L','B11','Branded'),
|
||
('L','B52','Branded'),
|
||
('L','C10','Branded'),
|
||
('L','D12','Branded'),
|
||
('L','M11','Branded'),
|
||
('L','P12','Branded'),
|
||
('L','P13','Branded'),
|
||
('L','S10','Branded'),
|
||
('L','Y10','Branded'),
|
||
('L','Y11','Branded'),
|
||
('L','Y12','Branded'),
|
||
('P','B10','Branded'),
|
||
('P','B11','Branded'),
|
||
('P','B52','Branded')
|
||
) AS X (F1, MING, GRP)
|
||
)
|
||
---------------------------------------directors-------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
,REPC AS (
|
||
SELECT
|
||
LTRIM(RTRIM(C.A9)) RCODE
|
||
,LTRIM(RTRIM(C.A9)) || ' - ' || C.A30 REPP
|
||
,COALESCE(Q.DIR,'Other') DIRECTOR
|
||
FROM
|
||
LGDAT.CODE C
|
||
LEFT OUTER JOIN RLARP.QRH Q ON
|
||
Q.QR = LTRIM(RTRIM(C.A9))
|
||
WHERE
|
||
C.A2 = 'MM'
|
||
)
|
||
--MOLD DESCRIPTIONS
|
||
,MD AS (
|
||
SELECT
|
||
U.MOLD
|
||
,MAX(U.DESCR) DESCR
|
||
FROM
|
||
(
|
||
SELECT
|
||
SUBSTR(M.AVPART,1,8) MOLD
|
||
,MAX(M.AVDES1) DESCR
|
||
FROM
|
||
LGDAT.STKMM M
|
||
WHERE
|
||
LENGTH(M.AVPART) > 8
|
||
AND SUBSTR(M.AVGLED,1,1) <= '2'
|
||
GROUP BY
|
||
SUBSTR(M.AVPART,1,8)
|
||
UNION ALL
|
||
SELECT
|
||
SUBSTR(P.AWPART,1,8) MOLD
|
||
,MAX(P.AWDES1) DESCR
|
||
FROM
|
||
LGDAT.STKMP P
|
||
WHERE
|
||
LENGTH(P.AWPART) > 8
|
||
AND SUBSTR(P.AWGLED,1,1) <= '2'
|
||
GROUP BY
|
||
SUBSTR(P.AWPART,1,8)
|
||
) U
|
||
GROUP BY
|
||
U.MOLD
|
||
)
|
||
----------------------------------------------------sales major codes----------------------------------------------------------------------------------------------------------------------------------
|
||
,SJ AS (
|
||
SELECT * FROM LGDAT.MMSL WHERE COALESCE(BSMNCD,'') = ''
|
||
)
|
||
----------------------------------------------------sales minor codes----------------------------------------------------------------------------------------------------------------------------------
|
||
,SI AS (
|
||
SELECT * FROM LGDAT.MMSL WHERE COALESCE(BSMNCD,'') <> ''
|
||
)
|
||
----------------------------------------------------date ranges per season------------------------------------------------------------------------------------------------------------------------------
|
||
,seas AS(
|
||
SELECT
|
||
ssyr
|
||
,daterange(MIN(sdat),MAX(edat),'[]') dr
|
||
,current_date <@ daterange(MIN(sdat),MAX(edat),'[]') cy
|
||
FROM
|
||
gld
|
||
GROUP BY
|
||
ssyr
|
||
ORDER BY
|
||
ssyr DESC
|
||
)
|
||
,intv AS (
|
||
SELECT current_date - lower(dr) dy from seas where cy = true
|
||
)
|
||
,std AS (
|
||
SELECT
|
||
s.ssyr
|
||
,s.dr
|
||
,s.cy
|
||
,daterange(lower(dr),dy + LOWER(dr),'[]') ytd
|
||
FROM
|
||
seas s
|
||
CROSS JOIN intv
|
||
)
|
||
---------------------------------------union actual and forecast---------------------------------------------------------------------------------------------------------------------------------------
|
||
,UN AS (
|
||
--plan
|
||
SELECT
|
||
'Budget' AS VERSION
|
||
,'Budget' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE as ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(m.avDES1,p.awDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(m.avNWHT,p.awNWHT) * CASE COALESCE(m.avNWUN, p.awNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSMP OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.VERSION = 'b19'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1901'
|
||
OR OSM.ADJ_ORDERDATE >= '2018-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
--ITER
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(m.avDES1,p.awDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
UNION ALL
|
||
--staged forecast
|
||
SELECT
|
||
'Forecast' AS VERSION
|
||
,'Forecast' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(M.AVNWHT,P.AWNWHT) * CASE COALESCE(M.AVNWUN, P.AWNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSMF OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.VERSION = '5p7'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1901'
|
||
OR OSM.ADJ_ORDERDATE >= '2018-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
--ITER
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
UNION ALL
|
||
--actual
|
||
SELECT
|
||
'Actual' AS VERSION
|
||
,'Actual' ITER
|
||
,OD.SSYR OSEAS
|
||
,OSM.ADJ_ORDERDATE ODATE
|
||
,SD.SSYR SSEAS
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT) SDATE
|
||
,RD.SSYR RSEAS
|
||
,OSM.ADJ_REQUESTDATE RDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(RD.CM,'F') RM
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,COALESCE(RD.CY,'F') RY
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1)) PART_DESCR
|
||
,F.F3||' - '||F.DESCR PART_FAMILY
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR PART_GROUP
|
||
,COALESCE(MG.GRP,'Unbranded') BRANDING
|
||
,COALESCE(SEG.SEGM,'Other') SEGM
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END calc_status
|
||
,osm.c_rate
|
||
,SUM( OSM.FB_QTY ) QTY
|
||
,SUM( OSM.FB_VAL_LOC * OSM.R_RATE) SALES
|
||
,SUM( OSM.FB_CST_LOC * OSM.C_RATE) STDCOST
|
||
,SUM( OSM.FB_CST_LOC_CUR * OSM.C_RATE) STDCOST_CUR
|
||
,SUM( OSM.FB_QTY * COALESCE(M.AVNWHT,P.AWNWHT) * CASE COALESCE(M.AVNWUN, P.AWNWUN) WHEN 'KG' THEN 2.2046 ELSE 1 END) POUNDS
|
||
FROM
|
||
RLARP.OSM OSM
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
LEFT OUTER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD RD ON
|
||
OSM.ADJ_REQUESTDATE BETWEEN RD.SDAT AND RD.EDAT
|
||
LEFT OUTER JOIN SEG ON
|
||
SEG.GLEC = OSM.GLEC
|
||
--AND SEG.SEGM <> 'Other'
|
||
LEFT OUTER JOIN MG ON
|
||
MG.F1 = SUBSTR(OSM.PART,16,1)
|
||
AND MG.MING = OSM.MING
|
||
LEFT OUTER JOIN RLARP.FAMILY F ON
|
||
F.F3 = SUBSTR(OSM.PART,1,3)
|
||
LEFT OUTER JOIN LGDAT.STKMM M ON
|
||
M.AVPART = OSM.PART
|
||
LEFT OUTER JOIN LGDAT.STKMP P ON
|
||
P.AWPART = OSM.PART
|
||
LEFT OUTER JOIN MD ON
|
||
MD.MOLD = SUBSTR(OSM.PART,1,8)
|
||
LEFT OUTER JOIN RLARP.FFCHNL L ON
|
||
L.BILL = OSM.BILL_CLASS
|
||
AND L.SHIP = OSM.SHIP_CLASS
|
||
WHERE
|
||
OSM.FS_LINE = '41010'
|
||
--AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND OSM.CALC_STATUS <> 'CANCELED'
|
||
AND
|
||
(
|
||
OSM.FSPR >= '1606'
|
||
OR OSM.ADJ_ORDERDATE >= '2016-06-01'
|
||
)
|
||
GROUP BY
|
||
--VERSION
|
||
OD.SSYR
|
||
,OSM.ADJ_ORDERDATE
|
||
,SD.SSYR
|
||
,least(greatest(osm.adj_shipdate,SD.SDAT),SD.EDAT)
|
||
,RD.SSYR
|
||
,OSM.ADJ_REQUESTDATE
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(RD.CM,'F')
|
||
--if the order period is null, then there isn't one, just assign to invoice period
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
,COALESCE(RD.CY,'F')
|
||
,OSM.PLNT
|
||
,OSM.ACCOUNT
|
||
,OSM.BILL_CUST
|
||
,OSM.SHIPGRP
|
||
,OSM.SHIP_CUST
|
||
,OSM.CHAN
|
||
,L.RETAIL
|
||
,L.RETAILSUB
|
||
,OSM.PROMO
|
||
,OSM.MAJG
|
||
,OSM.MING
|
||
,OSM.MAJS
|
||
,OSM.MINS
|
||
,osm.PART
|
||
,osm.PART || ' - ' || RTRIM(COALESCE(M.AVDES1,P.AWDES1))
|
||
,F.F3||' - '||F.DESCR
|
||
,SUBSTR(osm.PART,1,8)||' - '||MD.DESCR
|
||
,COALESCE(MG.GRP,'Unbranded')
|
||
,COALESCE(SEG.SEGM,'Other')
|
||
,OSM.QUOTA_REP
|
||
,CASE osm.fspr WHEN '0000' THEN 'SHIP NOT BILLED' ELSE osm.CALC_STATUS END
|
||
,osm.c_rate
|
||
)
|
||
---------------------------------------aggregate actual and forecast-----------------------------------------------------------------------------------------------------------------------------------
|
||
,AGG AS (
|
||
SELECT
|
||
un.VERSION::text "version"
|
||
,un.ITER::text "iter"
|
||
,un.OSEAS::numeric oseas
|
||
,un.ODATE::date odate
|
||
,un.SSEAS::numeric sseas
|
||
,un.SDATE::date sdate
|
||
,un.RSEAS::numeric rseas
|
||
,un.RDATE::date rdate
|
||
,un.OM::text om
|
||
,un.SM::text sm
|
||
,un.RM::text rm
|
||
,un.OY::text oy
|
||
,(un.odate <@ _ytd)::boolean ocytd --current year to date
|
||
,(un.odate <@ so.ytd)::boolean oytd --year to date recast for prior/forecast periods
|
||
,un.SY::text sy
|
||
,(un.sdate <@ _ytd)::boolean scytd
|
||
,(un.sdate <@ ss.ytd)::boolean sytd
|
||
--had this order been placed yet? (current day prior year is greater than the order date)
|
||
,CASE WHEN (upper(so.ytd) - interval '1 day') >= un.odate THEN
|
||
--was the order open at this time last year? (for orders that were placed by this time, was the ship date greater then the order date)
|
||
CASE WHEN ((un.sdate > (upper(so.ytd) - interval '1 day')) OR (un.SY = 'F'))
|
||
--for orders that were placed and open at this time last year, was the order considered past due? (current date prior year > request date)
|
||
THEN
|
||
CASE WHEN (upper(so.ytd) - interval '1 day') > un.rdate
|
||
THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE 'Shipped'
|
||
END
|
||
ELSE 'Not Yet Placed'
|
||
END status_py
|
||
,un.RY::text ry
|
||
,un.PLNT::text plnt
|
||
,un.ACCOUNT::text bill_group
|
||
,(un.BILL_CUST || ' - ' || RTRIM(BC.BVNAME))::text bill_cust
|
||
,bc.bvctry bill_ctry
|
||
,bc.bvprcd bill_prov
|
||
,un.SHIPGRP::text ship_group
|
||
,(un.SHIP_CUST || ' - ' || RTRIM(SC.BVNAME))::text ship_cust
|
||
,sc.bvctry ship_ctry
|
||
,sc.bvprcd ship_prov
|
||
,un.CHAN::text chan
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAIL
|
||
ELSE un.CHAN
|
||
END::text mod_chan
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAILSUB
|
||
ELSE ''
|
||
END::text mod_chansub
|
||
,un.PROMO::text promo
|
||
,un.MAJG||COALESCE(' - '||BQDES,'')::text majg
|
||
,un.MING||COALESCE(' - '||BRDES,'')::text ming
|
||
,un.MAJS||COALESCE(' - '||SJ.BSDES1,'')::text majs
|
||
,un.MINS||COALESCE(' - '||SI.BSDES1,'')::text mins
|
||
,un.PART::text part
|
||
,un.PART_DESCR::text part_descr
|
||
,un.PART_FAMILY::text part_family
|
||
,un.PART_GROUP::text part_group
|
||
,un.BRANDING::text branding
|
||
,un.SEGM::text segm
|
||
,COALESCE(REPC.REPP,un.QUOTA_REP)::text quota_rep
|
||
,COALESCE(REPC.DIRECTOR,un.QUOTA_REP)::text director
|
||
,SUM(un.QTY)::numeric qty
|
||
,SUM(un.SALES)::numeric sales
|
||
,SUM(un.STDCOST)::numeric stdcost
|
||
,SUM(un.QTY * COALESCE(cm.cgstcs, cp.chstcs, cr.y0stcs) * un.c_rate)::numeric stdcost_cur
|
||
,SUM(un.POUNDS)::numeric pounds
|
||
,(un.VERSION||'-'||un.SY)::text flag_s
|
||
,(un.VERSION||'-'||un.OY)::text flag_o
|
||
,CASE
|
||
WHEN un.calc_status IN ('BACKORDER','OPEN') THEN
|
||
CASE
|
||
WHEN un.rdate < current_date THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE un.calc_status
|
||
END::text status
|
||
,(SUBSTR(UN.PART,9,3)||'-'||un.BRANDING)::text "options"
|
||
,'Grand Total'::text grandtotal
|
||
FROM
|
||
UN
|
||
LEFT OUTER JOIN REPC ON
|
||
REPC.RCODE = un.QUOTA_REP
|
||
LEFT OUTER JOIN SI ON
|
||
SI.BSMJCD = UN.MAJS
|
||
AND SI.BSMNCD = UN.MINS
|
||
LEFT OUTER JOIN SJ ON
|
||
SJ.BSMJCD = UN.MAJS
|
||
LEFT OUTER JOIN LGDAT.MAJG ON
|
||
BQGRP = un.MAJG
|
||
LEFT OUTER JOIN LGDAT.MMGP ON
|
||
BRMGRP = un.MING
|
||
AND BRGRP = un.MAJG
|
||
LEFT OUTER JOIN LGDAT.CUST BC ON
|
||
BC.BVCUST = UN.BILL_CUST
|
||
LEFT OUTER JOIN LGDAT.CUST SC ON
|
||
SC.BVCUST = UN.BILL_CUST
|
||
LEFT OUTER JOIN LGDAT.ICSTM cm ON
|
||
cm.cgpart = un.part
|
||
AND cm.cgplnt = un.plnt
|
||
LEFT OUTER JOIN LGDAT.ICSTP cp ON
|
||
cp.chpart = un.part
|
||
AND cp.chplnt = un.plnt
|
||
LEFT OUTER JOIN LGDAT.ICSTR cr ON
|
||
cr.y0part = un.part
|
||
AND cr.y0plnt = un.plnt
|
||
LEFT OUTER JOIN STD so ON
|
||
so.ssyr = un.oseas
|
||
LEFT OUTER JOIN STD ss ON
|
||
ss.ssyr = un.sseas
|
||
GROUP BY
|
||
un.VERSION::text
|
||
,un.ITER::text
|
||
,un.OSEAS::numeric
|
||
,un.ODATE::date
|
||
,un.SSEAS::numeric
|
||
,un.SDATE::date
|
||
,un.RSEAS::numeric
|
||
,un.RDATE::date
|
||
,un.OM::text
|
||
,un.SM::text
|
||
,un.RM::text
|
||
,un.OY::text
|
||
--current year to date
|
||
,(un.odate <@ _ytd)::boolean
|
||
--year to date recast for prior/forecast periods
|
||
,(un.odate <@ so.ytd)::boolean
|
||
,un.SY::text
|
||
,(un.sdate <@ _ytd)::boolean
|
||
,(un.sdate <@ ss.ytd)::boolean
|
||
,CASE WHEN (upper(so.ytd) - interval '1 day') >= un.odate THEN
|
||
--was the order open at this time last year? (for orders that were placed by this time, was the ship date greater then the order date)
|
||
CASE WHEN ((un.sdate > (upper(so.ytd) - interval '1 day')) OR (un.SY = 'F'))
|
||
--for orders that were placed and open at this time last year, was the order considered past due? (current date prior year > request date)
|
||
THEN
|
||
CASE WHEN (upper(so.ytd) - interval '1 day') > un.rdate
|
||
THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE 'Shipped'
|
||
END
|
||
ELSE 'Not Yet Placed'
|
||
END
|
||
,un.RY::text
|
||
,un.PLNT::text
|
||
,un.ACCOUNT::text
|
||
,(un.BILL_CUST || ' - ' || RTRIM(BC.BVNAME))::text
|
||
,bc.bvctry
|
||
,bc.bvprcd
|
||
,un.SHIPGRP::text
|
||
,(un.SHIP_CUST || ' - ' || RTRIM(SC.BVNAME))::text
|
||
,sc.bvctry
|
||
,sc.bvprcd
|
||
,un.CHAN::text
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAIL
|
||
ELSE un.CHAN
|
||
END::text
|
||
,CASE un.SEGM
|
||
WHEN 'Retail' THEN un.RETAILSUB
|
||
ELSE ''
|
||
END::text
|
||
,un.PROMO::text
|
||
,un.MAJG||COALESCE(' - '||BQDES,'')::text
|
||
,un.MING||COALESCE(' - '||BRDES,'')::text
|
||
,un.MAJS||COALESCE(' - '||SJ.BSDES1,'')::text
|
||
,un.MINS||COALESCE(' - '||SI.BSDES1,'')::text
|
||
,un.PART::text
|
||
,un.PART_DESCR::text
|
||
,un.PART_FAMILY::text
|
||
,un.PART_GROUP::text
|
||
,un.BRANDING::text
|
||
,un.SEGM::text
|
||
,COALESCE(REPC.REPP,un.QUOTA_REP)::text
|
||
,COALESCE(REPC.DIRECTOR,un.QUOTA_REP)::text
|
||
,(un.VERSION||'-'||un.SY)::text
|
||
,(un.VERSION||'-'||un.OY)::text
|
||
,CASE
|
||
WHEN un.calc_status IN ('BACKORDER','OPEN') THEN
|
||
CASE
|
||
WHEN un.rdate < current_date THEN 'Open - Past Due'
|
||
ELSE 'Open - Current'
|
||
END
|
||
ELSE un.calc_status
|
||
END::text
|
||
,(SUBSTR(UN.PART,9,3)||'-'||un.BRANDING)::text
|
||
,'Grand Total'::text
|
||
)
|
||
SELECT
|
||
a.version
|
||
,a.iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,a.qty
|
||
,a.sales
|
||
,a.stdcost
|
||
,a.stdcost_cur
|
||
,a.pounds
|
||
,a.flag_s
|
||
,a.flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
agg a
|
||
UNION ALL
|
||
SELECT
|
||
'Var to Fcst' as version
|
||
,'Var to Fcst' as iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.QTY ELSE -a.QTY END::numeric QTY
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.SALES ELSE -a.SALES END::numeric SALES
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST ELSE -a.STDCOST END::numeric STDCOST
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST_CUR ELSE -a.STDCOST_CUR END::numeric STDCOST_CUR
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.POUNDS ELSE -a.POUNDS END::numeric POUNDS
|
||
,'Var to Fcst'||'-'||a.scytd flag_s
|
||
,'Var to Fcst'||'-'||a.ocytd flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
AGG a
|
||
WHERE
|
||
a.VERSION IN ('Actual','Forecast')
|
||
AND (a.ocytd OR a.scytd)
|
||
|
||
UNION ALL
|
||
SELECT
|
||
'Var to Bdgt' as version
|
||
,'Var to Bdgt' as iter
|
||
,a.oseas
|
||
,a.odate
|
||
,a.sseas
|
||
,a.sdate
|
||
,a.rseas
|
||
,a.rdate
|
||
,a.om
|
||
,a.sm
|
||
,a.rm
|
||
,a.oy
|
||
,a.ocytd
|
||
,a.oytd
|
||
,a.sy
|
||
,a.scytd
|
||
,a.sytd
|
||
,a.status_py
|
||
,a.ry
|
||
,a.plnt
|
||
,a.bill_group
|
||
,a.bill_cust
|
||
,a.bill_ctry
|
||
,a.bill_prov
|
||
,a.ship_group
|
||
,a.ship_cust
|
||
,a.ship_ctry
|
||
,a.ship_prov
|
||
,a.chan
|
||
,a.mod_chan
|
||
,a.mod_chansub
|
||
,a.promo
|
||
,a.majg
|
||
,a.ming
|
||
,a.majs
|
||
,a.mins
|
||
,a.part
|
||
,a.part_descr
|
||
,a.part_family
|
||
,a.part_group
|
||
,a.branding
|
||
,a.segm
|
||
,a.quota_rep
|
||
,a.director
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.QTY ELSE -a.QTY END::numeric QTY
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.SALES ELSE -a.SALES END::numeric SALES
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST ELSE -a.STDCOST END::numeric STDCOST
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.STDCOST_CUR ELSE -a.STDCOST_CUR END::numeric STDCOST_CUR
|
||
,CASE a.VERSION WHEN 'Actual' THEN a.POUNDS ELSE -a.POUNDS END::numeric POUNDS
|
||
,'Var to Bdgt'||'-'||a.scytd flag_s
|
||
,'Var to Bdgt'||'-'||a.ocytd flag_o
|
||
,a.status
|
||
,a.options
|
||
,a.grandtotal
|
||
FROM
|
||
AGG a
|
||
WHERE
|
||
a.VERSION IN ('Actual','Budget')
|
||
AND (a.ocytd OR a.scytd)
|
||
;</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 14:09:18
|
||
<b>Duration:</b> 2m2s
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-g-explain-2-3" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Append%20%20%28cost%3D4510966117154.68..4644894879274.93%20rows%3D1921380827591%20width%3D1520%29%20%28actual%20time%3D112425.684..121699.211%20rows%3D1378380%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D35380%20read%3D157188%2C%20local%20hit%3D5659519%20read%3D1%2C%20temp%20read%3D285302%20written%3D302218%0A%09%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20CTE%20seg%0A%09%20%20%20%20-%3E%20%20Values%20Scan%20on%20%22%2AVALUES%2A%22%20%20%28cost%3D0.00..0.18%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.003..0.006%20rows%3D14%20loops%3D1%29%0A%09%20%20CTE%20mg%0A%09%20%20%20%20-%3E%20%20Values%20Scan%20on%20%22%2AVALUES%2A_1%22%20%20%28cost%3D0.00..0.20%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.002..0.007%20rows%3D16%20loops%3D1%29%0A%09%20%20CTE%20repc%0A%09%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11.47..123.28%20rows%3D120%20width%3D96%29%20%28actual%20time%3D4.005..11.391%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28ltrim%28rtrim%28c.a9%29%29%20%3D%20q.qr%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10.590%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20code%20c%20%20%28cost%3D9.21..118.86%20rows%3D120%20width%3D25%29%20%28actual%20time%3D3.631..10.743%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28a2%20%3D%20%27MM%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D21%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D25%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10.256%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20pk_code%20%20%28cost%3D0.00..9.18%20rows%3D120%20width%3D0%29%20%28actual%20time%3D2.484..2.484%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28a2%20%3D%20%27MM%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2.398%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.56..1.56%20rows%3D56%20width%3D12%29%20%28actual%20time%3D0.359..0.359%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2011kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.334%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20qrh%20q%20%20%28cost%3D0.00..1.56%20rows%3D56%20width%3D12%29%20%28actual%20time%3D0.342..0.348%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.334%0A%09%20%20CTE%20md%0A%09%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D11936.00..11938.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D141.238..141.651%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20%28substr%28m.avpart%2C%201%2C%208%29%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Append%20%20%28cost%3D8137.31..11870.54%20rows%3D13091%20width%3D64%29%20%28actual%20time%3D131.283..140.399%20rows%3D3375%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D8137.31..8249.94%20rows%3D9010%20width%3D64%29%20%28actual%20time%3D131.282..131.853%20rows%3D3285%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20substr%28m.avpart%2C%201%2C%208%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m%20%20%28cost%3D0.00..8092.26%20rows%3D9010%20width%3D59%29%20%28actual%20time%3D0.026..38.556%20rows%3D76269%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28length%28avpart%29%20%3E%208%29%20AND%20%28substr%28avgled%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%204728%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D3373.23..3424.24%20rows%3D4081%20width%3D64%29%20%28actual%20time%3D8.321..8.352%20rows%3D90%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20substr%28p.awpart%2C%201%2C%208%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p%20%20%28cost%3D0.00..3352.82%20rows%3D4081%20width%3D52%29%20%28actual%20time%3D0.446..8.258%20rows%3D142%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28length%28awpart%29%20%3E%208%29%20AND%20%28substr%28awgled%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2036557%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20CTE%20sj%0A%09%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmsl%20%20%28cost%3D0.00..1.84%20rows%3D1%20width%3D22%29%20%28actual%20time%3D0.004..0.009%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28COALESCE%28bsmncd%2C%20%27%27%3A%3Atext%29%20%3D%20%27%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2056%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20CTE%20si%0A%09%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmsl%20mmsl_1%20%20%28cost%3D0.00..1.84%20rows%3D66%20width%3D22%29%20%28actual%20time%3D0.307..0.314%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28COALESCE%28bsmncd%2C%20%27%27%3A%3Atext%29%20%3C%3E%20%27%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2011%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.297%0A%09%20%20CTE%20seas%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D10.22..16.31%20rows%3D174%20width%3D41%29%20%28actual%20time%3D0.068..0.100%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20gld.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D10.22..10.65%20rows%3D174%20width%3D16%29%20%28actual%20time%3D0.054..0.061%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20gld.ssyr%20DESC%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2033kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D16%29%20%28actual%20time%3D0.010..0.030%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20CTE%20intv%0A%09%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seas%20%20%28cost%3D0.00..4.13%20rows%3D87%20width%3D4%29%20%28actual%20time%3D0.080..0.081%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Filter%3A%20cy%0A%09%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2014%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20CTE%20std%0A%09%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D0.00..457.62%20rows%3D15138%20width%3D73%29%20%28actual%20time%3D0.087..0.122%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20intv%20%20%28cost%3D0.00..1.74%20rows%3D87%20width%3D4%29%20%28actual%20time%3D0.081..0.082%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seas%20s%20%20%28cost%3D0.00..3.48%20rows%3D174%20width%3D41%29%20%28actual%20time%3D0.000..0.028%20rows%3D15%20loops%3D1%29%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D50003223.80..255856479.46%20rows%3D330423099%20width%3D697%29%20%28actual%20time%3D26363.405..56340.259%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32147%20read%3D138860%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5000.713%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D50003223.80..63823292.65%20rows%3D83757993%20width%3D701%29%20%28actual%20time%3D26363.404..28258.932%20rows%3D212793%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20osm.adj_orderdate%2C%20sd.ssyr%2C%20%28LEAST%28GREATEST%28osm.adj_shipdate%2C%20sd.sdat%29%2C%20sd.edat%29%29%2C%20rd.ssyr%2C%20osm.adj_requestdate%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm.plnt%2C%20osm.account%2C%20osm.bill_cust%2C%20osm.shipgrp%2C%20osm.ship_cust%2C%20osm.chan%2C%20l.retail%2C%20l.retailsub%2C%20osm.promo%2C%20osm.majg%2C%20osm.ming%2C%20osm.majs%2C%20osm.mins%2C%20osm.part%2C%20%28%28%28osm.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_1.avdes1%2C%20p_1.awdes1%29%29%29%29%2C%20%28%28%28f.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f.descr%29%29%2C%20%28%28%28substr%28osm.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md.descr%29%29%2C%20%28COALESCE%28mg.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm.quota_rep%2C%20%28CASE%20osm.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm.calc_status%20END%29%2C%20osm.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9063%20read%3D59473%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2714.560%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D50003223.80..50212618.79%20rows%3D83757993%20width%3D594%29%20%28actual%20time%3D26363.369..26503.583%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20osm.adj_orderdate%2C%20sd.ssyr%2C%20%28LEAST%28GREATEST%28osm.adj_shipdate%2C%20sd.sdat%29%2C%20sd.edat%29%29%2C%20rd.ssyr%2C%20osm.adj_requestdate%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm.plnt%2C%20osm.account%2C%20osm.bill_cust%2C%20osm.shipgrp%2C%20osm.ship_cust%2C%20osm.chan%2C%20l.retail%2C%20l.retailsub%2C%20osm.promo%2C%20osm.majg%2C%20osm.ming%2C%20osm.majs%2C%20osm.mins%2C%20osm.part%2C%20%28%28%28osm.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_1.avdes1%2C%20p_1.awdes1%29%29%29%29%2C%20%28%28%28f.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f.descr%29%29%2C%20%28%28%28substr%28osm.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md.descr%29%29%2C%20%28COALESCE%28mg.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm.quota_rep%2C%20%28CASE%20osm.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm.calc_status%20END%29%2C%20osm.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20352782kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9063%20read%3D59473%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2714.560%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..16650773.71%20rows%3D83757993%20width%3D594%29%20%28actual%20time%3D412.849..12408.886%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm.bill_class%20%3D%20l.bill%29%20AND%20%28osm.ship_class%20%3D%20l.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9060%20read%3D59473%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2714.560%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..10583311.94%20rows%3D83757993%20width%3D583%29%20%28actual%20time%3D412.362..11595.759%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm.part%2C%201%2C%208%29%20%3D%20md.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9060%20read%3D59471%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2714.141%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..5348430.88%20rows%3D83757993%20width%3D551%29%20%28actual%20time%3D269.279..10961.881%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.part%20%3D%20p_1.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4%20read%3D59471%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2714.141%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..5125106.33%20rows%3D83757993%20width%3D527%29%20%28actual%20time%3D188.919..10630.169%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D56865%2C%20local%20hit%3D2563791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2652.319%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..337594.45%20rows%3D4332310%20width%3D455%29%20%28actual%20time%3D188.914..7884.956%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D56865%2C%20local%20hit%3D1281897%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2652.319%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..89964.52%20rows%3D224085%20width%3D383%29%20%28actual%20time%3D188.885..5089.482%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.part%20%3D%20m_1.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D56865%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2652.306%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..81103.81%20rows%3D224085%20width%3D348%29%20%28actual%20time%3D3.518..4614.841%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm.part%2C%201%2C%203%29%20%3D%20f.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D50419%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2511.680%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..77718.84%20rows%3D224085%20width%3D324%29%20%28actual%20time%3D2.296..4183.537%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm.part%2C%2016%2C%201%29%20%3D%20mg.f1%29%20AND%20%28osm.ming%20%3D%20mg.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D50410%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2510.588%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..75750.09%20rows%3D224085%20width%3D292%29%20%28actual%20time%3D2.277..3733.098%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.glec%20%3D%20seg.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D50410%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2510.588%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..72674.81%20rows%3D224085%20width%3D264%29%20%28actual%20time%3D2.259..3490.071%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D50410%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2510.588%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmp%20osm%20%20%28cost%3D0.00..69587.73%20rows%3D224085%20width%3D184%29%20%28actual%20time%3D2.186..3227.306%20rows%3D641010%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28version%20%3D%20%27b19%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271901%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272018-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2057051%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D50410%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2510.588%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.060..0.060%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.008..0.034%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.014..0.014%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.005..0.011%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.015..0.015%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.003..0.011%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D1.217..1.217%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1.092%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.985..1.149%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1.092%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D185.313..185.313%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D6446%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D140.626%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_1%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D0.508..163.116%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D6446%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D140.626%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D641010%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1281895%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.013%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.004%20rows%3D1%20loops%3D641010%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1281894%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D80.171..80.171%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D2606%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D61.823%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_1%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D0.342..70.937%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D2606%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D61.823%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D143.065..143.065%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D141.241..142.539%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9056%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.472..0.472%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.418%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.424..0.443%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.418%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D33445583.00..42801951.72%20rows%3D56705265%20width%3D699%29%20%28actual%20time%3D17060.209..18105.019%20rows%3D250477%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20osm_1.adj_orderdate%2C%20sd_1.ssyr%2C%20%28LEAST%28GREATEST%28osm_1.adj_shipdate%2C%20sd_1.sdat%29%2C%20sd_1.edat%29%29%2C%20rd_1.ssyr%2C%20osm_1.adj_requestdate%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_1.plnt%2C%20osm_1.account%2C%20osm_1.bill_cust%2C%20osm_1.shipgrp%2C%20osm_1.ship_cust%2C%20osm_1.chan%2C%20l_1.retail%2C%20l_1.retailsub%2C%20osm_1.promo%2C%20osm_1.majg%2C%20osm_1.ming%2C%20osm_1.majs%2C%20osm_1.mins%2C%20osm_1.part%2C%20%28%28%28osm_1.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_2.avdes1%2C%20p_2.awdes1%29%29%29%29%2C%20%28%28%28f_1.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_1.descr%29%29%2C%20%28%28%28substr%28osm_1.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_1.descr%29%29%2C%20%28COALESCE%28mg_1.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_1.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_1.quota_rep%2C%20%28CASE%20osm_1.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_1.calc_status%20END%29%2C%20osm_1.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9067%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D33445583.00..33587346.16%20rows%3D56705265%20width%3D595%29%20%28actual%20time%3D17060.177..17152.591%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20osm_1.adj_orderdate%2C%20sd_1.ssyr%2C%20%28LEAST%28GREATEST%28osm_1.adj_shipdate%2C%20sd_1.sdat%29%2C%20sd_1.edat%29%29%2C%20rd_1.ssyr%2C%20osm_1.adj_requestdate%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_1.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_1.plnt%2C%20osm_1.account%2C%20osm_1.bill_cust%2C%20osm_1.shipgrp%2C%20osm_1.ship_cust%2C%20osm_1.chan%2C%20l_1.retail%2C%20l_1.retailsub%2C%20osm_1.promo%2C%20osm_1.majg%2C%20osm_1.ming%2C%20osm_1.majs%2C%20osm_1.mins%2C%20osm_1.part%2C%20%28%28%28osm_1.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_2.avdes1%2C%20p_2.awdes1%29%29%29%29%2C%20%28%28%28f_1.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_1.descr%29%29%2C%20%28%28%28substr%28osm_1.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_1.descr%29%29%2C%20%28COALESCE%28mg_1.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_1.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_1.quota_rep%2C%20%28CASE%20osm_1.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_1.calc_status%20END%29%2C%20osm_1.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20222052kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9067%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..11025086.80%20rows%3D56705265%20width%3D595%29%20%28actual%20time%3D160.607..8900.120%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm_1.bill_class%20%3D%20l_1.bill%29%20AND%20%28osm_1.ship_class%20%3D%20l_1.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9067%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..6967724.27%20rows%3D55168846%20width%3D584%29%20%28actual%20time%3D160.531..8303.160%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_1.part%2C%201%2C%208%29%20%3D%20md_1.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9065%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..3519664.90%20rows%3D55168846%20width%3D552%29%20%28actual%20time%3D159.458..7928.685%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.part%20%3D%20p_2.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9065%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..3371395.52%20rows%3D55168846%20width%3D528%29%20%28actual%20time%3D139.481..7719.889%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6457%20read%3D26345%2C%20local%20hit%3D1627258%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..217901.28%20rows%3D2853561%20width%3D456%29%20%28actual%20time%3D139.471..5838.942%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6457%20read%3D26345%2C%20local%20hit%3D813630%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..54789.49%20rows%3D147598%20width%3D384%29%20%28actual%20time%3D139.449..3929.023%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.part%20%3D%20m_2.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6457%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..46129.57%20rows%3D147598%20width%3D349%29%20%28actual%20time%3D79.183..3618.398%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_1.part%2C%201%2C%203%29%20%3D%20f_1.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..43891.91%20rows%3D147598%20width%3D325%29%20%28actual%20time%3D78.806..3313.087%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm_1.part%2C%2016%2C%201%29%20%3D%20mg_1.f1%29%20AND%20%28osm_1.ming%20%3D%20mg_1.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..42594.49%20rows%3D147598%20width%3D293%29%20%28actual%20time%3D78.771..2997.016%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.glec%20%3D%20seg_1.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..40564.57%20rows%3D147598%20width%3D265%29%20%28actual%20time%3D78.706..2840.808%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.fspr%20%3D%20sd_1.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmf%20osm_1%20%20%28cost%3D0.00..38529.18%20rows%3D147598%20width%3D185%29%20%28actual%20time%3D78.437..2657.330%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28version%20%3D%20%275p7%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271901%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272018-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2202.796%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.200..0.200%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.053..0.147%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.039..0.039%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20seg_1%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.009..0.015%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.014..0.014%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20mg_1%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.003..0.008%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.350..0.350%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f_1%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.090..0.194%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D59.937..59.937%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_2%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D0.021..34.499%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od_1%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813628%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd_1%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813628%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D19.766..19.766%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_2%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D0.008..10.901%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D1.056..1.056%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20md_1%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.003..0.385%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.055..0.055%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l_1%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.007..0.025%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D112931514.84..144274888.60%20rows%3D189959841%20width%3D695%29%20%28actual%20time%3D8819.747..9896.203%20rows%3D349128%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_2.ssyr%2C%20osm_2.adj_orderdate%2C%20sd_2.ssyr%2C%20%28LEAST%28GREATEST%28osm_2.adj_shipdate%2C%20sd_2.sdat%29%2C%20sd_2.edat%29%29%2C%20rd_2.ssyr%2C%20osm_2.adj_requestdate%2C%20%28COALESCE%28od_2.cm%2C%20sd_2.cm%29%29%2C%20%28COALESCE%28sd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_2.cy%2C%20sd_2.cy%29%29%2C%20%28COALESCE%28sd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_2.plnt%2C%20osm_2.account%2C%20osm_2.bill_cust%2C%20osm_2.shipgrp%2C%20osm_2.ship_cust%2C%20osm_2.chan%2C%20l_2.retail%2C%20l_2.retailsub%2C%20osm_2.promo%2C%20osm_2.majg%2C%20osm_2.ming%2C%20osm_2.majs%2C%20osm_2.mins%2C%20osm_2.part%2C%20%28%28%28osm_2.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_3.avdes1%2C%20p_3.awdes1%29%29%29%29%2C%20%28%28%28f_2.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_2.descr%29%29%2C%20%28%28%28substr%28osm_2.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_2.descr%29%29%2C%20%28COALESCE%28mg_2.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_2.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_2.quota_rep%2C%20%28CASE%20osm_2.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_2.calc_status%20END%29%2C%20osm_2.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D14017%20read%3D53042%2C%20local%20hit%3D1468468%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D112931514.84..113406414.44%20rows%3D189959841%20width%3D584%29%20%28actual%20time%3D8819.714..8895.706%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_2.ssyr%2C%20osm_2.adj_orderdate%2C%20sd_2.ssyr%2C%20%28LEAST%28GREATEST%28osm_2.adj_shipdate%2C%20sd_2.sdat%29%2C%20sd_2.edat%29%29%2C%20rd_2.ssyr%2C%20osm_2.adj_requestdate%2C%20%28COALESCE%28od_2.cm%2C%20sd_2.cm%29%29%2C%20%28COALESCE%28sd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_2.cy%2C%20sd_2.cy%29%29%2C%20%28COALESCE%28sd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28rd_2.cy%2C%20%27F%27%3A%3Atext%29%29%2C%20osm_2.plnt%2C%20osm_2.account%2C%20osm_2.bill_cust%2C%20osm_2.shipgrp%2C%20osm_2.ship_cust%2C%20osm_2.chan%2C%20l_2.retail%2C%20l_2.retailsub%2C%20osm_2.promo%2C%20osm_2.majg%2C%20osm_2.ming%2C%20osm_2.majs%2C%20osm_2.mins%2C%20osm_2.part%2C%20%28%28%28osm_2.part%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28COALESCE%28m_3.avdes1%2C%20p_3.awdes1%29%29%29%29%2C%20%28%28%28f_2.f3%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20f_2.descr%29%29%2C%20%28%28%28substr%28osm_2.part%2C%201%2C%208%29%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20md_2.descr%29%29%2C%20%28COALESCE%28mg_2.grp%2C%20%27Unbranded%27%3A%3Atext%29%29%2C%20%28COALESCE%28seg_2.segm%2C%20%27Other%27%3A%3Atext%29%29%2C%20osm_2.quota_rep%2C%20%28CASE%20osm_2.fspr%20WHEN%20%270000%27%3A%3Atext%20THEN%20%27SHIP%20NOT%20BILLED%27%3A%3Atext%20ELSE%20osm_2.calc_status%20END%29%2C%20osm_2.c_rate%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20201721kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D14017%20read%3D53042%2C%20local%20hit%3D1468468%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11749.79..37465936.67%20rows%3D189959841%20width%3D584%29%20%28actual%20time%3D50.604..4494.745%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28osm_2.bill_class%20%3D%20l_2.bill%29%20AND%20%28osm_2.ship_class%20%3D%20l_2.ship%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D14017%20read%3D53042%2C%20local%20hit%3D1468468%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11744.32..23902628.82%20rows%3D189959841%20width%3D574%29%20%28actual%20time%3D50.549..4122.287%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_2.part%2C%201%2C%208%29%20%3D%20md_2.mold%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D14015%20read%3D53042%2C%20local%20hit%3D1468468%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D11737.82..12030132.26%20rows%3D189959841%20width%3D542%29%20%28actual%20time%3D49.780..3891.847%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.part%20%3D%20p_3.awpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D14015%20read%3D53042%2C%20local%20hit%3D1468468%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.37..11527995.69%20rows%3D189959841%20width%3D518%29%20%28actual%20time%3D34.804..3756.178%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D11407%20read%3D53042%2C%20local%20hit%3D1468468%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D8303.23..670498.91%20rows%3D9825509%20width%3D446%29%20%28actual%20time%3D34.797..2623.310%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D11407%20read%3D53042%2C%20local%20hit%3D734236%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D8303.08..108904.23%20rows%3D508216%20width%3D374%29%20%28actual%20time%3D34.774..1278.961%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.part%20%3D%20m_3.avpart%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D11407%20read%3D53042%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30.62..99297.64%20rows%3D508216%20width%3D339%29%20%28actual%20time%3D0.327..1108.708%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28substr%28osm_2.part%2C%201%2C%203%29%20%3D%20f_2.f3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4959%20read%3D53042%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.93..91650.71%20rows%3D508216%20width%3D315%29%20%28actual%20time%3D0.203..921.418%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28substr%28osm_2.part%2C%2016%2C%201%29%20%3D%20mg_2.f1%29%20AND%20%28osm_2.ming%20%3D%20mg_2.ming%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4950%20read%3D53042%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.37..87189.88%20rows%3D508216%20width%3D283%29%20%28actual%20time%3D0.191..727.591%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.glec%20%3D%20seg_2.glec%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4950%20read%3D53042%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D5.92..80265.15%20rows%3D508216%20width%3D255%29%20%28actual%20time%3D0.180..611.979%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_2.fspr%20%3D%20sd_2.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4950%20read%3D53042%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osm%20osm_2%20%20%28cost%3D0.00..73663.10%20rows%3D508216%20width%3D175%29%20%28actual%20time%3D0.106..492.248%20rows%3D367402%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28fs_line%20%3D%20%2741010%27%3A%3Atext%29%20AND%20%28%28fspr%20%3E%3D%20%271606%27%3A%3Atext%29%20OR%20%28adj_orderdate%20%3E%3D%20%272016-06-01%27%3A%3Adate%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20417370%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4950%20read%3D53042%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.358%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.065..0.065%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_2%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D112%29%20%28actual%20time%3D0.018..0.041%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.28..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.006..0.006%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20seg%20seg_2%20%20%28cost%3D0.00..0.28%20rows%3D14%20width%3D64%29%20%28actual%20time%3D0.002..0.003%20rows%3D14%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.32..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.006..0.006%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mg%20mg_2%20%20%28cost%3D0.00..0.32%20rows%3D16%20width%3D96%29%20%28actual%20time%3D0.001..0.002%20rows%3D16%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D15.53..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.119..0.119%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20family%20f_2%20%20%28cost%3D0.00..15.53%20rows%3D653%20width%3D24%29%20%28actual%20time%3D0.014..0.051%20rows%3D653%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D9%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D7258.87..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D34.398..34.398%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207997kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmm%20m_3%20%20%28cost%3D0.00..7258.87%20rows%3D81087%20width%3D54%29%20%28actual%20time%3D0.006..21.130%20rows%3D80997%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6448%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20od_2%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D367402%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_2.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_2.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D734234%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20se_dat%20on%20gld%20rd_2%20%20%28cost%3D0.14..0.92%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.002..0.003%20rows%3D1%20loops%3D367402%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_2.adj_requestdate%20%3E%3D%20sdat%29%20AND%20%28osm_2.adj_requestdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D734232%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2975.31..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D14.938..14.938%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2065536%20%20Batches%3A%201%20%20Memory%20Usage%3A%202881kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20stkmp%20p_3%20%20%28cost%3D0.00..2975.31%20rows%3D36731%20width%3D33%29%20%28actual%20time%3D0.006..9.060%20rows%3D36699%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2608%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.757..0.757%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%28originally%201024%29%20%20Batches%3A%201%20%28originally%201%29%20%20Memory%20Usage%3A%20255kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20md%20md_2%20%20%28cost%3D0.00..4.00%20rows%3D200%20width%3D64%29%20%28actual%20time%3D0.002..0.289%20rows%3D3368%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.39..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.042..0.042%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20ffchnl%20l_2%20%20%28cost%3D0.00..3.39%20rows%3D139%20width%3D25%29%20%28actual%20time%3D0.006..0.020%20rows%3D139%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%0A%09%20%20CTE%20agg%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D3990139087947.22..4510710248131.84%20rows%3D1892986037035%20width%3D1404%29%20%28actual%20time%3D112425.677..116271.291%20rows%3D809656%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20un.version%2C%20un.iter%2C%20%28%28un.oseas%29%3A%3Anumeric%29%2C%20un.odate%2C%20%28%28un.sseas%29%3A%3Anumeric%29%2C%20un.sdate%2C%20%28%28un.rseas%29%3A%3Anumeric%29%2C%20un.rdate%2C%20un.om%2C%20un.sm%2C%20un.rm%2C%20un.oy%2C%20%28%28un.odate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.odate%20%3C%40%20so.ytd%29%29%2C%20un.sy%2C%20%28%28un.sdate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.sdate%20%3C%40%20ss.ytd%29%29%2C%20%28CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%3D%20un.odate%29%20THEN%20CASE%20WHEN%20%28%28un.sdate%20%3E%20%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%29%20OR%20%28un.sy%20%3D%20%27F%27%3A%3Atext%29%29%20THEN%20CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%20un.rdate%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20%27Shipped%27%3A%3Atext%20END%20ELSE%20%27Not%20Yet%20Placed%27%3A%3Atext%20END%29%2C%20un.ry%2C%20un.plnt%2C%20un.account%2C%20%28%28%28un.bill_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28bc.bvname%29%29%29%2C%20bc.bvctry%2C%20bc.bvprcd%2C%20un.shipgrp%2C%20%28%28%28un.ship_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28sc.bvname%29%29%29%2C%20sc.bvctry%2C%20sc.bvprcd%2C%20un.chan%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retail%20ELSE%20un.chan%20END%29%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retailsub%20ELSE%20%27%27%3A%3Atext%20END%29%2C%20un.promo%2C%20%28%28un.majg%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20majg.bqdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.ming%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20mmgp.brdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.majs%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20sj.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.mins%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20si.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20un.part%2C%20un.part_descr%2C%20un.part_family%2C%20un.part_group%2C%20un.branding%2C%20un.segm%2C%20%28COALESCE%28repc.repp%2C%20un.quota_rep%29%29%2C%20%28COALESCE%28repc.director%2C%20un.quota_rep%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.sy%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.oy%29%29%2C%20%28CASE%20WHEN%20%28un.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20THEN%20CASE%20WHEN%20%28un.rdate%20%3C%20CURRENT_DATE%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20un.calc_status%20END%29%2C%20%28%28%28substr%28un.part%2C%209%2C%203%29%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.branding%29%29%2C%20%27Grand%20Total%27%3A%3Atext%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35380%20read%3D157188%2C%20local%20hit%3D5659519%20read%3D1%2C%20temp%20read%3D169586%20written%3D244360%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D3990139087947.22..3994871553039.80%20rows%3D1892986037035%20width%3D1346%29%20%28actual%20time%3D112425.642..112859.948%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.version%2C%20un.iter%2C%20%28%28un.oseas%29%3A%3Anumeric%29%2C%20un.odate%2C%20%28%28un.sseas%29%3A%3Anumeric%29%2C%20un.sdate%2C%20%28%28un.rseas%29%3A%3Anumeric%29%2C%20un.rdate%2C%20un.om%2C%20un.sm%2C%20un.rm%2C%20un.oy%2C%20%28%28un.odate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.odate%20%3C%40%20so.ytd%29%29%2C%20un.sy%2C%20%28%28un.sdate%20%3C%40%20%27%5B2018-06-01%2C2019-03-16%29%27%3A%3Adaterange%29%29%2C%20%28%28un.sdate%20%3C%40%20ss.ytd%29%29%2C%20%28CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%3D%20un.odate%29%20THEN%20CASE%20WHEN%20%28%28un.sdate%20%3E%20%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%29%20OR%20%28un.sy%20%3D%20%27F%27%3A%3Atext%29%29%20THEN%20CASE%20WHEN%20%28%28upper%28so.ytd%29%20-%20%271%20day%27%3A%3Ainterval%29%20%3E%20un.rdate%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20%27Shipped%27%3A%3Atext%20END%20ELSE%20%27Not%20Yet%20Placed%27%3A%3Atext%20END%29%2C%20un.ry%2C%20un.plnt%2C%20un.account%2C%20%28%28%28un.bill_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28bc.bvname%29%29%29%2C%20bc.bvctry%2C%20bc.bvprcd%2C%20un.shipgrp%2C%20%28%28%28un.ship_cust%20%7C%7C%20%27%20-%20%27%3A%3Atext%29%20%7C%7C%20rtrim%28sc.bvname%29%29%29%2C%20sc.bvctry%2C%20sc.bvprcd%2C%20un.chan%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retail%20ELSE%20un.chan%20END%29%2C%20%28CASE%20un.segm%20WHEN%20%27Retail%27%3A%3Atext%20THEN%20un.retailsub%20ELSE%20%27%27%3A%3Atext%20END%29%2C%20un.promo%2C%20%28%28un.majg%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20majg.bqdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.ming%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20mmgp.brdes%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.majs%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20sj.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20%28%28un.mins%20%7C%7C%20COALESCE%28%28%27%20-%20%27%3A%3Atext%20%7C%7C%20si.bsdes1%29%2C%20%27%27%3A%3Atext%29%29%29%2C%20un.part%2C%20un.part_descr%2C%20un.part_family%2C%20un.part_group%2C%20un.branding%2C%20un.segm%2C%20%28COALESCE%28repc.repp%2C%20un.quota_rep%29%29%2C%20%28COALESCE%28repc.director%2C%20un.quota_rep%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.sy%29%29%2C%20%28%28%28un.version%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.oy%29%29%2C%20%28CASE%20WHEN%20%28un.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20THEN%20CASE%20WHEN%20%28un.rdate%20%3C%20CURRENT_DATE%29%20THEN%20%27Open%20-%20Past%20Due%27%3A%3Atext%20ELSE%20%27Open%20-%20Current%27%3A%3Atext%20END%20ELSE%20un.calc_status%20END%29%2C%20%28%28%28substr%28un.part%2C%209%2C%203%29%20%7C%7C%20%27-%27%3A%3Atext%29%20%7C%7C%20un.branding%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20475944kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35380%20read%3D157188%2C%20local%20hit%3D5659519%20read%3D1%2C%20temp%20read%3D169586%20written%3D244360%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Merge%20Right%20Join%20%20%28cost%3D33563712447.31..265517026370.70%20rows%3D1892986037035%20width%3D1346%29%20%28actual%20time%3D69370.743..73383.296%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Merge%20Cond%3A%20%28ss.ssyr%20%3D%20un.sseas%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D157188%2C%20local%20hit%3D5659519%20read%3D1%2C%20temp%20read%3D110093%20written%3D184866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D1353.78..1391.63%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.187..0.194%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20ss.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20std%20ss%20%20%28cost%3D0.00..302.76%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.143..0.183%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D33563711093.53..33688759715.34%20rows%3D25009724363%20width%3D1300%29%20%28actual%20time%3D69363.504..70242.785%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D157188%2C%20local%20hit%3D5659517%20read%3D1%2C%20temp%20read%3D110093%20written%3D184866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D33563711093.53..33626235404.44%20rows%3D25009724363%20width%3D1300%29%20%28actual%20time%3D69363.500..69636.493%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.sseas%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20445936kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D157188%2C%20local%20hit%3D5659517%20read%3D1%2C%20temp%20read%3D110093%20written%3D146616%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Merge%20Right%20Join%20%20%28cost%3D488162845.81..864134844.69%20rows%3D25009724363%20width%3D1300%29%20%28actual%20time%3D64619.072..67097.961%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Merge%20Cond%3A%20%28so.ssyr%20%3D%20un.oseas%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D157188%2C%20local%20hit%3D5659517%20read%3D1%2C%20temp%20read%3D54351%20written%3D90873%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D1353.78..1391.63%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.005..0.009%20rows%3D13%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20so.ssyr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20std%20so%20%20%28cost%3D0.00..302.76%20rows%3D15138%20width%3D40%29%20%28actual%20time%3D0.001..0.002%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D488161492.03..489813607.52%20rows%3D330423099%20width%3D1268%29%20%28actual%20time%3D64619.055..66543.724%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D157188%2C%20local%20hit%3D5659517%20read%3D1%2C%20temp%20read%3D54351%20written%3D90873%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D488161492.03..488987549.77%20rows%3D330423099%20width%3D1268%29%20%28actual%20time%3D64619.051..65222.574%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20un.oseas%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20external%20merge%20%20Disk%3A%20434808kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D157188%2C%20local%20hit%3D5659517%20read%3D1%2C%20temp%20read%3D54351%20written%3D54352%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D30326.40..75489285.22%20rows%3D330423099%20width%3D1268%29%20%28actual%20time%3D26974.130..61679.511%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cr.y0part%29%20AND%20%28un.plnt%20%3D%20cr.y0plnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D157188%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D22414.65..56426266.97%20rows%3D330423099%20width%3D1262%29%20%28actual%20time%3D26803.460..61130.886%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cp.chpart%29%20AND%20%28un.plnt%20%3D%20cp.chplnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D151936%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5307.518%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D14299.03..36533966.06%20rows%3D330423099%20width%3D1256%29%20%28actual%20time%3D26596.173..60544.080%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.part%20%3D%20cm.cgpart%29%20AND%20%28un.plnt%20%3D%20cm.cgplnt%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D146620%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5163.164%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D7433.88..34026391.85%20rows%3D330423099%20width%3D1250%29%20%28actual%20time%3D26466.230..59938.193%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.bill_cust%20%3D%20sc.bvcust%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35372%20read%3D142113%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5079.788%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D3723.16..29479363.52%20rows%3D330423099%20width%3D1223%29%20%28actual%20time%3D26455.847..59596.315%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.bill_cust%20%3D%20bc.bvcust%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32148%20read%3D142113%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5079.788%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D12.44..24932335.18%20rows%3D330423099%20width%3D1196%29%20%28actual%20time%3D26376.451..59161.607%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.ming%20%3D%20mmgp.brmgrp%29%20AND%20%28un.majg%20%3D%20mmgp.brgrp%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32148%20read%3D138889%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5012.664%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D7.51..15006668.18%20rows%3D330423099%20width%3D1186%29%20%28actual%20time%3D26375.626..58843.583%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.majg%20%3D%20majg.bqgrp%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32148%20read%3D138888%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5011.904%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.24..13569326.43%20rows%3D330423099%20width%3D1176%29%20%28actual%20time%3D26375.306..58564.379%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.majs%20%3D%20sj.bsmjcd%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32148%20read%3D138887%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5011.601%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D6.21..12313718.62%20rows%3D330423099%20width%3D1144%29%20%28actual%20time%3D26375.285..58278.120%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28%28un.majs%20%3D%20si.bsmjcd%29%20AND%20%28un.mins%20%3D%20si.bsmncd%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32147%20read%3D138887%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5011.601%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D3.90..9830091.09%20rows%3D330423099%20width%3D1112%29%20%28actual%20time%3D26374.932..57946.951%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28un.quota_rep%20%3D%20repc.rcode%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32147%20read%3D138886%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5011.303%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..6608461.98%20rows%3D330423099%20width%3D1048%29%20%28actual%20time%3D26363.408..57457.121%20rows%3D812398%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32147%20read%3D138860%2C%20local%20hit%3D5659517%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5000.713%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2.40..2.40%20rows%3D120%20width%3D96%29%20%28actual%20time%3D11.512..11.512%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2017kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10.590%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20repc%20%20%28cost%3D0.00..2.40%20rows%3D120%20width%3D96%29%20%28actual%20time%3D4.008..11.473%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10.590%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.32..1.32%20rows%3D66%20width%3D96%29%20%28actual%20time%3D0.343..0.343%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2011kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.297%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20si%20%20%28cost%3D0.00..1.32%20rows%3D66%20width%3D96%29%20%28actual%20time%3D0.310..0.330%20rows%3D56%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.297%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.02..0.02%20rows%3D1%20width%3D64%29%20%28actual%20time%3D0.014..0.014%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20sj%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D64%29%20%28actual%20time%3D0.006..0.012%20rows%3D11%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1.12..1.12%20rows%3D12%20width%3D14%29%20%28actual%20time%3D0.316..0.316%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.303%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20majg%20%20%28cost%3D0.00..1.12%20rows%3D12%20width%3D14%29%20%28actual%20time%3D0.309..0.310%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.303%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D2.57..2.57%20rows%3D157%20width%3D18%29%20%28actual%20time%3D0.818..0.818%20rows%3D157%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2016kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.760%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20mmgp%20%20%28cost%3D0.00..2.57%20rows%3D157%20width%3D18%29%20%28actual%20time%3D0.771..0.787%20rows%3D157%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.760%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3440.32..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D79.377..79.377%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2032768%20%20Batches%3A%201%20%20Memory%20Usage%3A%201721kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D67.124%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20cust%20bc%20%20%28cost%3D0.00..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D1.226..74.190%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D67.124%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3440.32..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D10.361..10.361%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%2032768%20%20Batches%3A%201%20%20Memory%20Usage%3A%201721kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20cust%20sc%20%20%28cost%3D0.00..3440.32%20rows%3D21632%20width%3D35%29%20%28actual%20time%3D0.007..6.549%20rows%3D21632%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3224%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D5450.26..5450.26%20rows%3D94326%20width%3D29%29%20%28actual%20time%3D129.891..129.891%20rows%3D94326%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%206699kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4507%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.376%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstm%20cm%20%20%28cost%3D0.00..5450.26%20rows%3D94326%20width%3D29%29%20%28actual%20time%3D1.628..106.590%20rows%3D94326%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D4507%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D83.376%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D6435.85..6435.85%20rows%3D111985%20width%3D20%29%20%28actual%20time%3D207.238..207.238%20rows%3D111985%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%206768kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5316%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D144.354%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstp%20cp%20%20%28cost%3D0.00..6435.85%20rows%3D111985%20width%3D20%29%20%28actual%20time%3D12.877..174.296%20rows%3D111985%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5316%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D144.354%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D6315.90..6315.90%20rows%3D106390%20width%3D27%29%20%28actual%20time%3D167.190..167.190%20rows%3D106390%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%20131072%20%20Batches%3A%201%20%20Memory%20Usage%3A%207334kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5252%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D123.594%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20icstr%20cr%20%20%28cost%3D0.00..6315.90%20rows%3D106390%20width%3D27%29%20%28actual%20time%3D1.618..138.920%20rows%3D106390%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D5252%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D123.594%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a%20%20%28cost%3D0.00..37859720740.70%20rows%3D1892986037035%20width%3D1520%29%20%28actual%20time%3D112425.683..119325.832%20rows%3D809656%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D35380%20read%3D157188%2C%20local%20hit%3D5659519%20read%3D1%2C%20temp%20read%3D169586%20written%3D302217%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D5431.112%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a_1%20%20%28cost%3D0.00..43089094668.02%20rows%3D14197395278%20width%3D1520%29%20%28actual%20time%3D10.640..1070.930%20rows%3D298533%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Filter%3A%20%28%28ocytd%20OR%20scytd%29%20AND%20%28version%20%3D%20ANY%20%28%27%7BActual%2CForecast%7D%27%3A%3Atext%5B%5D%29%29%29%0A%09%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20511123%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20temp%20read%3D57858%20written%3D1%0A%09%20%20-%3E%20%20CTE%20Scan%20on%20agg%20a_2%20%20%28cost%3D0.00..43089094668.02%20rows%3D14197395278%20width%3D1520%29%20%28actual%20time%3D24.901..1109.287%20rows%3D270191%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Filter%3A%20%28%28ocytd%20OR%20scytd%29%20AND%20%28version%20%3D%20ANY%20%28%27%7BActual%2CBudget%7D%27%3A%3Atext%5B%5D%29%29%29%0A%09%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20539465%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20temp%20read%3D57858%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Append (cost=4510966117154.68..4644894879274.93 rows=1921380827591 width=1520) (actual time=112425.684..121699.211 rows=1378380 loops=1)
|
||
Buffers: shared hit=35380 read=157188, local hit=5659519 read=1, temp read=285302 written=302218
|
||
I/O Timings: read=5431.112
|
||
CTE seg
|
||
-> Values Scan on "*VALUES*" (cost=0.00..0.18 rows=14 width=64) (actual time=0.003..0.006 rows=14 loops=1)
|
||
CTE mg
|
||
-> Values Scan on "*VALUES*_1" (cost=0.00..0.20 rows=16 width=96) (actual time=0.002..0.007 rows=16 loops=1)
|
||
CTE repc
|
||
-> Hash Left Join (cost=11.47..123.28 rows=120 width=96) (actual time=4.005..11.391 rows=120 loops=1)
|
||
Hash Cond: (ltrim(rtrim(c.a9)) = q.qr)
|
||
Buffers: shared read=26
|
||
I/O Timings: read=10.590
|
||
-> Bitmap Heap Scan on code c (cost=9.21..118.86 rows=120 width=25) (actual time=3.631..10.743 rows=120 loops=1)
|
||
Recheck Cond: (a2 = 'MM'::text)
|
||
Heap Blocks: exact=21
|
||
Buffers: shared read=25
|
||
I/O Timings: read=10.256
|
||
-> Bitmap Index Scan on pk_code (cost=0.00..9.18 rows=120 width=0) (actual time=2.484..2.484 rows=120 loops=1)
|
||
Index Cond: (a2 = 'MM'::text)
|
||
Buffers: shared read=4
|
||
I/O Timings: read=2.398
|
||
-> Hash (cost=1.56..1.56 rows=56 width=12) (actual time=0.359..0.359 rows=56 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 11kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.334
|
||
-> Seq Scan on qrh q (cost=0.00..1.56 rows=56 width=12) (actual time=0.342..0.348 rows=56 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.334
|
||
CTE md
|
||
-> HashAggregate (cost=11936.00..11938.00 rows=200 width=64) (actual time=141.238..141.651 rows=3368 loops=1)
|
||
Group Key: (substr(m.avpart, 1, 8))
|
||
Buffers: shared hit=9056
|
||
-> Append (cost=8137.31..11870.54 rows=13091 width=64) (actual time=131.283..140.399 rows=3375 loops=1)
|
||
Buffers: shared hit=9056
|
||
-> HashAggregate (cost=8137.31..8249.94 rows=9010 width=64) (actual time=131.282..131.853 rows=3285 loops=1)
|
||
Group Key: substr(m.avpart, 1, 8)
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m (cost=0.00..8092.26 rows=9010 width=59) (actual time=0.026..38.556 rows=76269 loops=1)
|
||
Filter: ((length(avpart) > 8) AND (substr(avgled, 1, 1) <= '2'::text))
|
||
Rows Removed by Filter: 4728
|
||
Buffers: shared hit=6448
|
||
-> HashAggregate (cost=3373.23..3424.24 rows=4081 width=64) (actual time=8.321..8.352 rows=90 loops=1)
|
||
Group Key: substr(p.awpart, 1, 8)
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p (cost=0.00..3352.82 rows=4081 width=52) (actual time=0.446..8.258 rows=142 loops=1)
|
||
Filter: ((length(awpart) > 8) AND (substr(awgled, 1, 1) <= '2'::text))
|
||
Rows Removed by Filter: 36557
|
||
Buffers: shared hit=2608
|
||
CTE sj
|
||
-> Seq Scan on mmsl (cost=0.00..1.84 rows=1 width=22) (actual time=0.004..0.009 rows=11 loops=1)
|
||
Filter: (COALESCE(bsmncd, ''::text) = ''::text)
|
||
Rows Removed by Filter: 56
|
||
Buffers: shared hit=1
|
||
CTE si
|
||
-> Seq Scan on mmsl mmsl_1 (cost=0.00..1.84 rows=66 width=22) (actual time=0.307..0.314 rows=56 loops=1)
|
||
Filter: (COALESCE(bsmncd, ''::text) <> ''::text)
|
||
Rows Removed by Filter: 11
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.297
|
||
CTE seas
|
||
-> GroupAggregate (cost=10.22..16.31 rows=174 width=41) (actual time=0.068..0.100 rows=15 loops=1)
|
||
Group Key: gld.ssyr
|
||
Buffers: local hit=2
|
||
-> Sort (cost=10.22..10.65 rows=174 width=16) (actual time=0.054..0.061 rows=174 loops=1)
|
||
Sort Key: gld.ssyr DESC
|
||
Sort Method: quicksort Memory: 33kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld (cost=0.00..3.74 rows=174 width=16) (actual time=0.010..0.030 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
CTE intv
|
||
-> CTE Scan on seas (cost=0.00..4.13 rows=87 width=4) (actual time=0.080..0.081 rows=1 loops=1)
|
||
Filter: cy
|
||
Rows Removed by Filter: 14
|
||
Buffers: local hit=2
|
||
CTE std
|
||
-> Nested Loop (cost=0.00..457.62 rows=15138 width=73) (actual time=0.087..0.122 rows=15 loops=1)
|
||
Buffers: local hit=2
|
||
-> CTE Scan on intv (cost=0.00..1.74 rows=87 width=4) (actual time=0.081..0.082 rows=1 loops=1)
|
||
Buffers: local hit=2
|
||
-> CTE Scan on seas s (cost=0.00..3.48 rows=174 width=41) (actual time=0.000..0.028 rows=15 loops=1)
|
||
CTE un
|
||
-> Append (cost=50003223.80..255856479.46 rows=330423099 width=697) (actual time=26363.405..56340.259 rows=812398 loops=1)
|
||
Buffers: shared hit=32147 read=138860, local hit=5659517 read=1
|
||
I/O Timings: read=5000.713
|
||
-> GroupAggregate (cost=50003223.80..63823292.65 rows=83757993 width=701) (actual time=26363.404..28258.932 rows=212793 loops=1)
|
||
Group Key: od.ssyr, osm.adj_orderdate, sd.ssyr, (LEAST(GREATEST(osm.adj_shipdate, sd.sdat), sd.edat)), rd.ssyr, osm.adj_requestdate, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(rd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text)), (COALESCE(rd.cy, 'F'::text)), osm.plnt, osm.account, osm.bill_cust, osm.shipgrp, osm.ship_cust, osm.chan, l.retail, l.retailsub, osm.promo, osm.majg, osm.ming, osm.majs, osm.mins, osm.part, (((osm.part || ' - '::text) || rtrim(COALESCE(m_1.avdes1, p_1.awdes1)))), (((f.f3 || ' - '::text) || f.descr)), (((substr(osm.part, 1, 8) || ' - '::text) || md.descr)), (COALESCE(mg.grp, 'Unbranded'::text)), (COALESCE(seg.segm, 'Other'::text)), osm.quota_rep, (CASE osm.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm.calc_status END), osm.c_rate
|
||
Buffers: shared hit=9063 read=59473, local hit=2563791 read=1
|
||
I/O Timings: read=2714.560
|
||
-> Sort (cost=50003223.80..50212618.79 rows=83757993 width=594) (actual time=26363.369..26503.583 rows=641010 loops=1)
|
||
Sort Key: od.ssyr, osm.adj_orderdate, sd.ssyr, (LEAST(GREATEST(osm.adj_shipdate, sd.sdat), sd.edat)), rd.ssyr, osm.adj_requestdate, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(rd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text)), (COALESCE(rd.cy, 'F'::text)), osm.plnt, osm.account, osm.bill_cust, osm.shipgrp, osm.ship_cust, osm.chan, l.retail, l.retailsub, osm.promo, osm.majg, osm.ming, osm.majs, osm.mins, osm.part, (((osm.part || ' - '::text) || rtrim(COALESCE(m_1.avdes1, p_1.awdes1)))), (((f.f3 || ' - '::text) || f.descr)), (((substr(osm.part, 1, 8) || ' - '::text) || md.descr)), (COALESCE(mg.grp, 'Unbranded'::text)), (COALESCE(seg.segm, 'Other'::text)), osm.quota_rep, (CASE osm.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm.calc_status END), osm.c_rate
|
||
Sort Method: quicksort Memory: 352782kB
|
||
Buffers: shared hit=9063 read=59473, local hit=2563791 read=1
|
||
I/O Timings: read=2714.560
|
||
-> Hash Left Join (cost=11749.79..16650773.71 rows=83757993 width=594) (actual time=412.849..12408.886 rows=641010 loops=1)
|
||
Hash Cond: ((osm.bill_class = l.bill) AND (osm.ship_class = l.ship))
|
||
Buffers: shared hit=9060 read=59473, local hit=2563791 read=1
|
||
I/O Timings: read=2714.560
|
||
-> Hash Left Join (cost=11744.32..10583311.94 rows=83757993 width=583) (actual time=412.362..11595.759 rows=641010 loops=1)
|
||
Hash Cond: (substr(osm.part, 1, 8) = md.mold)
|
||
Buffers: shared hit=9060 read=59471, local hit=2563791 read=1
|
||
I/O Timings: read=2714.141
|
||
-> Hash Left Join (cost=11737.82..5348430.88 rows=83757993 width=551) (actual time=269.279..10961.881 rows=641010 loops=1)
|
||
Hash Cond: (osm.part = p_1.awpart)
|
||
Buffers: shared hit=4 read=59471, local hit=2563791 read=1
|
||
I/O Timings: read=2714.141
|
||
-> Nested Loop Left Join (cost=8303.37..5125106.33 rows=83757993 width=527) (actual time=188.919..10630.169 rows=641010 loops=1)
|
||
Buffers: shared hit=2 read=56865, local hit=2563791 read=1
|
||
I/O Timings: read=2652.319
|
||
-> Nested Loop Left Join (cost=8303.23..337594.45 rows=4332310 width=455) (actual time=188.914..7884.956 rows=641010 loops=1)
|
||
Buffers: shared hit=2 read=56865, local hit=1281897 read=1
|
||
I/O Timings: read=2652.319
|
||
-> Hash Left Join (cost=8303.08..89964.52 rows=224085 width=383) (actual time=188.885..5089.482 rows=641010 loops=1)
|
||
Hash Cond: (osm.part = m_1.avpart)
|
||
Buffers: shared hit=2 read=56865, local hit=2
|
||
I/O Timings: read=2652.306
|
||
-> Hash Left Join (cost=30.62..81103.81 rows=224085 width=348) (actual time=3.518..4614.841 rows=641010 loops=1)
|
||
Hash Cond: (substr(osm.part, 1, 3) = f.f3)
|
||
Buffers: shared read=50419, local hit=2
|
||
I/O Timings: read=2511.680
|
||
-> Hash Left Join (cost=6.93..77718.84 rows=224085 width=324) (actual time=2.296..4183.537 rows=641010 loops=1)
|
||
Hash Cond: ((substr(osm.part, 16, 1) = mg.f1) AND (osm.ming = mg.ming))
|
||
Buffers: shared read=50410, local hit=2
|
||
I/O Timings: read=2510.588
|
||
-> Hash Left Join (cost=6.37..75750.09 rows=224085 width=292) (actual time=2.277..3733.098 rows=641010 loops=1)
|
||
Hash Cond: (osm.glec = seg.glec)
|
||
Buffers: shared read=50410, local hit=2
|
||
I/O Timings: read=2510.588
|
||
-> Hash Left Join (cost=5.92..72674.81 rows=224085 width=264) (actual time=2.259..3490.071 rows=641010 loops=1)
|
||
Hash Cond: (osm.fspr = sd.fspr)
|
||
Buffers: shared read=50410, local hit=2
|
||
I/O Timings: read=2510.588
|
||
-> Seq Scan on osmp osm (cost=0.00..69587.73 rows=224085 width=184) (actual time=2.186..3227.306 rows=641010 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND (version = 'b19'::text) AND (substr(glec, 1, 1) <= '2'::text) AND ((fspr >= '1901'::text) OR (adj_orderdate >= '2018-06-01'::date)))
|
||
Rows Removed by Filter: 57051
|
||
Buffers: shared read=50410
|
||
I/O Timings: read=2510.588
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.060..0.060 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd (cost=0.00..3.74 rows=174 width=112) (actual time=0.008..0.034 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.014..0.014 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg (cost=0.00..0.28 rows=14 width=64) (actual time=0.005..0.011 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.015..0.015 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg (cost=0.00..0.32 rows=16 width=96) (actual time=0.003..0.011 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=1.217..1.217 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared read=9
|
||
I/O Timings: read=1.092
|
||
-> Seq Scan on family f (cost=0.00..15.53 rows=653 width=24) (actual time=0.985..1.149 rows=653 loops=1)
|
||
Buffers: shared read=9
|
||
I/O Timings: read=1.092
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=185.313..185.313 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=2 read=6446
|
||
I/O Timings: read=140.626
|
||
-> Seq Scan on stkmm m_1 (cost=0.00..7258.87 rows=81087 width=54) (actual time=0.508..163.116 rows=80997 loops=1)
|
||
Buffers: shared hit=2 read=6446
|
||
I/O Timings: read=140.626
|
||
-> Index Scan using se_dat on gld od (cost=0.14..0.92 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=641010)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=1281895 read=1
|
||
I/O Timings: read=0.013
|
||
-> Index Scan using se_dat on gld rd (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.004 rows=1 loops=641010)
|
||
Index Cond: ((osm.adj_requestdate >= sdat) AND (osm.adj_requestdate <= edat))
|
||
Buffers: local hit=1281894
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=80.171..80.171 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2 read=2606
|
||
I/O Timings: read=61.823
|
||
-> Seq Scan on stkmp p_1 (cost=0.00..2975.31 rows=36731 width=33) (actual time=0.342..70.937 rows=36699 loops=1)
|
||
Buffers: shared hit=2 read=2606
|
||
I/O Timings: read=61.823
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=143.065..143.065 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
Buffers: shared hit=9056
|
||
-> CTE Scan on md (cost=0.00..4.00 rows=200 width=64) (actual time=141.241..142.539 rows=3368 loops=1)
|
||
Buffers: shared hit=9056
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.472..0.472 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared read=2
|
||
I/O Timings: read=0.418
|
||
-> Seq Scan on ffchnl l (cost=0.00..3.39 rows=139 width=25) (actual time=0.424..0.443 rows=139 loops=1)
|
||
Buffers: shared read=2
|
||
I/O Timings: read=0.418
|
||
-> GroupAggregate (cost=33445583.00..42801951.72 rows=56705265 width=699) (actual time=17060.209..18105.019 rows=250477 loops=1)
|
||
Group Key: od_1.ssyr, osm_1.adj_orderdate, sd_1.ssyr, (LEAST(GREATEST(osm_1.adj_shipdate, sd_1.sdat), sd_1.edat)), rd_1.ssyr, osm_1.adj_requestdate, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(rd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text)), (COALESCE(rd_1.cy, 'F'::text)), osm_1.plnt, osm_1.account, osm_1.bill_cust, osm_1.shipgrp, osm_1.ship_cust, osm_1.chan, l_1.retail, l_1.retailsub, osm_1.promo, osm_1.majg, osm_1.ming, osm_1.majs, osm_1.mins, osm_1.part, (((osm_1.part || ' - '::text) || rtrim(COALESCE(m_2.avdes1, p_2.awdes1)))), (((f_1.f3 || ' - '::text) || f_1.descr)), (((substr(osm_1.part, 1, 8) || ' - '::text) || md_1.descr)), (COALESCE(mg_1.grp, 'Unbranded'::text)), (COALESCE(seg_1.segm, 'Other'::text)), osm_1.quota_rep, (CASE osm_1.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_1.calc_status END), osm_1.c_rate
|
||
Buffers: shared hit=9067 read=26345, local hit=1627258
|
||
I/O Timings: read=2202.796
|
||
-> Sort (cost=33445583.00..33587346.16 rows=56705265 width=595) (actual time=17060.177..17152.591 rows=406814 loops=1)
|
||
Sort Key: od_1.ssyr, osm_1.adj_orderdate, sd_1.ssyr, (LEAST(GREATEST(osm_1.adj_shipdate, sd_1.sdat), sd_1.edat)), rd_1.ssyr, osm_1.adj_requestdate, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(rd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text)), (COALESCE(rd_1.cy, 'F'::text)), osm_1.plnt, osm_1.account, osm_1.bill_cust, osm_1.shipgrp, osm_1.ship_cust, osm_1.chan, l_1.retail, l_1.retailsub, osm_1.promo, osm_1.majg, osm_1.ming, osm_1.majs, osm_1.mins, osm_1.part, (((osm_1.part || ' - '::text) || rtrim(COALESCE(m_2.avdes1, p_2.awdes1)))), (((f_1.f3 || ' - '::text) || f_1.descr)), (((substr(osm_1.part, 1, 8) || ' - '::text) || md_1.descr)), (COALESCE(mg_1.grp, 'Unbranded'::text)), (COALESCE(seg_1.segm, 'Other'::text)), osm_1.quota_rep, (CASE osm_1.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_1.calc_status END), osm_1.c_rate
|
||
Sort Method: quicksort Memory: 222052kB
|
||
Buffers: shared hit=9067 read=26345, local hit=1627258
|
||
I/O Timings: read=2202.796
|
||
-> Hash Left Join (cost=11749.79..11025086.80 rows=56705265 width=595) (actual time=160.607..8900.120 rows=406814 loops=1)
|
||
Hash Cond: ((osm_1.bill_class = l_1.bill) AND (osm_1.ship_class = l_1.ship))
|
||
Buffers: shared hit=9067 read=26345, local hit=1627258
|
||
I/O Timings: read=2202.796
|
||
-> Hash Left Join (cost=11744.32..6967724.27 rows=55168846 width=584) (actual time=160.531..8303.160 rows=406814 loops=1)
|
||
Hash Cond: (substr(osm_1.part, 1, 8) = md_1.mold)
|
||
Buffers: shared hit=9065 read=26345, local hit=1627258
|
||
I/O Timings: read=2202.796
|
||
-> Hash Left Join (cost=11737.82..3519664.90 rows=55168846 width=552) (actual time=159.458..7928.685 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.part = p_2.awpart)
|
||
Buffers: shared hit=9065 read=26345, local hit=1627258
|
||
I/O Timings: read=2202.796
|
||
-> Nested Loop Left Join (cost=8303.37..3371395.52 rows=55168846 width=528) (actual time=139.481..7719.889 rows=406814 loops=1)
|
||
Buffers: shared hit=6457 read=26345, local hit=1627258
|
||
I/O Timings: read=2202.796
|
||
-> Nested Loop Left Join (cost=8303.23..217901.28 rows=2853561 width=456) (actual time=139.471..5838.942 rows=406814 loops=1)
|
||
Buffers: shared hit=6457 read=26345, local hit=813630
|
||
I/O Timings: read=2202.796
|
||
-> Hash Left Join (cost=8303.08..54789.49 rows=147598 width=384) (actual time=139.449..3929.023 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.part = m_2.avpart)
|
||
Buffers: shared hit=6457 read=26345, local hit=2
|
||
I/O Timings: read=2202.796
|
||
-> Hash Left Join (cost=30.62..46129.57 rows=147598 width=349) (actual time=79.183..3618.398 rows=406814 loops=1)
|
||
Hash Cond: (substr(osm_1.part, 1, 3) = f_1.f3)
|
||
Buffers: shared hit=9 read=26345, local hit=2
|
||
I/O Timings: read=2202.796
|
||
-> Hash Left Join (cost=6.93..43891.91 rows=147598 width=325) (actual time=78.806..3313.087 rows=406814 loops=1)
|
||
Hash Cond: ((substr(osm_1.part, 16, 1) = mg_1.f1) AND (osm_1.ming = mg_1.ming))
|
||
Buffers: shared read=26345, local hit=2
|
||
I/O Timings: read=2202.796
|
||
-> Hash Left Join (cost=6.37..42594.49 rows=147598 width=293) (actual time=78.771..2997.016 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.glec = seg_1.glec)
|
||
Buffers: shared read=26345, local hit=2
|
||
I/O Timings: read=2202.796
|
||
-> Hash Left Join (cost=5.92..40564.57 rows=147598 width=265) (actual time=78.706..2840.808 rows=406814 loops=1)
|
||
Hash Cond: (osm_1.fspr = sd_1.fspr)
|
||
Buffers: shared read=26345, local hit=2
|
||
I/O Timings: read=2202.796
|
||
-> Seq Scan on osmf osm_1 (cost=0.00..38529.18 rows=147598 width=185) (actual time=78.437..2657.330 rows=406814 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND (version = '5p7'::text) AND (substr(glec, 1, 1) <= '2'::text) AND ((fspr >= '1901'::text) OR (adj_orderdate >= '2018-06-01'::date)))
|
||
Rows Removed by Filter: 358
|
||
Buffers: shared read=26345
|
||
I/O Timings: read=2202.796
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.200..0.200 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_1 (cost=0.00..3.74 rows=174 width=112) (actual time=0.053..0.147 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.039..0.039 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg seg_1 (cost=0.00..0.28 rows=14 width=64) (actual time=0.009..0.015 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.014..0.014 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg mg_1 (cost=0.00..0.32 rows=16 width=96) (actual time=0.003..0.008 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=0.350..0.350 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared hit=9
|
||
-> Seq Scan on family f_1 (cost=0.00..15.53 rows=653 width=24) (actual time=0.090..0.194 rows=653 loops=1)
|
||
Buffers: shared hit=9
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=59.937..59.937 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m_2 (cost=0.00..7258.87 rows=81087 width=54) (actual time=0.021..34.499 rows=80997 loops=1)
|
||
Buffers: shared hit=6448
|
||
-> Index Scan using se_dat on gld od_1 (cost=0.14..0.92 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=406814)
|
||
Index Cond: ((osm_1.adj_orderdate >= sdat) AND (osm_1.adj_orderdate <= edat))
|
||
Buffers: local hit=813628
|
||
-> Index Scan using se_dat on gld rd_1 (cost=0.14..0.92 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=406814)
|
||
Index Cond: ((osm_1.adj_requestdate >= sdat) AND (osm_1.adj_requestdate <= edat))
|
||
Buffers: local hit=813628
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=19.766..19.766 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p_2 (cost=0.00..2975.31 rows=36731 width=33) (actual time=0.008..10.901 rows=36699 loops=1)
|
||
Buffers: shared hit=2608
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=1.056..1.056 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
-> CTE Scan on md md_1 (cost=0.00..4.00 rows=200 width=64) (actual time=0.003..0.385 rows=3368 loops=1)
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.055..0.055 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared hit=2
|
||
-> Seq Scan on ffchnl l_1 (cost=0.00..3.39 rows=139 width=25) (actual time=0.007..0.025 rows=139 loops=1)
|
||
Buffers: shared hit=2
|
||
-> GroupAggregate (cost=112931514.84..144274888.60 rows=189959841 width=695) (actual time=8819.747..9896.203 rows=349128 loops=1)
|
||
Group Key: od_2.ssyr, osm_2.adj_orderdate, sd_2.ssyr, (LEAST(GREATEST(osm_2.adj_shipdate, sd_2.sdat), sd_2.edat)), rd_2.ssyr, osm_2.adj_requestdate, (COALESCE(od_2.cm, sd_2.cm)), (COALESCE(sd_2.cm, 'F'::text)), (COALESCE(rd_2.cm, 'F'::text)), (COALESCE(od_2.cy, sd_2.cy)), (COALESCE(sd_2.cy, 'F'::text)), (COALESCE(rd_2.cy, 'F'::text)), osm_2.plnt, osm_2.account, osm_2.bill_cust, osm_2.shipgrp, osm_2.ship_cust, osm_2.chan, l_2.retail, l_2.retailsub, osm_2.promo, osm_2.majg, osm_2.ming, osm_2.majs, osm_2.mins, osm_2.part, (((osm_2.part || ' - '::text) || rtrim(COALESCE(m_3.avdes1, p_3.awdes1)))), (((f_2.f3 || ' - '::text) || f_2.descr)), (((substr(osm_2.part, 1, 8) || ' - '::text) || md_2.descr)), (COALESCE(mg_2.grp, 'Unbranded'::text)), (COALESCE(seg_2.segm, 'Other'::text)), osm_2.quota_rep, (CASE osm_2.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_2.calc_status END), osm_2.c_rate
|
||
Buffers: shared hit=14017 read=53042, local hit=1468468
|
||
I/O Timings: read=83.358
|
||
-> Sort (cost=112931514.84..113406414.44 rows=189959841 width=584) (actual time=8819.714..8895.706 rows=367402 loops=1)
|
||
Sort Key: od_2.ssyr, osm_2.adj_orderdate, sd_2.ssyr, (LEAST(GREATEST(osm_2.adj_shipdate, sd_2.sdat), sd_2.edat)), rd_2.ssyr, osm_2.adj_requestdate, (COALESCE(od_2.cm, sd_2.cm)), (COALESCE(sd_2.cm, 'F'::text)), (COALESCE(rd_2.cm, 'F'::text)), (COALESCE(od_2.cy, sd_2.cy)), (COALESCE(sd_2.cy, 'F'::text)), (COALESCE(rd_2.cy, 'F'::text)), osm_2.plnt, osm_2.account, osm_2.bill_cust, osm_2.shipgrp, osm_2.ship_cust, osm_2.chan, l_2.retail, l_2.retailsub, osm_2.promo, osm_2.majg, osm_2.ming, osm_2.majs, osm_2.mins, osm_2.part, (((osm_2.part || ' - '::text) || rtrim(COALESCE(m_3.avdes1, p_3.awdes1)))), (((f_2.f3 || ' - '::text) || f_2.descr)), (((substr(osm_2.part, 1, 8) || ' - '::text) || md_2.descr)), (COALESCE(mg_2.grp, 'Unbranded'::text)), (COALESCE(seg_2.segm, 'Other'::text)), osm_2.quota_rep, (CASE osm_2.fspr WHEN '0000'::text THEN 'SHIP NOT BILLED'::text ELSE osm_2.calc_status END), osm_2.c_rate
|
||
Sort Method: quicksort Memory: 201721kB
|
||
Buffers: shared hit=14017 read=53042, local hit=1468468
|
||
I/O Timings: read=83.358
|
||
-> Hash Left Join (cost=11749.79..37465936.67 rows=189959841 width=584) (actual time=50.604..4494.745 rows=367402 loops=1)
|
||
Hash Cond: ((osm_2.bill_class = l_2.bill) AND (osm_2.ship_class = l_2.ship))
|
||
Buffers: shared hit=14017 read=53042, local hit=1468468
|
||
I/O Timings: read=83.358
|
||
-> Hash Left Join (cost=11744.32..23902628.82 rows=189959841 width=574) (actual time=50.549..4122.287 rows=367402 loops=1)
|
||
Hash Cond: (substr(osm_2.part, 1, 8) = md_2.mold)
|
||
Buffers: shared hit=14015 read=53042, local hit=1468468
|
||
I/O Timings: read=83.358
|
||
-> Hash Left Join (cost=11737.82..12030132.26 rows=189959841 width=542) (actual time=49.780..3891.847 rows=367402 loops=1)
|
||
Hash Cond: (osm_2.part = p_3.awpart)
|
||
Buffers: shared hit=14015 read=53042, local hit=1468468
|
||
I/O Timings: read=83.358
|
||
-> Nested Loop Left Join (cost=8303.37..11527995.69 rows=189959841 width=518) (actual time=34.804..3756.178 rows=367402 loops=1)
|
||
Buffers: shared hit=11407 read=53042, local hit=1468468
|
||
I/O Timings: read=83.358
|
||
-> Nested Loop Left Join (cost=8303.23..670498.91 rows=9825509 width=446) (actual time=34.797..2623.310 rows=367402 loops=1)
|
||
Buffers: shared hit=11407 read=53042, local hit=734236
|
||
I/O Timings: read=83.358
|
||
-> Hash Left Join (cost=8303.08..108904.23 rows=508216 width=374) (actual time=34.774..1278.961 rows=367402 loops=1)
|
||
Hash Cond: (osm_2.part = m_3.avpart)
|
||
Buffers: shared hit=11407 read=53042, local hit=2
|
||
I/O Timings: read=83.358
|
||
-> Hash Left Join (cost=30.62..99297.64 rows=508216 width=339) (actual time=0.327..1108.708 rows=367402 loops=1)
|
||
Hash Cond: (substr(osm_2.part, 1, 3) = f_2.f3)
|
||
Buffers: shared hit=4959 read=53042, local hit=2
|
||
I/O Timings: read=83.358
|
||
-> Hash Left Join (cost=6.93..91650.71 rows=508216 width=315) (actual time=0.203..921.418 rows=367402 loops=1)
|
||
Hash Cond: ((substr(osm_2.part, 16, 1) = mg_2.f1) AND (osm_2.ming = mg_2.ming))
|
||
Buffers: shared hit=4950 read=53042, local hit=2
|
||
I/O Timings: read=83.358
|
||
-> Hash Left Join (cost=6.37..87189.88 rows=508216 width=283) (actual time=0.191..727.591 rows=367402 loops=1)
|
||
Hash Cond: (osm_2.glec = seg_2.glec)
|
||
Buffers: shared hit=4950 read=53042, local hit=2
|
||
I/O Timings: read=83.358
|
||
-> Hash Left Join (cost=5.92..80265.15 rows=508216 width=255) (actual time=0.180..611.979 rows=367402 loops=1)
|
||
Hash Cond: (osm_2.fspr = sd_2.fspr)
|
||
Buffers: shared hit=4950 read=53042, local hit=2
|
||
I/O Timings: read=83.358
|
||
-> Seq Scan on osm osm_2 (cost=0.00..73663.10 rows=508216 width=175) (actual time=0.106..492.248 rows=367402 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (fs_line = '41010'::text) AND ((fspr >= '1606'::text) OR (adj_orderdate >= '2016-06-01'::date)))
|
||
Rows Removed by Filter: 417370
|
||
Buffers: shared hit=4950 read=53042
|
||
I/O Timings: read=83.358
|
||
-> Hash (cost=3.74..3.74 rows=174 width=112) (actual time=0.065..0.065 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_2 (cost=0.00..3.74 rows=174 width=112) (actual time=0.018..0.041 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Hash (cost=0.28..0.28 rows=14 width=64) (actual time=0.006..0.006 rows=14 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on seg seg_2 (cost=0.00..0.28 rows=14 width=64) (actual time=0.002..0.003 rows=14 loops=1)
|
||
-> Hash (cost=0.32..0.32 rows=16 width=96) (actual time=0.006..0.006 rows=16 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mg mg_2 (cost=0.00..0.32 rows=16 width=96) (actual time=0.001..0.002 rows=16 loops=1)
|
||
-> Hash (cost=15.53..15.53 rows=653 width=24) (actual time=0.119..0.119 rows=653 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 44kB
|
||
Buffers: shared hit=9
|
||
-> Seq Scan on family f_2 (cost=0.00..15.53 rows=653 width=24) (actual time=0.014..0.051 rows=653 loops=1)
|
||
Buffers: shared hit=9
|
||
-> Hash (cost=7258.87..7258.87 rows=81087 width=54) (actual time=34.398..34.398 rows=80997 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7997kB
|
||
Buffers: shared hit=6448
|
||
-> Seq Scan on stkmm m_3 (cost=0.00..7258.87 rows=81087 width=54) (actual time=0.006..21.130 rows=80997 loops=1)
|
||
Buffers: shared hit=6448
|
||
-> Index Scan using se_dat on gld od_2 (cost=0.14..0.92 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=367402)
|
||
Index Cond: ((osm_2.adj_orderdate >= sdat) AND (osm_2.adj_orderdate <= edat))
|
||
Buffers: local hit=734234
|
||
-> Index Scan using se_dat on gld rd_2 (cost=0.14..0.92 rows=19 width=80) (actual time=0.002..0.003 rows=1 loops=367402)
|
||
Index Cond: ((osm_2.adj_requestdate >= sdat) AND (osm_2.adj_requestdate <= edat))
|
||
Buffers: local hit=734232
|
||
-> Hash (cost=2975.31..2975.31 rows=36731 width=33) (actual time=14.938..14.938 rows=36699 loops=1)
|
||
Buckets: 65536 Batches: 1 Memory Usage: 2881kB
|
||
Buffers: shared hit=2608
|
||
-> Seq Scan on stkmp p_3 (cost=0.00..2975.31 rows=36731 width=33) (actual time=0.006..9.060 rows=36699 loops=1)
|
||
Buffers: shared hit=2608
|
||
-> Hash (cost=4.00..4.00 rows=200 width=64) (actual time=0.757..0.757 rows=3368 loops=1)
|
||
Buckets: 4096 (originally 1024) Batches: 1 (originally 1) Memory Usage: 255kB
|
||
-> CTE Scan on md md_2 (cost=0.00..4.00 rows=200 width=64) (actual time=0.002..0.289 rows=3368 loops=1)
|
||
-> Hash (cost=3.39..3.39 rows=139 width=25) (actual time=0.042..0.042 rows=139 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared hit=2
|
||
-> Seq Scan on ffchnl l_2 (cost=0.00..3.39 rows=139 width=25) (actual time=0.006..0.020 rows=139 loops=1)
|
||
Buffers: shared hit=2
|
||
CTE agg
|
||
-> GroupAggregate (cost=3990139087947.22..4510710248131.84 rows=1892986037035 width=1404) (actual time=112425.677..116271.291 rows=809656 loops=1)
|
||
Group Key: un.version, un.iter, ((un.oseas)::numeric), un.odate, ((un.sseas)::numeric), un.sdate, ((un.rseas)::numeric), un.rdate, un.om, un.sm, un.rm, un.oy, ((un.odate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.odate <@ so.ytd)), un.sy, ((un.sdate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.sdate <@ ss.ytd)), (CASE WHEN ((upper(so.ytd) - '1 day'::interval) >= un.odate) THEN CASE WHEN ((un.sdate > (upper(so.ytd) - '1 day'::interval)) OR (un.sy = 'F'::text)) THEN CASE WHEN ((upper(so.ytd) - '1 day'::interval) > un.rdate) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE 'Shipped'::text END ELSE 'Not Yet Placed'::text END), un.ry, un.plnt, un.account, (((un.bill_cust || ' - '::text) || rtrim(bc.bvname))), bc.bvctry, bc.bvprcd, un.shipgrp, (((un.ship_cust || ' - '::text) || rtrim(sc.bvname))), sc.bvctry, sc.bvprcd, un.chan, (CASE un.segm WHEN 'Retail'::text THEN un.retail ELSE un.chan END), (CASE un.segm WHEN 'Retail'::text THEN un.retailsub ELSE ''::text END), un.promo, ((un.majg || COALESCE((' - '::text || majg.bqdes), ''::text))), ((un.ming || COALESCE((' - '::text || mmgp.brdes), ''::text))), ((un.majs || COALESCE((' - '::text || sj.bsdes1), ''::text))), ((un.mins || COALESCE((' - '::text || si.bsdes1), ''::text))), un.part, un.part_descr, un.part_family, un.part_group, un.branding, un.segm, (COALESCE(repc.repp, un.quota_rep)), (COALESCE(repc.director, un.quota_rep)), (((un.version || '-'::text) || un.sy)), (((un.version || '-'::text) || un.oy)), (CASE WHEN (un.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) THEN CASE WHEN (un.rdate < CURRENT_DATE) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE un.calc_status END), (((substr(un.part, 9, 3) || '-'::text) || un.branding)), 'Grand Total'::text
|
||
Buffers: shared hit=35380 read=157188, local hit=5659519 read=1, temp read=169586 written=244360
|
||
I/O Timings: read=5431.112
|
||
-> Sort (cost=3990139087947.22..3994871553039.80 rows=1892986037035 width=1346) (actual time=112425.642..112859.948 rows=812398 loops=1)
|
||
Sort Key: un.version, un.iter, ((un.oseas)::numeric), un.odate, ((un.sseas)::numeric), un.sdate, ((un.rseas)::numeric), un.rdate, un.om, un.sm, un.rm, un.oy, ((un.odate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.odate <@ so.ytd)), un.sy, ((un.sdate <@ '[2018-06-01,2019-03-16)'::daterange)), ((un.sdate <@ ss.ytd)), (CASE WHEN ((upper(so.ytd) - '1 day'::interval) >= un.odate) THEN CASE WHEN ((un.sdate > (upper(so.ytd) - '1 day'::interval)) OR (un.sy = 'F'::text)) THEN CASE WHEN ((upper(so.ytd) - '1 day'::interval) > un.rdate) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE 'Shipped'::text END ELSE 'Not Yet Placed'::text END), un.ry, un.plnt, un.account, (((un.bill_cust || ' - '::text) || rtrim(bc.bvname))), bc.bvctry, bc.bvprcd, un.shipgrp, (((un.ship_cust || ' - '::text) || rtrim(sc.bvname))), sc.bvctry, sc.bvprcd, un.chan, (CASE un.segm WHEN 'Retail'::text THEN un.retail ELSE un.chan END), (CASE un.segm WHEN 'Retail'::text THEN un.retailsub ELSE ''::text END), un.promo, ((un.majg || COALESCE((' - '::text || majg.bqdes), ''::text))), ((un.ming || COALESCE((' - '::text || mmgp.brdes), ''::text))), ((un.majs || COALESCE((' - '::text || sj.bsdes1), ''::text))), ((un.mins || COALESCE((' - '::text || si.bsdes1), ''::text))), un.part, un.part_descr, un.part_family, un.part_group, un.branding, un.segm, (COALESCE(repc.repp, un.quota_rep)), (COALESCE(repc.director, un.quota_rep)), (((un.version || '-'::text) || un.sy)), (((un.version || '-'::text) || un.oy)), (CASE WHEN (un.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) THEN CASE WHEN (un.rdate < CURRENT_DATE) THEN 'Open - Past Due'::text ELSE 'Open - Current'::text END ELSE un.calc_status END), (((substr(un.part, 9, 3) || '-'::text) || un.branding))
|
||
Sort Method: external merge Disk: 475944kB
|
||
Buffers: shared hit=35380 read=157188, local hit=5659519 read=1, temp read=169586 written=244360
|
||
I/O Timings: read=5431.112
|
||
-> Merge Right Join (cost=33563712447.31..265517026370.70 rows=1892986037035 width=1346) (actual time=69370.743..73383.296 rows=812398 loops=1)
|
||
Merge Cond: (ss.ssyr = un.sseas)
|
||
Buffers: shared hit=35372 read=157188, local hit=5659519 read=1, temp read=110093 written=184866
|
||
I/O Timings: read=5431.112
|
||
-> Sort (cost=1353.78..1391.63 rows=15138 width=40) (actual time=0.187..0.194 rows=15 loops=1)
|
||
Sort Key: ss.ssyr
|
||
Sort Method: quicksort Memory: 26kB
|
||
Buffers: local hit=2
|
||
-> CTE Scan on std ss (cost=0.00..302.76 rows=15138 width=40) (actual time=0.143..0.183 rows=15 loops=1)
|
||
Buffers: local hit=2
|
||
-> Materialize (cost=33563711093.53..33688759715.34 rows=25009724363 width=1300) (actual time=69363.504..70242.785 rows=812398 loops=1)
|
||
Buffers: shared hit=35372 read=157188, local hit=5659517 read=1, temp read=110093 written=184866
|
||
I/O Timings: read=5431.112
|
||
-> Sort (cost=33563711093.53..33626235404.44 rows=25009724363 width=1300) (actual time=69363.500..69636.493 rows=812398 loops=1)
|
||
Sort Key: un.sseas
|
||
Sort Method: external merge Disk: 445936kB
|
||
Buffers: shared hit=35372 read=157188, local hit=5659517 read=1, temp read=110093 written=146616
|
||
I/O Timings: read=5431.112
|
||
-> Merge Right Join (cost=488162845.81..864134844.69 rows=25009724363 width=1300) (actual time=64619.072..67097.961 rows=812398 loops=1)
|
||
Merge Cond: (so.ssyr = un.oseas)
|
||
Buffers: shared hit=35372 read=157188, local hit=5659517 read=1, temp read=54351 written=90873
|
||
I/O Timings: read=5431.112
|
||
-> Sort (cost=1353.78..1391.63 rows=15138 width=40) (actual time=0.005..0.009 rows=13 loops=1)
|
||
Sort Key: so.ssyr
|
||
Sort Method: quicksort Memory: 26kB
|
||
-> CTE Scan on std so (cost=0.00..302.76 rows=15138 width=40) (actual time=0.001..0.002 rows=15 loops=1)
|
||
-> Materialize (cost=488161492.03..489813607.52 rows=330423099 width=1268) (actual time=64619.055..66543.724 rows=812398 loops=1)
|
||
Buffers: shared hit=35372 read=157188, local hit=5659517 read=1, temp read=54351 written=90873
|
||
I/O Timings: read=5431.112
|
||
-> Sort (cost=488161492.03..488987549.77 rows=330423099 width=1268) (actual time=64619.051..65222.574 rows=812398 loops=1)
|
||
Sort Key: un.oseas
|
||
Sort Method: external merge Disk: 434808kB
|
||
Buffers: shared hit=35372 read=157188, local hit=5659517 read=1, temp read=54351 written=54352
|
||
I/O Timings: read=5431.112
|
||
-> Hash Left Join (cost=30326.40..75489285.22 rows=330423099 width=1268) (actual time=26974.130..61679.511 rows=812398 loops=1)
|
||
Hash Cond: ((un.part = cr.y0part) AND (un.plnt = cr.y0plnt))
|
||
Buffers: shared hit=35372 read=157188, local hit=5659517 read=1
|
||
I/O Timings: read=5431.112
|
||
-> Hash Left Join (cost=22414.65..56426266.97 rows=330423099 width=1262) (actual time=26803.460..61130.886 rows=812398 loops=1)
|
||
Hash Cond: ((un.part = cp.chpart) AND (un.plnt = cp.chplnt))
|
||
Buffers: shared hit=35372 read=151936, local hit=5659517 read=1
|
||
I/O Timings: read=5307.518
|
||
-> Hash Left Join (cost=14299.03..36533966.06 rows=330423099 width=1256) (actual time=26596.173..60544.080 rows=812398 loops=1)
|
||
Hash Cond: ((un.part = cm.cgpart) AND (un.plnt = cm.cgplnt))
|
||
Buffers: shared hit=35372 read=146620, local hit=5659517 read=1
|
||
I/O Timings: read=5163.164
|
||
-> Hash Left Join (cost=7433.88..34026391.85 rows=330423099 width=1250) (actual time=26466.230..59938.193 rows=812398 loops=1)
|
||
Hash Cond: (un.bill_cust = sc.bvcust)
|
||
Buffers: shared hit=35372 read=142113, local hit=5659517 read=1
|
||
I/O Timings: read=5079.788
|
||
-> Hash Left Join (cost=3723.16..29479363.52 rows=330423099 width=1223) (actual time=26455.847..59596.315 rows=812398 loops=1)
|
||
Hash Cond: (un.bill_cust = bc.bvcust)
|
||
Buffers: shared hit=32148 read=142113, local hit=5659517 read=1
|
||
I/O Timings: read=5079.788
|
||
-> Hash Left Join (cost=12.44..24932335.18 rows=330423099 width=1196) (actual time=26376.451..59161.607 rows=812398 loops=1)
|
||
Hash Cond: ((un.ming = mmgp.brmgrp) AND (un.majg = mmgp.brgrp))
|
||
Buffers: shared hit=32148 read=138889, local hit=5659517 read=1
|
||
I/O Timings: read=5012.664
|
||
-> Hash Left Join (cost=7.51..15006668.18 rows=330423099 width=1186) (actual time=26375.626..58843.583 rows=812398 loops=1)
|
||
Hash Cond: (un.majg = majg.bqgrp)
|
||
Buffers: shared hit=32148 read=138888, local hit=5659517 read=1
|
||
I/O Timings: read=5011.904
|
||
-> Hash Left Join (cost=6.24..13569326.43 rows=330423099 width=1176) (actual time=26375.306..58564.379 rows=812398 loops=1)
|
||
Hash Cond: (un.majs = sj.bsmjcd)
|
||
Buffers: shared hit=32148 read=138887, local hit=5659517 read=1
|
||
I/O Timings: read=5011.601
|
||
-> Hash Left Join (cost=6.21..12313718.62 rows=330423099 width=1144) (actual time=26375.285..58278.120 rows=812398 loops=1)
|
||
Hash Cond: ((un.majs = si.bsmjcd) AND (un.mins = si.bsmncd))
|
||
Buffers: shared hit=32147 read=138887, local hit=5659517 read=1
|
||
I/O Timings: read=5011.601
|
||
-> Hash Left Join (cost=3.90..9830091.09 rows=330423099 width=1112) (actual time=26374.932..57946.951 rows=812398 loops=1)
|
||
Hash Cond: (un.quota_rep = repc.rcode)
|
||
Buffers: shared hit=32147 read=138886, local hit=5659517 read=1
|
||
I/O Timings: read=5011.303
|
||
-> CTE Scan on un (cost=0.00..6608461.98 rows=330423099 width=1048) (actual time=26363.408..57457.121 rows=812398 loops=1)
|
||
Buffers: shared hit=32147 read=138860, local hit=5659517 read=1
|
||
I/O Timings: read=5000.713
|
||
-> Hash (cost=2.40..2.40 rows=120 width=96) (actual time=11.512..11.512 rows=120 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 17kB
|
||
Buffers: shared read=26
|
||
I/O Timings: read=10.590
|
||
-> CTE Scan on repc (cost=0.00..2.40 rows=120 width=96) (actual time=4.008..11.473 rows=120 loops=1)
|
||
Buffers: shared read=26
|
||
I/O Timings: read=10.590
|
||
-> Hash (cost=1.32..1.32 rows=66 width=96) (actual time=0.343..0.343 rows=56 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 11kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.297
|
||
-> CTE Scan on si (cost=0.00..1.32 rows=66 width=96) (actual time=0.310..0.330 rows=56 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.297
|
||
-> Hash (cost=0.02..0.02 rows=1 width=64) (actual time=0.014..0.014 rows=11 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
Buffers: shared hit=1
|
||
-> CTE Scan on sj (cost=0.00..0.02 rows=1 width=64) (actual time=0.006..0.012 rows=11 loops=1)
|
||
Buffers: shared hit=1
|
||
-> Hash (cost=1.12..1.12 rows=12 width=14) (actual time=0.316..0.316 rows=12 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.303
|
||
-> Seq Scan on majg (cost=0.00..1.12 rows=12 width=14) (actual time=0.309..0.310 rows=12 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.303
|
||
-> Hash (cost=2.57..2.57 rows=157 width=18) (actual time=0.818..0.818 rows=157 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 16kB
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.760
|
||
-> Seq Scan on mmgp (cost=0.00..2.57 rows=157 width=18) (actual time=0.771..0.787 rows=157 loops=1)
|
||
Buffers: shared read=1
|
||
I/O Timings: read=0.760
|
||
-> Hash (cost=3440.32..3440.32 rows=21632 width=35) (actual time=79.377..79.377 rows=21632 loops=1)
|
||
Buckets: 32768 Batches: 1 Memory Usage: 1721kB
|
||
Buffers: shared read=3224
|
||
I/O Timings: read=67.124
|
||
-> Seq Scan on cust bc (cost=0.00..3440.32 rows=21632 width=35) (actual time=1.226..74.190 rows=21632 loops=1)
|
||
Buffers: shared read=3224
|
||
I/O Timings: read=67.124
|
||
-> Hash (cost=3440.32..3440.32 rows=21632 width=35) (actual time=10.361..10.361 rows=21632 loops=1)
|
||
Buckets: 32768 Batches: 1 Memory Usage: 1721kB
|
||
Buffers: shared hit=3224
|
||
-> Seq Scan on cust sc (cost=0.00..3440.32 rows=21632 width=35) (actual time=0.007..6.549 rows=21632 loops=1)
|
||
Buffers: shared hit=3224
|
||
-> Hash (cost=5450.26..5450.26 rows=94326 width=29) (actual time=129.891..129.891 rows=94326 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 6699kB
|
||
Buffers: shared read=4507
|
||
I/O Timings: read=83.376
|
||
-> Seq Scan on icstm cm (cost=0.00..5450.26 rows=94326 width=29) (actual time=1.628..106.590 rows=94326 loops=1)
|
||
Buffers: shared read=4507
|
||
I/O Timings: read=83.376
|
||
-> Hash (cost=6435.85..6435.85 rows=111985 width=20) (actual time=207.238..207.238 rows=111985 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 6768kB
|
||
Buffers: shared read=5316
|
||
I/O Timings: read=144.354
|
||
-> Seq Scan on icstp cp (cost=0.00..6435.85 rows=111985 width=20) (actual time=12.877..174.296 rows=111985 loops=1)
|
||
Buffers: shared read=5316
|
||
I/O Timings: read=144.354
|
||
-> Hash (cost=6315.90..6315.90 rows=106390 width=27) (actual time=167.190..167.190 rows=106390 loops=1)
|
||
Buckets: 131072 Batches: 1 Memory Usage: 7334kB
|
||
Buffers: shared read=5252
|
||
I/O Timings: read=123.594
|
||
-> Seq Scan on icstr cr (cost=0.00..6315.90 rows=106390 width=27) (actual time=1.618..138.920 rows=106390 loops=1)
|
||
Buffers: shared read=5252
|
||
I/O Timings: read=123.594
|
||
-> CTE Scan on agg a (cost=0.00..37859720740.70 rows=1892986037035 width=1520) (actual time=112425.683..119325.832 rows=809656 loops=1)
|
||
Buffers: shared hit=35380 read=157188, local hit=5659519 read=1, temp read=169586 written=302217
|
||
I/O Timings: read=5431.112
|
||
-> CTE Scan on agg a_1 (cost=0.00..43089094668.02 rows=14197395278 width=1520) (actual time=10.640..1070.930 rows=298533 loops=1)
|
||
Filter: ((ocytd OR scytd) AND (version = ANY ('{Actual,Forecast}'::text[])))
|
||
Rows Removed by Filter: 511123
|
||
Buffers: temp read=57858 written=1
|
||
-> CTE Scan on agg a_2 (cost=0.00..43089094668.02 rows=14197395278 width=1520) (actual time=24.901..1109.287 rows=270191 loops=1)
|
||
Filter: ((ocytd OR scytd) AND (version = ANY ('{Actual,Budget}'::text[])))
|
||
Rows Removed by Filter: 539465
|
||
Buffers: temp read=57858
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-2">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>3</td>
|
||
<td>16s584ms</td>
|
||
<td>16s584ms</td>
|
||
<td>16s584ms</td>
|
||
<td>1
|
||
<p><a href="#Anormalized_slowest_queries_details_3" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>16s584ms</td>
|
||
<td id="normalized-slowest-queries-examples-details-rank-3">
|
||
<div id="query-g-3" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">DELETE</span> <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm osm
|
||
<span class="kw1">WHERE</span> <span class="kw1">EXISTS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1"><span class="kw2">cast</span></span><span class="br0">(</span><span class="kw1">NULL</span> <span class="kw1">AS</span> int<span class="br0">)</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1">DISTINCT</span> "diinv#"
|
||
<span class="kw1">FROM</span>
|
||
import<span class="sy0">.</span>osmi
|
||
<span class="kw1">WHERE</span>
|
||
"ddord#" <span class="sy0">=</span> ?<span class="br0">)</span> n
|
||
<span class="kw1">WHERE</span>
|
||
n<span class="sy0">.</span> "diinv#" <span class="sy0">=</span> osm<span class="sy0">.</span> "diinv#"<span class="br0">)</span>;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Anormalized_slowest_queries_details_3" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #3</small></h3>
|
||
<div id="normalized_slowest_queries_details_3" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Anormalized_slowest_queries_details_3').on("shown.bs.collapse",function(){
|
||
var bars_77 = [['00:00',1],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_77 = [['00:00',16584],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var normalized_slowest_queries_details_3 = create_bargraph('normalized_slowest_queries_details_3', '', 'Queries', [ bars_77, lines_77 ], 'Avg. duration');
|
||
});
|
||
create_download_button(77, 'btn btn-default btn-xs');
|
||
add_download_button_event(77, 'normalized_slowest_queries_details_3');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 15</td><td>00</td><td>1</td><td>16s584ms</td><td>16s584ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Anormalized_slowest_queries_details_3">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-3">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-3">User(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="normalized-slowest-queries-user-involved-rank-3" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> ptrowbridge_md5 - <b>Total duration:</b> 16s584ms - <b>Times executed:</b> 1 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-3">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="normalized-slowest-queries-app-involved-rank-3" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> psql - <b>Total duration:</b> 16s584ms - <b>Times executed:</b> 1 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-app-involved-rank-3">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="normalized-slowest-queries-examples-rank-3" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-g-3-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">DELETE</span> <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm osm
|
||
<span class="kw1">WHERE</span> <span class="kw1">EXISTS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1"><span class="kw2">cast</span></span><span class="br0">(</span><span class="kw1">NULL</span> <span class="kw1">AS</span> INT<span class="br0">)</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1">DISTINCT</span> "diinv#"
|
||
<span class="kw1">FROM</span>
|
||
import<span class="sy0">.</span>osmi
|
||
<span class="kw1">WHERE</span>
|
||
"ddord#" <span class="sy0">=</span> <span class="nu0">0</span><span class="br0">)</span> n
|
||
<span class="kw1">WHERE</span>
|
||
n<span class="sy0">.</span> "diinv#" <span class="sy0">=</span> osm<span class="sy0">.</span> "diinv#"<span class="br0">)</span>;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 00:49:30
|
||
<b>Duration:</b> 16s584ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-g-explain-3-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Delete%20on%20osm%20%20%28cost%3D2579.44..36736.43%20rows%3D16%20width%3D36%29%20%28actual%20time%3D16584.934..16584.934%20rows%3D0%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D1558922%20read%3D6078%20dirtied%3D71%0A%09%20%20I%2FO%20Timings%3A%20read%3D735.005%0A%09%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D2579.44..36736.43%20rows%3D16%20width%3D36%29%20%28actual%20time%3D99.141..16583.640%20rows%3D159%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1558763%20read%3D6078%20dirtied%3D66%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D735.005%0A%09%20%20%20%20%20%20%20%20-%3E%20%20Subquery%20Scan%20on%20n%20%20%28cost%3D2579.01..2579.03%20rows%3D1%20width%3D36%29%20%28actual%20time%3D5.671..7.407%20rows%3D223%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2579%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Unique%20%20%28cost%3D2579.01..2579.02%20rows%3D1%20width%3D6%29%20%28actual%20time%3D5.664..6.608%20rows%3D223%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2579%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D2579.01..2579.02%20rows%3D1%20width%3D6%29%20%28actual%20time%3D5.662..5.909%20rows%3D252%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20osmi.%22diinv%23%22%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2036kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2579%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmi%20%20%28cost%3D0.00..2579.00%20rows%3D1%20width%3D6%29%20%28actual%20time%3D0.047..5.580%20rows%3D252%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%22ddord%23%22%20%3D%20%270%27%3A%3Anumeric%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2025396%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2579%0A%09%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20osm_pk%20on%20osm%20%20%28cost%3D0.42..34157.24%20rows%3D16%20width%3D12%29%20%28actual%20time%3D24.619..74.328%20rows%3D1%20loops%3D223%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%22diinv%23%22%20%3D%20n.%22diinv%23%22%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1556184%20read%3D6078%20dirtied%3D66%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D735.005%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Delete on osm (cost=2579.44..36736.43 rows=16 width=36) (actual time=16584.934..16584.934 rows=0 loops=1)
|
||
Buffers: shared hit=1558922 read=6078 dirtied=71
|
||
I/O Timings: read=735.005
|
||
-> Nested Loop (cost=2579.44..36736.43 rows=16 width=36) (actual time=99.141..16583.640 rows=159 loops=1)
|
||
Buffers: shared hit=1558763 read=6078 dirtied=66
|
||
I/O Timings: read=735.005
|
||
-> Subquery Scan on n (cost=2579.01..2579.03 rows=1 width=36) (actual time=5.671..7.407 rows=223 loops=1)
|
||
Buffers: shared hit=2579
|
||
-> Unique (cost=2579.01..2579.02 rows=1 width=6) (actual time=5.664..6.608 rows=223 loops=1)
|
||
Buffers: shared hit=2579
|
||
-> Sort (cost=2579.01..2579.02 rows=1 width=6) (actual time=5.662..5.909 rows=252 loops=1)
|
||
Sort Key: osmi."diinv#"
|
||
Sort Method: quicksort Memory: 36kB
|
||
Buffers: shared hit=2579
|
||
-> Seq Scan on osmi (cost=0.00..2579.00 rows=1 width=6) (actual time=0.047..5.580 rows=252 loops=1)
|
||
Filter: ("ddord#" = '0'::numeric)
|
||
Rows Removed by Filter: 25396
|
||
Buffers: shared hit=2579
|
||
-> Index Scan using osm_pk on osm (cost=0.42..34157.24 rows=16 width=12) (actual time=24.619..74.328 rows=1 loops=223)
|
||
Index Cond: ("diinv#" = n."diinv#")
|
||
Buffers: shared hit=1556184 read=6078 dirtied=66
|
||
I/O Timings: read=735.005
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-3">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>4</td>
|
||
<td>2s718ms</td>
|
||
<td>25s847ms</td>
|
||
<td>10s409ms</td>
|
||
<td>9
|
||
<p><a href="#Anormalized_slowest_queries_details_4" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>1m33s</td>
|
||
<td id="normalized-slowest-queries-examples-details-rank-4">
|
||
<div id="query-g-4" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>create <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> gld<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>; <span class="kw1">WITH</span> un <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> ? srce <span class="sy0">,</span>od<span class="sy0">.</span>ssyr oseas <span class="sy0">,</span>od<span class="sy0">.</span>sdat odate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr sseas <span class="sy0">,</span>sd<span class="sy0">.</span>sdat sdate <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> om <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> sm <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> oy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_qty <span class="br0">)</span> qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_val_loc <span class="sy0">*</span> r_rate <span class="br0">)</span> sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_cst_loc <span class="sy0">*</span> c_rate <span class="br0">)</span> stdcost <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osmp osm <span class="kw1">INNER</span> <span class="kw1">JOIN</span> gld od <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_orderdate <span class="kw1">BETWEEN</span> od<span class="sy0">.</span>sdat <span class="kw1">AND</span> od<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld sd <span class="kw1">ON</span> osm<span class="sy0">.</span>fspr <span class="sy0">=</span> sd<span class="sy0">.</span>fspr <span class="kw1">WHERE</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>glec<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>fs_line<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">=</span> ? <span class="kw1">AND</span> calc_status <span class="sy0"><</span><span class="sy0">></span> ? <span class="sy0">-</span><span class="sy0">-</span>open orders <span class="kw1">AND</span> sd<span class="sy0">.</span>cm <span class="sy0">=</span> ? <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future fspr <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> od<span class="sy0">.</span>ssyr <span class="sy0">,</span>od<span class="sy0">.</span>sdat <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr <span class="sy0">,</span>sd<span class="sy0">.</span>sdat <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">UNION</span> <span class="kw1">ALL</span> <span class="kw1">SELECT</span> ? srce <span class="sy0">,</span>od<span class="sy0">.</span>ssyr oseas <span class="sy0">,</span>od<span class="sy0">.</span>sdat odate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr sseas <span class="sy0">,</span>sd<span class="sy0">.</span>sdat sdate <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> om <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> sm <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> oy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_qty <span class="br0">)</span> qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_val_loc <span class="sy0">*</span> r_rate <span class="br0">)</span> sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_cst_loc <span class="sy0">*</span> c_rate <span class="br0">)</span> stdcost <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm osm <span class="kw1">INNER</span> <span class="kw1">JOIN</span> gld od <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_orderdate <span class="kw1">BETWEEN</span> od<span class="sy0">.</span>sdat <span class="kw1">AND</span> od<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld sd <span class="kw1">ON</span> greatest<span class="br0">(</span>osm<span class="sy0">.</span>adj_requestdate<span class="sy0">,</span><span class="kw2">current_date</span><span class="br0">)</span> <span class="kw1">BETWEEN</span> sd<span class="sy0">.</span>sdat <span class="kw1">AND</span> sd<span class="sy0">.</span>edat <span class="kw1">WHERE</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>fs_line<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">=</span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>glec<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">AND</span> calc_status <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span> <span class="kw1">AND</span> flag <span class="sy0">=</span> ? <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> od<span class="sy0">.</span>ssyr <span class="sy0">,</span>od<span class="sy0">.</span>sdat <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr <span class="sy0">,</span>sd<span class="sy0">.</span>sdat <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="br0">)</span> <span class="kw1">SELECT</span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>qty<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>stdcost<span class="br0">)</span> "cost" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>sales<span class="br0">)</span> sales <span class="kw1">FROM</span> un <span class="kw1">WHERE</span> om <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy ;
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Anormalized_slowest_queries_details_4" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #4</small></h3>
|
||
<div id="normalized_slowest_queries_details_4" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Anormalized_slowest_queries_details_4').on("shown.bs.collapse",function(){
|
||
var bars_78 = [['00:00',3],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',6],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_78 = [['00:00',5745],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',12741],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var normalized_slowest_queries_details_4 = create_bargraph('normalized_slowest_queries_details_4', '', 'Queries', [ bars_78, lines_78 ], 'Avg. duration');
|
||
});
|
||
create_download_button(78, 'btn btn-default btn-xs');
|
||
add_download_button_event(78, 'normalized_slowest_queries_details_4');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>17</td><td>5</td><td>50s600ms</td><td>10s120ms</td></tr><tr><td>Mar 15</td><td>00</td><td>3</td><td>17s236ms</td><td>5s745ms</td></tr><tr><td></td><td>17</td><td>1</td><td>25s847ms</td><td>25s847ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Anormalized_slowest_queries_details_4">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-4">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-4">User(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="normalized-slowest-queries-user-involved-rank-4" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> report - <b>Total duration:</b> 1m18s - <b>Times executed:</b> 5 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-4">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="normalized-slowest-queries-app-involved-rank-4" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> [unknown] - <b>Total duration:</b> 1m18s - <b>Times executed:</b> 5 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-app-involved-rank-4">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="normalized-slowest-queries-examples-rank-4" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-g-4-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMP OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> GREATEST <span class="br0">(</span>OSM<span class="sy0">.</span>adj_requestdate<span class="sy0">,</span>
|
||
<span class="kw1"><span class="kw2">current_date</span></span><span class="br0">)</span> <span class="kw1">BETWEEN</span> SD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">WHERE</span>
|
||
OM <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'F'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 17:30:45
|
||
<b>Duration:</b> 25s847ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> report
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> [unknown]
|
||
</pre>
|
||
<div id="query-g-explain-4-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Sort%20%20%28cost%3D113023.45..113023.95%20rows%3D200%20width%3D232%29%20%28actual%20time%3D25846.751..25846.759%20rows%3D129%20loops%3D1%29%0A%09%20%20Sort%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2043kB%0A%09%20%20Buffers%3A%20shared%20hit%3D20260%20read%3D95070%20written%3D3367%2C%20local%20hit%3D221449%20read%3D1%0A%09%20%20I%2FO%20Timings%3A%20read%3D23324.429%20write%3D75.759%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D46404.12..112987.32%20rows%3D496%20width%3D232%29%20%28actual%20time%3D25114.996..25846.141%20rows%3D151%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20257%20read%3D95070%20written%3D3367%2C%20local%20hit%3D221449%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D23324.429%20write%3D75.759%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D46404.12..46410.90%20rows%3D129%20width%3D232%29%20%28actual%20time%3D25114.995..25208.334%20rows%3D81%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20125%20read%3D37204%20written%3D3367%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D23025.573%20write%3D75.759%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D46404.12..46404.45%20rows%3D129%20width%3D182%29%20%28actual%20time%3D25114.970..25120.224%20rows%3D105549%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2017915kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20125%20read%3D37204%20written%3D3367%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D23025.573%20write%3D75.759%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1445.79..46399.60%20rows%3D129%20width%3D182%29%20%28actual%20time%3D37.452..24985.218%20rows%3D105549%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20125%20read%3D37204%20written%3D3367%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D23025.573%20write%3D75.759%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1445.65..46391.77%20rows%3D7%20width%3D110%29%20%28actual%20time%3D37.425..24330.405%20rows%3D105573%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20125%20read%3D37204%20written%3D3367%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D23025.565%20write%3D75.759%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..4.18%20rows%3D1%20width%3D108%29%20%28actual%20time%3D0.021..0.037%20rows%3D38%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28cm%20%3D%20%27F%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20136%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20osmp%20osm%20%20%28cost%3D1445.65..46387.13%20rows%3D46%20width%3D39%29%20%28actual%20time%3D1.955..638.928%20rows%3D2778%20loops%3D38%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2070%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D56851%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20125%20read%3D37204%20written%3D3367%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D23025.565%20write%3D75.759%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20osmp_fspr%20%20%28cost%3D0.00..1445.64%20rows%3D27895%20width%3D0%29%20%28actual%20time%3D1.650..1.650%20rows%3D2848%20loops%3D38%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D108%20read%3D370%20written%3D62%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D51.006%20write%3D0.514%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.005..0.005%20rows%3D1%20loops%3D105573%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D211097%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.008%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D66549.72..66568.99%20rows%3D367%20width%3D232%29%20%28actual%20time%3D630.211..637.789%20rows%3D70%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D132%20read%3D57866%2C%20local%20hit%3D10350%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D298.856%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D66549.72..66550.64%20rows%3D367%20width%3D178%29%20%28actual%20time%3D630.192..630.748%20rows%3D5174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20920kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D132%20read%3D57866%2C%20local%20hit%3D10350%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D298.856%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1004.74..66534.08%20rows%3D367%20width%3D178%29%20%28actual%20time%3D593.533..627.538%20rows%3D5174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20od_1.sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20od_1.edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%20895102%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D132%20read%3D57866%2C%20local%20hit%3D10350%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D298.856%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20od_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D80%29%20%28actual%20time%3D0.013..0.081%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D1004.74..66472.54%20rows%3D19%20width%3D106%29%20%28actual%20time%3D0.030..3.144%20rows%3D5174%20loops%3D174%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D132%20read%3D57866%2C%20local%20hit%3D10348%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D298.856%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D1004.74..66472.44%20rows%3D19%20width%3D106%29%20%28actual%20time%3D5.277..509.890%20rows%3D5174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D132%20read%3D57866%2C%20local%20hit%3D10348%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D298.856%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..66465.04%20rows%3D1%20width%3D34%29%20%28actual%20time%3D5.247..458.234%20rows%3D5174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D132%20read%3D57866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D298.856%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20osm_1%20%20%28cost%3D0.00..65464.94%20rows%3D1%20width%3D34%29%20%28actual%20time%3D1.669..482.765%20rows%3D1725%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20259938%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D132%20read%3D57866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D298.856%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20gld%20sd_1%20%20%28cost%3D4.74..7.21%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.009..0.009%20rows%3D1%20loops%3D5174%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3E%3D%20sdat%29%20AND%20%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D5174%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D10348%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20dats%20%20%28cost%3D0.00..4.73%20rows%3D19%20width%3D0%29%20%28actual%20time%3D0.007..0.007%20rows%3D1%20loops%3D5174%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3E%3D%20sdat%29%20AND%20%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D5174%0A%09%20%20-%3E%20%20HashAggregate%20%20%28cost%3D25.98..28.48%20rows%3D200%20width%3D232%29%20%28actual%20time%3D25846.428..25846.522%20rows%3D129%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Group%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20257%20read%3D95070%20written%3D3367%2C%20local%20hit%3D221449%20read%3D1%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D23324.429%20write%3D75.759%0A%09%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..11.16%20rows%3D494%20width%3D232%29%20%28actual%20time%3D25115.000..25846.302%20rows%3D129%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28om%20%3C%3E%20%27F%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2022%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20257%20read%3D95070%20written%3D3367%2C%20local%20hit%3D221449%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D23324.429%20write%3D75.759%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Sort (cost=113023.45..113023.95 rows=200 width=232) (actual time=25846.751..25846.759 rows=129 loops=1)
|
||
Sort Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Sort Method: quicksort Memory: 43kB
|
||
Buffers: shared hit=20260 read=95070 written=3367, local hit=221449 read=1
|
||
I/O Timings: read=23324.429 write=75.759
|
||
CTE un
|
||
-> Append (cost=46404.12..112987.32 rows=496 width=232) (actual time=25114.996..25846.141 rows=151 loops=1)
|
||
Buffers: shared hit=20257 read=95070 written=3367, local hit=221449 read=1
|
||
I/O Timings: read=23324.429 write=75.759
|
||
-> GroupAggregate (cost=46404.12..46410.90 rows=129 width=232) (actual time=25114.995..25208.334 rows=81 loops=1)
|
||
Group Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Buffers: shared hit=20125 read=37204 written=3367, local hit=211099 read=1
|
||
I/O Timings: read=23025.573 write=75.759
|
||
-> Sort (cost=46404.12..46404.45 rows=129 width=182) (actual time=25114.970..25120.224 rows=105549 loops=1)
|
||
Sort Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 17915kB
|
||
Buffers: shared hit=20125 read=37204 written=3367, local hit=211099 read=1
|
||
I/O Timings: read=23025.573 write=75.759
|
||
-> Nested Loop (cost=1445.79..46399.60 rows=129 width=182) (actual time=37.452..24985.218 rows=105549 loops=1)
|
||
Buffers: shared hit=20125 read=37204 written=3367, local hit=211099 read=1
|
||
I/O Timings: read=23025.573 write=75.759
|
||
-> Nested Loop (cost=1445.65..46391.77 rows=7 width=110) (actual time=37.425..24330.405 rows=105573 loops=1)
|
||
Buffers: shared hit=20125 read=37204 written=3367, local hit=2
|
||
I/O Timings: read=23025.565 write=75.759
|
||
-> Seq Scan on gld sd (cost=0.00..4.18 rows=1 width=108) (actual time=0.021..0.037 rows=38 loops=1)
|
||
Filter: (cm = 'F'::text)
|
||
Rows Removed by Filter: 136
|
||
Buffers: local hit=2
|
||
-> Bitmap Heap Scan on osmp osm (cost=1445.65..46387.13 rows=46 width=39) (actual time=1.955..638.928 rows=2778 loops=38)
|
||
Recheck Cond: (fspr = sd.fspr)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 70
|
||
Heap Blocks: exact=56851
|
||
Buffers: shared hit=20125 read=37204 written=3367
|
||
I/O Timings: read=23025.565 write=75.759
|
||
-> Bitmap Index Scan on osmp_fspr (cost=0.00..1445.64 rows=27895 width=0) (actual time=1.650..1.650 rows=2848 loops=38)
|
||
Index Cond: (fspr = sd.fspr)
|
||
Buffers: shared hit=108 read=370 written=62
|
||
I/O Timings: read=51.006 write=0.514
|
||
-> Index Scan using dats on gld od (cost=0.14..0.93 rows=19 width=80) (actual time=0.005..0.005 rows=1 loops=105573)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=211097 read=1
|
||
I/O Timings: read=0.008
|
||
-> GroupAggregate (cost=66549.72..66568.99 rows=367 width=232) (actual time=630.211..637.789 rows=70 loops=1)
|
||
Group Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Buffers: shared hit=132 read=57866, local hit=10350
|
||
I/O Timings: read=298.856
|
||
-> Sort (cost=66549.72..66550.64 rows=367 width=178) (actual time=630.192..630.748 rows=5174 loops=1)
|
||
Sort Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 920kB
|
||
Buffers: shared hit=132 read=57866, local hit=10350
|
||
I/O Timings: read=298.856
|
||
-> Nested Loop (cost=1004.74..66534.08 rows=367 width=178) (actual time=593.533..627.538 rows=5174 loops=1)
|
||
Join Filter: ((osm_1.adj_orderdate >= od_1.sdat) AND (osm_1.adj_orderdate <= od_1.edat))
|
||
Rows Removed by Join Filter: 895102
|
||
Buffers: shared hit=132 read=57866, local hit=10350
|
||
I/O Timings: read=298.856
|
||
-> Seq Scan on gld od_1 (cost=0.00..3.74 rows=174 width=80) (actual time=0.013..0.081 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Materialize (cost=1004.74..66472.54 rows=19 width=106) (actual time=0.030..3.144 rows=5174 loops=174)
|
||
Buffers: shared hit=132 read=57866, local hit=10348
|
||
I/O Timings: read=298.856
|
||
-> Nested Loop Left Join (cost=1004.74..66472.44 rows=19 width=106) (actual time=5.277..509.890 rows=5174 loops=1)
|
||
Buffers: shared hit=132 read=57866, local hit=10348
|
||
I/O Timings: read=298.856
|
||
-> Gather (cost=1000.00..66465.04 rows=1 width=34) (actual time=5.247..458.234 rows=5174 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=132 read=57866
|
||
I/O Timings: read=298.856
|
||
-> Parallel Seq Scan on osm osm_1 (cost=0.00..65464.94 rows=1 width=34) (actual time=1.669..482.765 rows=1725 loops=3)
|
||
Filter: ((calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (flag = 'REMAINDER'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 259938
|
||
Buffers: shared hit=132 read=57866
|
||
I/O Timings: read=298.856
|
||
-> Bitmap Heap Scan on gld sd_1 (cost=4.74..7.21 rows=19 width=80) (actual time=0.009..0.009 rows=1 loops=5174)
|
||
Recheck Cond: ((GREATEST(osm_1.adj_requestdate, CURRENT_DATE) >= sdat) AND (GREATEST(osm_1.adj_requestdate, CURRENT_DATE) <= edat))
|
||
Heap Blocks: exact=5174
|
||
Buffers: local hit=10348
|
||
-> Bitmap Index Scan on dats (cost=0.00..4.73 rows=19 width=0) (actual time=0.007..0.007 rows=1 loops=5174)
|
||
Index Cond: ((GREATEST(osm_1.adj_requestdate, CURRENT_DATE) >= sdat) AND (GREATEST(osm_1.adj_requestdate, CURRENT_DATE) <= edat))
|
||
Buffers: local hit=5174
|
||
-> HashAggregate (cost=25.98..28.48 rows=200 width=232) (actual time=25846.428..25846.522 rows=129 loops=1)
|
||
Group Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Buffers: shared hit=20257 read=95070 written=3367, local hit=221449 read=1
|
||
I/O Timings: read=23324.429 write=75.759
|
||
-> CTE Scan on un (cost=0.00..11.16 rows=494 width=232) (actual time=25115.000..25846.302 rows=129 loops=1)
|
||
Filter: (om <> 'F'::text)
|
||
Rows Removed by Filter: 22
|
||
Buffers: shared hit=20257 read=95070 written=3367, local hit=221449 read=1
|
||
I/O Timings: read=23324.429 write=75.759
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-g-4-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMP OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> GREATEST <span class="br0">(</span>OSM<span class="sy0">.</span>adj_requestdate<span class="sy0">,</span>
|
||
<span class="kw1"><span class="kw2">current_date</span></span><span class="br0">)</span> <span class="kw1">BETWEEN</span> SD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">WHERE</span>
|
||
OM <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'F'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-14 17:09:40
|
||
<b>Duration:</b> 23s808ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> report
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> [unknown]
|
||
</pre>
|
||
<div id="query-g-explain-4-2" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Sort%20%20%28cost%3D113712.54..113713.04%20rows%3D200%20width%3D232%29%20%28actual%20time%3D23807.981..23807.985%20rows%3D128%20loops%3D1%29%0A%09%20%20Sort%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2043kB%0A%09%20%20Buffers%3A%20shared%20hit%3D24173%20read%3D91157%2C%20local%20hit%3D222025%20read%3D1%0A%09%20%20I%2FO%20Timings%3A%20read%3D26284.166%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D46404.12..113676.42%20rows%3D496%20width%3D232%29%20%28actual%20time%3D20688.511..23807.529%20rows%3D150%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D24170%20read%3D91157%2C%20local%20hit%3D222025%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D26284.166%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D46404.12..46410.90%20rows%3D129%20width%3D232%29%20%28actual%20time%3D20688.510..20789.478%20rows%3D81%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D21002%20read%3D36327%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D18300.701%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D46404.12..46404.45%20rows%3D129%20width%3D182%29%20%28actual%20time%3D20688.486..20694.576%20rows%3D105549%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2017915kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D21002%20read%3D36327%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D18300.701%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1445.79..46399.60%20rows%3D129%20width%3D182%29%20%28actual%20time%3D37.496..20515.988%20rows%3D105549%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D21002%20read%3D36327%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D18300.701%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1445.65..46391.77%20rows%3D7%20width%3D110%29%20%28actual%20time%3D37.467..19809.839%20rows%3D105573%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D21002%20read%3D36327%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D18300.692%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..4.18%20rows%3D1%20width%3D108%29%20%28actual%20time%3D0.020..0.038%20rows%3D38%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28cm%20%3D%20%27F%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20136%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20osmp%20osm%20%20%28cost%3D1445.65..46387.13%20rows%3D46%20width%3D39%29%20%28actual%20time%3D2.140..520.028%20rows%3D2778%20loops%3D38%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2070%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D56851%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D21002%20read%3D36327%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D18300.692%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20osmp_fspr%20%20%28cost%3D0.00..1445.64%20rows%3D27895%20width%3D0%29%20%28actual%20time%3D1.908..1.908%20rows%3D2848%20loops%3D38%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D110%20read%3D368%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D57.208%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.005..0.005%20rows%3D1%20loops%3D105573%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D211097%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.009%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D67238.81..67258.08%20rows%3D367%20width%3D232%29%20%28actual%20time%3D3013.320..3018.033%20rows%3D69%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3168%20read%3D54830%2C%20local%20hit%3D10926%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7983.465%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D67238.81..67239.73%20rows%3D367%20width%3D178%29%20%28actual%20time%3D3013.300..3013.513%20rows%3D5462%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20961kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3168%20read%3D54830%2C%20local%20hit%3D10926%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7983.465%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1004.74..67223.18%20rows%3D367%20width%3D178%29%20%28actual%20time%3D2972.945..3010.611%20rows%3D5462%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20od_1.sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20od_1.edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%20944926%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3168%20read%3D54830%2C%20local%20hit%3D10926%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7983.465%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20od_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D80%29%20%28actual%20time%3D0.017..0.072%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D1004.74..67161.63%20rows%3D19%20width%3D106%29%20%28actual%20time%3D13.102..16.813%20rows%3D5462%20loops%3D174%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3168%20read%3D54830%2C%20local%20hit%3D10924%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7983.465%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D1004.74..67161.54%20rows%3D19%20width%3D106%29%20%28actual%20time%3D2279.747..2880.350%20rows%3D5462%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3168%20read%3D54830%2C%20local%20hit%3D10924%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7983.465%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..67154.13%20rows%3D1%20width%3D34%29%20%28actual%20time%3D2279.720..2819.147%20rows%3D5462%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3168%20read%3D54830%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7983.465%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20osm_1%20%20%28cost%3D0.00..66154.03%20rows%3D1%20width%3D34%29%20%28actual%20time%3D2269.482..2837.169%20rows%3D1821%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20259313%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3168%20read%3D54830%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7983.465%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20gld%20sd_1%20%20%28cost%3D4.74..7.21%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.008..0.008%20rows%3D1%20loops%3D5462%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3E%3D%20sdat%29%20AND%20%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D5462%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D10924%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20dats%20%20%28cost%3D0.00..4.73%20rows%3D19%20width%3D0%29%20%28actual%20time%3D0.007..0.007%20rows%3D1%20loops%3D5462%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3E%3D%20sdat%29%20AND%20%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D5462%0A%09%20%20-%3E%20%20HashAggregate%20%20%28cost%3D25.98..28.48%20rows%3D200%20width%3D232%29%20%28actual%20time%3D23807.814..23807.857%20rows%3D128%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Group%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D24170%20read%3D91157%2C%20local%20hit%3D222025%20read%3D1%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D26284.166%0A%09%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..11.16%20rows%3D494%20width%3D232%29%20%28actual%20time%3D20688.515..23807.691%20rows%3D128%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28om%20%3C%3E%20%27F%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2022%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D24170%20read%3D91157%2C%20local%20hit%3D222025%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D26284.166%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Sort (cost=113712.54..113713.04 rows=200 width=232) (actual time=23807.981..23807.985 rows=128 loops=1)
|
||
Sort Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Sort Method: quicksort Memory: 43kB
|
||
Buffers: shared hit=24173 read=91157, local hit=222025 read=1
|
||
I/O Timings: read=26284.166
|
||
CTE un
|
||
-> Append (cost=46404.12..113676.42 rows=496 width=232) (actual time=20688.511..23807.529 rows=150 loops=1)
|
||
Buffers: shared hit=24170 read=91157, local hit=222025 read=1
|
||
I/O Timings: read=26284.166
|
||
-> GroupAggregate (cost=46404.12..46410.90 rows=129 width=232) (actual time=20688.510..20789.478 rows=81 loops=1)
|
||
Group Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Buffers: shared hit=21002 read=36327, local hit=211099 read=1
|
||
I/O Timings: read=18300.701
|
||
-> Sort (cost=46404.12..46404.45 rows=129 width=182) (actual time=20688.486..20694.576 rows=105549 loops=1)
|
||
Sort Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 17915kB
|
||
Buffers: shared hit=21002 read=36327, local hit=211099 read=1
|
||
I/O Timings: read=18300.701
|
||
-> Nested Loop (cost=1445.79..46399.60 rows=129 width=182) (actual time=37.496..20515.988 rows=105549 loops=1)
|
||
Buffers: shared hit=21002 read=36327, local hit=211099 read=1
|
||
I/O Timings: read=18300.701
|
||
-> Nested Loop (cost=1445.65..46391.77 rows=7 width=110) (actual time=37.467..19809.839 rows=105573 loops=1)
|
||
Buffers: shared hit=21002 read=36327, local hit=2
|
||
I/O Timings: read=18300.692
|
||
-> Seq Scan on gld sd (cost=0.00..4.18 rows=1 width=108) (actual time=0.020..0.038 rows=38 loops=1)
|
||
Filter: (cm = 'F'::text)
|
||
Rows Removed by Filter: 136
|
||
Buffers: local hit=2
|
||
-> Bitmap Heap Scan on osmp osm (cost=1445.65..46387.13 rows=46 width=39) (actual time=2.140..520.028 rows=2778 loops=38)
|
||
Recheck Cond: (fspr = sd.fspr)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 70
|
||
Heap Blocks: exact=56851
|
||
Buffers: shared hit=21002 read=36327
|
||
I/O Timings: read=18300.692
|
||
-> Bitmap Index Scan on osmp_fspr (cost=0.00..1445.64 rows=27895 width=0) (actual time=1.908..1.908 rows=2848 loops=38)
|
||
Index Cond: (fspr = sd.fspr)
|
||
Buffers: shared hit=110 read=368
|
||
I/O Timings: read=57.208
|
||
-> Index Scan using dats on gld od (cost=0.14..0.93 rows=19 width=80) (actual time=0.005..0.005 rows=1 loops=105573)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=211097 read=1
|
||
I/O Timings: read=0.009
|
||
-> GroupAggregate (cost=67238.81..67258.08 rows=367 width=232) (actual time=3013.320..3018.033 rows=69 loops=1)
|
||
Group Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Buffers: shared hit=3168 read=54830, local hit=10926
|
||
I/O Timings: read=7983.465
|
||
-> Sort (cost=67238.81..67239.73 rows=367 width=178) (actual time=3013.300..3013.513 rows=5462 loops=1)
|
||
Sort Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 961kB
|
||
Buffers: shared hit=3168 read=54830, local hit=10926
|
||
I/O Timings: read=7983.465
|
||
-> Nested Loop (cost=1004.74..67223.18 rows=367 width=178) (actual time=2972.945..3010.611 rows=5462 loops=1)
|
||
Join Filter: ((osm_1.adj_orderdate >= od_1.sdat) AND (osm_1.adj_orderdate <= od_1.edat))
|
||
Rows Removed by Join Filter: 944926
|
||
Buffers: shared hit=3168 read=54830, local hit=10926
|
||
I/O Timings: read=7983.465
|
||
-> Seq Scan on gld od_1 (cost=0.00..3.74 rows=174 width=80) (actual time=0.017..0.072 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Materialize (cost=1004.74..67161.63 rows=19 width=106) (actual time=13.102..16.813 rows=5462 loops=174)
|
||
Buffers: shared hit=3168 read=54830, local hit=10924
|
||
I/O Timings: read=7983.465
|
||
-> Nested Loop Left Join (cost=1004.74..67161.54 rows=19 width=106) (actual time=2279.747..2880.350 rows=5462 loops=1)
|
||
Buffers: shared hit=3168 read=54830, local hit=10924
|
||
I/O Timings: read=7983.465
|
||
-> Gather (cost=1000.00..67154.13 rows=1 width=34) (actual time=2279.720..2819.147 rows=5462 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=3168 read=54830
|
||
I/O Timings: read=7983.465
|
||
-> Parallel Seq Scan on osm osm_1 (cost=0.00..66154.03 rows=1 width=34) (actual time=2269.482..2837.169 rows=1821 loops=3)
|
||
Filter: ((calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (flag = 'REMAINDER'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 259313
|
||
Buffers: shared hit=3168 read=54830
|
||
I/O Timings: read=7983.465
|
||
-> Bitmap Heap Scan on gld sd_1 (cost=4.74..7.21 rows=19 width=80) (actual time=0.008..0.008 rows=1 loops=5462)
|
||
Recheck Cond: ((GREATEST(osm_1.adj_requestdate, CURRENT_DATE) >= sdat) AND (GREATEST(osm_1.adj_requestdate, CURRENT_DATE) <= edat))
|
||
Heap Blocks: exact=5462
|
||
Buffers: local hit=10924
|
||
-> Bitmap Index Scan on dats (cost=0.00..4.73 rows=19 width=0) (actual time=0.007..0.007 rows=1 loops=5462)
|
||
Index Cond: ((GREATEST(osm_1.adj_requestdate, CURRENT_DATE) >= sdat) AND (GREATEST(osm_1.adj_requestdate, CURRENT_DATE) <= edat))
|
||
Buffers: local hit=5462
|
||
-> HashAggregate (cost=25.98..28.48 rows=200 width=232) (actual time=23807.814..23807.857 rows=128 loops=1)
|
||
Group Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Buffers: shared hit=24170 read=91157, local hit=222025 read=1
|
||
I/O Timings: read=26284.166
|
||
-> CTE Scan on un (cost=0.00..11.16 rows=494 width=232) (actual time=20688.515..23807.691 rows=128 loops=1)
|
||
Filter: (om <> 'F'::text)
|
||
Rows Removed by Filter: 22
|
||
Buffers: shared hit=24170 read=91157, local hit=222025 read=1
|
||
I/O Timings: read=26284.166
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-g-4-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMP OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> GREATEST <span class="br0">(</span>OSM<span class="sy0">.</span>adj_requestdate<span class="sy0">,</span>
|
||
<span class="kw1"><span class="kw2">current_date</span></span><span class="br0">)</span> <span class="kw1">BETWEEN</span> SD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">WHERE</span>
|
||
OM <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'F'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-14 17:21:12
|
||
<b>Duration:</b> 18s342ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> report
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> [unknown]
|
||
</pre>
|
||
<div id="query-g-explain-4-3" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Sort%20%20%28cost%3D113712.54..113713.04%20rows%3D200%20width%3D232%29%20%28actual%20time%3D18341.790..18341.795%20rows%3D128%20loops%3D1%29%0A%09%20%20Sort%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2043kB%0A%09%20%20Buffers%3A%20shared%20hit%3D24593%20read%3D90737%2C%20local%20hit%3D222025%20read%3D1%0A%09%20%20I%2FO%20Timings%3A%20read%3D16381.140%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D46404.12..113676.42%20rows%3D496%20width%3D232%29%20%28actual%20time%3D17686.530..18341.413%20rows%3D150%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D24590%20read%3D90737%2C%20local%20hit%3D222025%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D16381.140%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D46404.12..46410.90%20rows%3D129%20width%3D232%29%20%28actual%20time%3D17686.530..17780.512%20rows%3D81%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20982%20read%3D36347%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D16170.335%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D46404.12..46404.45%20rows%3D129%20width%3D182%29%20%28actual%20time%3D17686.507..17691.642%20rows%3D105549%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2017915kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20982%20read%3D36347%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D16170.335%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1445.79..46399.60%20rows%3D129%20width%3D182%29%20%28actual%20time%3D336.691..17577.973%20rows%3D105549%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20982%20read%3D36347%2C%20local%20hit%3D211099%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D16170.335%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1445.65..46391.77%20rows%3D7%20width%3D110%29%20%28actual%20time%3D336.406..17026.558%20rows%3D105573%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20982%20read%3D36347%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D16170.091%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..4.18%20rows%3D1%20width%3D108%29%20%28actual%20time%3D0.019..0.035%20rows%3D38%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28cm%20%3D%20%27F%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20136%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20osmp%20osm%20%20%28cost%3D1445.65..46387.13%20rows%3D46%20width%3D39%29%20%28actual%20time%3D9.729..447.136%20rows%3D2778%20loops%3D38%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2070%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D56851%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D20982%20read%3D36347%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D16170.091%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20osmp_fspr%20%20%28cost%3D0.00..1445.64%20rows%3D27895%20width%3D0%29%20%28actual%20time%3D6.416..6.416%20rows%3D2848%20loops%3D38%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D110%20read%3D368%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D223.920%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D105573%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D211097%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.244%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D67238.81..67258.08%20rows%3D367%20width%3D232%29%20%28actual%20time%3D556.403..560.886%20rows%3D69%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3608%20read%3D54390%2C%20local%20hit%3D10926%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D210.804%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D67238.81..67239.73%20rows%3D367%20width%3D178%29%20%28actual%20time%3D556.386..556.605%20rows%3D5462%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20961kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3608%20read%3D54390%2C%20local%20hit%3D10926%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D210.804%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1004.74..67223.18%20rows%3D367%20width%3D178%29%20%28actual%20time%3D518.705..553.668%20rows%3D5462%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20od_1.sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20od_1.edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%20944926%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3608%20read%3D54390%2C%20local%20hit%3D10926%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D210.804%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20od_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D80%29%20%28actual%20time%3D0.013..0.055%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D1004.74..67161.63%20rows%3D19%20width%3D106%29%20%28actual%20time%3D2.013..2.722%20rows%3D5462%20loops%3D174%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3608%20read%3D54390%2C%20local%20hit%3D10924%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D210.804%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D1004.74..67161.54%20rows%3D19%20width%3D106%29%20%28actual%20time%3D350.244..437.677%20rows%3D5462%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3608%20read%3D54390%2C%20local%20hit%3D10924%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D210.804%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..67154.13%20rows%3D1%20width%3D34%29%20%28actual%20time%3D350.219..407.718%20rows%3D5462%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3608%20read%3D54390%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D210.804%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20osm_1%20%20%28cost%3D0.00..66154.03%20rows%3D1%20width%3D34%29%20%28actual%20time%3D333.708..384.567%20rows%3D1821%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20259313%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3608%20read%3D54390%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D210.804%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20gld%20sd_1%20%20%28cost%3D4.74..7.21%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.005..0.005%20rows%3D1%20loops%3D5462%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3E%3D%20sdat%29%20AND%20%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D5462%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D10924%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20dats%20%20%28cost%3D0.00..4.73%20rows%3D19%20width%3D0%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D5462%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3E%3D%20sdat%29%20AND%20%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D5462%0A%09%20%20-%3E%20%20HashAggregate%20%20%28cost%3D25.98..28.48%20rows%3D200%20width%3D232%29%20%28actual%20time%3D18341.605..18341.654%20rows%3D128%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Group%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D24590%20read%3D90737%2C%20local%20hit%3D222025%20read%3D1%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D16381.140%0A%09%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..11.16%20rows%3D494%20width%3D232%29%20%28actual%20time%3D17686.534..18341.509%20rows%3D128%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28om%20%3C%3E%20%27F%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2022%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D24590%20read%3D90737%2C%20local%20hit%3D222025%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D16381.140%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Sort (cost=113712.54..113713.04 rows=200 width=232) (actual time=18341.790..18341.795 rows=128 loops=1)
|
||
Sort Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Sort Method: quicksort Memory: 43kB
|
||
Buffers: shared hit=24593 read=90737, local hit=222025 read=1
|
||
I/O Timings: read=16381.140
|
||
CTE un
|
||
-> Append (cost=46404.12..113676.42 rows=496 width=232) (actual time=17686.530..18341.413 rows=150 loops=1)
|
||
Buffers: shared hit=24590 read=90737, local hit=222025 read=1
|
||
I/O Timings: read=16381.140
|
||
-> GroupAggregate (cost=46404.12..46410.90 rows=129 width=232) (actual time=17686.530..17780.512 rows=81 loops=1)
|
||
Group Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Buffers: shared hit=20982 read=36347, local hit=211099 read=1
|
||
I/O Timings: read=16170.335
|
||
-> Sort (cost=46404.12..46404.45 rows=129 width=182) (actual time=17686.507..17691.642 rows=105549 loops=1)
|
||
Sort Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 17915kB
|
||
Buffers: shared hit=20982 read=36347, local hit=211099 read=1
|
||
I/O Timings: read=16170.335
|
||
-> Nested Loop (cost=1445.79..46399.60 rows=129 width=182) (actual time=336.691..17577.973 rows=105549 loops=1)
|
||
Buffers: shared hit=20982 read=36347, local hit=211099 read=1
|
||
I/O Timings: read=16170.335
|
||
-> Nested Loop (cost=1445.65..46391.77 rows=7 width=110) (actual time=336.406..17026.558 rows=105573 loops=1)
|
||
Buffers: shared hit=20982 read=36347, local hit=2
|
||
I/O Timings: read=16170.091
|
||
-> Seq Scan on gld sd (cost=0.00..4.18 rows=1 width=108) (actual time=0.019..0.035 rows=38 loops=1)
|
||
Filter: (cm = 'F'::text)
|
||
Rows Removed by Filter: 136
|
||
Buffers: local hit=2
|
||
-> Bitmap Heap Scan on osmp osm (cost=1445.65..46387.13 rows=46 width=39) (actual time=9.729..447.136 rows=2778 loops=38)
|
||
Recheck Cond: (fspr = sd.fspr)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 70
|
||
Heap Blocks: exact=56851
|
||
Buffers: shared hit=20982 read=36347
|
||
I/O Timings: read=16170.091
|
||
-> Bitmap Index Scan on osmp_fspr (cost=0.00..1445.64 rows=27895 width=0) (actual time=6.416..6.416 rows=2848 loops=38)
|
||
Index Cond: (fspr = sd.fspr)
|
||
Buffers: shared hit=110 read=368
|
||
I/O Timings: read=223.920
|
||
-> Index Scan using dats on gld od (cost=0.14..0.93 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=105573)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=211097 read=1
|
||
I/O Timings: read=0.244
|
||
-> GroupAggregate (cost=67238.81..67258.08 rows=367 width=232) (actual time=556.403..560.886 rows=69 loops=1)
|
||
Group Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Buffers: shared hit=3608 read=54390, local hit=10926
|
||
I/O Timings: read=210.804
|
||
-> Sort (cost=67238.81..67239.73 rows=367 width=178) (actual time=556.386..556.605 rows=5462 loops=1)
|
||
Sort Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 961kB
|
||
Buffers: shared hit=3608 read=54390, local hit=10926
|
||
I/O Timings: read=210.804
|
||
-> Nested Loop (cost=1004.74..67223.18 rows=367 width=178) (actual time=518.705..553.668 rows=5462 loops=1)
|
||
Join Filter: ((osm_1.adj_orderdate >= od_1.sdat) AND (osm_1.adj_orderdate <= od_1.edat))
|
||
Rows Removed by Join Filter: 944926
|
||
Buffers: shared hit=3608 read=54390, local hit=10926
|
||
I/O Timings: read=210.804
|
||
-> Seq Scan on gld od_1 (cost=0.00..3.74 rows=174 width=80) (actual time=0.013..0.055 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Materialize (cost=1004.74..67161.63 rows=19 width=106) (actual time=2.013..2.722 rows=5462 loops=174)
|
||
Buffers: shared hit=3608 read=54390, local hit=10924
|
||
I/O Timings: read=210.804
|
||
-> Nested Loop Left Join (cost=1004.74..67161.54 rows=19 width=106) (actual time=350.244..437.677 rows=5462 loops=1)
|
||
Buffers: shared hit=3608 read=54390, local hit=10924
|
||
I/O Timings: read=210.804
|
||
-> Gather (cost=1000.00..67154.13 rows=1 width=34) (actual time=350.219..407.718 rows=5462 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=3608 read=54390
|
||
I/O Timings: read=210.804
|
||
-> Parallel Seq Scan on osm osm_1 (cost=0.00..66154.03 rows=1 width=34) (actual time=333.708..384.567 rows=1821 loops=3)
|
||
Filter: ((calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (flag = 'REMAINDER'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 259313
|
||
Buffers: shared hit=3608 read=54390
|
||
I/O Timings: read=210.804
|
||
-> Bitmap Heap Scan on gld sd_1 (cost=4.74..7.21 rows=19 width=80) (actual time=0.005..0.005 rows=1 loops=5462)
|
||
Recheck Cond: ((GREATEST(osm_1.adj_requestdate, CURRENT_DATE) >= sdat) AND (GREATEST(osm_1.adj_requestdate, CURRENT_DATE) <= edat))
|
||
Heap Blocks: exact=5462
|
||
Buffers: local hit=10924
|
||
-> Bitmap Index Scan on dats (cost=0.00..4.73 rows=19 width=0) (actual time=0.004..0.004 rows=1 loops=5462)
|
||
Index Cond: ((GREATEST(osm_1.adj_requestdate, CURRENT_DATE) >= sdat) AND (GREATEST(osm_1.adj_requestdate, CURRENT_DATE) <= edat))
|
||
Buffers: local hit=5462
|
||
-> HashAggregate (cost=25.98..28.48 rows=200 width=232) (actual time=18341.605..18341.654 rows=128 loops=1)
|
||
Group Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Buffers: shared hit=24590 read=90737, local hit=222025 read=1
|
||
I/O Timings: read=16381.140
|
||
-> CTE Scan on un (cost=0.00..11.16 rows=494 width=232) (actual time=17686.534..18341.509 rows=128 loops=1)
|
||
Filter: (om <> 'F'::text)
|
||
Rows Removed by Filter: 22
|
||
Buffers: shared hit=24590 read=90737, local hit=222025 read=1
|
||
I/O Timings: read=16381.140
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-4">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>5</td>
|
||
<td>2s217ms</td>
|
||
<td>27s560ms</td>
|
||
<td>8s855ms</td>
|
||
<td>37
|
||
<p><a href="#Anormalized_slowest_queries_details_5" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>5m27s</td>
|
||
<td id="normalized-slowest-queries-examples-details-rank-5">
|
||
<div id="query-g-5" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>create <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> gld<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>; <span class="kw1">WITH</span> un <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> ? srce <span class="sy0">,</span>od<span class="sy0">.</span>ssyr oseas <span class="sy0">,</span>od<span class="sy0">.</span>sdat odate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr sseas <span class="sy0">,</span>sd<span class="sy0">.</span>sdat sdate <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> om <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> sm <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> oy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_qty <span class="br0">)</span> qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_val_loc <span class="sy0">*</span> r_rate <span class="br0">)</span> sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_cst_loc <span class="sy0">*</span> c_rate <span class="br0">)</span> stdcost <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osmf osm <span class="kw1">INNER</span> <span class="kw1">JOIN</span> gld od <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_orderdate <span class="kw1">BETWEEN</span> od<span class="sy0">.</span>sdat <span class="kw1">AND</span> od<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld sd <span class="kw1">ON</span> osm<span class="sy0">.</span>fspr <span class="sy0">=</span> sd<span class="sy0">.</span>fspr <span class="kw1">WHERE</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>glec<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>fs_line<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">=</span> ? <span class="kw1">AND</span> calc_status <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>all orders <span class="kw1">OR</span> shipments <span class="kw1">FOR</span> the period <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>current year <span class="kw1">TO</span> <span class="kw2">date</span> orders od<span class="sy0">.</span>cy <span class="sy0">=</span> ? <span class="sy0">-</span><span class="sy0">-</span>current year <span class="kw1">TO</span> <span class="kw2">date</span> shipments <span class="kw1">OR</span> sd<span class="sy0">.</span>cy <span class="sy0">=</span> ? <span class="br0">)</span> <span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>open orders sd<span class="sy0">.</span>cm <span class="sy0">=</span> ? <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future fspr <span class="br0">)</span> <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> od<span class="sy0">.</span>ssyr <span class="sy0">,</span>od<span class="sy0">.</span>sdat <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr <span class="sy0">,</span>sd<span class="sy0">.</span>sdat <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">UNION</span> <span class="kw1">ALL</span> <span class="kw1">SELECT</span> ? srce <span class="sy0">,</span>od<span class="sy0">.</span>ssyr oseas <span class="sy0">,</span>od<span class="sy0">.</span>sdat odate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr sseas <span class="sy0">,</span>sd<span class="sy0">.</span>sdat sdate <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> om <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> sm <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> oy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_qty <span class="br0">)</span> qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_val_loc <span class="sy0">*</span> r_rate <span class="br0">)</span> sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_cst_loc <span class="sy0">*</span> c_rate <span class="br0">)</span> stdcost <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm osm <span class="kw1">INNER</span> <span class="kw1">JOIN</span> gld od <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_orderdate <span class="kw1">BETWEEN</span> od<span class="sy0">.</span>sdat <span class="kw1">AND</span> od<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld sd <span class="kw1">ON</span> osm<span class="sy0">.</span>fspr <span class="sy0">=</span> sd<span class="sy0">.</span>fspr <span class="kw1">WHERE</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>fs_line<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">=</span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>glec<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">AND</span> calc_status <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>all <span class="kw1">ORDER</span> <span class="kw1">OR</span> shipments <span class="kw1">FOR</span> the period <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>current year <span class="kw1">TO</span> <span class="kw2">date</span> orders od<span class="sy0">.</span>cy <span class="sy0">=</span> ? <span class="sy0">-</span><span class="sy0">-</span>current year <span class="kw1">TO</span> <span class="kw2">date</span> shipments <span class="kw1">OR</span> sd<span class="sy0">.</span>cy <span class="sy0">=</span> ? <span class="br0">)</span> <span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>open orders <span class="br0">(</span>calc_status <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span> <span class="kw1">AND</span> flag <span class="sy0">=</span> ?<span class="br0">)</span> <span class="br0">)</span> <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> od<span class="sy0">.</span>ssyr <span class="sy0">,</span>od<span class="sy0">.</span>sdat <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr <span class="sy0">,</span>sd<span class="sy0">.</span>sdat <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="br0">)</span> <span class="kw1">SELECT</span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>qty<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>stdcost<span class="br0">)</span> "cost" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>sales<span class="br0">)</span> sales <span class="kw1">FROM</span> un <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy ;
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Anormalized_slowest_queries_details_5" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #5</small></h3>
|
||
<div id="normalized_slowest_queries_details_5" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Anormalized_slowest_queries_details_5').on("shown.bs.collapse",function(){
|
||
var bars_79 = [['00:00',5],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',10],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',22],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_79 = [['00:00',11678],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',5788],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',9608],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var normalized_slowest_queries_details_5 = create_bargraph('normalized_slowest_queries_details_5', '', 'Queries', [ bars_79, lines_79 ], 'Avg. duration');
|
||
});
|
||
create_download_button(79, 'btn btn-default btn-xs');
|
||
add_download_button_event(79, 'normalized_slowest_queries_details_5');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>17</td><td>17</td><td>2m29s</td><td>8s786ms</td></tr><tr><td>Mar 15</td><td>00</td><td>5</td><td>58s394ms</td><td>11s678ms</td></tr><tr><td></td><td>17</td><td>5</td><td>1m2s</td><td>12s403ms</td></tr><tr><td>Mar 18</td><td>10</td><td>10</td><td>57s886ms</td><td>5s788ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Anormalized_slowest_queries_details_5">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-5">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-5">User(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="normalized-slowest-queries-user-involved-rank-5" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> report - <b>Total duration:</b> 1m37s - <b>Times executed:</b> 7 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-5">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="normalized-slowest-queries-app-involved-rank-5" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> [unknown] - <b>Total duration:</b> 1m37s - <b>Times executed:</b> 7 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-app-involved-rank-5">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="normalized-slowest-queries-examples-rank-5" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-g-5-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-14 17:15:07
|
||
<b>Duration:</b> 27s560ms
|
||
</pre>
|
||
<div id="query-g-explain-5-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Parallel%20Seq%20Scan%20on%20osmf%20osm%20%20%28cost%3D0.00..30498.70%20rows%3D308%20width%3D42%29%20%28actual%20time%3D0.033..24368.549%20rows%3D190996%20loops%3D1%29%0A%09%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20Rows%20Removed%20by%20Filter%3A%20227%0A%09%20%20Buffers%3A%20shared%20hit%3D12201%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Parallel Seq Scan on osmf osm (cost=0.00..30498.70 rows=308 width=42) (actual time=0.033..24368.549 rows=190996 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 227
|
||
Buffers: shared hit=12201
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-g-5-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-14 17:15:07
|
||
<b>Duration:</b> 27s559ms
|
||
</pre>
|
||
<div id="query-g-explain-5-2" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Parallel%20Seq%20Scan%20on%20osmf%20osm%20%20%28cost%3D0.00..30498.70%20rows%3D308%20width%3D42%29%20%28actual%20time%3D0.018..23110.458%20rows%3D167047%20loops%3D1%29%0A%09%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20Rows%20Removed%20by%20Filter%3A%20120%0A%09%20%20Buffers%3A%20shared%20hit%3D10779%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Parallel Seq Scan on osmf osm (cost=0.00..30498.70 rows=308 width=42) (actual time=0.018..23110.458 rows=167047 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 120
|
||
Buffers: shared hit=10779
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-g-5-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 17:30:39
|
||
<b>Duration:</b> 21s242ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> report
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> [unknown]
|
||
</pre>
|
||
<div id="query-g-explain-5-3" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Sort%20%20%28cost%3D99922.38..99922.88%20rows%3D200%20width%3D232%29%20%28actual%20time%3D21211.683..21211.708%20rows%3D317%20loops%3D1%29%0A%09%20%20Sort%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2069kB%0A%09%20%20Buffers%3A%20shared%20hit%3D4%20read%3D84336%20written%3D124%2C%20local%20hit%3D2068827%20read%3D1%0A%09%20%20I%2FO%20Timings%3A%20read%3D47930.799%20write%3D1.505%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D32534.94..99887.14%20rows%3D502%20width%3D232%29%20%28actual%20time%3D5942.671..21209.531%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D84336%20written%3D124%2C%20local%20hit%3D2068827%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D47930.799%20write%3D1.505%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D32534.94..32547.80%20rows%3D245%20width%3D232%29%20%28actual%20time%3D5942.670..6367.056%20rows%3D197%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%20written%3D122%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10489.172%20write%3D1.431%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D32534.94..32535.55%20rows%3D245%20width%3D185%29%20%28actual%20time%3D5942.642..5990.837%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2069497kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%20written%3D122%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10489.172%20write%3D1.431%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..32525.21%20rows%3D245%20width%3D185%29%20%28actual%20time%3D3.834..5526.120%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cm%20%3D%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%20written%3D122%2C%20local%20hit%3D813629%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10489.172%20write%3D1.431%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..31588.56%20rows%3D738%20width%3D113%29%20%28actual%20time%3D3.809..3558.965%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%20written%3D122%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10489.166%20write%3D1.431%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..31572.50%20rows%3D738%20width%3D42%29%20%28actual%20time%3D3.660..3400.209%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%20written%3D122%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10489.166%20write%3D1.431%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osmf%20osm%20%20%28cost%3D0.00..30498.70%20rows%3D308%20width%3D42%29%20%28actual%20time%3D0.781..3631.234%20rows%3D135605%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20119%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%20written%3D122%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10489.166%20write%3D1.431%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.083..0.083%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.013..0.049%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od%20%20%28cost%3D0.14..0.94%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.004..0.004%20rows%3D1%20loops%3D406814%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D813627%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.006%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D67318.31..67331.81%20rows%3D257%20width%3D232%29%20%28actual%20time%3D14757.926..14842.413%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%20written%3D2%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D37441.627%20write%3D0.074%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D67318.31..67318.96%20rows%3D257%20width%3D178%29%20%28actual%20time%3D14757.905..14766.226%20rows%3D94732%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2016394kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%20written%3D2%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D37441.627%20write%3D0.074%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..67308.03%20rows%3D257%20width%3D178%29%20%28actual%20time%3D65.185..14658.975%20rows%3D94732%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28%28osm_1.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28osm_1.flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%20532866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%20written%3D2%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D37441.627%20write%3D0.074%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..65849.40%20rows%3D1114%20width%3D122%29%20%28actual%20time%3D65.171..12232.663%20rows%3D628518%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.fspr%20%3D%20sd_1.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%20written%3D2%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D37441.627%20write%3D0.074%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..65829.04%20rows%3D1114%20width%3D51%29%20%28actual%20time%3D65.104..11994.997%20rows%3D628518%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%20written%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D37441.627%20write%3D0.074%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20osm_1%20%20%28cost%3D0.00..64717.64%20rows%3D464%20width%3D51%29%20%28actual%20time%3D56.186..12707.976%20rows%3D209506%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2052157%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%20written%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D37441.627%20write%3D0.074%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.055..0.055%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.009..0.031%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od_1%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D628518%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1255196%0A%09%20%20-%3E%20%20HashAggregate%20%20%28cost%3D25.10..27.60%20rows%3D200%20width%3D232%29%20%28actual%20time%3D21210.361..21210.698%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Group%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D84336%20written%3D124%2C%20local%20hit%3D2068827%20read%3D1%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D47930.799%20write%3D1.505%0A%09%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..10.04%20rows%3D502%20width%3D232%29%20%28actual%20time%3D5942.675..21209.793%20rows%3D317%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D84336%20written%3D124%2C%20local%20hit%3D2068827%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D47930.799%20write%3D1.505%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Sort (cost=99922.38..99922.88 rows=200 width=232) (actual time=21211.683..21211.708 rows=317 loops=1)
|
||
Sort Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Sort Method: quicksort Memory: 69kB
|
||
Buffers: shared hit=4 read=84336 written=124, local hit=2068827 read=1
|
||
I/O Timings: read=47930.799 write=1.505
|
||
CTE un
|
||
-> Append (cost=32534.94..99887.14 rows=502 width=232) (actual time=5942.671..21209.531 rows=317 loops=1)
|
||
Buffers: shared hit=1 read=84336 written=124, local hit=2068827 read=1
|
||
I/O Timings: read=47930.799 write=1.505
|
||
-> GroupAggregate (cost=32534.94..32547.80 rows=245 width=232) (actual time=5942.670..6367.056 rows=197 loops=1)
|
||
Group Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Buffers: shared read=26345 written=122, local hit=813629 read=1
|
||
I/O Timings: read=10489.172 write=1.431
|
||
-> Sort (cost=32534.94..32535.55 rows=245 width=185) (actual time=5942.642..5990.837 rows=406814 loops=1)
|
||
Sort Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 69497kB
|
||
Buffers: shared read=26345 written=122, local hit=813629 read=1
|
||
I/O Timings: read=10489.172 write=1.431
|
||
-> Nested Loop (cost=1006.06..32525.21 rows=245 width=185) (actual time=3.834..5526.120 rows=406814 loops=1)
|
||
Join Filter: ((od.cy = 'C'::text) OR (sd.cy = 'C'::text) OR (sd.cm = 'F'::text))
|
||
Buffers: shared read=26345 written=122, local hit=813629 read=1
|
||
I/O Timings: read=10489.172 write=1.431
|
||
-> Hash Left Join (cost=1005.91..31588.56 rows=738 width=113) (actual time=3.809..3558.965 rows=406814 loops=1)
|
||
Hash Cond: (osm.fspr = sd.fspr)
|
||
Buffers: shared read=26345 written=122, local hit=2
|
||
I/O Timings: read=10489.166 write=1.431
|
||
-> Gather (cost=1000.00..31572.50 rows=738 width=42) (actual time=3.660..3400.209 rows=406814 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared read=26345 written=122
|
||
I/O Timings: read=10489.166 write=1.431
|
||
-> Parallel Seq Scan on osmf osm (cost=0.00..30498.70 rows=308 width=42) (actual time=0.781..3631.234 rows=135605 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 119
|
||
Buffers: shared read=26345 written=122
|
||
I/O Timings: read=10489.166 write=1.431
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.083..0.083 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd (cost=0.00..3.74 rows=174 width=108) (actual time=0.013..0.049 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od (cost=0.14..0.94 rows=19 width=80) (actual time=0.004..0.004 rows=1 loops=406814)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=813627 read=1
|
||
I/O Timings: read=0.006
|
||
-> GroupAggregate (cost=67318.31..67331.81 rows=257 width=232) (actual time=14757.926..14842.413 rows=120 loops=1)
|
||
Group Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Buffers: shared hit=1 read=57991 written=2, local hit=1255198
|
||
I/O Timings: read=37441.627 write=0.074
|
||
-> Sort (cost=67318.31..67318.96 rows=257 width=178) (actual time=14757.905..14766.226 rows=94732 loops=1)
|
||
Sort Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 16394kB
|
||
Buffers: shared hit=1 read=57991 written=2, local hit=1255198
|
||
I/O Timings: read=37441.627 write=0.074
|
||
-> Nested Loop (cost=1006.06..67308.03 rows=257 width=178) (actual time=65.185..14658.975 rows=94732 loops=1)
|
||
Join Filter: ((od_1.cy = 'C'::text) OR (sd_1.cy = 'C'::text) OR ((osm_1.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (osm_1.flag = 'REMAINDER'::text)))
|
||
Rows Removed by Join Filter: 532866
|
||
Buffers: shared hit=1 read=57991 written=2, local hit=1255198
|
||
I/O Timings: read=37441.627 write=0.074
|
||
-> Hash Left Join (cost=1005.91..65849.40 rows=1114 width=122) (actual time=65.171..12232.663 rows=628518 loops=1)
|
||
Hash Cond: (osm_1.fspr = sd_1.fspr)
|
||
Buffers: shared hit=1 read=57991 written=2, local hit=2
|
||
I/O Timings: read=37441.627 write=0.074
|
||
-> Gather (cost=1000.00..65829.04 rows=1114 width=51) (actual time=65.104..11994.997 rows=628518 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=1 read=57991 written=2
|
||
I/O Timings: read=37441.627 write=0.074
|
||
-> Parallel Seq Scan on osm osm_1 (cost=0.00..64717.64 rows=464 width=51) (actual time=56.186..12707.976 rows=209506 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 52157
|
||
Buffers: shared hit=1 read=57991 written=2
|
||
I/O Timings: read=37441.627 write=0.074
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.055..0.055 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_1 (cost=0.00..3.74 rows=174 width=108) (actual time=0.009..0.031 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od_1 (cost=0.14..0.93 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=628518)
|
||
Index Cond: ((osm_1.adj_orderdate >= sdat) AND (osm_1.adj_orderdate <= edat))
|
||
Buffers: local hit=1255196
|
||
-> HashAggregate (cost=25.10..27.60 rows=200 width=232) (actual time=21210.361..21210.698 rows=317 loops=1)
|
||
Group Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Buffers: shared hit=1 read=84336 written=124, local hit=2068827 read=1
|
||
I/O Timings: read=47930.799 write=1.505
|
||
-> CTE Scan on un (cost=0.00..10.04 rows=502 width=232) (actual time=5942.675..21209.793 rows=317 loops=1)
|
||
Buffers: shared hit=1 read=84336 written=124, local hit=2068827 read=1
|
||
I/O Timings: read=47930.799 write=1.505
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-5">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>6</td>
|
||
<td>3s112ms</td>
|
||
<td>8s419ms</td>
|
||
<td>4s496ms</td>
|
||
<td>10
|
||
<p><a href="#Anormalized_slowest_queries_details_6" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>44s960ms</td>
|
||
<td id="normalized-slowest-queries-examples-details-rank-6">
|
||
<div id="query-g-6" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>create <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> gld<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>; <span class="kw1">WITH</span> un <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> ? srce <span class="sy0">,</span>od<span class="sy0">.</span>ssyr oseas <span class="sy0">,</span>od<span class="sy0">.</span>sdat odate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr sseas <span class="sy0">,</span>sd<span class="sy0">.</span>sdat sdate <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> om <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> sm <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> oy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_qty <span class="br0">)</span> qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_val_loc <span class="sy0">*</span> r_rate <span class="br0">)</span> sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_cst_loc <span class="sy0">*</span> c_rate <span class="br0">)</span> stdcost <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osmp osm <span class="kw1">INNER</span> <span class="kw1">JOIN</span> gld od <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_orderdate <span class="kw1">BETWEEN</span> od<span class="sy0">.</span>sdat <span class="kw1">AND</span> od<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld sd <span class="kw1">ON</span> osm<span class="sy0">.</span>fspr <span class="sy0">=</span> sd<span class="sy0">.</span>fspr <span class="kw1">WHERE</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>glec<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>fs_line<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">=</span> ? <span class="kw1">AND</span> calc_status <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>all orders <span class="kw1">OR</span> shipments <span class="kw1">FOR</span> the period <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>current year <span class="kw1">TO</span> <span class="kw2">date</span> orders od<span class="sy0">.</span>cy <span class="sy0">=</span> ? <span class="sy0">-</span><span class="sy0">-</span>current year <span class="kw1">TO</span> <span class="kw2">date</span> shipments <span class="kw1">OR</span> sd<span class="sy0">.</span>cy <span class="sy0">=</span> ? <span class="br0">)</span> <span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>open orders sd<span class="sy0">.</span>cm <span class="sy0">=</span> ? <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future fspr <span class="br0">)</span> <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> od<span class="sy0">.</span>ssyr <span class="sy0">,</span>od<span class="sy0">.</span>sdat <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr <span class="sy0">,</span>sd<span class="sy0">.</span>sdat <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">UNION</span> <span class="kw1">ALL</span> <span class="kw1">SELECT</span> ? srce <span class="sy0">,</span>od<span class="sy0">.</span>ssyr oseas <span class="sy0">,</span>od<span class="sy0">.</span>sdat odate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr sseas <span class="sy0">,</span>sd<span class="sy0">.</span>sdat sdate <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> om <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> sm <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> oy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_qty <span class="br0">)</span> qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_val_loc <span class="sy0">*</span> r_rate <span class="br0">)</span> sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_cst_loc <span class="sy0">*</span> c_rate <span class="br0">)</span> stdcost <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm osm <span class="kw1">INNER</span> <span class="kw1">JOIN</span> gld od <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_orderdate <span class="kw1">BETWEEN</span> od<span class="sy0">.</span>sdat <span class="kw1">AND</span> od<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld sd <span class="kw1">ON</span> osm<span class="sy0">.</span>fspr <span class="sy0">=</span> sd<span class="sy0">.</span>fspr <span class="kw1">WHERE</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>fs_line<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">=</span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>glec<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">AND</span> calc_status <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>all <span class="kw1">ORDER</span> <span class="kw1">OR</span> shipments <span class="kw1">FOR</span> the period <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>current year <span class="kw1">TO</span> <span class="kw2">date</span> orders od<span class="sy0">.</span>cy <span class="sy0">=</span> ? <span class="sy0">-</span><span class="sy0">-</span>current year <span class="kw1">TO</span> <span class="kw2">date</span> shipments <span class="kw1">OR</span> sd<span class="sy0">.</span>cy <span class="sy0">=</span> ? <span class="br0">)</span> <span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>open orders <span class="br0">(</span>calc_status <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span> <span class="kw1">AND</span> flag <span class="sy0">=</span> ?<span class="br0">)</span> <span class="br0">)</span> <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> od<span class="sy0">.</span>ssyr <span class="sy0">,</span>od<span class="sy0">.</span>sdat <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr <span class="sy0">,</span>sd<span class="sy0">.</span>sdat <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="br0">)</span> <span class="kw1">SELECT</span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>qty<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>stdcost<span class="br0">)</span> "cost" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>sales<span class="br0">)</span> sales <span class="kw1">FROM</span> un <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy ;
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Anormalized_slowest_queries_details_6" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #6</small></h3>
|
||
<div id="normalized_slowest_queries_details_6" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Anormalized_slowest_queries_details_6').on("shown.bs.collapse",function(){
|
||
var bars_80 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',10],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_80 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',4496],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var normalized_slowest_queries_details_6 = create_bargraph('normalized_slowest_queries_details_6', '', 'Queries', [ bars_80, lines_80 ], 'Avg. duration');
|
||
});
|
||
create_download_button(80, 'btn btn-default btn-xs');
|
||
add_download_button_event(80, 'normalized_slowest_queries_details_6');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 18</td><td>09</td><td>10</td><td>44s960ms</td><td>4s496ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Anormalized_slowest_queries_details_6">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-6">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-6">User(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="normalized-slowest-queries-user-involved-rank-6" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> report - <b>Total duration:</b> 16s549ms - <b>Times executed:</b> 2 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-6">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="normalized-slowest-queries-app-involved-rank-6" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> [unknown] - <b>Total duration:</b> 16s549ms - <b>Times executed:</b> 2 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-app-involved-rank-6">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="normalized-slowest-queries-examples-rank-6" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-g-6-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMP OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-18 09:26:51
|
||
<b>Duration:</b> 8s419ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> report
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> [unknown]
|
||
</pre>
|
||
<div id="query-g-explain-6-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Sort%20%20%28cost%3D126971.98..126972.48%20rows%3D200%20width%3D232%29%20%28actual%20time%3D8418.853..8418.865%20rows%3D323%20loops%3D1%29%0A%09%20%20Sort%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2070kB%0A%09%20%20Buffers%3A%20shared%20hit%3D5%20read%3D108400%2C%20local%20hit%3D2604991%20read%3D1%0A%09%20%20I%2FO%20Timings%3A%20read%3D3855.140%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D59568.08..126929.73%20rows%3D642%20width%3D232%29%20%28actual%20time%3D4498.390..8417.556%20rows%3D323%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D108400%2C%20local%20hit%3D2604991%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3855.140%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D59568.08..59588.30%20rows%3D385%20width%3D232%29%20%28actual%20time%3D4498.389..5166.228%20rows%3D203%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D50409%2C%20local%20hit%3D1349793%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2445.383%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D59568.08..59569.05%20rows%3D385%20width%3D182%29%20%28actual%20time%3D4498.367..4585.150%20rows%3D640948%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20114710kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D50409%2C%20local%20hit%3D1349793%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2445.383%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..59551.55%20rows%3D385%20width%3D182%29%20%28actual%20time%3D1.902..3949.029%20rows%3D640948%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cm%20%3D%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%2033948%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D50409%2C%20local%20hit%3D1349793%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2445.383%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..58085.96%20rows%3D1162%20width%3D110%29%20%28actual%20time%3D1.882..1591.245%20rows%3D674964%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D50409%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2445.379%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..58064.06%20rows%3D1162%20width%3D39%29%20%28actual%20time%3D1.801..1402.607%20rows%3D674964%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D50409%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2445.379%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osmp%20osm%20%20%28cost%3D0.00..56947.86%20rows%3D484%20width%3D39%29%20%28actual%20time%3D6.288..971.309%20rows%3D224988%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%207699%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D50409%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2445.379%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.066..0.066%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.009..0.036%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D674964%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1349791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.005%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D67318.31..67331.81%20rows%3D257%20width%3D232%29%20%28actual%20time%3D3164.534..3251.283%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1409.756%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D67318.31..67318.96%20rows%3D257%20width%3D178%29%20%28actual%20time%3D3164.500..3172.177%20rows%3D94732%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2016394kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1409.756%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..67308.03%20rows%3D257%20width%3D178%29%20%28actual%20time%3D8.854..3088.890%20rows%3D94732%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28%28osm_1.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28osm_1.flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%20532866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1409.756%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..65849.40%20rows%3D1114%20width%3D122%29%20%28actual%20time%3D8.837..1127.273%20rows%3D628518%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.fspr%20%3D%20sd_1.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1409.756%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..65829.04%20rows%3D1114%20width%3D51%29%20%28actual%20time%3D8.721..913.379%20rows%3D628518%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1409.756%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20osm_1%20%20%28cost%3D0.00..64717.64%20rows%3D464%20width%3D51%29%20%28actual%20time%3D5.247..636.800%20rows%3D209506%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2052157%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1%20read%3D57991%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1409.756%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.068..0.068%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.018..0.042%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od_1%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D628518%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1255196%0A%09%20%20-%3E%20%20HashAggregate%20%20%28cost%3D32.10..34.60%20rows%3D200%20width%3D232%29%20%28actual%20time%3D8418.331..8418.469%20rows%3D323%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Group%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D108400%2C%20local%20hit%3D2604991%20read%3D1%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3855.140%0A%09%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..12.84%20rows%3D642%20width%3D232%29%20%28actual%20time%3D4498.393..8417.842%20rows%3D323%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D2%20read%3D108400%2C%20local%20hit%3D2604991%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3855.140%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Sort (cost=126971.98..126972.48 rows=200 width=232) (actual time=8418.853..8418.865 rows=323 loops=1)
|
||
Sort Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Sort Method: quicksort Memory: 70kB
|
||
Buffers: shared hit=5 read=108400, local hit=2604991 read=1
|
||
I/O Timings: read=3855.140
|
||
CTE un
|
||
-> Append (cost=59568.08..126929.73 rows=642 width=232) (actual time=4498.390..8417.556 rows=323 loops=1)
|
||
Buffers: shared hit=2 read=108400, local hit=2604991 read=1
|
||
I/O Timings: read=3855.140
|
||
-> GroupAggregate (cost=59568.08..59588.30 rows=385 width=232) (actual time=4498.389..5166.228 rows=203 loops=1)
|
||
Group Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Buffers: shared hit=1 read=50409, local hit=1349793 read=1
|
||
I/O Timings: read=2445.383
|
||
-> Sort (cost=59568.08..59569.05 rows=385 width=182) (actual time=4498.367..4585.150 rows=640948 loops=1)
|
||
Sort Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 114710kB
|
||
Buffers: shared hit=1 read=50409, local hit=1349793 read=1
|
||
I/O Timings: read=2445.383
|
||
-> Nested Loop (cost=1006.06..59551.55 rows=385 width=182) (actual time=1.902..3949.029 rows=640948 loops=1)
|
||
Join Filter: ((od.cy = 'C'::text) OR (sd.cy = 'C'::text) OR (sd.cm = 'F'::text))
|
||
Rows Removed by Join Filter: 33948
|
||
Buffers: shared hit=1 read=50409, local hit=1349793 read=1
|
||
I/O Timings: read=2445.383
|
||
-> Hash Left Join (cost=1005.91..58085.96 rows=1162 width=110) (actual time=1.882..1591.245 rows=674964 loops=1)
|
||
Hash Cond: (osm.fspr = sd.fspr)
|
||
Buffers: shared hit=1 read=50409, local hit=2
|
||
I/O Timings: read=2445.379
|
||
-> Gather (cost=1000.00..58064.06 rows=1162 width=39) (actual time=1.801..1402.607 rows=674964 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=1 read=50409
|
||
I/O Timings: read=2445.379
|
||
-> Parallel Seq Scan on osmp osm (cost=0.00..56947.86 rows=484 width=39) (actual time=6.288..971.309 rows=224988 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 7699
|
||
Buffers: shared hit=1 read=50409
|
||
I/O Timings: read=2445.379
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.066..0.066 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd (cost=0.00..3.74 rows=174 width=108) (actual time=0.009..0.036 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od (cost=0.14..0.93 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=674964)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=1349791 read=1
|
||
I/O Timings: read=0.005
|
||
-> GroupAggregate (cost=67318.31..67331.81 rows=257 width=232) (actual time=3164.534..3251.283 rows=120 loops=1)
|
||
Group Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Buffers: shared hit=1 read=57991, local hit=1255198
|
||
I/O Timings: read=1409.756
|
||
-> Sort (cost=67318.31..67318.96 rows=257 width=178) (actual time=3164.500..3172.177 rows=94732 loops=1)
|
||
Sort Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 16394kB
|
||
Buffers: shared hit=1 read=57991, local hit=1255198
|
||
I/O Timings: read=1409.756
|
||
-> Nested Loop (cost=1006.06..67308.03 rows=257 width=178) (actual time=8.854..3088.890 rows=94732 loops=1)
|
||
Join Filter: ((od_1.cy = 'C'::text) OR (sd_1.cy = 'C'::text) OR ((osm_1.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (osm_1.flag = 'REMAINDER'::text)))
|
||
Rows Removed by Join Filter: 532866
|
||
Buffers: shared hit=1 read=57991, local hit=1255198
|
||
I/O Timings: read=1409.756
|
||
-> Hash Left Join (cost=1005.91..65849.40 rows=1114 width=122) (actual time=8.837..1127.273 rows=628518 loops=1)
|
||
Hash Cond: (osm_1.fspr = sd_1.fspr)
|
||
Buffers: shared hit=1 read=57991, local hit=2
|
||
I/O Timings: read=1409.756
|
||
-> Gather (cost=1000.00..65829.04 rows=1114 width=51) (actual time=8.721..913.379 rows=628518 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=1 read=57991
|
||
I/O Timings: read=1409.756
|
||
-> Parallel Seq Scan on osm osm_1 (cost=0.00..64717.64 rows=464 width=51) (actual time=5.247..636.800 rows=209506 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 52157
|
||
Buffers: shared hit=1 read=57991
|
||
I/O Timings: read=1409.756
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.068..0.068 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_1 (cost=0.00..3.74 rows=174 width=108) (actual time=0.018..0.042 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od_1 (cost=0.14..0.93 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=628518)
|
||
Index Cond: ((osm_1.adj_orderdate >= sdat) AND (osm_1.adj_orderdate <= edat))
|
||
Buffers: local hit=1255196
|
||
-> HashAggregate (cost=32.10..34.60 rows=200 width=232) (actual time=8418.331..8418.469 rows=323 loops=1)
|
||
Group Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Buffers: shared hit=2 read=108400, local hit=2604991 read=1
|
||
I/O Timings: read=3855.140
|
||
-> CTE Scan on un (cost=0.00..12.84 rows=642 width=232) (actual time=4498.393..8417.842 rows=323 loops=1)
|
||
Buffers: shared hit=2 read=108400, local hit=2604991 read=1
|
||
I/O Timings: read=3855.140
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-g-6-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMP OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-18 09:27:40
|
||
<b>Duration:</b> 8s130ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> report
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> [unknown]
|
||
</pre>
|
||
<div id="query-g-explain-6-2" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Sort%20%20%28cost%3D126971.98..126972.48%20rows%3D200%20width%3D232%29%20%28actual%20time%3D8129.861..8129.875%20rows%3D323%20loops%3D1%29%0A%09%20%20Sort%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2070kB%0A%09%20%20Buffers%3A%20shared%20hit%3D239%20read%3D108163%2C%20local%20hit%3D2604991%20read%3D1%0A%09%20%20I%2FO%20Timings%3A%20read%3D247.658%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D59568.08..126929.73%20rows%3D642%20width%3D232%29%20%28actual%20time%3D4183.799..8128.440%20rows%3D323%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D239%20read%3D108163%2C%20local%20hit%3D2604991%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D247.658%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D59568.08..59588.30%20rows%3D385%20width%3D232%29%20%28actual%20time%3D4183.798..4870.543%20rows%3D203%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D113%20read%3D50297%2C%20local%20hit%3D1349793%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D119.690%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D59568.08..59569.05%20rows%3D385%20width%3D182%29%20%28actual%20time%3D4183.776..4278.632%20rows%3D640948%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20114710kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D113%20read%3D50297%2C%20local%20hit%3D1349793%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D119.690%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..59551.55%20rows%3D385%20width%3D182%29%20%28actual%20time%3D1.055..3609.932%20rows%3D640948%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd.cm%20%3D%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%2033948%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D113%20read%3D50297%2C%20local%20hit%3D1349793%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D119.690%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..58085.96%20rows%3D1162%20width%3D110%29%20%28actual%20time%3D1.036..1145.096%20rows%3D674964%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D113%20read%3D50297%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D119.684%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..58064.06%20rows%3D1162%20width%3D39%29%20%28actual%20time%3D0.966..952.386%20rows%3D674964%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D113%20read%3D50297%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D119.684%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osmp%20osm%20%20%28cost%3D0.00..56947.86%20rows%3D484%20width%3D39%29%20%28actual%20time%3D0.027..208.907%20rows%3D224988%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%207699%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D113%20read%3D50297%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D119.684%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.062..0.062%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.007..0.035%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D674964%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1349791%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.006%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D67318.31..67331.81%20rows%3D257%20width%3D232%29%20%28actual%20time%3D3170.956..3257.844%20rows%3D120%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D126%20read%3D57866%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D127.968%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D67318.31..67318.96%20rows%3D257%20width%3D178%29%20%28actual%20time%3D3170.933..3179.265%20rows%3D94732%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2016394kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D126%20read%3D57866%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D127.968%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1006.06..67308.03%20rows%3D257%20width%3D178%29%20%28actual%20time%3D1.140..3098.754%20rows%3D94732%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28od_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28sd_1.cy%20%3D%20%27C%27%3A%3Atext%29%20OR%20%28%28osm_1.calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28osm_1.flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%20532866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D126%20read%3D57866%2C%20local%20hit%3D1255198%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D127.968%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D1005.91..65849.40%20rows%3D1114%20width%3D122%29%20%28actual%20time%3D1.106..1185.199%20rows%3D628518%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm_1.fspr%20%3D%20sd_1.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D126%20read%3D57866%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D127.968%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..65829.04%20rows%3D1114%20width%3D51%29%20%28actual%20time%3D1.044..983.106%20rows%3D628518%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D126%20read%3D57866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D127.968%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20osm_1%20%20%28cost%3D0.00..64717.64%20rows%3D464%20width%3D51%29%20%28actual%20time%3D0.044..218.820%20rows%3D209506%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2052157%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D126%20read%3D57866%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D127.968%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D3.74..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.052..0.052%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2018kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D108%29%20%28actual%20time%3D0.006..0.029%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od_1%20%20%28cost%3D0.14..0.93%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.003..0.003%20rows%3D1%20loops%3D628518%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D1255196%0A%09%20%20-%3E%20%20HashAggregate%20%20%28cost%3D32.10..34.60%20rows%3D200%20width%3D232%29%20%28actual%20time%3D8129.291..8129.422%20rows%3D323%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Group%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D239%20read%3D108163%2C%20local%20hit%3D2604991%20read%3D1%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D247.658%0A%09%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..12.84%20rows%3D642%20width%3D232%29%20%28actual%20time%3D4183.801..8128.793%20rows%3D323%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D239%20read%3D108163%2C%20local%20hit%3D2604991%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D247.658%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Sort (cost=126971.98..126972.48 rows=200 width=232) (actual time=8129.861..8129.875 rows=323 loops=1)
|
||
Sort Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Sort Method: quicksort Memory: 70kB
|
||
Buffers: shared hit=239 read=108163, local hit=2604991 read=1
|
||
I/O Timings: read=247.658
|
||
CTE un
|
||
-> Append (cost=59568.08..126929.73 rows=642 width=232) (actual time=4183.799..8128.440 rows=323 loops=1)
|
||
Buffers: shared hit=239 read=108163, local hit=2604991 read=1
|
||
I/O Timings: read=247.658
|
||
-> GroupAggregate (cost=59568.08..59588.30 rows=385 width=232) (actual time=4183.798..4870.543 rows=203 loops=1)
|
||
Group Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Buffers: shared hit=113 read=50297, local hit=1349793 read=1
|
||
I/O Timings: read=119.690
|
||
-> Sort (cost=59568.08..59569.05 rows=385 width=182) (actual time=4183.776..4278.632 rows=640948 loops=1)
|
||
Sort Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 114710kB
|
||
Buffers: shared hit=113 read=50297, local hit=1349793 read=1
|
||
I/O Timings: read=119.690
|
||
-> Nested Loop (cost=1006.06..59551.55 rows=385 width=182) (actual time=1.055..3609.932 rows=640948 loops=1)
|
||
Join Filter: ((od.cy = 'C'::text) OR (sd.cy = 'C'::text) OR (sd.cm = 'F'::text))
|
||
Rows Removed by Join Filter: 33948
|
||
Buffers: shared hit=113 read=50297, local hit=1349793 read=1
|
||
I/O Timings: read=119.690
|
||
-> Hash Left Join (cost=1005.91..58085.96 rows=1162 width=110) (actual time=1.036..1145.096 rows=674964 loops=1)
|
||
Hash Cond: (osm.fspr = sd.fspr)
|
||
Buffers: shared hit=113 read=50297, local hit=2
|
||
I/O Timings: read=119.684
|
||
-> Gather (cost=1000.00..58064.06 rows=1162 width=39) (actual time=0.966..952.386 rows=674964 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=113 read=50297
|
||
I/O Timings: read=119.684
|
||
-> Parallel Seq Scan on osmp osm (cost=0.00..56947.86 rows=484 width=39) (actual time=0.027..208.907 rows=224988 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 7699
|
||
Buffers: shared hit=113 read=50297
|
||
I/O Timings: read=119.684
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.062..0.062 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd (cost=0.00..3.74 rows=174 width=108) (actual time=0.007..0.035 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od (cost=0.14..0.93 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=674964)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=1349791 read=1
|
||
I/O Timings: read=0.006
|
||
-> GroupAggregate (cost=67318.31..67331.81 rows=257 width=232) (actual time=3170.956..3257.844 rows=120 loops=1)
|
||
Group Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Buffers: shared hit=126 read=57866, local hit=1255198
|
||
I/O Timings: read=127.968
|
||
-> Sort (cost=67318.31..67318.96 rows=257 width=178) (actual time=3170.933..3179.265 rows=94732 loops=1)
|
||
Sort Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 16394kB
|
||
Buffers: shared hit=126 read=57866, local hit=1255198
|
||
I/O Timings: read=127.968
|
||
-> Nested Loop (cost=1006.06..67308.03 rows=257 width=178) (actual time=1.140..3098.754 rows=94732 loops=1)
|
||
Join Filter: ((od_1.cy = 'C'::text) OR (sd_1.cy = 'C'::text) OR ((osm_1.calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (osm_1.flag = 'REMAINDER'::text)))
|
||
Rows Removed by Join Filter: 532866
|
||
Buffers: shared hit=126 read=57866, local hit=1255198
|
||
I/O Timings: read=127.968
|
||
-> Hash Left Join (cost=1005.91..65849.40 rows=1114 width=122) (actual time=1.106..1185.199 rows=628518 loops=1)
|
||
Hash Cond: (osm_1.fspr = sd_1.fspr)
|
||
Buffers: shared hit=126 read=57866, local hit=2
|
||
I/O Timings: read=127.968
|
||
-> Gather (cost=1000.00..65829.04 rows=1114 width=51) (actual time=1.044..983.106 rows=628518 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=126 read=57866
|
||
I/O Timings: read=127.968
|
||
-> Parallel Seq Scan on osm osm_1 (cost=0.00..64717.64 rows=464 width=51) (actual time=0.044..218.820 rows=209506 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 52157
|
||
Buffers: shared hit=126 read=57866
|
||
I/O Timings: read=127.968
|
||
-> Hash (cost=3.74..3.74 rows=174 width=108) (actual time=0.052..0.052 rows=174 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 18kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd_1 (cost=0.00..3.74 rows=174 width=108) (actual time=0.006..0.029 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od_1 (cost=0.14..0.93 rows=19 width=80) (actual time=0.003..0.003 rows=1 loops=628518)
|
||
Index Cond: ((osm_1.adj_orderdate >= sdat) AND (osm_1.adj_orderdate <= edat))
|
||
Buffers: local hit=1255196
|
||
-> HashAggregate (cost=32.10..34.60 rows=200 width=232) (actual time=8129.291..8129.422 rows=323 loops=1)
|
||
Group Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Buffers: shared hit=239 read=108163, local hit=2604991 read=1
|
||
I/O Timings: read=247.658
|
||
-> CTE Scan on un (cost=0.00..12.84 rows=642 width=232) (actual time=4183.801..8128.793 rows=323 loops=1)
|
||
Buffers: shared hit=239 read=108163, local hit=2604991 read=1
|
||
I/O Timings: read=247.658
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-g-6-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMP OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL ORDERS <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span>
|
||
<span class="kw1">AND</span> <span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>ALL <span class="kw1">ORDER</span> <span class="kw1">OR</span> SHIPMENTS <span class="kw1">FOR</span> THE PERIOD
|
||
<span class="br0">(</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> ORDERS
|
||
OD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span> <span class="sy0">-</span><span class="sy0">-</span>CURRENT YEAR <span class="kw1">TO</span> <span class="kw2">date</span> SHIPMENTS
|
||
<span class="kw1">OR</span> SD<span class="sy0">.</span>CY <span class="sy0">=</span> <span class="st0">'C'</span><span class="br0">)</span>
|
||
<span class="kw1">OR</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="br0">(</span>CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span><span class="br0">)</span><span class="br0">)</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-18 09:26:47
|
||
<b>Duration:</b> 4s142ms
|
||
</pre>
|
||
<div id="query-g-explain-6-3" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Parallel%20Seq%20Scan%20on%20osmp%20osm%20%20%28cost%3D0.00..56947.86%20rows%3D484%20width%3D39%29%20%28actual%20time%3D9.803..884.885%20rows%3D131112%20loops%3D1%29%0A%09%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20Rows%20Removed%20by%20Filter%3A%205198%0A%09%20%20Buffers%3A%20shared%20read%3D10827%0A%09%20%20I%2FO%20Timings%3A%20read%3D792.174%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Parallel Seq Scan on osmp osm (cost=0.00..56947.86 rows=484 width=39) (actual time=9.803..884.885 rows=131112 loops=1)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 5198
|
||
Buffers: shared read=10827
|
||
I/O Timings: read=792.174
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-6">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>7</td>
|
||
<td>2s707ms</td>
|
||
<td>2s707ms</td>
|
||
<td>2s707ms</td>
|
||
<td>1
|
||
<p><a href="#Anormalized_slowest_queries_details_7" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>2s707ms</td>
|
||
<td id="normalized-slowest-queries-examples-details-rank-7">
|
||
<div id="query-g-7" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">CREATE</span> temp <span class="kw1">TABLE</span> gld <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">WITH</span> seg <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
glec<span class="sy0">,</span>
|
||
segm
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">VALUES</span> <span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>?<span class="sy0">,</span>
|
||
?<span class="br0">)</span><span class="br0">)</span> x <span class="br0">(</span>glec<span class="sy0">,</span>
|
||
segm<span class="br0">)</span><span class="br0">)</span><span class="sy0">,</span>
|
||
ord_cutoff <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw2">min</span><span class="br0">(</span>adj_orderdate<span class="br0">)</span> fc_odat
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osmp
|
||
<span class="kw1">WHERE</span>
|
||
iter <span class="sy0"><</span><span class="sy0">></span> ?
|
||
<span class="kw1">AND</span> <span class="kw2">version</span> <span class="sy0">=</span> ?
|
||
<span class="kw1">AND</span> adj_orderdate <span class="sy0">></span><span class="sy0">=</span> ?<span class="br0">)</span><span class="sy0">,</span> sales_cutoff <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw2">max</span><span class="br0">(</span>fspr<span class="br0">)</span> max_fspr
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm<span class="br0">)</span><span class="sy0">,</span>
|
||
gld <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
n1comp comp<span class="sy0">,</span>
|
||
n1ccyy fsyr<span class="sy0">,</span>
|
||
kpmaxp perds<span class="sy0">,</span>
|
||
n1fspp perd<span class="sy0">,</span>
|
||
<span class="kw2">to_char</span><span class="br0">(</span>n1fsyp<span class="sy0">,</span> ?<span class="br0">)</span> fspr<span class="sy0">,</span>
|
||
n1sd01 sdat<span class="sy0">,</span>
|
||
n1ed01 edat<span class="sy0">,</span>
|
||
<span class="kw2">to_char</span><span class="br0">(</span>n1ed01<span class="sy0">,</span> ?<span class="br0">)</span> capr<span class="sy0">,</span>
|
||
n1ed01 <span class="sy0">-</span> n1sd01 <span class="sy0">+</span> ? ndays<span class="sy0">,</span>
|
||
<span class="kw1">CASE</span> <span class="kw1">WHEN</span> <span class="kw2">extract</span><span class="br0">(</span>month <span class="kw1">FROM</span> n1ed01<span class="br0">)</span> <span class="sy0">></span><span class="sy0">=</span> ? <span class="kw1">THEN</span>
|
||
<span class="kw2">extract</span><span class="br0">(</span>year <span class="kw1">FROM</span> n1ed01<span class="br0">)</span> <span class="sy0">+</span> ?
|
||
<span class="kw1">ELSE</span>
|
||
<span class="kw2">extract</span><span class="br0">(</span>year <span class="kw1">FROM</span> n1ed01<span class="br0">)</span>
|
||
<span class="kw1">END</span> ssyr<span class="sy0">,</span>
|
||
<span class="kw2">to_char</span><span class="br0">(</span>
|
||
<span class="kw1">CASE</span> <span class="kw1">WHEN</span> <span class="kw2">extract</span><span class="br0">(</span>month <span class="kw1">FROM</span> n1ed01<span class="br0">)</span> <span class="sy0">></span><span class="sy0">=</span> ? <span class="kw1">THEN</span>
|
||
<span class="kw2">extract</span><span class="br0">(</span>month <span class="kw1">FROM</span> n1ed01<span class="br0">)</span> ?
|
||
<span class="kw1">ELSE</span>
|
||
<span class="kw2">extract</span><span class="br0">(</span>month <span class="kw1">FROM</span> n1ed01<span class="br0">)</span> <span class="sy0">+</span> ?
|
||
<span class="kw1">END</span><span class="sy0">,</span> ?<span class="br0">)</span> sspr <span class="sy0">-</span><span class="sy0">-</span>if the period <span class="kw2">date</span> <span class="kw1">IS</span> less than the <span class="kw1">FIRST</span> forecasted <span class="kw1">ORDER</span> it <span class="kw1">IS</span> actual <span class="kw1">FROM</span> perspective of the plan <span class="sy0">,</span>case <span class="kw1">WHEN</span> max_fspr <span class="sy0">=</span> <span class="kw2">to_char</span><span class="br0">(</span>n1fsyp<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> <span class="kw1">CASE</span> <span class="kw1">WHEN</span> sales_cutoff<span class="sy0">.</span>max_fspr <span class="sy0">></span> <span class="kw2">to_char</span><span class="br0">(</span>n1fsyp<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> ? <span class="kw1">END</span> <span class="kw1">END</span> cm <span class="sy0">,</span>case <span class="kw1">WHEN</span> max_fspr <span class="sy0">=</span> <span class="kw2">to_char</span><span class="br0">(</span>n1fsyp<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> <span class="kw1">CASE</span> <span class="kw1">WHEN</span> sales_cutoff<span class="sy0">.</span>max_fspr <span class="sy0">></span> <span class="kw2">to_char</span><span class="br0">(</span>n1fsyp<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">THEN</span> <span class="kw1">CASE</span> <span class="kw1">WHEN</span> <span class="kw2">substr</span><span class="br0">(</span>sales_cutoff<span class="sy0">.</span>max_fspr<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">></span> <span class="kw2">substr</span><span class="br0">(</span><span class="kw2">to_char</span><span class="br0">(</span>n1fsyp<span class="sy0">,</span>?<span class="br0">)</span><span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">THEN</span> ? <span class="kw1">ELSE</span> ? <span class="kw1">END</span> <span class="kw1">ELSE</span> ? <span class="kw1">END</span> <span class="kw1">END</span> cy <span class="kw1">FROM</span> lgdat<span class="sy0">.</span>gldatref <span class="kw1">INNER</span> <span class="kw1">JOIN</span> lgdat<span class="sy0">.</span>gldate <span class="kw1">ON</span> kpcomp <span class="sy0">=</span> n1comp <span class="kw1">AND</span> kpccyy <span class="sy0">=</span> n1ccyy <span class="kw1">CROSS</span> <span class="kw1">JOIN</span> ord_cutoff <span class="kw1">CROSS</span> <span class="kw1">JOIN</span> sales_cutoff <span class="kw1">WHERE</span> n1comp <span class="sy0">=</span> ? <span class="sy0">-</span><span class="sy0">-</span>and digits<span class="br0">(</span>n1fsyp<span class="br0">)</span> <span class="sy0">=</span> ? <span class="br0">)</span> <span class="kw1">SELECT</span> <span class="sy0">*</span> <span class="kw1">FROM</span> gld <span class="br0">)</span> ;
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Anormalized_slowest_queries_details_7" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #7</small></h3>
|
||
<div id="normalized_slowest_queries_details_7" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Anormalized_slowest_queries_details_7').on("shown.bs.collapse",function(){
|
||
var bars_81 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',1],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_81 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',2707],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var normalized_slowest_queries_details_7 = create_bargraph('normalized_slowest_queries_details_7', '', 'Queries', [ bars_81, lines_81 ], 'Avg. duration');
|
||
});
|
||
create_download_button(81, 'btn btn-default btn-xs');
|
||
add_download_button_event(81, 'normalized_slowest_queries_details_7');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>17</td><td>1</td><td>2s707ms</td><td>2s707ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Anormalized_slowest_queries_details_7">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-7">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-7">User(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="normalized-slowest-queries-user-involved-rank-7" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> report - <b>Total duration:</b> 2s707ms - <b>Times executed:</b> 1 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-7">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="normalized-slowest-queries-app-involved-rank-7" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> [unknown] - <b>Total duration:</b> 2s707ms - <b>Times executed:</b> 1 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-app-involved-rank-7">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="normalized-slowest-queries-examples-rank-7" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-g-7-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i> <span class="kw1">CREATE</span> TEMP <span class="kw1">TABLE</span> GLD <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">WITH</span> SEG <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
GLEC<span class="sy0">,</span>
|
||
SEGM
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">VALUES</span> <span class="br0">(</span><span class="st0">'1CU'</span><span class="sy0">,</span>
|
||
<span class="st0">'Retail'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'1GR'</span><span class="sy0">,</span>
|
||
<span class="st0">'Greenhouse'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'1NU'</span><span class="sy0">,</span>
|
||
<span class="st0">'Nursery'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'1RE'</span><span class="sy0">,</span>
|
||
<span class="st0">'Retail'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'2WI'</span><span class="sy0">,</span>
|
||
<span class="st0">'Greenhouse'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'3BM'</span><span class="sy0">,</span>
|
||
<span class="st0">'Other'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'3CO'</span><span class="sy0">,</span>
|
||
<span class="st0">'Other'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'3PE'</span><span class="sy0">,</span>
|
||
<span class="st0">'Other'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'3PP'</span><span class="sy0">,</span>
|
||
<span class="st0">'Other'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'4CO'</span><span class="sy0">,</span>
|
||
<span class="st0">'Other'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'4RA'</span><span class="sy0">,</span>
|
||
<span class="st0">'Other'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'9MI'</span><span class="sy0">,</span>
|
||
<span class="st0">'Other'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'9SA'</span><span class="sy0">,</span>
|
||
<span class="st0">'Other'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'9TO'</span><span class="sy0">,</span>
|
||
<span class="st0">'Other'</span><span class="br0">)</span><span class="br0">)</span> X <span class="br0">(</span>GLEC<span class="sy0">,</span>
|
||
SEGM<span class="br0">)</span><span class="br0">)</span><span class="sy0">,</span>
|
||
ORD_CUTOFF <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw2">min</span><span class="br0">(</span>ADJ_ORDERDATE<span class="br0">)</span> FC_ODAT
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMP
|
||
<span class="kw1">WHERE</span>
|
||
ITER <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'Open Orders'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">version</span> <span class="sy0">=</span> <span class="st0">'b19'</span>
|
||
<span class="kw1">AND</span> ADJ_ORDERDATE <span class="sy0">></span><span class="sy0">=</span> <span class="st0">'2018-06-01'</span><span class="br0">)</span><span class="sy0">,</span> SALES_CUTOFF <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw2">max</span><span class="br0">(</span>FSPR<span class="br0">)</span> MAX_FSPR
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM<span class="br0">)</span><span class="sy0">,</span>
|
||
GLD <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
N1COMP COMP<span class="sy0">,</span>
|
||
N1CCYY FSYR<span class="sy0">,</span>
|
||
KPMAXP PERDS<span class="sy0">,</span>
|
||
N1FSPP PERD<span class="sy0">,</span>
|
||
<span class="kw2">to_char</span><span class="br0">(</span>N1FSYP<span class="sy0">,</span> <span class="st0">'FM0000'</span><span class="br0">)</span> FSPR<span class="sy0">,</span>
|
||
N1SD01 SDAT<span class="sy0">,</span>
|
||
N1ED01 EDAT<span class="sy0">,</span>
|
||
<span class="kw2">to_char</span><span class="br0">(</span>N1ED01<span class="sy0">,</span> <span class="st0">'yymm'</span><span class="br0">)</span> CAPR<span class="sy0">,</span>
|
||
N1ED01 <span class="sy0">-</span> N1SD01 <span class="sy0">+</span> <span class="nu0">1</span> NDAYS<span class="sy0">,</span>
|
||
<span class="kw1">CASE</span> <span class="kw1">WHEN</span> <span class="kw2">extract</span><span class="br0">(</span>MONTH <span class="kw1">FROM</span> N1ED01<span class="br0">)</span> <span class="sy0">></span><span class="sy0">=</span> <span class="nu0">6</span> <span class="kw1">THEN</span>
|
||
<span class="kw2">extract</span><span class="br0">(</span>YEAR <span class="kw1">FROM</span> N1ED01<span class="br0">)</span> <span class="sy0">+</span> <span class="nu0">1</span>
|
||
<span class="kw1">ELSE</span>
|
||
<span class="kw2">extract</span><span class="br0">(</span>YEAR <span class="kw1">FROM</span> N1ED01<span class="br0">)</span>
|
||
<span class="kw1">END</span> SSYR<span class="sy0">,</span>
|
||
<span class="kw2">to_char</span><span class="br0">(</span>
|
||
<span class="kw1">CASE</span> <span class="kw1">WHEN</span> <span class="kw2">extract</span><span class="br0">(</span>MONTH <span class="kw1">FROM</span> N1ED01<span class="br0">)</span> <span class="sy0">></span><span class="sy0">=</span> <span class="nu0">6</span> <span class="kw1">THEN</span>
|
||
<span class="kw2">extract</span><span class="br0">(</span>MONTH <span class="kw1">FROM</span> N1ED01<span class="br0">)</span> <span class="sy0">-</span> <span class="nu0">5</span>
|
||
<span class="kw1">ELSE</span>
|
||
<span class="kw2">extract</span><span class="br0">(</span>MONTH <span class="kw1">FROM</span> N1ED01<span class="br0">)</span> <span class="sy0">+</span> <span class="nu0">7</span>
|
||
<span class="kw1">END</span><span class="sy0">,</span> <span class="st0">'00'</span><span class="br0">)</span> SSPR <span class="sy0">-</span><span class="sy0">-</span>if the period <span class="kw2">date</span> <span class="kw1">IS</span> less than the <span class="kw1">FIRST</span> forecasted <span class="kw1">ORDER</span> it <span class="kw1">IS</span> actual <span class="kw1">FROM</span> perspective of the plan
|
||
<span class="sy0">,</span>
|
||
<span class="kw1">CASE</span> <span class="kw1">WHEN</span> MAX_FSPR <span class="sy0">=</span> <span class="kw2">to_char</span><span class="br0">(</span>N1FSYP<span class="sy0">,</span> <span class="st0">'FM0000'</span><span class="br0">)</span> <span class="kw1">THEN</span>
|
||
<span class="st0">'C'</span>
|
||
<span class="kw1">ELSE</span>
|
||
<span class="kw1">CASE</span> <span class="kw1">WHEN</span> SALES_CUTOFF<span class="sy0">.</span>MAX_FSPR <span class="sy0">></span> <span class="kw2">to_char</span><span class="br0">(</span>N1FSYP<span class="sy0">,</span> <span class="st0">'FM0000'</span><span class="br0">)</span> <span class="kw1">THEN</span>
|
||
<span class="st0">'P'</span>
|
||
<span class="kw1">ELSE</span>
|
||
<span class="st0">'F'</span>
|
||
<span class="kw1">END</span>
|
||
<span class="kw1">END</span> CM<span class="sy0">,</span>
|
||
<span class="kw1">CASE</span> <span class="kw1">WHEN</span> MAX_FSPR <span class="sy0">=</span> <span class="kw2">to_char</span><span class="br0">(</span>N1FSYP<span class="sy0">,</span> <span class="st0">'FM0000'</span><span class="br0">)</span> <span class="kw1">THEN</span>
|
||
<span class="st0">'C'</span>
|
||
<span class="kw1">ELSE</span>
|
||
<span class="kw1">CASE</span> <span class="kw1">WHEN</span> SALES_CUTOFF<span class="sy0">.</span>MAX_FSPR <span class="sy0">></span> <span class="kw2">to_char</span><span class="br0">(</span>N1FSYP<span class="sy0">,</span> <span class="st0">'FM0000'</span><span class="br0">)</span> <span class="kw1">THEN</span>
|
||
<span class="kw1">CASE</span> <span class="kw1">WHEN</span> <span class="kw2">substr</span><span class="br0">(</span>SALES_CUTOFF<span class="sy0">.</span>MAX_FSPR<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span> <span class="sy0">></span> <span class="kw2">substr</span><span class="br0">(</span><span class="kw2">to_char</span><span class="br0">(</span>N1FSYP<span class="sy0">,</span> <span class="st0">'FM0000'</span><span class="br0">)</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span> <span class="kw1">THEN</span>
|
||
<span class="st0">'P'</span>
|
||
<span class="kw1">ELSE</span>
|
||
<span class="st0">'C'</span>
|
||
<span class="kw1">END</span>
|
||
<span class="kw1">ELSE</span>
|
||
<span class="st0">'F'</span>
|
||
<span class="kw1">END</span>
|
||
<span class="kw1">END</span> CY
|
||
<span class="kw1">FROM</span>
|
||
LGDAT<span class="sy0">.</span>GLDATREF
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> LGDAT<span class="sy0">.</span>GLDATE <span class="kw1">ON</span> KPCOMP <span class="sy0">=</span> N1COMP
|
||
<span class="kw1">AND</span> KPCCYY <span class="sy0">=</span> N1CCYY
|
||
<span class="kw1">CROSS</span> <span class="kw1">JOIN</span> ORD_CUTOFF
|
||
<span class="kw1">CROSS</span> <span class="kw1">JOIN</span> SALES_CUTOFF
|
||
<span class="kw1">WHERE</span>
|
||
N1COMP <span class="sy0">=</span> <span class="nu0">93</span> <span class="sy0">-</span><span class="sy0">-</span>AND DIGITS<span class="br0">(</span>N1FSYP<span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'1901'</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
GLD
|
||
<span class="br0">)</span>;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-14 17:14:38
|
||
<b>Duration:</b> 2s707ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> report
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> [unknown]
|
||
</pre>
|
||
<div id="query-g-explain-7-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09CTE%20Scan%20on%20gld%20%20%28cost%3D90.94..95.22%20rows%3D214%20width%3D228%29%20%28actual%20time%3D301.996..349.721%20rows%3D174%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D78%0A%09%20%20CTE%20ord_cutoff%0A%09%20%20%20%20-%3E%20%20Result%20%20%28cost%3D0.81..0.82%20rows%3D1%20width%3D4%29%20%28actual%20time%3D19.020..19.020%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4%0A%09%20%20%20%20%20%20%20%20%20%20InitPlan%201%20%28returns%20%240%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Limit%20%20%28cost%3D0.42..0.81%20rows%3D1%20width%3D4%29%20%28actual%20time%3D19.007..19.009%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20osmp_adj_orderdate%20on%20osmp%20%20%28cost%3D0.42..245805.19%20rows%3D634345%20width%3D4%29%20%28actual%20time%3D18.973..18.973%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28adj_orderdate%20IS%20NOT%20NULL%29%20AND%20%28adj_orderdate%20%3E%3D%20%272018-06-01%27%3A%3Adate%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28iter%20%3C%3E%20%27Open%20Orders%27%3A%3Atext%29%20AND%20%28version%20%3D%20%27b19%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4%0A%09%20%20CTE%20sales_cutoff%0A%09%20%20%20%20-%3E%20%20Result%20%20%28cost%3D0.52..0.53%20rows%3D1%20width%3D32%29%20%28actual%20time%3D13.133..13.134%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D56%0A%09%20%20%20%20%20%20%20%20%20%20InitPlan%203%20%28returns%20%242%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Limit%20%20%28cost%3D0.42..0.52%20rows%3D1%20width%3D5%29%20%28actual%20time%3D13.126..13.128%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D56%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Only%20Scan%20Backward%20using%20osm_fspr%20on%20osm%20%20%28cost%3D0.42..72296.40%20rows%3D723143%20width%3D5%29%20%28actual%20time%3D13.125..13.125%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28fspr%20IS%20NOT%20NULL%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Fetches%3A%201%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D56%0A%09%20%20CTE%20gld%0A%09%20%20%20%20-%3E%20%20Hash%20Join%20%20%28cost%3D28.27..89.59%20rows%3D214%20width%3D200%29%20%28actual%20time%3D290.797..305.496%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28gldatref.n1ccyy%20%3D%20gldate.kpccyy%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D78%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D13.63..55.59%20rows%3D174%20width%3D60%29%20%28actual%20time%3D154.995..163.518%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D66%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D0.00..0.05%20rows%3D1%20width%3D32%29%20%28actual%20time%3D32.162..32.165%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D60%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20ord_cutoff%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D0%29%20%28actual%20time%3D19.023..19.024%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20sales_cutoff%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D32%29%20%28actual%20time%3D13.135..13.136%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D56%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20gldatref%20%20%28cost%3D13.63..53.80%20rows%3D174%20width%3D28%29%20%28actual%20time%3D122.815..131.244%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28n1comp%20%3D%20%2793%27%3A%3Anumeric%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20pk_gldatref%20%20%28cost%3D0.00..13.58%20rows%3D174%20width%3D0%29%20%28actual%20time%3D116.762..116.762%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28n1comp%20%3D%20%2793%27%3A%3Anumeric%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D14.45..14.45%20rows%3D15%20width%3D15%29%20%28actual%20time%3D57.253..57.253%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D12%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gldate%20%20%28cost%3D0.00..14.45%20rows%3D15%20width%3D15%29%20%28actual%20time%3D13.900..46.977%20rows%3D15%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28kpcomp%20%3D%20%2793%27%3A%3Anumeric%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20181%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D12%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> CTE Scan on gld (cost=90.94..95.22 rows=214 width=228) (actual time=301.996..349.721 rows=174 loops=1)
|
||
Buffers: shared hit=78
|
||
CTE ord_cutoff
|
||
-> Result (cost=0.81..0.82 rows=1 width=4) (actual time=19.020..19.020 rows=1 loops=1)
|
||
Buffers: shared hit=4
|
||
InitPlan 1 (returns $0)
|
||
-> Limit (cost=0.42..0.81 rows=1 width=4) (actual time=19.007..19.009 rows=1 loops=1)
|
||
Buffers: shared hit=4
|
||
-> Index Scan using osmp_adj_orderdate on osmp (cost=0.42..245805.19 rows=634345 width=4) (actual time=18.973..18.973 rows=1 loops=1)
|
||
Index Cond: ((adj_orderdate IS NOT NULL) AND (adj_orderdate >= '2018-06-01'::date))
|
||
Filter: ((iter <> 'Open Orders'::text) AND (version = 'b19'::text))
|
||
Buffers: shared hit=4
|
||
CTE sales_cutoff
|
||
-> Result (cost=0.52..0.53 rows=1 width=32) (actual time=13.133..13.134 rows=1 loops=1)
|
||
Buffers: shared hit=56
|
||
InitPlan 3 (returns $2)
|
||
-> Limit (cost=0.42..0.52 rows=1 width=5) (actual time=13.126..13.128 rows=1 loops=1)
|
||
Buffers: shared hit=56
|
||
-> Index Only Scan Backward using osm_fspr on osm (cost=0.42..72296.40 rows=723143 width=5) (actual time=13.125..13.125 rows=1 loops=1)
|
||
Index Cond: (fspr IS NOT NULL)
|
||
Heap Fetches: 1
|
||
Buffers: shared hit=56
|
||
CTE gld
|
||
-> Hash Join (cost=28.27..89.59 rows=214 width=200) (actual time=290.797..305.496 rows=174 loops=1)
|
||
Hash Cond: (gldatref.n1ccyy = gldate.kpccyy)
|
||
Buffers: shared hit=78
|
||
-> Nested Loop (cost=13.63..55.59 rows=174 width=60) (actual time=154.995..163.518 rows=174 loops=1)
|
||
Buffers: shared hit=66
|
||
-> Nested Loop (cost=0.00..0.05 rows=1 width=32) (actual time=32.162..32.165 rows=1 loops=1)
|
||
Buffers: shared hit=60
|
||
-> CTE Scan on ord_cutoff (cost=0.00..0.02 rows=1 width=0) (actual time=19.023..19.024 rows=1 loops=1)
|
||
Buffers: shared hit=4
|
||
-> CTE Scan on sales_cutoff (cost=0.00..0.02 rows=1 width=32) (actual time=13.135..13.136 rows=1 loops=1)
|
||
Buffers: shared hit=56
|
||
-> Bitmap Heap Scan on gldatref (cost=13.63..53.80 rows=174 width=28) (actual time=122.815..131.244 rows=174 loops=1)
|
||
Recheck Cond: (n1comp = '93'::numeric)
|
||
Heap Blocks: exact=2
|
||
Buffers: shared hit=6
|
||
-> Bitmap Index Scan on pk_gldatref (cost=0.00..13.58 rows=174 width=0) (actual time=116.762..116.762 rows=174 loops=1)
|
||
Index Cond: (n1comp = '93'::numeric)
|
||
Buffers: shared hit=4
|
||
-> Hash (cost=14.45..14.45 rows=15 width=15) (actual time=57.253..57.253 rows=15 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
Buffers: shared hit=12
|
||
-> Seq Scan on gldate (cost=0.00..14.45 rows=15 width=15) (actual time=13.900..46.977 rows=15 loops=1)
|
||
Filter: (kpcomp = '93'::numeric)
|
||
Rows Removed by Filter: 181
|
||
Buffers: shared hit=12
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-7">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>8</td>
|
||
<td>2s10ms</td>
|
||
<td>3s265ms</td>
|
||
<td>2s476ms</td>
|
||
<td>3
|
||
<p><a href="#Anormalized_slowest_queries_details_8" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>7s429ms</td>
|
||
<td id="normalized-slowest-queries-examples-details-rank-8">
|
||
<div id="query-g-8" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">DELETE</span> <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm osm
|
||
<span class="kw1">WHERE</span> <span class="kw1">EXISTS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1"><span class="kw2">cast</span></span><span class="br0">(</span><span class="kw1">NULL</span> <span class="kw1">AS</span> int<span class="br0">)</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1">DISTINCT</span> "ddord#"
|
||
<span class="kw1">FROM</span>
|
||
import<span class="sy0">.</span>osmi
|
||
<span class="kw1">WHERE</span>
|
||
"ddord#" <span class="sy0"><</span><span class="sy0">></span> ?<span class="br0">)</span> n
|
||
<span class="kw1">WHERE</span>
|
||
n<span class="sy0">.</span> "ddord#" <span class="sy0">=</span> osm<span class="sy0">.</span> "ddord#"<span class="br0">)</span>;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Anormalized_slowest_queries_details_8" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #8</small></h3>
|
||
<div id="normalized_slowest_queries_details_8" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Anormalized_slowest_queries_details_8').on("shown.bs.collapse",function(){
|
||
var bars_82 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',1],['15:00',0],['16:00',1],['17:00',1],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_82 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',2153],['15:00',0],['16:00',2010],['17:00',3265],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var normalized_slowest_queries_details_8 = create_bargraph('normalized_slowest_queries_details_8', '', 'Queries', [ bars_82, lines_82 ], 'Avg. duration');
|
||
});
|
||
create_download_button(82, 'btn btn-default btn-xs');
|
||
add_download_button_event(82, 'normalized_slowest_queries_details_8');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>17</td><td>1</td><td>3s265ms</td><td>3s265ms</td></tr><tr><td>Mar 15</td><td>14</td><td>1</td><td>2s153ms</td><td>2s153ms</td></tr><tr><td></td><td>16</td><td>1</td><td>2s10ms</td><td>2s10ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Anormalized_slowest_queries_details_8">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-8">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-8">User(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="normalized-slowest-queries-user-involved-rank-8" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> ptrowbridge_md5 - <b>Total duration:</b> 7s429ms - <b>Times executed:</b> 3 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-8">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="normalized-slowest-queries-app-involved-rank-8" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> psql - <b>Total duration:</b> 7s429ms - <b>Times executed:</b> 3 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-app-involved-rank-8">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="normalized-slowest-queries-examples-rank-8" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-g-8-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">DELETE</span> <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm osm
|
||
<span class="kw1">WHERE</span> <span class="kw1">EXISTS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1"><span class="kw2">cast</span></span><span class="br0">(</span><span class="kw1">NULL</span> <span class="kw1">AS</span> INT<span class="br0">)</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1">DISTINCT</span> "ddord#"
|
||
<span class="kw1">FROM</span>
|
||
import<span class="sy0">.</span>osmi
|
||
<span class="kw1">WHERE</span>
|
||
"ddord#" <span class="sy0"><</span><span class="sy0">></span> <span class="nu0">0</span><span class="br0">)</span> n
|
||
<span class="kw1">WHERE</span>
|
||
n<span class="sy0">.</span> "ddord#" <span class="sy0">=</span> osm<span class="sy0">.</span> "ddord#"<span class="br0">)</span>;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-14 17:12:43
|
||
<b>Duration:</b> 3s265ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-g-explain-8-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Delete%20on%20osm%20%20%28cost%3D1968.07..69852.70%20rows%3D67171%20width%3D36%29%20%28actual%20time%3D3265.512..3265.512%20rows%3D0%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D29163%20read%3D54721%20dirtied%3D1562%0A%09%20%20I%2FO%20Timings%3A%20read%3D2859.895%0A%09%20%20-%3E%20%20Hash%20Join%20%20%28cost%3D1968.07..69852.70%20rows%3D67171%20width%3D36%29%20%28actual%20time%3D75.167..3248.670%20rows%3D24360%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.%22ddord%23%22%20%3D%20n.%22ddord%23%22%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D4780%20read%3D54721%20dirtied%3D82%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2859.895%0A%09%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osm%20%20%28cost%3D0.00..65827.55%20rows%3D783555%20width%3D12%29%20%28actual%20time%3D1.473..3059.153%20rows%3D783400%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3271%20read%3D54721%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2859.895%0A%09%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1930.65..1930.65%20rows%3D2994%20width%3D36%29%20%28actual%20time%3D18.828..18.828%20rows%3D3245%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%20Batches%3A%201%20%20Memory%20Usage%3A%20245kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1509%20dirtied%3D82%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Subquery%20Scan%20on%20n%20%20%28cost%3D1870.77..1930.65%20rows%3D2994%20width%3D36%29%20%28actual%20time%3D16.917..18.065%20rows%3D3245%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1509%20dirtied%3D82%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D1870.77..1900.71%20rows%3D2994%20width%3D6%29%20%28actual%20time%3D16.897..17.477%20rows%3D3245%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20osmi.%22ddord%23%22%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1509%20dirtied%3D82%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmi%20%20%28cost%3D0.00..1810.80%20rows%3D23987%20width%3D6%29%20%28actual%20time%3D0.026..9.823%20rows%3D25374%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%22ddord%23%22%20%3C%3E%20%270%27%3A%3Anumeric%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20252%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1509%20dirtied%3D82%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Delete on osm (cost=1968.07..69852.70 rows=67171 width=36) (actual time=3265.512..3265.512 rows=0 loops=1)
|
||
Buffers: shared hit=29163 read=54721 dirtied=1562
|
||
I/O Timings: read=2859.895
|
||
-> Hash Join (cost=1968.07..69852.70 rows=67171 width=36) (actual time=75.167..3248.670 rows=24360 loops=1)
|
||
Hash Cond: (osm."ddord#" = n."ddord#")
|
||
Buffers: shared hit=4780 read=54721 dirtied=82
|
||
I/O Timings: read=2859.895
|
||
-> Seq Scan on osm (cost=0.00..65827.55 rows=783555 width=12) (actual time=1.473..3059.153 rows=783400 loops=1)
|
||
Buffers: shared hit=3271 read=54721
|
||
I/O Timings: read=2859.895
|
||
-> Hash (cost=1930.65..1930.65 rows=2994 width=36) (actual time=18.828..18.828 rows=3245 loops=1)
|
||
Buckets: 4096 Batches: 1 Memory Usage: 245kB
|
||
Buffers: shared hit=1509 dirtied=82
|
||
-> Subquery Scan on n (cost=1870.77..1930.65 rows=2994 width=36) (actual time=16.917..18.065 rows=3245 loops=1)
|
||
Buffers: shared hit=1509 dirtied=82
|
||
-> HashAggregate (cost=1870.77..1900.71 rows=2994 width=6) (actual time=16.897..17.477 rows=3245 loops=1)
|
||
Group Key: osmi."ddord#"
|
||
Buffers: shared hit=1509 dirtied=82
|
||
-> Seq Scan on osmi (cost=0.00..1810.80 rows=23987 width=6) (actual time=0.026..9.823 rows=25374 loops=1)
|
||
Filter: ("ddord#" <> '0'::numeric)
|
||
Rows Removed by Filter: 252
|
||
Buffers: shared hit=1509 dirtied=82
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-g-8-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">DELETE</span> <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm osm
|
||
<span class="kw1">WHERE</span> <span class="kw1">EXISTS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1"><span class="kw2">cast</span></span><span class="br0">(</span><span class="kw1">NULL</span> <span class="kw1">AS</span> INT<span class="br0">)</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1">DISTINCT</span> "ddord#"
|
||
<span class="kw1">FROM</span>
|
||
import<span class="sy0">.</span>osmi
|
||
<span class="kw1">WHERE</span>
|
||
"ddord#" <span class="sy0"><</span><span class="sy0">></span> <span class="nu0">0</span><span class="br0">)</span> n
|
||
<span class="kw1">WHERE</span>
|
||
n<span class="sy0">.</span> "ddord#" <span class="sy0">=</span> osm<span class="sy0">.</span> "ddord#"<span class="br0">)</span>;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 14:07:09
|
||
<b>Duration:</b> 2s153ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-g-explain-8-2" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Delete%20on%20osm%20%20%28cost%3D1986.94..69871.57%20rows%3D69213%20width%3D36%29%20%28actual%20time%3D2153.612..2153.612%20rows%3D0%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D26955%20read%3D57942%20dirtied%3D1625%0A%09%20%20I%2FO%20Timings%3A%20read%3D1847.789%0A%09%20%20-%3E%20%20Hash%20Join%20%20%28cost%3D1986.94..69871.57%20rows%3D69213%20width%3D36%29%20%28actual%20time%3D1997.260..2135.913%20rows%3D25383%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.%22ddord%23%22%20%3D%20n.%22ddord%23%22%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1572%20read%3D57942%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1847.789%0A%09%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osm%20%20%28cost%3D0.00..65827.55%20rows%3D783555%20width%3D12%29%20%28actual%20time%3D0.460..1982.573%20rows%3D784529%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D50%20read%3D57942%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1847.789%0A%09%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1948.38..1948.38%20rows%3D3085%20width%3D36%29%20%28actual%20time%3D14.780..14.780%20rows%3D3290%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%20Batches%3A%201%20%20Memory%20Usage%3A%20248kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1522%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Subquery%20Scan%20on%20n%20%20%28cost%3D1886.68..1948.38%20rows%3D3085%20width%3D36%29%20%28actual%20time%3D13.217..14.151%20rows%3D3290%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1522%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D1886.68..1917.53%20rows%3D3085%20width%3D6%29%20%28actual%20time%3D13.202..13.591%20rows%3D3290%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20osmi.%22ddord%23%22%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1522%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmi%20%20%28cost%3D0.00..1826.40%20rows%3D24113%20width%3D6%29%20%28actual%20time%3D0.010..7.688%20rows%3D25613%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%22ddord%23%22%20%3C%3E%20%270%27%3A%3Anumeric%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20265%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1522%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Delete on osm (cost=1986.94..69871.57 rows=69213 width=36) (actual time=2153.612..2153.612 rows=0 loops=1)
|
||
Buffers: shared hit=26955 read=57942 dirtied=1625
|
||
I/O Timings: read=1847.789
|
||
-> Hash Join (cost=1986.94..69871.57 rows=69213 width=36) (actual time=1997.260..2135.913 rows=25383 loops=1)
|
||
Hash Cond: (osm."ddord#" = n."ddord#")
|
||
Buffers: shared hit=1572 read=57942
|
||
I/O Timings: read=1847.789
|
||
-> Seq Scan on osm (cost=0.00..65827.55 rows=783555 width=12) (actual time=0.460..1982.573 rows=784529 loops=1)
|
||
Buffers: shared hit=50 read=57942
|
||
I/O Timings: read=1847.789
|
||
-> Hash (cost=1948.38..1948.38 rows=3085 width=36) (actual time=14.780..14.780 rows=3290 loops=1)
|
||
Buckets: 4096 Batches: 1 Memory Usage: 248kB
|
||
Buffers: shared hit=1522
|
||
-> Subquery Scan on n (cost=1886.68..1948.38 rows=3085 width=36) (actual time=13.217..14.151 rows=3290 loops=1)
|
||
Buffers: shared hit=1522
|
||
-> HashAggregate (cost=1886.68..1917.53 rows=3085 width=6) (actual time=13.202..13.591 rows=3290 loops=1)
|
||
Group Key: osmi."ddord#"
|
||
Buffers: shared hit=1522
|
||
-> Seq Scan on osmi (cost=0.00..1826.40 rows=24113 width=6) (actual time=0.010..7.688 rows=25613 loops=1)
|
||
Filter: ("ddord#" <> '0'::numeric)
|
||
Rows Removed by Filter: 265
|
||
Buffers: shared hit=1522
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-g-8-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">DELETE</span> <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm osm
|
||
<span class="kw1">WHERE</span> <span class="kw1">EXISTS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1"><span class="kw2">cast</span></span><span class="br0">(</span><span class="kw1">NULL</span> <span class="kw1">AS</span> INT<span class="br0">)</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="kw1">DISTINCT</span> "ddord#"
|
||
<span class="kw1">FROM</span>
|
||
import<span class="sy0">.</span>osmi
|
||
<span class="kw1">WHERE</span>
|
||
"ddord#" <span class="sy0"><</span><span class="sy0">></span> <span class="nu0">0</span><span class="br0">)</span> n
|
||
<span class="kw1">WHERE</span>
|
||
n<span class="sy0">.</span> "ddord#" <span class="sy0">=</span> osm<span class="sy0">.</span> "ddord#"<span class="br0">)</span>;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 16:45:32
|
||
<b>Duration:</b> 2s10ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-g-explain-8-3" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Delete%20on%20osm%20%20%28cost%3D2006.51..69055.94%20rows%3D62283%20width%3D36%29%20%28actual%20time%3D2010.489..2010.489%20rows%3D0%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D28858%20read%3D57960%20dirtied%3D1674%0A%09%20%20I%2FO%20Timings%3A%20read%3D1634.275%0A%09%20%20-%3E%20%20Hash%20Join%20%20%28cost%3D2006.51..69055.94%20rows%3D62283%20width%3D36%29%20%28actual%20time%3D1663.729..1988.641%20rows%3D25616%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.%22ddord%23%22%20%3D%20n.%22ddord%23%22%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1569%20read%3D57960%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1634.275%0A%09%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osm%20%20%28cost%3D0.00..65166.02%20rows%3D717402%20width%3D12%29%20%28actual%20time%3D0.449..1815.192%20rows%3D784772%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D32%20read%3D57960%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1634.275%0A%09%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D1967.58..1967.58%20rows%3D3115%20width%3D36%29%20%28actual%20time%3D16.883..16.883%20rows%3D3334%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%204096%20%20Batches%3A%201%20%20Memory%20Usage%3A%20251kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1537%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Subquery%20Scan%20on%20n%20%20%28cost%3D1905.28..1967.58%20rows%3D3115%20width%3D36%29%20%28actual%20time%3D15.539..16.337%20rows%3D3334%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1537%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D1905.28..1936.43%20rows%3D3115%20width%3D6%29%20%28actual%20time%3D15.524..15.848%20rows%3D3334%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20osmi.%22ddord%23%22%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1537%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20osmi%20%20%28cost%3D0.00..1844.40%20rows%3D24350%20width%3D6%29%20%28actual%20time%3D0.011..9.183%20rows%3D25826%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%22ddord%23%22%20%3C%3E%20%270%27%3A%3Anumeric%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20271%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1537%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Delete on osm (cost=2006.51..69055.94 rows=62283 width=36) (actual time=2010.489..2010.489 rows=0 loops=1)
|
||
Buffers: shared hit=28858 read=57960 dirtied=1674
|
||
I/O Timings: read=1634.275
|
||
-> Hash Join (cost=2006.51..69055.94 rows=62283 width=36) (actual time=1663.729..1988.641 rows=25616 loops=1)
|
||
Hash Cond: (osm."ddord#" = n."ddord#")
|
||
Buffers: shared hit=1569 read=57960
|
||
I/O Timings: read=1634.275
|
||
-> Seq Scan on osm (cost=0.00..65166.02 rows=717402 width=12) (actual time=0.449..1815.192 rows=784772 loops=1)
|
||
Buffers: shared hit=32 read=57960
|
||
I/O Timings: read=1634.275
|
||
-> Hash (cost=1967.58..1967.58 rows=3115 width=36) (actual time=16.883..16.883 rows=3334 loops=1)
|
||
Buckets: 4096 Batches: 1 Memory Usage: 251kB
|
||
Buffers: shared hit=1537
|
||
-> Subquery Scan on n (cost=1905.28..1967.58 rows=3115 width=36) (actual time=15.539..16.337 rows=3334 loops=1)
|
||
Buffers: shared hit=1537
|
||
-> HashAggregate (cost=1905.28..1936.43 rows=3115 width=6) (actual time=15.524..15.848 rows=3334 loops=1)
|
||
Group Key: osmi."ddord#"
|
||
Buffers: shared hit=1537
|
||
-> Seq Scan on osmi (cost=0.00..1844.40 rows=24350 width=6) (actual time=0.011..9.183 rows=25826 loops=1)
|
||
Filter: ("ddord#" <> '0'::numeric)
|
||
Rows Removed by Filter: 271
|
||
Buffers: shared hit=1537
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-8">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>9</td>
|
||
<td>1s357ms</td>
|
||
<td>3s762ms</td>
|
||
<td>2s419ms</td>
|
||
<td>7
|
||
<p><a href="#Anormalized_slowest_queries_details_9" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>16s934ms</td>
|
||
<td id="normalized-slowest-queries-examples-details-rank-9">
|
||
<div id="query-g-9" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing <span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span> <span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> <span class="sy0">*</span> <span class="kw1">FROM</span> <span class="br0">(</span> <span class="kw1">VALUES</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="br0">)</span> x<span class="br0">(</span>m<span class="sy0">,</span>s<span class="br0">)</span> <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq <span class="sy0">,</span>base <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span>order_month <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>part_descr <span class="sy0">,</span>bill_cust_descr <span class="sy0">,</span>ship_cust_descr <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm_fcpool <span class="kw1">WHERE</span> quota_rep_descr <span class="sy0">=</span> ? <span class="kw1">AND</span> segm <span class="sy0">=</span> ? <span class="kw1">AND</span> mod_chan <span class="sy0">=</span> ? <span class="kw1">AND</span> part_descr <span class="sy0">=</span> ? <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span>order_month <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>part_descr <span class="sy0">,</span>bill_cust_descr <span class="sy0">,</span>ship_cust_descr <span class="br0">)</span> <span class="sy0">,</span>months <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>order_month <span class="sy0">,</span>mseq<span class="sy0">.</span>s seq <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> base <span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>order_month <span class="sy0">,</span>s <span class="br0">)</span> <span class="sy0">,</span>mpvt <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_month <span class="sy0">,</span>seq <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0">=</span> ?<span class="br0">)</span> "? base qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> ?<span class="br0">)</span> "? adj qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? tot qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0">=</span> ?<span class="br0">)</span> "? base value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> ?<span class="br0">)</span> "? adj value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? tot value_usd" <span class="kw1">FROM</span> months <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_month <span class="sy0">,</span>seq <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> seq <span class="kw1">ASC</span> <span class="br0">)</span> <span class="sy0">,</span>mlist <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> mseq<span class="sy0">.</span>m order_month <span class="sy0">,</span>"? qty" <span class="sy0">,</span>"? base qty" <span class="sy0">,</span>"? adj qty" <span class="sy0">,</span>"? tot qty" <span class="sy0">,</span>"? value_usd" <span class="sy0">,</span>"? base value_usd" <span class="sy0">,</span>"? adj value_usd" <span class="sy0">,</span>"? tot value_usd" <span class="kw1">FROM</span> mseq <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> mseq<span class="sy0">.</span>s <span class="kw1">ASC</span> <span class="br0">)</span> <span class="sy0">,</span>totals <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> months <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="br0">)</span> <span class="kw1">SELECT</span> jsonb_build_object<span class="br0">(</span> ? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> months<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> mlist<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> base<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> totals<span class="br0">)</span> <span class="br0">)</span> package ;
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Anormalized_slowest_queries_details_9" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #9</small></h3>
|
||
<div id="normalized_slowest_queries_details_9" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Anormalized_slowest_queries_details_9').on("shown.bs.collapse",function(){
|
||
var bars_83 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',3],['16:00',4],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_83 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',3754],['16:00',1417],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var normalized_slowest_queries_details_9 = create_bargraph('normalized_slowest_queries_details_9', '', 'Queries', [ bars_83, lines_83 ], 'Avg. duration');
|
||
});
|
||
create_download_button(83, 'btn btn-default btn-xs');
|
||
add_download_button_event(83, 'normalized_slowest_queries_details_9');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 15</td><td>15</td><td>3</td><td>11s264ms</td><td>3s754ms</td></tr><tr><td></td><td>16</td><td>4</td><td>5s669ms</td><td>1s417ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Anormalized_slowest_queries_details_9">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-9">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-9">User(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="normalized-slowest-queries-user-involved-rank-9" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> api - <b>Total duration:</b> 6s706ms - <b>Times executed:</b> 3 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-9">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="normalized-slowest-queries-app-involved-rank-9" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> osm_api - <b>Total duration:</b> 6s706ms - <b>Times executed:</b> 3 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-app-involved-rank-9">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="normalized-slowest-queries-examples-rank-9" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-g-9-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing
|
||
<span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span>
|
||
<span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">VALUES</span> <span class="br0">(</span><span class="st0">'Jun'</span><span class="sy0">,</span>
|
||
<span class="nu0">1</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jul'</span><span class="sy0">,</span>
|
||
<span class="nu0">2</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Aug'</span><span class="sy0">,</span>
|
||
<span class="nu0">3</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Sep'</span><span class="sy0">,</span>
|
||
<span class="nu0">4</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Oct'</span><span class="sy0">,</span>
|
||
<span class="nu0">5</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Nov'</span><span class="sy0">,</span>
|
||
<span class="nu0">6</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Dec'</span><span class="sy0">,</span>
|
||
<span class="nu0">7</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jan'</span><span class="sy0">,</span>
|
||
<span class="nu0">8</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Feb'</span><span class="sy0">,</span>
|
||
<span class="nu0">9</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Mar'</span><span class="sy0">,</span>
|
||
<span class="nu0">10</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Apr'</span><span class="sy0">,</span>
|
||
<span class="nu0">11</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'May'</span><span class="sy0">,</span>
|
||
<span class="nu0">12</span><span class="br0">)</span><span class="br0">)</span> x <span class="br0">(</span>m<span class="sy0">,</span>
|
||
s<span class="br0">)</span>
|
||
<span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq
|
||
<span class="sy0">,</span>
|
||
base <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_fcpool
|
||
<span class="kw1">WHERE</span>
|
||
quota_rep_descr <span class="sy0">=</span> <span class="st0">'10032 - BRYAN HILL'</span>
|
||
<span class="kw1">AND</span> segm <span class="sy0">=</span> <span class="st0">'Greenhouse'</span>
|
||
<span class="kw1">AND</span> mod_chan <span class="sy0">=</span> <span class="st0">'DISTRIBUTOR'</span>
|
||
<span class="kw1">AND</span> part_descr <span class="sy0">=</span> <span class="st0">'AZG06000B66B200 - 06.00 AZ TW 300GN @20000 BULK'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="br0">)</span><span class="sy0">,</span>
|
||
months <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
mseq<span class="sy0">.</span>s seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
base
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
s<span class="br0">)</span><span class="sy0">,</span>
|
||
mpvt <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_month<span class="sy0">,</span>
|
||
seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0">=</span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 base qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 adj qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0">=</span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 base value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 adj value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_month<span class="sy0">,</span> seq
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
seq <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> mlist <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
mseq<span class="sy0">.</span>m order_month<span class="sy0">,</span> "2019 qty"<span class="sy0">,</span> "2020 base qty"<span class="sy0">,</span> "2020 adj qty"<span class="sy0">,</span> "2020 tot qty"<span class="sy0">,</span> "2019 value_usd"<span class="sy0">,</span> "2020 base value_usd"<span class="sy0">,</span> "2020 adj value_usd"<span class="sy0">,</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
mseq
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
mseq<span class="sy0">.</span>s <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> totals <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_build_object <span class="br0">(</span><span class="st0">'months'</span><span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
months<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'mpvt'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
mlist<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'base'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
base<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'totals'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
totals<span class="br0">)</span><span class="br0">)</span> package;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 15:01:25
|
||
<b>Duration:</b> 3s762ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> api
|
||
<b>Remote:</b> ubreport
|
||
<b>Application:</b> osm_api
|
||
</pre>
|
||
<div id="query-g-explain-9-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Result%20%20%28cost%3D43058.76..43058.77%20rows%3D1%20width%3D32%29%20%28actual%20time%3D3759.847..3759.850%20rows%3D1%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D99%20read%3D39444%0A%09%20%20I%2FO%20Timings%3A%20read%3D10910.610%0A%09%20%20CTE%20mseq%0A%09%20%20%20%20-%3E%20%20Values%20Scan%20on%20%22%2AVALUES%2A%22%20%20%28cost%3D0.00..0.15%20rows%3D12%20width%3D36%29%20%28actual%20time%3D0.001..0.007%20rows%3D12%20loops%3D1%29%0A%09%20%20CTE%20base%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D43056.99..43057.03%20rows%3D1%20width%3D176%29%20%28actual%20time%3D3758.393..3758.433%20rows%3D43%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20osm_fcpool.order_season%2C%20osm_fcpool.order_month%2C%20osm_fcpool.version%2C%20osm_fcpool.iter%2C%20osm_fcpool.part_descr%2C%20osm_fcpool.bill_cust_descr%2C%20osm_fcpool.ship_cust_descr%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D99%20read%3D39444%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10910.610%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D43056.99..43056.99%20rows%3D1%20width%3D149%29%20%28actual%20time%3D3758.380..3758.383%20rows%3D72%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20osm_fcpool.order_season%2C%20osm_fcpool.order_month%2C%20osm_fcpool.version%2C%20osm_fcpool.iter%2C%20osm_fcpool.bill_cust_descr%2C%20osm_fcpool.ship_cust_descr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D99%20read%3D39444%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10910.610%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..43056.97%20rows%3D1%20width%3D149%29%20%28actual%20time%3D175.512..3758.230%20rows%3D72%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D99%20read%3D39444%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10910.610%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm_fcpool%20%20%28cost%3D0.00..42056.88%20rows%3D1%20width%3D149%29%20%28actual%20time%3D169.788..3752.390%20rows%3D24%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28quota_rep_descr%20%3D%20%2710032%20-%20BRYAN%20HILL%27%3A%3Atext%29%20AND%20%28segm%20%3D%20%27Greenhouse%27%3A%3Atext%29%20AND%20%28mod_chan%20%3D%20%27DISTRIBUTOR%27%3A%3Atext%29%20AND%20%28part_descr%20%3D%20%27AZG06000B66B200%20-%2006.00%20AZ%20TW%20300GN%20%4020000%20BULK%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20100422%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D99%20read%3D39444%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10910.610%0A%09%20%20CTE%20months%0A%09%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D0.35..0.36%20rows%3D1%20width%3D152%29%20%28actual%20time%3D3758.529..3758.536%20rows%3D17%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20base.order_season%2C%20base.version%2C%20base.iter%2C%20base.order_month%2C%20mseq.s%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D99%20read%3D39444%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10910.610%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Join%20%20%28cost%3D0.03..0.33%20rows%3D1%20width%3D148%29%20%28actual%20time%3D3758.487..3758.505%20rows%3D43%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28mseq.m%20%3D%20base.order_month%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D99%20read%3D39444%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10910.610%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mseq%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D36%29%20%28actual%20time%3D0.003..0.011%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.02..0.02%20rows%3D1%20width%3D144%29%20%28actual%20time%3D3758.477..3758.477%20rows%3D43%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2012kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D99%20read%3D39444%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10910.610%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20base%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D144%29%20%28actual%20time%3D3758.396..3758.461%20rows%3D43%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D99%20read%3D39444%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10910.610%0A%09%20%20CTE%20mpvt%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D0.03..0.11%20rows%3D1%20width%3D196%29%20%28actual%20time%3D0.019..0.035%20rows%3D7%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20months.seq%2C%20months.order_month%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D0.03..0.04%20rows%3D1%20width%3D116%29%20%28actual%20time%3D0.011..0.012%20rows%3D17%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20months.seq%2C%20months.order_month%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20months%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D116%29%20%28actual%20time%3D0.001..0.003%20rows%3D17%20loops%3D1%29%0A%09%20%20CTE%20mlist%0A%09%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D0.54..0.57%20rows%3D12%20width%3D196%29%20%28actual%20time%3D0.072..0.072%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20mseq_1.s%0A%09%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D0.03..0.33%20rows%3D12%20width%3D196%29%20%28actual%20time%3D0.058..0.062%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28mseq_1.m%20%3D%20mpvt.order_month%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mseq%20mseq_1%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D36%29%20%28actual%20time%3D0.000..0.001%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.02..0.02%20rows%3D1%20width%3D192%29%20%28actual%20time%3D0.048..0.048%20rows%3D7%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mpvt%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D192%29%20%28actual%20time%3D0.021..0.043%20rows%3D7%20loops%3D1%29%0A%09%20%20CTE%20totals%0A%09%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D0.03..0.05%20rows%3D1%20width%3D112%29%20%28actual%20time%3D0.016..0.018%20rows%3D6%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20months_1.order_season%2C%20months_1.version%2C%20months_1.iter%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20months%20months_1%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D112%29%20%28actual%20time%3D0.001..0.003%20rows%3D17%20loops%3D1%29%0A%09%20%20InitPlan%207%20%28returns%20%247%29%0A%09%20%20%20%20-%3E%20%20Aggregate%20%20%28cost%3D0.03..0.04%20rows%3D1%20width%3D32%29%20%28actual%20time%3D3758.733..3758.733%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D99%20read%3D39444%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10910.610%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20months%20months_2%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D24%29%20%28actual%20time%3D3758.536..3758.554%20rows%3D17%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D99%20read%3D39444%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D10910.610%0A%09%20%20InitPlan%208%20%28returns%20%248%29%0A%09%20%20%20%20-%3E%20%20Aggregate%20%20%28cost%3D0.36..0.37%20rows%3D1%20width%3D32%29%20%28actual%20time%3D0.247..0.247%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mlist%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D24%29%20%28actual%20time%3D0.075..0.083%20rows%3D12%20loops%3D1%29%0A%09%20%20InitPlan%209%20%28returns%20%249%29%0A%09%20%20%20%20-%3E%20%20Aggregate%20%20%28cost%3D0.03..0.04%20rows%3D1%20width%3D32%29%20%28actual%20time%3D0.637..0.638%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20base%20base_1%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D24%29%20%28actual%20time%3D0.003..0.022%20rows%3D43%20loops%3D1%29%0A%09%20%20InitPlan%2010%20%28returns%20%2410%29%0A%09%20%20%20%20-%3E%20%20Aggregate%20%20%28cost%3D0.03..0.04%20rows%3D1%20width%3D32%29%20%28actual%20time%3D0.073..0.073%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20totals%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D24%29%20%28actual%20time%3D0.018..0.024%20rows%3D6%20loops%3D1%29%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Result (cost=43058.76..43058.77 rows=1 width=32) (actual time=3759.847..3759.850 rows=1 loops=1)
|
||
Buffers: shared hit=99 read=39444
|
||
I/O Timings: read=10910.610
|
||
CTE mseq
|
||
-> Values Scan on "*VALUES*" (cost=0.00..0.15 rows=12 width=36) (actual time=0.001..0.007 rows=12 loops=1)
|
||
CTE base
|
||
-> GroupAggregate (cost=43056.99..43057.03 rows=1 width=176) (actual time=3758.393..3758.433 rows=43 loops=1)
|
||
Group Key: osm_fcpool.order_season, osm_fcpool.order_month, osm_fcpool.version, osm_fcpool.iter, osm_fcpool.part_descr, osm_fcpool.bill_cust_descr, osm_fcpool.ship_cust_descr
|
||
Buffers: shared hit=99 read=39444
|
||
I/O Timings: read=10910.610
|
||
-> Sort (cost=43056.99..43056.99 rows=1 width=149) (actual time=3758.380..3758.383 rows=72 loops=1)
|
||
Sort Key: osm_fcpool.order_season, osm_fcpool.order_month, osm_fcpool.version, osm_fcpool.iter, osm_fcpool.bill_cust_descr, osm_fcpool.ship_cust_descr
|
||
Sort Method: quicksort Memory: 44kB
|
||
Buffers: shared hit=99 read=39444
|
||
I/O Timings: read=10910.610
|
||
-> Gather (cost=1000.00..43056.97 rows=1 width=149) (actual time=175.512..3758.230 rows=72 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=99 read=39444
|
||
I/O Timings: read=10910.610
|
||
-> Parallel Seq Scan on osm_fcpool (cost=0.00..42056.88 rows=1 width=149) (actual time=169.788..3752.390 rows=24 loops=3)
|
||
Filter: ((quota_rep_descr = '10032 - BRYAN HILL'::text) AND (segm = 'Greenhouse'::text) AND (mod_chan = 'DISTRIBUTOR'::text) AND (part_descr = 'AZG06000B66B200 - 06.00 AZ TW 300GN @20000 BULK'::text))
|
||
Rows Removed by Filter: 100422
|
||
Buffers: shared hit=99 read=39444
|
||
I/O Timings: read=10910.610
|
||
CTE months
|
||
-> HashAggregate (cost=0.35..0.36 rows=1 width=152) (actual time=3758.529..3758.536 rows=17 loops=1)
|
||
Group Key: base.order_season, base.version, base.iter, base.order_month, mseq.s
|
||
Buffers: shared hit=99 read=39444
|
||
I/O Timings: read=10910.610
|
||
-> Hash Join (cost=0.03..0.33 rows=1 width=148) (actual time=3758.487..3758.505 rows=43 loops=1)
|
||
Hash Cond: (mseq.m = base.order_month)
|
||
Buffers: shared hit=99 read=39444
|
||
I/O Timings: read=10910.610
|
||
-> CTE Scan on mseq (cost=0.00..0.24 rows=12 width=36) (actual time=0.003..0.011 rows=12 loops=1)
|
||
-> Hash (cost=0.02..0.02 rows=1 width=144) (actual time=3758.477..3758.477 rows=43 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 12kB
|
||
Buffers: shared hit=99 read=39444
|
||
I/O Timings: read=10910.610
|
||
-> CTE Scan on base (cost=0.00..0.02 rows=1 width=144) (actual time=3758.396..3758.461 rows=43 loops=1)
|
||
Buffers: shared hit=99 read=39444
|
||
I/O Timings: read=10910.610
|
||
CTE mpvt
|
||
-> GroupAggregate (cost=0.03..0.11 rows=1 width=196) (actual time=0.019..0.035 rows=7 loops=1)
|
||
Group Key: months.seq, months.order_month
|
||
-> Sort (cost=0.03..0.04 rows=1 width=116) (actual time=0.011..0.012 rows=17 loops=1)
|
||
Sort Key: months.seq, months.order_month
|
||
Sort Method: quicksort Memory: 26kB
|
||
-> CTE Scan on months (cost=0.00..0.02 rows=1 width=116) (actual time=0.001..0.003 rows=17 loops=1)
|
||
CTE mlist
|
||
-> Sort (cost=0.54..0.57 rows=12 width=196) (actual time=0.072..0.072 rows=12 loops=1)
|
||
Sort Key: mseq_1.s
|
||
Sort Method: quicksort Memory: 26kB
|
||
-> Hash Left Join (cost=0.03..0.33 rows=12 width=196) (actual time=0.058..0.062 rows=12 loops=1)
|
||
Hash Cond: (mseq_1.m = mpvt.order_month)
|
||
-> CTE Scan on mseq mseq_1 (cost=0.00..0.24 rows=12 width=36) (actual time=0.000..0.001 rows=12 loops=1)
|
||
-> Hash (cost=0.02..0.02 rows=1 width=192) (actual time=0.048..0.048 rows=7 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mpvt (cost=0.00..0.02 rows=1 width=192) (actual time=0.021..0.043 rows=7 loops=1)
|
||
CTE totals
|
||
-> HashAggregate (cost=0.03..0.05 rows=1 width=112) (actual time=0.016..0.018 rows=6 loops=1)
|
||
Group Key: months_1.order_season, months_1.version, months_1.iter
|
||
-> CTE Scan on months months_1 (cost=0.00..0.02 rows=1 width=112) (actual time=0.001..0.003 rows=17 loops=1)
|
||
InitPlan 7 (returns $7)
|
||
-> Aggregate (cost=0.03..0.04 rows=1 width=32) (actual time=3758.733..3758.733 rows=1 loops=1)
|
||
Buffers: shared hit=99 read=39444
|
||
I/O Timings: read=10910.610
|
||
-> CTE Scan on months months_2 (cost=0.00..0.02 rows=1 width=24) (actual time=3758.536..3758.554 rows=17 loops=1)
|
||
Buffers: shared hit=99 read=39444
|
||
I/O Timings: read=10910.610
|
||
InitPlan 8 (returns $8)
|
||
-> Aggregate (cost=0.36..0.37 rows=1 width=32) (actual time=0.247..0.247 rows=1 loops=1)
|
||
-> CTE Scan on mlist (cost=0.00..0.24 rows=12 width=24) (actual time=0.075..0.083 rows=12 loops=1)
|
||
InitPlan 9 (returns $9)
|
||
-> Aggregate (cost=0.03..0.04 rows=1 width=32) (actual time=0.637..0.638 rows=1 loops=1)
|
||
-> CTE Scan on base base_1 (cost=0.00..0.02 rows=1 width=24) (actual time=0.003..0.022 rows=43 loops=1)
|
||
InitPlan 10 (returns $10)
|
||
-> Aggregate (cost=0.03..0.04 rows=1 width=32) (actual time=0.073..0.073 rows=1 loops=1)
|
||
-> CTE Scan on totals (cost=0.00..0.02 rows=1 width=24) (actual time=0.018..0.024 rows=6 loops=1)
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-g-9-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing
|
||
<span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span>
|
||
<span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">VALUES</span> <span class="br0">(</span><span class="st0">'Jun'</span><span class="sy0">,</span>
|
||
<span class="nu0">1</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jul'</span><span class="sy0">,</span>
|
||
<span class="nu0">2</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Aug'</span><span class="sy0">,</span>
|
||
<span class="nu0">3</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Sep'</span><span class="sy0">,</span>
|
||
<span class="nu0">4</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Oct'</span><span class="sy0">,</span>
|
||
<span class="nu0">5</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Nov'</span><span class="sy0">,</span>
|
||
<span class="nu0">6</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Dec'</span><span class="sy0">,</span>
|
||
<span class="nu0">7</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jan'</span><span class="sy0">,</span>
|
||
<span class="nu0">8</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Feb'</span><span class="sy0">,</span>
|
||
<span class="nu0">9</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Mar'</span><span class="sy0">,</span>
|
||
<span class="nu0">10</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Apr'</span><span class="sy0">,</span>
|
||
<span class="nu0">11</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'May'</span><span class="sy0">,</span>
|
||
<span class="nu0">12</span><span class="br0">)</span><span class="br0">)</span> x <span class="br0">(</span>m<span class="sy0">,</span>
|
||
s<span class="br0">)</span>
|
||
<span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq
|
||
<span class="sy0">,</span>
|
||
base <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_fcpool
|
||
<span class="kw1">WHERE</span>
|
||
quota_rep_descr <span class="sy0">=</span> <span class="st0">'10032 - BRYAN HILL'</span>
|
||
<span class="kw1">AND</span> segm <span class="sy0">=</span> <span class="st0">'Greenhouse'</span>
|
||
<span class="kw1">AND</span> mod_chan <span class="sy0">=</span> <span class="st0">'DISTRIBUTOR'</span>
|
||
<span class="kw1">AND</span> part_descr <span class="sy0">=</span> <span class="st0">'AZG06000B66B200 - 06.00 AZ TW 300GN @20000 BULK'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="br0">)</span><span class="sy0">,</span>
|
||
months <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
mseq<span class="sy0">.</span>s seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
base
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
s<span class="br0">)</span><span class="sy0">,</span>
|
||
mpvt <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_month<span class="sy0">,</span>
|
||
seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0">=</span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 base qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 adj qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0">=</span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 base value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 adj value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_month<span class="sy0">,</span> seq
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
seq <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> mlist <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
mseq<span class="sy0">.</span>m order_month<span class="sy0">,</span> "2019 qty"<span class="sy0">,</span> "2020 base qty"<span class="sy0">,</span> "2020 adj qty"<span class="sy0">,</span> "2020 tot qty"<span class="sy0">,</span> "2019 value_usd"<span class="sy0">,</span> "2020 base value_usd"<span class="sy0">,</span> "2020 adj value_usd"<span class="sy0">,</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
mseq
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
mseq<span class="sy0">.</span>s <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> totals <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_build_object <span class="br0">(</span><span class="st0">'months'</span><span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
months<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'mpvt'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
mlist<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'base'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
base<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'totals'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
totals<span class="br0">)</span><span class="br0">)</span> package;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 15:01:25
|
||
<b>Duration:</b> 3s752ms
|
||
</pre>
|
||
<div id="query-g-explain-9-2" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Parallel%20Seq%20Scan%20on%20osm_fcpool%20%20%28cost%3D0.00..42056.88%20rows%3D1%20width%3D149%29%20%28actual%20time%3D148.955..3752.933%20rows%3D15%20loops%3D1%29%0A%09%20%20Filter%3A%20%28%28quota_rep_descr%20%3D%20%2710032%20-%20BRYAN%20HILL%27%3A%3Atext%29%20AND%20%28segm%20%3D%20%27Greenhouse%27%3A%3Atext%29%20AND%20%28mod_chan%20%3D%20%27DISTRIBUTOR%27%3A%3Atext%29%20AND%20%28part_descr%20%3D%20%27AZG06000B66B200%20-%2006.00%20AZ%20TW%20300GN%20%4020000%20BULK%27%3A%3Atext%29%29%0A%09%20%20Rows%20Removed%20by%20Filter%3A%20100266%0A%09%20%20Buffers%3A%20shared%20hit%3D1%20read%3D13062%0A%09%20%20I%2FO%20Timings%3A%20read%3D3634.126%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Parallel Seq Scan on osm_fcpool (cost=0.00..42056.88 rows=1 width=149) (actual time=148.955..3752.933 rows=15 loops=1)
|
||
Filter: ((quota_rep_descr = '10032 - BRYAN HILL'::text) AND (segm = 'Greenhouse'::text) AND (mod_chan = 'DISTRIBUTOR'::text) AND (part_descr = 'AZG06000B66B200 - 06.00 AZ TW 300GN @20000 BULK'::text))
|
||
Rows Removed by Filter: 100266
|
||
Buffers: shared hit=1 read=13062
|
||
I/O Timings: read=3634.126
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-g-9-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing
|
||
<span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span>
|
||
<span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">VALUES</span> <span class="br0">(</span><span class="st0">'Jun'</span><span class="sy0">,</span>
|
||
<span class="nu0">1</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jul'</span><span class="sy0">,</span>
|
||
<span class="nu0">2</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Aug'</span><span class="sy0">,</span>
|
||
<span class="nu0">3</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Sep'</span><span class="sy0">,</span>
|
||
<span class="nu0">4</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Oct'</span><span class="sy0">,</span>
|
||
<span class="nu0">5</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Nov'</span><span class="sy0">,</span>
|
||
<span class="nu0">6</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Dec'</span><span class="sy0">,</span>
|
||
<span class="nu0">7</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jan'</span><span class="sy0">,</span>
|
||
<span class="nu0">8</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Feb'</span><span class="sy0">,</span>
|
||
<span class="nu0">9</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Mar'</span><span class="sy0">,</span>
|
||
<span class="nu0">10</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Apr'</span><span class="sy0">,</span>
|
||
<span class="nu0">11</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'May'</span><span class="sy0">,</span>
|
||
<span class="nu0">12</span><span class="br0">)</span><span class="br0">)</span> x <span class="br0">(</span>m<span class="sy0">,</span>
|
||
s<span class="br0">)</span>
|
||
<span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq
|
||
<span class="sy0">,</span>
|
||
base <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_fcpool
|
||
<span class="kw1">WHERE</span>
|
||
quota_rep_descr <span class="sy0">=</span> <span class="st0">'10032 - BRYAN HILL'</span>
|
||
<span class="kw1">AND</span> segm <span class="sy0">=</span> <span class="st0">'Greenhouse'</span>
|
||
<span class="kw1">AND</span> mod_chan <span class="sy0">=</span> <span class="st0">'DISTRIBUTOR'</span>
|
||
<span class="kw1">AND</span> part_descr <span class="sy0">=</span> <span class="st0">'AZG06000B66B200 - 06.00 AZ TW 300GN @20000 BULK'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="br0">)</span><span class="sy0">,</span>
|
||
months <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
mseq<span class="sy0">.</span>s seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
base
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
s<span class="br0">)</span><span class="sy0">,</span>
|
||
mpvt <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_month<span class="sy0">,</span>
|
||
seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0">=</span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 base qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 adj qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0">=</span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 base value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 adj value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_month<span class="sy0">,</span> seq
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
seq <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> mlist <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
mseq<span class="sy0">.</span>m order_month<span class="sy0">,</span> "2019 qty"<span class="sy0">,</span> "2020 base qty"<span class="sy0">,</span> "2020 adj qty"<span class="sy0">,</span> "2020 tot qty"<span class="sy0">,</span> "2019 value_usd"<span class="sy0">,</span> "2020 base value_usd"<span class="sy0">,</span> "2020 adj value_usd"<span class="sy0">,</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
mseq
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
mseq<span class="sy0">.</span>s <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> totals <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_build_object <span class="br0">(</span><span class="st0">'months'</span><span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
months<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'mpvt'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
mlist<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'base'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
base<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'totals'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
totals<span class="br0">)</span><span class="br0">)</span> package;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 15:01:25
|
||
<b>Duration:</b> 3s749ms
|
||
</pre>
|
||
<div id="query-g-explain-9-3" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Parallel%20Seq%20Scan%20on%20osm_fcpool%20%20%28cost%3D0.00..42056.88%20rows%3D1%20width%3D149%29%20%28actual%20time%3D185.551..3749.831%20rows%3D32%20loops%3D1%29%0A%09%20%20Filter%3A%20%28%28quota_rep_descr%20%3D%20%2710032%20-%20BRYAN%20HILL%27%3A%3Atext%29%20AND%20%28segm%20%3D%20%27Greenhouse%27%3A%3Atext%29%20AND%20%28mod_chan%20%3D%20%27DISTRIBUTOR%27%3A%3Atext%29%20AND%20%28part_descr%20%3D%20%27AZG06000B66B200%20-%2006.00%20AZ%20TW%20300GN%20%4020000%20BULK%27%3A%3Atext%29%29%0A%09%20%20Rows%20Removed%20by%20Filter%3A%20100674%0A%09%20%20Buffers%3A%20shared%20hit%3D13%20read%3D13176%0A%09%20%20I%2FO%20Timings%3A%20read%3D3641.547%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Parallel Seq Scan on osm_fcpool (cost=0.00..42056.88 rows=1 width=149) (actual time=185.551..3749.831 rows=32 loops=1)
|
||
Filter: ((quota_rep_descr = '10032 - BRYAN HILL'::text) AND (segm = 'Greenhouse'::text) AND (mod_chan = 'DISTRIBUTOR'::text) AND (part_descr = 'AZG06000B66B200 - 06.00 AZ TW 300GN @20000 BULK'::text))
|
||
Rows Removed by Filter: 100674
|
||
Buffers: shared hit=13 read=13176
|
||
I/O Timings: read=3641.547
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-9">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>10</td>
|
||
<td>2s267ms</td>
|
||
<td>2s267ms</td>
|
||
<td>2s267ms</td>
|
||
<td>1
|
||
<p><a href="#Anormalized_slowest_queries_details_10" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>2s267ms</td>
|
||
<td id="normalized-slowest-queries-examples-details-rank-10">
|
||
<div id="query-g-10" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">SELECT</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>fb_val_loc <span class="sy0">*</span> r_rate<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Anormalized_slowest_queries_details_10" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #10</small></h3>
|
||
<div id="normalized_slowest_queries_details_10" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Anormalized_slowest_queries_details_10').on("shown.bs.collapse",function(){
|
||
var bars_84 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',1],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_84 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',2267],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var normalized_slowest_queries_details_10 = create_bargraph('normalized_slowest_queries_details_10', '', 'Queries', [ bars_84, lines_84 ], 'Avg. duration');
|
||
});
|
||
create_download_button(84, 'btn btn-default btn-xs');
|
||
add_download_button_event(84, 'normalized_slowest_queries_details_10');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 15</td><td>09</td><td>1</td><td>2s267ms</td><td>2s267ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Anormalized_slowest_queries_details_10">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-10">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-10">User(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="normalized-slowest-queries-user-involved-rank-10" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> ptrowbridge_md5 - <b>Total duration:</b> 2s267ms - <b>Times executed:</b> 1 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-10">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="normalized-slowest-queries-app-involved-rank-10" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> DBeaver 6.0.0 - Main - <b>Total duration:</b> 2s267ms - <b>Times executed:</b> 1 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-app-involved-rank-10">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="normalized-slowest-queries-examples-rank-10" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-g-10-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">SELECT</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>fb_val_loc <span class="sy0">*</span> r_rate<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 09:19:53
|
||
<b>Duration:</b> 2s267ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> DBeaver 6.0.0 - Main
|
||
</pre>
|
||
<div id="query-g-explain-10-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Finalize%20Aggregate%20%20%28cost%3D64705.63..64705.64%20rows%3D1%20width%3D8%29%20%28actual%20time%3D2267.421..2267.421%20rows%3D1%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20read%3D57992%0A%09%20%20I%2FO%20Timings%3A%20read%3D1653.381%0A%09%20%20-%3E%20%20Gather%20%20%28cost%3D64705.42..64705.63%20rows%3D2%20width%3D8%29%20%28actual%20time%3D2267.407..2267.411%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20Workers%20Launched%3A%200%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D57992%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1653.381%0A%09%20%20%20%20%20%20%20%20-%3E%20%20Partial%20Aggregate%20%20%28cost%3D63705.42..63705.43%20rows%3D1%20width%3D8%29%20%28actual%20time%3D2267.403..2267.404%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D57992%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1653.381%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20%20%28cost%3D0.00..61256.81%20rows%3D326481%20width%3D10%29%20%28actual%20time%3D0.619..1766.451%20rows%3D784529%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D57992%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1653.381%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Finalize Aggregate (cost=64705.63..64705.64 rows=1 width=8) (actual time=2267.421..2267.421 rows=1 loops=1)
|
||
Buffers: shared read=57992
|
||
I/O Timings: read=1653.381
|
||
-> Gather (cost=64705.42..64705.63 rows=2 width=8) (actual time=2267.407..2267.411 rows=1 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 0
|
||
Buffers: shared read=57992
|
||
I/O Timings: read=1653.381
|
||
-> Partial Aggregate (cost=63705.42..63705.43 rows=1 width=8) (actual time=2267.403..2267.404 rows=1 loops=1)
|
||
Buffers: shared read=57992
|
||
I/O Timings: read=1653.381
|
||
-> Parallel Seq Scan on osm (cost=0.00..61256.81 rows=326481 width=10) (actual time=0.619..1766.451 rows=784529 loops=1)
|
||
Buffers: shared read=57992
|
||
I/O Timings: read=1653.381
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-10">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>11</td>
|
||
<td>1s121ms</td>
|
||
<td>2s988ms</td>
|
||
<td>1s959ms</td>
|
||
<td>6
|
||
<p><a href="#Anormalized_slowest_queries_details_11" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>11s756ms</td>
|
||
<td id="normalized-slowest-queries-examples-details-rank-11">
|
||
<div id="query-g-11" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing <span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span> <span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> <span class="sy0">*</span> <span class="kw1">FROM</span> <span class="br0">(</span> <span class="kw1">VALUES</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="br0">)</span> x<span class="br0">(</span>m<span class="sy0">,</span>s<span class="br0">)</span> <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq <span class="sy0">,</span>base <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span>order_month <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>part_descr <span class="sy0">,</span>bill_cust_descr <span class="sy0">,</span>ship_cust_descr <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm_fcpool <span class="kw1">WHERE</span> quota_rep_descr <span class="sy0">=</span> ? <span class="kw1">AND</span> segm <span class="sy0">=</span> ? <span class="kw1">AND</span> mod_chan <span class="sy0">=</span> ? <span class="kw1">AND</span> part_descr <span class="sy0">=</span> ? <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span>order_month <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>part_descr <span class="sy0">,</span>bill_cust_descr <span class="sy0">,</span>ship_cust_descr <span class="br0">)</span> <span class="sy0">,</span>months <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>order_month <span class="sy0">,</span>mseq<span class="sy0">.</span>s seq <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> base <span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>order_month <span class="sy0">,</span>s <span class="br0">)</span> <span class="sy0">,</span>mpvt <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_month <span class="sy0">,</span>seq <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span><span class="br0">)</span> "? base qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="kw1">NOT</span> <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span><span class="br0">)</span> "? adj qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? tot qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span><span class="br0">)</span> "? base value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="kw1">NOT</span> <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span><span class="br0">)</span> "? adj value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? tot value_usd" <span class="kw1">FROM</span> months <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_month <span class="sy0">,</span>seq <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> seq <span class="kw1">ASC</span> <span class="br0">)</span> <span class="sy0">,</span>mlist <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> mseq<span class="sy0">.</span>m order_month <span class="sy0">,</span>"? qty" <span class="sy0">,</span>"? base qty" <span class="sy0">,</span>"? adj qty" <span class="sy0">,</span>"? tot qty" <span class="sy0">,</span>"? value_usd" <span class="sy0">,</span>"? base value_usd" <span class="sy0">,</span>"? adj value_usd" <span class="sy0">,</span>"? tot value_usd" <span class="kw1">FROM</span> mseq <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> mseq<span class="sy0">.</span>s <span class="kw1">ASC</span> <span class="br0">)</span> <span class="sy0">,</span>totals <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> months <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="br0">)</span> <span class="kw1">SELECT</span> jsonb_build_object<span class="br0">(</span> ? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> months<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> mlist<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> base<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> totals<span class="br0">)</span> <span class="br0">)</span> package ;
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Anormalized_slowest_queries_details_11" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #11</small></h3>
|
||
<div id="normalized_slowest_queries_details_11" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Anormalized_slowest_queries_details_11').on("shown.bs.collapse",function(){
|
||
var bars_85 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',3],['14:00',0],['15:00',0],['16:00',3],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_85 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',1129],['14:00',0],['15:00',0],['16:00',2789],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var normalized_slowest_queries_details_11 = create_bargraph('normalized_slowest_queries_details_11', '', 'Queries', [ bars_85, lines_85 ], 'Avg. duration');
|
||
});
|
||
create_download_button(85, 'btn btn-default btn-xs');
|
||
add_download_button_event(85, 'normalized_slowest_queries_details_11');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 15</td><td>16</td><td>3</td><td>8s369ms</td><td>2s789ms</td></tr><tr><td>Mar 18</td><td>13</td><td>3</td><td>3s387ms</td><td>1s129ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Anormalized_slowest_queries_details_11">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-11">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-11">User(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="normalized-slowest-queries-user-involved-rank-11" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> api - <b>Total duration:</b> 4s131ms - <b>Times executed:</b> 2 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-11">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="normalized-slowest-queries-app-involved-rank-11" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> osm_api - <b>Total duration:</b> 4s131ms - <b>Times executed:</b> 2 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-app-involved-rank-11">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="normalized-slowest-queries-examples-rank-11" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-g-11-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing
|
||
<span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span>
|
||
<span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">VALUES</span> <span class="br0">(</span><span class="st0">'Jun'</span><span class="sy0">,</span>
|
||
<span class="nu0">1</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jul'</span><span class="sy0">,</span>
|
||
<span class="nu0">2</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Aug'</span><span class="sy0">,</span>
|
||
<span class="nu0">3</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Sep'</span><span class="sy0">,</span>
|
||
<span class="nu0">4</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Oct'</span><span class="sy0">,</span>
|
||
<span class="nu0">5</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Nov'</span><span class="sy0">,</span>
|
||
<span class="nu0">6</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Dec'</span><span class="sy0">,</span>
|
||
<span class="nu0">7</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jan'</span><span class="sy0">,</span>
|
||
<span class="nu0">8</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Feb'</span><span class="sy0">,</span>
|
||
<span class="nu0">9</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Mar'</span><span class="sy0">,</span>
|
||
<span class="nu0">10</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Apr'</span><span class="sy0">,</span>
|
||
<span class="nu0">11</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'May'</span><span class="sy0">,</span>
|
||
<span class="nu0">12</span><span class="br0">)</span><span class="br0">)</span> x <span class="br0">(</span>m<span class="sy0">,</span>
|
||
s<span class="br0">)</span>
|
||
<span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq
|
||
<span class="sy0">,</span>
|
||
base <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_fcpool
|
||
<span class="kw1">WHERE</span>
|
||
quota_rep_descr <span class="sy0">=</span> <span class="st0">'10032 - BRYAN HILL'</span>
|
||
<span class="kw1">AND</span> segm <span class="sy0">=</span> <span class="st0">'Greenhouse'</span>
|
||
<span class="kw1">AND</span> mod_chan <span class="sy0">=</span> <span class="st0">'DISTRIBUTOR'</span>
|
||
<span class="kw1">AND</span> part_descr <span class="sy0">=</span> <span class="st0">'AZG06000B66B200 - 06.00 AZ TW 300GN @20000 BULK'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="br0">)</span><span class="sy0">,</span>
|
||
months <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
mseq<span class="sy0">.</span>s seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
base
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
s<span class="br0">)</span><span class="sy0">,</span>
|
||
mpvt <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_month<span class="sy0">,</span>
|
||
seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'copy'</span><span class="sy0">,</span> <span class="st0">'short ship'</span><span class="sy0">,</span> <span class="st0">'bad_ship'</span><span class="br0">)</span><span class="br0">)</span> "2020 base qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="kw1">NOT</span> <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'copy'</span><span class="sy0">,</span> <span class="st0">'short ship'</span><span class="sy0">,</span> <span class="st0">'bad_ship'</span><span class="br0">)</span><span class="br0">)</span> "2020 adj qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'copy'</span><span class="sy0">,</span> <span class="st0">'short ship'</span><span class="sy0">,</span> <span class="st0">'bad_ship'</span><span class="br0">)</span><span class="br0">)</span> "2020 base value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="kw1">NOT</span> <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'copy'</span><span class="sy0">,</span> <span class="st0">'short ship'</span><span class="sy0">,</span> <span class="st0">'bad_ship'</span><span class="br0">)</span><span class="br0">)</span> "2020 adj value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_month<span class="sy0">,</span> seq
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
seq <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> mlist <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
mseq<span class="sy0">.</span>m order_month<span class="sy0">,</span> "2019 qty"<span class="sy0">,</span> "2020 base qty"<span class="sy0">,</span> "2020 adj qty"<span class="sy0">,</span> "2020 tot qty"<span class="sy0">,</span> "2019 value_usd"<span class="sy0">,</span> "2020 base value_usd"<span class="sy0">,</span> "2020 adj value_usd"<span class="sy0">,</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
mseq
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
mseq<span class="sy0">.</span>s <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> totals <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_build_object <span class="br0">(</span><span class="st0">'months'</span><span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
months<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'mpvt'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
mlist<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'base'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
base<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'totals'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
totals<span class="br0">)</span><span class="br0">)</span> package;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 16:48:48
|
||
<b>Duration:</b> 2s988ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> api
|
||
<b>Remote:</b> ubreport
|
||
<b>Application:</b> osm_api
|
||
</pre>
|
||
<div id="query-g-explain-11-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Result%20%20%28cost%3D43058.77..43058.78%20rows%3D1%20width%3D32%29%20%28actual%20time%3D2986.772..2986.773%20rows%3D1%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D9%20read%3D39543%0A%09%20%20I%2FO%20Timings%3A%20read%3D8023.323%0A%09%20%20CTE%20mseq%0A%09%20%20%20%20-%3E%20%20Values%20Scan%20on%20%22%2AVALUES%2A%22%20%20%28cost%3D0.00..0.15%20rows%3D12%20width%3D36%29%20%28actual%20time%3D0.002..0.010%20rows%3D12%20loops%3D1%29%0A%09%20%20CTE%20base%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D43056.99..43057.03%20rows%3D1%20width%3D176%29%20%28actual%20time%3D2980.662..2980.715%20rows%3D43%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20osm_fcpool.order_season%2C%20osm_fcpool.order_month%2C%20osm_fcpool.version%2C%20osm_fcpool.iter%2C%20osm_fcpool.part_descr%2C%20osm_fcpool.bill_cust_descr%2C%20osm_fcpool.ship_cust_descr%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8023.323%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D43056.99..43056.99%20rows%3D1%20width%3D149%29%20%28actual%20time%3D2980.648..2980.652%20rows%3D72%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20osm_fcpool.order_season%2C%20osm_fcpool.order_month%2C%20osm_fcpool.version%2C%20osm_fcpool.iter%2C%20osm_fcpool.bill_cust_descr%2C%20osm_fcpool.ship_cust_descr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2044kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8023.323%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..43056.97%20rows%3D1%20width%3D149%29%20%28actual%20time%3D37.232..2980.519%20rows%3D72%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8023.323%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm_fcpool%20%20%28cost%3D0.00..42056.88%20rows%3D1%20width%3D149%29%20%28actual%20time%3D103.278..2786.395%20rows%3D24%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28quota_rep_descr%20%3D%20%2710032%20-%20BRYAN%20HILL%27%3A%3Atext%29%20AND%20%28segm%20%3D%20%27Greenhouse%27%3A%3Atext%29%20AND%20%28mod_chan%20%3D%20%27DISTRIBUTOR%27%3A%3Atext%29%20AND%20%28part_descr%20%3D%20%27AZG06000B66B200%20-%2006.00%20AZ%20TW%20300GN%20%4020000%20BULK%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20100422%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8023.323%0A%09%20%20CTE%20months%0A%09%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D0.35..0.36%20rows%3D1%20width%3D152%29%20%28actual%20time%3D2980.841..2980.865%20rows%3D17%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20base.order_season%2C%20base.version%2C%20base.iter%2C%20base.order_month%2C%20mseq.s%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8023.323%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Join%20%20%28cost%3D0.03..0.33%20rows%3D1%20width%3D148%29%20%28actual%20time%3D2980.782..2980.808%20rows%3D43%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28mseq.m%20%3D%20base.order_month%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8023.323%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mseq%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D36%29%20%28actual%20time%3D0.004..0.017%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.02..0.02%20rows%3D1%20width%3D144%29%20%28actual%20time%3D2980.767..2980.767%20rows%3D43%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2012kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8023.323%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20base%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D144%29%20%28actual%20time%3D2980.665..2980.749%20rows%3D43%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8023.323%0A%09%20%20CTE%20mpvt%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D0.03..0.11%20rows%3D1%20width%3D196%29%20%28actual%20time%3D0.036..0.056%20rows%3D7%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20months.seq%2C%20months.order_month%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D0.03..0.04%20rows%3D1%20width%3D116%29%20%28actual%20time%3D0.021..0.022%20rows%3D17%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20months.seq%2C%20months.order_month%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20months%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D116%29%20%28actual%20time%3D0.002..0.005%20rows%3D17%20loops%3D1%29%0A%09%20%20CTE%20mlist%0A%09%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D0.54..0.57%20rows%3D12%20width%3D196%29%20%28actual%20time%3D0.159..0.162%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20mseq_1.s%0A%09%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D0.03..0.33%20rows%3D12%20width%3D196%29%20%28actual%20time%3D0.101..0.107%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28mseq_1.m%20%3D%20mpvt.order_month%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mseq%20mseq_1%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D36%29%20%28actual%20time%3D0.001..0.003%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.02..0.02%20rows%3D1%20width%3D192%29%20%28actual%20time%3D0.071..0.071%20rows%3D7%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mpvt%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D192%29%20%28actual%20time%3D0.038..0.063%20rows%3D7%20loops%3D1%29%0A%09%20%20CTE%20totals%0A%09%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D0.03..0.05%20rows%3D1%20width%3D112%29%20%28actual%20time%3D0.021..0.024%20rows%3D6%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20months_1.order_season%2C%20months_1.version%2C%20months_1.iter%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20months%20months_1%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D112%29%20%28actual%20time%3D0.001..0.004%20rows%3D17%20loops%3D1%29%0A%09%20%20InitPlan%207%20%28returns%20%247%29%0A%09%20%20%20%20-%3E%20%20Aggregate%20%20%28cost%3D0.03..0.04%20rows%3D1%20width%3D32%29%20%28actual%20time%3D2985.173..2985.173%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8023.323%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20months%20months_2%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D24%29%20%28actual%20time%3D2981.027..2981.083%20rows%3D17%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D6%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D8023.323%0A%09%20%20InitPlan%208%20%28returns%20%248%29%0A%09%20%20%20%20-%3E%20%20Aggregate%20%20%28cost%3D0.36..0.37%20rows%3D1%20width%3D32%29%20%28actual%20time%3D0.435..0.435%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mlist%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D24%29%20%28actual%20time%3D0.179..0.197%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3%0A%09%20%20InitPlan%209%20%28returns%20%249%29%0A%09%20%20%20%20-%3E%20%20Aggregate%20%20%28cost%3D0.03..0.04%20rows%3D1%20width%3D32%29%20%28actual%20time%3D0.845..0.845%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20base%20base_1%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D24%29%20%28actual%20time%3D0.007..0.034%20rows%3D43%20loops%3D1%29%0A%09%20%20InitPlan%2010%20%28returns%20%2410%29%0A%09%20%20%20%20-%3E%20%20Aggregate%20%20%28cost%3D0.03..0.04%20rows%3D1%20width%3D32%29%20%28actual%20time%3D0.109..0.109%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20totals%20%20%28cost%3D0.00..0.02%20rows%3D1%20width%3D24%29%20%28actual%20time%3D0.030..0.038%20rows%3D6%20loops%3D1%29%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Result (cost=43058.77..43058.78 rows=1 width=32) (actual time=2986.772..2986.773 rows=1 loops=1)
|
||
Buffers: shared hit=9 read=39543
|
||
I/O Timings: read=8023.323
|
||
CTE mseq
|
||
-> Values Scan on "*VALUES*" (cost=0.00..0.15 rows=12 width=36) (actual time=0.002..0.010 rows=12 loops=1)
|
||
CTE base
|
||
-> GroupAggregate (cost=43056.99..43057.03 rows=1 width=176) (actual time=2980.662..2980.715 rows=43 loops=1)
|
||
Group Key: osm_fcpool.order_season, osm_fcpool.order_month, osm_fcpool.version, osm_fcpool.iter, osm_fcpool.part_descr, osm_fcpool.bill_cust_descr, osm_fcpool.ship_cust_descr
|
||
Buffers: shared hit=6 read=39543
|
||
I/O Timings: read=8023.323
|
||
-> Sort (cost=43056.99..43056.99 rows=1 width=149) (actual time=2980.648..2980.652 rows=72 loops=1)
|
||
Sort Key: osm_fcpool.order_season, osm_fcpool.order_month, osm_fcpool.version, osm_fcpool.iter, osm_fcpool.bill_cust_descr, osm_fcpool.ship_cust_descr
|
||
Sort Method: quicksort Memory: 44kB
|
||
Buffers: shared hit=6 read=39543
|
||
I/O Timings: read=8023.323
|
||
-> Gather (cost=1000.00..43056.97 rows=1 width=149) (actual time=37.232..2980.519 rows=72 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared read=39543
|
||
I/O Timings: read=8023.323
|
||
-> Parallel Seq Scan on osm_fcpool (cost=0.00..42056.88 rows=1 width=149) (actual time=103.278..2786.395 rows=24 loops=3)
|
||
Filter: ((quota_rep_descr = '10032 - BRYAN HILL'::text) AND (segm = 'Greenhouse'::text) AND (mod_chan = 'DISTRIBUTOR'::text) AND (part_descr = 'AZG06000B66B200 - 06.00 AZ TW 300GN @20000 BULK'::text))
|
||
Rows Removed by Filter: 100422
|
||
Buffers: shared read=39543
|
||
I/O Timings: read=8023.323
|
||
CTE months
|
||
-> HashAggregate (cost=0.35..0.36 rows=1 width=152) (actual time=2980.841..2980.865 rows=17 loops=1)
|
||
Group Key: base.order_season, base.version, base.iter, base.order_month, mseq.s
|
||
Buffers: shared hit=6 read=39543
|
||
I/O Timings: read=8023.323
|
||
-> Hash Join (cost=0.03..0.33 rows=1 width=148) (actual time=2980.782..2980.808 rows=43 loops=1)
|
||
Hash Cond: (mseq.m = base.order_month)
|
||
Buffers: shared hit=6 read=39543
|
||
I/O Timings: read=8023.323
|
||
-> CTE Scan on mseq (cost=0.00..0.24 rows=12 width=36) (actual time=0.004..0.017 rows=12 loops=1)
|
||
-> Hash (cost=0.02..0.02 rows=1 width=144) (actual time=2980.767..2980.767 rows=43 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 12kB
|
||
Buffers: shared hit=6 read=39543
|
||
I/O Timings: read=8023.323
|
||
-> CTE Scan on base (cost=0.00..0.02 rows=1 width=144) (actual time=2980.665..2980.749 rows=43 loops=1)
|
||
Buffers: shared hit=6 read=39543
|
||
I/O Timings: read=8023.323
|
||
CTE mpvt
|
||
-> GroupAggregate (cost=0.03..0.11 rows=1 width=196) (actual time=0.036..0.056 rows=7 loops=1)
|
||
Group Key: months.seq, months.order_month
|
||
-> Sort (cost=0.03..0.04 rows=1 width=116) (actual time=0.021..0.022 rows=17 loops=1)
|
||
Sort Key: months.seq, months.order_month
|
||
Sort Method: quicksort Memory: 26kB
|
||
-> CTE Scan on months (cost=0.00..0.02 rows=1 width=116) (actual time=0.002..0.005 rows=17 loops=1)
|
||
CTE mlist
|
||
-> Sort (cost=0.54..0.57 rows=12 width=196) (actual time=0.159..0.162 rows=12 loops=1)
|
||
Sort Key: mseq_1.s
|
||
Sort Method: quicksort Memory: 26kB
|
||
Buffers: shared hit=3
|
||
-> Hash Left Join (cost=0.03..0.33 rows=12 width=196) (actual time=0.101..0.107 rows=12 loops=1)
|
||
Hash Cond: (mseq_1.m = mpvt.order_month)
|
||
-> CTE Scan on mseq mseq_1 (cost=0.00..0.24 rows=12 width=36) (actual time=0.001..0.003 rows=12 loops=1)
|
||
-> Hash (cost=0.02..0.02 rows=1 width=192) (actual time=0.071..0.071 rows=7 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mpvt (cost=0.00..0.02 rows=1 width=192) (actual time=0.038..0.063 rows=7 loops=1)
|
||
CTE totals
|
||
-> HashAggregate (cost=0.03..0.05 rows=1 width=112) (actual time=0.021..0.024 rows=6 loops=1)
|
||
Group Key: months_1.order_season, months_1.version, months_1.iter
|
||
-> CTE Scan on months months_1 (cost=0.00..0.02 rows=1 width=112) (actual time=0.001..0.004 rows=17 loops=1)
|
||
InitPlan 7 (returns $7)
|
||
-> Aggregate (cost=0.03..0.04 rows=1 width=32) (actual time=2985.173..2985.173 rows=1 loops=1)
|
||
Buffers: shared hit=6 read=39543
|
||
I/O Timings: read=8023.323
|
||
-> CTE Scan on months months_2 (cost=0.00..0.02 rows=1 width=24) (actual time=2981.027..2981.083 rows=17 loops=1)
|
||
Buffers: shared hit=6 read=39543
|
||
I/O Timings: read=8023.323
|
||
InitPlan 8 (returns $8)
|
||
-> Aggregate (cost=0.36..0.37 rows=1 width=32) (actual time=0.435..0.435 rows=1 loops=1)
|
||
Buffers: shared hit=3
|
||
-> CTE Scan on mlist (cost=0.00..0.24 rows=12 width=24) (actual time=0.179..0.197 rows=12 loops=1)
|
||
Buffers: shared hit=3
|
||
InitPlan 9 (returns $9)
|
||
-> Aggregate (cost=0.03..0.04 rows=1 width=32) (actual time=0.845..0.845 rows=1 loops=1)
|
||
-> CTE Scan on base base_1 (cost=0.00..0.02 rows=1 width=24) (actual time=0.007..0.034 rows=43 loops=1)
|
||
InitPlan 10 (returns $10)
|
||
-> Aggregate (cost=0.03..0.04 rows=1 width=32) (actual time=0.109..0.109 rows=1 loops=1)
|
||
-> CTE Scan on totals (cost=0.00..0.02 rows=1 width=24) (actual time=0.030..0.038 rows=6 loops=1)
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-g-11-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing
|
||
<span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span>
|
||
<span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">VALUES</span> <span class="br0">(</span><span class="st0">'Jun'</span><span class="sy0">,</span>
|
||
<span class="nu0">1</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jul'</span><span class="sy0">,</span>
|
||
<span class="nu0">2</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Aug'</span><span class="sy0">,</span>
|
||
<span class="nu0">3</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Sep'</span><span class="sy0">,</span>
|
||
<span class="nu0">4</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Oct'</span><span class="sy0">,</span>
|
||
<span class="nu0">5</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Nov'</span><span class="sy0">,</span>
|
||
<span class="nu0">6</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Dec'</span><span class="sy0">,</span>
|
||
<span class="nu0">7</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jan'</span><span class="sy0">,</span>
|
||
<span class="nu0">8</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Feb'</span><span class="sy0">,</span>
|
||
<span class="nu0">9</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Mar'</span><span class="sy0">,</span>
|
||
<span class="nu0">10</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Apr'</span><span class="sy0">,</span>
|
||
<span class="nu0">11</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'May'</span><span class="sy0">,</span>
|
||
<span class="nu0">12</span><span class="br0">)</span><span class="br0">)</span> x <span class="br0">(</span>m<span class="sy0">,</span>
|
||
s<span class="br0">)</span>
|
||
<span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq
|
||
<span class="sy0">,</span>
|
||
base <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_fcpool
|
||
<span class="kw1">WHERE</span>
|
||
quota_rep_descr <span class="sy0">=</span> <span class="st0">'10032 - BRYAN HILL'</span>
|
||
<span class="kw1">AND</span> segm <span class="sy0">=</span> <span class="st0">'Greenhouse'</span>
|
||
<span class="kw1">AND</span> mod_chan <span class="sy0">=</span> <span class="st0">'DISTRIBUTOR'</span>
|
||
<span class="kw1">AND</span> part_descr <span class="sy0">=</span> <span class="st0">'AZG06000B66B200 - 06.00 AZ TW 300GN @20000 BULK'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="br0">)</span><span class="sy0">,</span>
|
||
months <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
mseq<span class="sy0">.</span>s seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
base
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
s<span class="br0">)</span><span class="sy0">,</span>
|
||
mpvt <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_month<span class="sy0">,</span>
|
||
seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'copy'</span><span class="sy0">,</span> <span class="st0">'short ship'</span><span class="sy0">,</span> <span class="st0">'bad_ship'</span><span class="br0">)</span><span class="br0">)</span> "2020 base qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="kw1">NOT</span> <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'copy'</span><span class="sy0">,</span> <span class="st0">'short ship'</span><span class="sy0">,</span> <span class="st0">'bad_ship'</span><span class="br0">)</span><span class="br0">)</span> "2020 adj qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'copy'</span><span class="sy0">,</span> <span class="st0">'short ship'</span><span class="sy0">,</span> <span class="st0">'bad_ship'</span><span class="br0">)</span><span class="br0">)</span> "2020 base value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="kw1">NOT</span> <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'copy'</span><span class="sy0">,</span> <span class="st0">'short ship'</span><span class="sy0">,</span> <span class="st0">'bad_ship'</span><span class="br0">)</span><span class="br0">)</span> "2020 adj value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_month<span class="sy0">,</span> seq
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
seq <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> mlist <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
mseq<span class="sy0">.</span>m order_month<span class="sy0">,</span> "2019 qty"<span class="sy0">,</span> "2020 base qty"<span class="sy0">,</span> "2020 adj qty"<span class="sy0">,</span> "2020 tot qty"<span class="sy0">,</span> "2019 value_usd"<span class="sy0">,</span> "2020 base value_usd"<span class="sy0">,</span> "2020 adj value_usd"<span class="sy0">,</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
mseq
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
mseq<span class="sy0">.</span>s <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> totals <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_build_object <span class="br0">(</span><span class="st0">'months'</span><span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
months<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'mpvt'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
mlist<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'base'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
base<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'totals'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
totals<span class="br0">)</span><span class="br0">)</span> package;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 16:48:48
|
||
<b>Duration:</b> 2s690ms
|
||
</pre>
|
||
<div id="query-g-explain-11-2" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Parallel%20Seq%20Scan%20on%20osm_fcpool%20%20%28cost%3D0.00..42056.88%20rows%3D1%20width%3D149%29%20%28actual%20time%3D195.353..2690.533%20rows%3D16%20loops%3D1%29%0A%09%20%20Filter%3A%20%28%28quota_rep_descr%20%3D%20%2710032%20-%20BRYAN%20HILL%27%3A%3Atext%29%20AND%20%28segm%20%3D%20%27Greenhouse%27%3A%3Atext%29%20AND%20%28mod_chan%20%3D%20%27DISTRIBUTOR%27%3A%3Atext%29%20AND%20%28part_descr%20%3D%20%27AZG06000B66B200%20-%2006.00%20AZ%20TW%20300GN%20%4020000%20BULK%27%3A%3Atext%29%29%0A%09%20%20Rows%20Removed%20by%20Filter%3A%2076890%0A%09%20%20Buffers%3A%20shared%20read%3D10399%0A%09%20%20I%2FO%20Timings%3A%20read%3D2598.181%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Parallel Seq Scan on osm_fcpool (cost=0.00..42056.88 rows=1 width=149) (actual time=195.353..2690.533 rows=16 loops=1)
|
||
Filter: ((quota_rep_descr = '10032 - BRYAN HILL'::text) AND (segm = 'Greenhouse'::text) AND (mod_chan = 'DISTRIBUTOR'::text) AND (part_descr = 'AZG06000B66B200 - 06.00 AZ TW 300GN @20000 BULK'::text))
|
||
Rows Removed by Filter: 76890
|
||
Buffers: shared read=10399
|
||
I/O Timings: read=2598.181
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-g-11-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing
|
||
<span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span>
|
||
<span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">VALUES</span> <span class="br0">(</span><span class="st0">'Jun'</span><span class="sy0">,</span>
|
||
<span class="nu0">1</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jul'</span><span class="sy0">,</span>
|
||
<span class="nu0">2</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Aug'</span><span class="sy0">,</span>
|
||
<span class="nu0">3</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Sep'</span><span class="sy0">,</span>
|
||
<span class="nu0">4</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Oct'</span><span class="sy0">,</span>
|
||
<span class="nu0">5</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Nov'</span><span class="sy0">,</span>
|
||
<span class="nu0">6</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Dec'</span><span class="sy0">,</span>
|
||
<span class="nu0">7</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jan'</span><span class="sy0">,</span>
|
||
<span class="nu0">8</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Feb'</span><span class="sy0">,</span>
|
||
<span class="nu0">9</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Mar'</span><span class="sy0">,</span>
|
||
<span class="nu0">10</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Apr'</span><span class="sy0">,</span>
|
||
<span class="nu0">11</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'May'</span><span class="sy0">,</span>
|
||
<span class="nu0">12</span><span class="br0">)</span><span class="br0">)</span> x <span class="br0">(</span>m<span class="sy0">,</span>
|
||
s<span class="br0">)</span>
|
||
<span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq
|
||
<span class="sy0">,</span>
|
||
base <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_fcpool
|
||
<span class="kw1">WHERE</span>
|
||
quota_rep_descr <span class="sy0">=</span> <span class="st0">'10032 - BRYAN HILL'</span>
|
||
<span class="kw1">AND</span> segm <span class="sy0">=</span> <span class="st0">'Greenhouse'</span>
|
||
<span class="kw1">AND</span> mod_chan <span class="sy0">=</span> <span class="st0">'DISTRIBUTOR'</span>
|
||
<span class="kw1">AND</span> part_descr <span class="sy0">=</span> <span class="st0">'AZG06000B66B200 - 06.00 AZ TW 300GN @20000 BULK'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="br0">)</span><span class="sy0">,</span>
|
||
months <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
mseq<span class="sy0">.</span>s seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
base
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
s<span class="br0">)</span><span class="sy0">,</span>
|
||
mpvt <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_month<span class="sy0">,</span>
|
||
seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'copy'</span><span class="sy0">,</span> <span class="st0">'short ship'</span><span class="sy0">,</span> <span class="st0">'bad_ship'</span><span class="br0">)</span><span class="br0">)</span> "2020 base qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="kw1">NOT</span> <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'copy'</span><span class="sy0">,</span> <span class="st0">'short ship'</span><span class="sy0">,</span> <span class="st0">'bad_ship'</span><span class="br0">)</span><span class="br0">)</span> "2020 adj qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'copy'</span><span class="sy0">,</span> <span class="st0">'short ship'</span><span class="sy0">,</span> <span class="st0">'bad_ship'</span><span class="br0">)</span><span class="br0">)</span> "2020 base value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="kw1">NOT</span> <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'copy'</span><span class="sy0">,</span> <span class="st0">'short ship'</span><span class="sy0">,</span> <span class="st0">'bad_ship'</span><span class="br0">)</span><span class="br0">)</span> "2020 adj value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_month<span class="sy0">,</span> seq
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
seq <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> mlist <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
mseq<span class="sy0">.</span>m order_month<span class="sy0">,</span> "2019 qty"<span class="sy0">,</span> "2020 base qty"<span class="sy0">,</span> "2020 adj qty"<span class="sy0">,</span> "2020 tot qty"<span class="sy0">,</span> "2019 value_usd"<span class="sy0">,</span> "2020 base value_usd"<span class="sy0">,</span> "2020 adj value_usd"<span class="sy0">,</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
mseq
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
mseq<span class="sy0">.</span>s <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> totals <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_build_object <span class="br0">(</span><span class="st0">'months'</span><span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
months<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'mpvt'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
mlist<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'base'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
base<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'totals'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
totals<span class="br0">)</span><span class="br0">)</span> package;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 16:48:48
|
||
<b>Duration:</b> 2s690ms
|
||
</pre>
|
||
<div id="query-g-explain-11-3" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Parallel%20Seq%20Scan%20on%20osm_fcpool%20%20%28cost%3D0.00..42056.88%20rows%3D1%20width%3D149%29%20%28actual%20time%3D77.724..2690.442%20rows%3D19%20loops%3D1%29%0A%09%20%20Filter%3A%20%28%28quota_rep_descr%20%3D%20%2710032%20-%20BRYAN%20HILL%27%3A%3Atext%29%20AND%20%28segm%20%3D%20%27Greenhouse%27%3A%3Atext%29%20AND%20%28mod_chan%20%3D%20%27DISTRIBUTOR%27%3A%3Atext%29%20AND%20%28part_descr%20%3D%20%27AZG06000B66B200%20-%2006.00%20AZ%20TW%20300GN%20%4020000%20BULK%27%3A%3Atext%29%29%0A%09%20%20Rows%20Removed%20by%20Filter%3A%2076638%0A%09%20%20Buffers%3A%20shared%20read%3D10361%0A%09%20%20I%2FO%20Timings%3A%20read%3D2590.846%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Parallel Seq Scan on osm_fcpool (cost=0.00..42056.88 rows=1 width=149) (actual time=77.724..2690.442 rows=19 loops=1)
|
||
Filter: ((quota_rep_descr = '10032 - BRYAN HILL'::text) AND (segm = 'Greenhouse'::text) AND (mod_chan = 'DISTRIBUTOR'::text) AND (part_descr = 'AZG06000B66B200 - 06.00 AZ TW 300GN @20000 BULK'::text))
|
||
Rows Removed by Filter: 76638
|
||
Buffers: shared read=10361
|
||
I/O Timings: read=2590.846
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-11">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>12</td>
|
||
<td>1s444ms</td>
|
||
<td>3s349ms</td>
|
||
<td>1s835ms</td>
|
||
<td>6
|
||
<p><a href="#Anormalized_slowest_queries_details_12" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>11s11ms</td>
|
||
<td id="normalized-slowest-queries-examples-details-rank-12">
|
||
<div id="query-g-12" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>create <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> gld<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>; <span class="kw1">WITH</span> un <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> ? srce <span class="sy0">,</span>od<span class="sy0">.</span>ssyr oseas <span class="sy0">,</span>od<span class="sy0">.</span>sdat odate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr sseas <span class="sy0">,</span>sd<span class="sy0">.</span>sdat sdate <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> om <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> sm <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> oy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_qty <span class="br0">)</span> qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_val_loc <span class="sy0">*</span> r_rate <span class="br0">)</span> sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_cst_loc <span class="sy0">*</span> c_rate <span class="br0">)</span> stdcost <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osmf osm <span class="kw1">INNER</span> <span class="kw1">JOIN</span> gld od <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_orderdate <span class="kw1">BETWEEN</span> od<span class="sy0">.</span>sdat <span class="kw1">AND</span> od<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld sd <span class="kw1">ON</span> osm<span class="sy0">.</span>fspr <span class="sy0">=</span> sd<span class="sy0">.</span>fspr <span class="kw1">WHERE</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>glec<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>fs_line<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">=</span> ? <span class="kw1">AND</span> calc_status <span class="sy0"><</span><span class="sy0">></span> ? <span class="sy0">-</span><span class="sy0">-</span>open orders <span class="kw1">AND</span> sd<span class="sy0">.</span>cm <span class="sy0">=</span> ? <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future fspr <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> od<span class="sy0">.</span>ssyr <span class="sy0">,</span>od<span class="sy0">.</span>sdat <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr <span class="sy0">,</span>sd<span class="sy0">.</span>sdat <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="kw1">UNION</span> <span class="kw1">ALL</span> <span class="kw1">SELECT</span> ? srce <span class="sy0">,</span>od<span class="sy0">.</span>ssyr oseas <span class="sy0">,</span>od<span class="sy0">.</span>sdat odate <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr sseas <span class="sy0">,</span>sd<span class="sy0">.</span>sdat sdate <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> om <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> sm <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> oy <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_qty <span class="br0">)</span> qty <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_val_loc <span class="sy0">*</span> r_rate <span class="br0">)</span> sales <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span> fb_cst_loc <span class="sy0">*</span> c_rate <span class="br0">)</span> stdcost <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm osm <span class="kw1">INNER</span> <span class="kw1">JOIN</span> gld od <span class="kw1">ON</span> osm<span class="sy0">.</span>adj_orderdate <span class="kw1">BETWEEN</span> od<span class="sy0">.</span>sdat <span class="kw1">AND</span> od<span class="sy0">.</span>edat <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> gld sd <span class="kw1">ON</span> greatest<span class="br0">(</span>osm<span class="sy0">.</span>adj_requestdate<span class="sy0">,</span><span class="kw2">current_date</span><span class="br0">)</span> <span class="kw1">BETWEEN</span> sd<span class="sy0">.</span>sdat <span class="kw1">AND</span> sd<span class="sy0">.</span>edat <span class="kw1">WHERE</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>fs_line<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">=</span> ? <span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>osm<span class="sy0">.</span>glec<span class="sy0">,</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> ? <span class="kw1">AND</span> calc_status <span class="kw1">IN</span> <span class="br0">(</span><span class="sy0">.</span><span class="sy0">.</span><span class="sy0">.</span><span class="br0">)</span> <span class="kw1">AND</span> flag <span class="sy0">=</span> ? <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> od<span class="sy0">.</span>ssyr <span class="sy0">,</span>od<span class="sy0">.</span>sdat <span class="sy0">,</span>sd<span class="sy0">.</span>ssyr <span class="sy0">,</span>sd<span class="sy0">.</span>sdat <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cm<span class="sy0">,</span>sd<span class="sy0">.</span>cm<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cm<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>od<span class="sy0">.</span>cy<span class="sy0">,</span>sd<span class="sy0">.</span>cy<span class="br0">)</span> <span class="sy0">,</span><span class="kw2">coalesce</span><span class="br0">(</span>sd<span class="sy0">.</span>cy<span class="sy0">,</span>?<span class="br0">)</span> <span class="br0">)</span> <span class="kw1">SELECT</span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>qty<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>stdcost<span class="br0">)</span> "cost" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>sales<span class="br0">)</span> sales <span class="kw1">FROM</span> un <span class="kw1">WHERE</span> om <span class="sy0"><</span><span class="sy0">></span> ? <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> srce <span class="sy0">,</span>oseas <span class="sy0">,</span>odate <span class="sy0">,</span>sseas <span class="sy0">,</span>sdate <span class="sy0">,</span>om <span class="sy0">,</span>sm <span class="sy0">,</span>oy <span class="sy0">,</span>sy ;
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Anormalized_slowest_queries_details_12" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #12</small></h3>
|
||
<div id="normalized_slowest_queries_details_12" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Anormalized_slowest_queries_details_12').on("shown.bs.collapse",function(){
|
||
var bars_86 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',6],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_86 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',1835],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var normalized_slowest_queries_details_12 = create_bargraph('normalized_slowest_queries_details_12', '', 'Queries', [ bars_86, lines_86 ], 'Avg. duration');
|
||
});
|
||
create_download_button(86, 'btn btn-default btn-xs');
|
||
add_download_button_event(86, 'normalized_slowest_queries_details_12');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 18</td><td>10</td><td>6</td><td>11s11ms</td><td>1s835ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Anormalized_slowest_queries_details_12">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-12">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-12">User(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="normalized-slowest-queries-user-involved-rank-12" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> report - <b>Total duration:</b> 4s793ms - <b>Times executed:</b> 2 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-12">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="normalized-slowest-queries-app-involved-rank-12" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> [unknown] - <b>Total duration:</b> 4s793ms - <b>Times executed:</b> 2 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-app-involved-rank-12">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="normalized-slowest-queries-examples-rank-12" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-g-12-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> GREATEST <span class="br0">(</span>OSM<span class="sy0">.</span>adj_requestdate<span class="sy0">,</span>
|
||
<span class="kw1"><span class="kw2">current_date</span></span><span class="br0">)</span> <span class="kw1">BETWEEN</span> SD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">WHERE</span>
|
||
OM <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'F'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-18 10:06:25
|
||
<b>Duration:</b> 3s349ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> report
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> [unknown]
|
||
</pre>
|
||
<div id="query-g-explain-12-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Sort%20%20%28cost%3D98200.29..98200.79%20rows%3D200%20width%3D232%29%20%28actual%20time%3D3348.705..3348.710%20rows%3D132%20loops%3D1%29%0A%09%20%20Sort%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2043kB%0A%09%20%20Buffers%3A%20shared%20hit%3D235%20read%3D84111%2C%20local%20hit%3D161423%20read%3D1%0A%09%20%20I%2FO%20Timings%3A%20read%3D7279.164%0A%09%20%20CTE%20un%0A%09%20%20%20%20-%3E%20%20Append%20%20%28cost%3D31586.61..98166.63%20rows%3D449%20width%3D232%29%20%28actual%20time%3D1488.149..3348.297%20rows%3D154%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D232%20read%3D84111%2C%20local%20hit%3D161423%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7279.164%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D31586.61..31590.91%20rows%3D82%20width%3D232%29%20%28actual%20time%3D1488.148..1554.309%20rows%3D84%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D151073%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2987.288%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D31586.61..31586.81%20rows%3D82%20width%3D185%29%20%28actual%20time%3D1488.111..1493.540%20rows%3D75536%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od.ssyr%2C%20od.sdat%2C%20sd.ssyr%2C%20sd.sdat%2C%20%28COALESCE%28od.cm%2C%20sd.cm%29%29%2C%20%28COALESCE%28sd.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od.cy%2C%20sd.cy%29%29%2C%20%28COALESCE%28sd.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2013695kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D151073%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2987.288%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1004.33..31584.00%20rows%3D82%20width%3D185%29%20%28actual%20time%3D21.103..1425.083%20rows%3D75536%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D151073%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2987.288%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Join%20%20%28cost%3D1004.19..31579.49%20rows%3D4%20width%3D113%29%20%28actual%20time%3D21.078..1001.628%20rows%3D75536%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28osm.fspr%20%3D%20sd.fspr%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%2C%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2987.281%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..31572.50%20rows%3D738%20width%3D42%29%20%28actual%20time%3D21.024..908.420%20rows%3D406814%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2987.281%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osmf%20osm%20%20%28cost%3D0.00..30498.70%20rows%3D308%20width%3D42%29%20%28actual%20time%3D11.969..1113.675%20rows%3D135605%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3C%3E%20%27CANCELED%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20119%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D26345%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D2987.281%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D4.18..4.18%20rows%3D1%20width%3D108%29%20%28actual%20time%3D0.033..0.034%20rows%3D38%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2010kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20sd%20%20%28cost%3D0.00..4.18%20rows%3D1%20width%3D108%29%20%28actual%20time%3D0.021..0.027%20rows%3D38%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28cm%20%3D%20%27F%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20136%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Index%20Scan%20using%20dats%20on%20gld%20od%20%20%28cost%3D0.14..0.94%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.005..0.005%20rows%3D1%20loops%3D75536%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28osm.adj_orderdate%20%3E%3D%20sdat%29%20AND%20%28osm.adj_orderdate%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D151071%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D0.007%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D66549.72..66568.99%20rows%3D367%20width%3D232%29%20%28actual%20time%3D1789.692..1793.972%20rows%3D70%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D232%20read%3D57766%2C%20local%20hit%3D10350%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4291.876%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D66549.72..66550.64%20rows%3D367%20width%3D178%29%20%28actual%20time%3D1789.672..1789.874%20rows%3D5174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20od_1.ssyr%2C%20od_1.sdat%2C%20sd_1.ssyr%2C%20sd_1.sdat%2C%20%28COALESCE%28od_1.cm%2C%20sd_1.cm%29%29%2C%20%28COALESCE%28sd_1.cm%2C%20%27F%27%3A%3Atext%29%29%2C%20%28COALESCE%28od_1.cy%2C%20sd_1.cy%29%29%2C%20%28COALESCE%28sd_1.cy%2C%20%27F%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20920kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D232%20read%3D57766%2C%20local%20hit%3D10350%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4291.876%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20%20%28cost%3D1004.74..66534.08%20rows%3D367%20width%3D178%29%20%28actual%20time%3D1752.458..1786.814%20rows%3D5174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Join%20Filter%3A%20%28%28osm_1.adj_orderdate%20%3E%3D%20od_1.sdat%29%20AND%20%28osm_1.adj_orderdate%20%3C%3D%20od_1.edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Join%20Filter%3A%20895102%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D232%20read%3D57766%2C%20local%20hit%3D10350%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4291.876%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Seq%20Scan%20on%20gld%20od_1%20%20%28cost%3D0.00..3.74%20rows%3D174%20width%3D80%29%20%28actual%20time%3D0.013..0.078%20rows%3D174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D2%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Materialize%20%20%28cost%3D1004.74..66472.54%20rows%3D19%20width%3D106%29%20%28actual%20time%3D0.073..9.810%20rows%3D5174%20loops%3D174%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D232%20read%3D57766%2C%20local%20hit%3D10348%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4291.876%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Nested%20Loop%20Left%20Join%20%20%28cost%3D1004.74..66472.44%20rows%3D19%20width%3D106%29%20%28actual%20time%3D12.621..1668.315%20rows%3D5174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D232%20read%3D57766%2C%20local%20hit%3D10348%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4291.876%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20%20%28cost%3D1000.00..66465.04%20rows%3D1%20width%3D34%29%20%28actual%20time%3D12.587..1608.241%20rows%3D5174%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D232%20read%3D57766%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4291.876%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm%20osm_1%20%20%28cost%3D0.00..65464.94%20rows%3D1%20width%3D34%29%20%28actual%20time%3D4.136..1641.056%20rows%3D1725%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%20259938%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D232%20read%3D57766%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D4291.876%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Heap%20Scan%20on%20gld%20sd_1%20%20%28cost%3D4.74..7.21%20rows%3D19%20width%3D80%29%20%28actual%20time%3D0.011..0.011%20rows%3D1%20loops%3D5174%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Recheck%20Cond%3A%20%28%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3E%3D%20sdat%29%20AND%20%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Heap%20Blocks%3A%20exact%3D5174%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D10348%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Bitmap%20Index%20Scan%20on%20dats%20%20%28cost%3D0.00..4.73%20rows%3D19%20width%3D0%29%20%28actual%20time%3D0.010..0.010%20rows%3D1%20loops%3D5174%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Index%20Cond%3A%20%28%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3E%3D%20sdat%29%20AND%20%28GREATEST%28osm_1.adj_requestdate%2C%20CURRENT_DATE%29%20%3C%3D%20edat%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20local%20hit%3D5174%0A%09%20%20-%3E%20%20HashAggregate%20%20%28cost%3D23.51..26.01%20rows%3D200%20width%3D232%29%20%28actual%20time%3D3348.532..3348.577%20rows%3D132%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Group%20Key%3A%20un.srce%2C%20un.oseas%2C%20un.odate%2C%20un.sseas%2C%20un.sdate%2C%20un.om%2C%20un.sm%2C%20un.oy%2C%20un.sy%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D232%20read%3D84111%2C%20local%20hit%3D161423%20read%3D1%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7279.164%0A%09%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20un%20%20%28cost%3D0.00..10.10%20rows%3D447%20width%3D232%29%20%28actual%20time%3D1488.153..3348.409%20rows%3D132%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28om%20%3C%3E%20%27F%27%3A%3Atext%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2022%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D232%20read%3D84111%2C%20local%20hit%3D161423%20read%3D1%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D7279.164%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Sort (cost=98200.29..98200.79 rows=200 width=232) (actual time=3348.705..3348.710 rows=132 loops=1)
|
||
Sort Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Sort Method: quicksort Memory: 43kB
|
||
Buffers: shared hit=235 read=84111, local hit=161423 read=1
|
||
I/O Timings: read=7279.164
|
||
CTE un
|
||
-> Append (cost=31586.61..98166.63 rows=449 width=232) (actual time=1488.149..3348.297 rows=154 loops=1)
|
||
Buffers: shared hit=232 read=84111, local hit=161423 read=1
|
||
I/O Timings: read=7279.164
|
||
-> GroupAggregate (cost=31586.61..31590.91 rows=82 width=232) (actual time=1488.148..1554.309 rows=84 loops=1)
|
||
Group Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Buffers: shared read=26345, local hit=151073 read=1
|
||
I/O Timings: read=2987.288
|
||
-> Sort (cost=31586.61..31586.81 rows=82 width=185) (actual time=1488.111..1493.540 rows=75536 loops=1)
|
||
Sort Key: od.ssyr, od.sdat, sd.ssyr, sd.sdat, (COALESCE(od.cm, sd.cm)), (COALESCE(sd.cm, 'F'::text)), (COALESCE(od.cy, sd.cy)), (COALESCE(sd.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 13695kB
|
||
Buffers: shared read=26345, local hit=151073 read=1
|
||
I/O Timings: read=2987.288
|
||
-> Nested Loop (cost=1004.33..31584.00 rows=82 width=185) (actual time=21.103..1425.083 rows=75536 loops=1)
|
||
Buffers: shared read=26345, local hit=151073 read=1
|
||
I/O Timings: read=2987.288
|
||
-> Hash Join (cost=1004.19..31579.49 rows=4 width=113) (actual time=21.078..1001.628 rows=75536 loops=1)
|
||
Hash Cond: (osm.fspr = sd.fspr)
|
||
Buffers: shared read=26345, local hit=2
|
||
I/O Timings: read=2987.281
|
||
-> Gather (cost=1000.00..31572.50 rows=738 width=42) (actual time=21.024..908.420 rows=406814 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared read=26345
|
||
I/O Timings: read=2987.281
|
||
-> Parallel Seq Scan on osmf osm (cost=0.00..30498.70 rows=308 width=42) (actual time=11.969..1113.675 rows=135605 loops=3)
|
||
Filter: ((calc_status <> 'CANCELED'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 119
|
||
Buffers: shared read=26345
|
||
I/O Timings: read=2987.281
|
||
-> Hash (cost=4.18..4.18 rows=1 width=108) (actual time=0.033..0.034 rows=38 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 10kB
|
||
Buffers: local hit=2
|
||
-> Seq Scan on gld sd (cost=0.00..4.18 rows=1 width=108) (actual time=0.021..0.027 rows=38 loops=1)
|
||
Filter: (cm = 'F'::text)
|
||
Rows Removed by Filter: 136
|
||
Buffers: local hit=2
|
||
-> Index Scan using dats on gld od (cost=0.14..0.94 rows=19 width=80) (actual time=0.005..0.005 rows=1 loops=75536)
|
||
Index Cond: ((osm.adj_orderdate >= sdat) AND (osm.adj_orderdate <= edat))
|
||
Buffers: local hit=151071 read=1
|
||
I/O Timings: read=0.007
|
||
-> GroupAggregate (cost=66549.72..66568.99 rows=367 width=232) (actual time=1789.692..1793.972 rows=70 loops=1)
|
||
Group Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Buffers: shared hit=232 read=57766, local hit=10350
|
||
I/O Timings: read=4291.876
|
||
-> Sort (cost=66549.72..66550.64 rows=367 width=178) (actual time=1789.672..1789.874 rows=5174 loops=1)
|
||
Sort Key: od_1.ssyr, od_1.sdat, sd_1.ssyr, sd_1.sdat, (COALESCE(od_1.cm, sd_1.cm)), (COALESCE(sd_1.cm, 'F'::text)), (COALESCE(od_1.cy, sd_1.cy)), (COALESCE(sd_1.cy, 'F'::text))
|
||
Sort Method: quicksort Memory: 920kB
|
||
Buffers: shared hit=232 read=57766, local hit=10350
|
||
I/O Timings: read=4291.876
|
||
-> Nested Loop (cost=1004.74..66534.08 rows=367 width=178) (actual time=1752.458..1786.814 rows=5174 loops=1)
|
||
Join Filter: ((osm_1.adj_orderdate >= od_1.sdat) AND (osm_1.adj_orderdate <= od_1.edat))
|
||
Rows Removed by Join Filter: 895102
|
||
Buffers: shared hit=232 read=57766, local hit=10350
|
||
I/O Timings: read=4291.876
|
||
-> Seq Scan on gld od_1 (cost=0.00..3.74 rows=174 width=80) (actual time=0.013..0.078 rows=174 loops=1)
|
||
Buffers: local hit=2
|
||
-> Materialize (cost=1004.74..66472.54 rows=19 width=106) (actual time=0.073..9.810 rows=5174 loops=174)
|
||
Buffers: shared hit=232 read=57766, local hit=10348
|
||
I/O Timings: read=4291.876
|
||
-> Nested Loop Left Join (cost=1004.74..66472.44 rows=19 width=106) (actual time=12.621..1668.315 rows=5174 loops=1)
|
||
Buffers: shared hit=232 read=57766, local hit=10348
|
||
I/O Timings: read=4291.876
|
||
-> Gather (cost=1000.00..66465.04 rows=1 width=34) (actual time=12.587..1608.241 rows=5174 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=232 read=57766
|
||
I/O Timings: read=4291.876
|
||
-> Parallel Seq Scan on osm osm_1 (cost=0.00..65464.94 rows=1 width=34) (actual time=4.136..1641.056 rows=1725 loops=3)
|
||
Filter: ((calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (flag = 'REMAINDER'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 259938
|
||
Buffers: shared hit=232 read=57766
|
||
I/O Timings: read=4291.876
|
||
-> Bitmap Heap Scan on gld sd_1 (cost=4.74..7.21 rows=19 width=80) (actual time=0.011..0.011 rows=1 loops=5174)
|
||
Recheck Cond: ((GREATEST(osm_1.adj_requestdate, CURRENT_DATE) >= sdat) AND (GREATEST(osm_1.adj_requestdate, CURRENT_DATE) <= edat))
|
||
Heap Blocks: exact=5174
|
||
Buffers: local hit=10348
|
||
-> Bitmap Index Scan on dats (cost=0.00..4.73 rows=19 width=0) (actual time=0.010..0.010 rows=1 loops=5174)
|
||
Index Cond: ((GREATEST(osm_1.adj_requestdate, CURRENT_DATE) >= sdat) AND (GREATEST(osm_1.adj_requestdate, CURRENT_DATE) <= edat))
|
||
Buffers: local hit=5174
|
||
-> HashAggregate (cost=23.51..26.01 rows=200 width=232) (actual time=3348.532..3348.577 rows=132 loops=1)
|
||
Group Key: un.srce, un.oseas, un.odate, un.sseas, un.sdate, un.om, un.sm, un.oy, un.sy
|
||
Buffers: shared hit=232 read=84111, local hit=161423 read=1
|
||
I/O Timings: read=7279.164
|
||
-> CTE Scan on un (cost=0.00..10.10 rows=447 width=232) (actual time=1488.153..3348.409 rows=132 loops=1)
|
||
Filter: (om <> 'F'::text)
|
||
Rows Removed by Filter: 22
|
||
Buffers: shared hit=232 read=84111, local hit=161423 read=1
|
||
I/O Timings: read=7279.164
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-g-12-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> GREATEST <span class="br0">(</span>OSM<span class="sy0">.</span>adj_requestdate<span class="sy0">,</span>
|
||
<span class="kw1"><span class="kw2">current_date</span></span><span class="br0">)</span> <span class="kw1">BETWEEN</span> SD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">WHERE</span>
|
||
OM <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'F'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-18 10:06:25
|
||
<b>Duration:</b> 1s661ms
|
||
</pre>
|
||
<div id="query-g-explain-12-2" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Parallel%20Seq%20Scan%20on%20osm%20%20%28cost%3D0.00..65464.94%20rows%3D1%20width%3D34%29%20%28actual%20time%3D0.035..1661.025%20rows%3D2679%20loops%3D1%29%0A%09%20%20Filter%3A%20%28%28calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20Rows%20Removed%20by%20Filter%3A%20312636%0A%09%20%20Buffers%3A%20shared%20hit%3D57%20read%3D22167%0A%09%20%20I%2FO%20Timings%3A%20read%3D1426.762%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Parallel Seq Scan on osm (cost=0.00..65464.94 rows=1 width=34) (actual time=0.035..1661.025 rows=2679 loops=1)
|
||
Filter: ((calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (flag = 'REMAINDER'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 312636
|
||
Buffers: shared hit=57 read=22167
|
||
I/O Timings: read=1426.762
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-g-12-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>CREATE <span class="kw1">INDEX</span> flag <span class="kw1">ON</span> GLD<span class="br0">(</span>plan<span class="sy0">,</span> rolling<span class="br0">)</span>;
|
||
<span class="kw1">WITH</span> UN <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'FC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSMF OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> OSM<span class="sy0">.</span>FSPR <span class="sy0">=</span> SD<span class="sy0">.</span>FSPR
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'CANCELED'</span> <span class="sy0">-</span><span class="sy0">-</span>OPEN ORDERS
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>CM <span class="sy0">=</span> <span class="st0">'F'</span> <span class="sy0">-</span><span class="sy0">-</span>this works <span class="kw1">FOR</span> forecast it indicates a future FSPR
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="kw1">UNION</span> <span class="kw1">ALL</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="st0">'AC'</span> SRCE<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SSYR OSEAS<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT ODATE<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR SSEAS<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT SDATE<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span> OM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SM<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span> OY<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span> SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_QTY<span class="br0">)</span> QTY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_VAL_LOC <span class="sy0">*</span> R_RATE<span class="br0">)</span> SALES<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>FB_CST_LOC <span class="sy0">*</span> C_RATE<span class="br0">)</span> STDCOST
|
||
<span class="kw1">FROM</span>
|
||
RLARP<span class="sy0">.</span>OSM OSM
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> GLD OD <span class="kw1">ON</span> OSM<span class="sy0">.</span>ADJ_ORDERDATE <span class="kw1">BETWEEN</span> OD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> OD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> GLD SD <span class="kw1">ON</span> GREATEST <span class="br0">(</span>OSM<span class="sy0">.</span>adj_requestdate<span class="sy0">,</span>
|
||
<span class="kw1"><span class="kw2">current_date</span></span><span class="br0">)</span> <span class="kw1">BETWEEN</span> SD<span class="sy0">.</span>SDAT
|
||
<span class="kw1">AND</span> SD<span class="sy0">.</span>EDAT
|
||
<span class="kw1">WHERE</span>
|
||
<span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>FS_LINE<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">=</span> <span class="st0">'41010'</span>
|
||
<span class="kw1">AND</span> <span class="kw2">substr</span><span class="br0">(</span>OSM<span class="sy0">.</span>GLEC<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0"><</span><span class="sy0">=</span> <span class="st0">'2'</span>
|
||
<span class="kw1">AND</span> CALC_STATUS <span class="kw1">IN</span> <span class="br0">(</span><span class="st0">'BACKORDER'</span><span class="sy0">,</span> <span class="st0">'OPEN'</span><span class="br0">)</span>
|
||
<span class="kw1">AND</span> FLAG <span class="sy0">=</span> <span class="st0">'REMAINDER'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
OD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
OD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SSYR<span class="sy0">,</span>
|
||
SD<span class="sy0">.</span>SDAT<span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CM<span class="sy0">,</span> SD<span class="sy0">.</span>CM<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CM<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>OD<span class="sy0">.</span>CY<span class="sy0">,</span> SD<span class="sy0">.</span>CY<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="kw2">coalesce</span><span class="br0">(</span>SD<span class="sy0">.</span>CY<span class="sy0">,</span> <span class="st0">'F'</span><span class="br0">)</span>
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>QTY<span class="br0">)</span> UNITS<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>STDCOST<span class="br0">)</span> "cost"<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>SALES<span class="br0">)</span> SALES
|
||
<span class="kw1">FROM</span>
|
||
UN
|
||
<span class="kw1">WHERE</span>
|
||
OM <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'F'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
SRCE<span class="sy0">,</span>
|
||
OSEAS<span class="sy0">,</span>
|
||
ODATE<span class="sy0">,</span>
|
||
SSEAS<span class="sy0">,</span>
|
||
SDATE<span class="sy0">,</span>
|
||
OM<span class="sy0">,</span>
|
||
SM<span class="sy0">,</span>
|
||
OY<span class="sy0">,</span>
|
||
SY;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-18 10:06:25
|
||
<b>Duration:</b> 1s659ms
|
||
</pre>
|
||
<div id="query-g-explain-12-3" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Parallel%20Seq%20Scan%20on%20osm%20%20%28cost%3D0.00..65464.94%20rows%3D1%20width%3D34%29%20%28actual%20time%3D0.588..1658.922%20rows%3D1702%20loops%3D1%29%0A%09%20%20Filter%3A%20%28%28calc_status%20%3D%20ANY%20%28%27%7BBACKORDER%2COPEN%7D%27%3A%3Atext%5B%5D%29%29%20AND%20%28flag%20%3D%20%27REMAINDER%27%3A%3Atext%29%20AND%20%28substr%28glec%2C%201%2C%201%29%20%3C%3D%20%272%27%3A%3Atext%29%20AND%20%28substr%28fs_line%2C%201%2C%205%29%20%3D%20%2741010%27%3A%3Atext%29%29%0A%09%20%20Rows%20Removed%20by%20Filter%3A%20291296%0A%09%20%20Buffers%3A%20shared%20hit%3D39%20read%3D21772%0A%09%20%20I%2FO%20Timings%3A%20read%3D1413.782%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Parallel Seq Scan on osm (cost=0.00..65464.94 rows=1 width=34) (actual time=0.588..1658.922 rows=1702 loops=1)
|
||
Filter: ((calc_status = ANY ('{BACKORDER,OPEN}'::text[])) AND (flag = 'REMAINDER'::text) AND (substr(glec, 1, 1) <= '2'::text) AND (substr(fs_line, 1, 5) = '41010'::text))
|
||
Rows Removed by Filter: 291296
|
||
Buffers: shared hit=39 read=21772
|
||
I/O Timings: read=1413.782
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-12">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>13</td>
|
||
<td>1s270ms</td>
|
||
<td>1s826ms</td>
|
||
<td>1s616ms</td>
|
||
<td>3
|
||
<p><a href="#Anormalized_slowest_queries_details_13" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>4s848ms</td>
|
||
<td id="normalized-slowest-queries-examples-details-rank-13">
|
||
<div id="query-g-13" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
import<span class="sy0">.</span>osmi;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Anormalized_slowest_queries_details_13" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #13</small></h3>
|
||
<div id="normalized_slowest_queries_details_13" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Anormalized_slowest_queries_details_13').on("shown.bs.collapse",function(){
|
||
var bars_87 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',1],['15:00',0],['16:00',1],['17:00',1],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_87 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',1270],['15:00',0],['16:00',1752],['17:00',1826],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var normalized_slowest_queries_details_13 = create_bargraph('normalized_slowest_queries_details_13', '', 'Queries', [ bars_87, lines_87 ], 'Avg. duration');
|
||
});
|
||
create_download_button(87, 'btn btn-default btn-xs');
|
||
add_download_button_event(87, 'normalized_slowest_queries_details_13');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>17</td><td>1</td><td>1s826ms</td><td>1s826ms</td></tr><tr><td>Mar 15</td><td>14</td><td>1</td><td>1s270ms</td><td>1s270ms</td></tr><tr><td></td><td>16</td><td>1</td><td>1s752ms</td><td>1s752ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Anormalized_slowest_queries_details_13">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-13">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-13">User(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="normalized-slowest-queries-user-involved-rank-13" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> ptrowbridge_md5 - <b>Total duration:</b> 4s848ms - <b>Times executed:</b> 3 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-13">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="normalized-slowest-queries-app-involved-rank-13" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> psql - <b>Total duration:</b> 4s848ms - <b>Times executed:</b> 3 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-app-involved-rank-13">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="normalized-slowest-queries-examples-rank-13" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-g-13-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
import<span class="sy0">.</span>osmi;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-14 17:12:46
|
||
<b>Duration:</b> 1s826ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-g-explain-13-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Insert%20on%20osm%20%20%28cost%3D0.00..1750.44%20rows%3D24144%20width%3D457%29%20%28actual%20time%3D1826.337..1826.337%20rows%3D0%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D419286%20read%3D3669%20dirtied%3D3584%0A%09%20%20I%2FO%20Timings%3A%20read%3D1345.135%0A%09%20%20-%3E%20%20Seq%20Scan%20on%20osmi%20%20%28cost%3D0.00..1750.44%20rows%3D24144%20width%3D457%29%20%28actual%20time%3D0.007..7.078%20rows%3D25626%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1509%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Insert on osm (cost=0.00..1750.44 rows=24144 width=457) (actual time=1826.337..1826.337 rows=0 loops=1)
|
||
Buffers: shared hit=419286 read=3669 dirtied=3584
|
||
I/O Timings: read=1345.135
|
||
-> Seq Scan on osmi (cost=0.00..1750.44 rows=24144 width=457) (actual time=0.007..7.078 rows=25626 loops=1)
|
||
Buffers: shared hit=1509
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-g-13-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
import<span class="sy0">.</span>osmi;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 16:45:34
|
||
<b>Duration:</b> 1s752ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-g-explain-13-2" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Insert%20on%20osm%20%20%28cost%3D0.00..1782.92%20rows%3D24592%20width%3D457%29%20%28actual%20time%3D1752.635..1752.635%20rows%3D0%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D406744%20read%3D6293%20dirtied%3D6259%0A%09%20%20I%2FO%20Timings%3A%20read%3D1296.982%0A%09%20%20-%3E%20%20Seq%20Scan%20on%20osmi%20%20%28cost%3D0.00..1782.92%20rows%3D24592%20width%3D457%29%20%28actual%20time%3D0.005..6.976%20rows%3D26097%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1537%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Insert on osm (cost=0.00..1782.92 rows=24592 width=457) (actual time=1752.635..1752.635 rows=0 loops=1)
|
||
Buffers: shared hit=406744 read=6293 dirtied=6259
|
||
I/O Timings: read=1296.982
|
||
-> Seq Scan on osmi (cost=0.00..1782.92 rows=24592 width=457) (actual time=0.005..6.976 rows=26097 loops=1)
|
||
Buffers: shared hit=1537
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-g-13-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">INSERT</span> <span class="kw1">INTO</span> rlarp<span class="sy0">.</span>osm
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span>
|
||
import<span class="sy0">.</span>osmi;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 14:07:11
|
||
<b>Duration:</b> 1s270ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> psql
|
||
</pre>
|
||
<div id="query-g-explain-13-3" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Insert%20on%20osm%20%20%28cost%3D0.00..1765.52%20rows%3D24352%20width%3D457%29%20%28actual%20time%3D1270.004..1270.004%20rows%3D0%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D421843%20read%3D4791%20dirtied%3D3283%0A%09%20%20I%2FO%20Timings%3A%20read%3D823.790%0A%09%20%20-%3E%20%20Seq%20Scan%20on%20osmi%20%20%28cost%3D0.00..1765.52%20rows%3D24352%20width%3D457%29%20%28actual%20time%3D0.006..6.130%20rows%3D25878%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D1522%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Insert on osm (cost=0.00..1765.52 rows=24352 width=457) (actual time=1270.004..1270.004 rows=0 loops=1)
|
||
Buffers: shared hit=421843 read=4791 dirtied=3283
|
||
I/O Timings: read=823.790
|
||
-> Seq Scan on osmi (cost=0.00..1765.52 rows=24352 width=457) (actual time=0.006..6.130 rows=25878 loops=1)
|
||
Buffers: shared hit=1522
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-13">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>14</td>
|
||
<td>1s194ms</td>
|
||
<td>1s327ms</td>
|
||
<td>1s240ms</td>
|
||
<td>3
|
||
<p><a href="#Anormalized_slowest_queries_details_14" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>3s720ms</td>
|
||
<td id="normalized-slowest-queries-examples-details-rank-14">
|
||
<div id="query-g-14" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing <span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span> <span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> <span class="sy0">*</span> <span class="kw1">FROM</span> <span class="br0">(</span> <span class="kw1">VALUES</span> <span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="sy0">,</span><span class="br0">(</span>?<span class="sy0">,</span>?<span class="br0">)</span> <span class="br0">)</span> x<span class="br0">(</span>m<span class="sy0">,</span>s<span class="br0">)</span> <span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq <span class="sy0">,</span>base <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span>order_month <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>part_descr <span class="sy0">,</span>bill_cust_descr <span class="sy0">,</span>ship_cust_descr <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> rlarp<span class="sy0">.</span>osm_fcpool <span class="kw1">WHERE</span> quota_rep_descr <span class="sy0">=</span> ? <span class="kw1">AND</span> segm <span class="sy0">=</span> ? <span class="kw1">AND</span> mod_chan <span class="sy0">=</span> ? <span class="kw1">AND</span> bill_cust_descr <span class="sy0">=</span> ? <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span>order_month <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>part_descr <span class="sy0">,</span>bill_cust_descr <span class="sy0">,</span>ship_cust_descr <span class="br0">)</span> <span class="sy0">,</span>months <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>order_month <span class="sy0">,</span>mseq<span class="sy0">.</span>s seq <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> base <span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span>order_month <span class="sy0">,</span>s <span class="br0">)</span> <span class="sy0">,</span>mpvt <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_month <span class="sy0">,</span>seq <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0">=</span> ?<span class="br0">)</span> "? base qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> ?<span class="br0">)</span> "? adj qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? tot qty" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0">=</span> ?<span class="br0">)</span> "? base value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ? <span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> ?<span class="br0">)</span> "? adj value_usd" <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> filter <span class="br0">(</span><span class="kw1">WHERE</span> order_season <span class="sy0">=</span> ?<span class="br0">)</span> "? tot value_usd" <span class="kw1">FROM</span> months <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_month <span class="sy0">,</span>seq <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> seq <span class="kw1">ASC</span> <span class="br0">)</span> <span class="sy0">,</span>mlist <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> mseq<span class="sy0">.</span>m order_month <span class="sy0">,</span>"? qty" <span class="sy0">,</span>"? base qty" <span class="sy0">,</span>"? adj qty" <span class="sy0">,</span>"? tot qty" <span class="sy0">,</span>"? value_usd" <span class="sy0">,</span>"? base value_usd" <span class="sy0">,</span>"? adj value_usd" <span class="sy0">,</span>"? tot value_usd" <span class="kw1">FROM</span> mseq <span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m <span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span> mseq<span class="sy0">.</span>s <span class="kw1">ASC</span> <span class="br0">)</span> <span class="sy0">,</span>totals <span class="kw1">AS</span> <span class="br0">(</span> <span class="kw1">SELECT</span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units <span class="sy0">,</span><span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd <span class="kw1">FROM</span> months <span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span> order_season <span class="sy0">,</span><span class="kw2">version</span> <span class="sy0">,</span>iter <span class="br0">)</span> <span class="kw1">SELECT</span> jsonb_build_object<span class="br0">(</span> ? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> months<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> mlist<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> base<span class="br0">)</span> <span class="sy0">,</span>? <span class="sy0">,</span><span class="br0">(</span><span class="kw1">SELECT</span> jsonb_agg<span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span> <span class="kw1">FROM</span> totals<span class="br0">)</span> <span class="br0">)</span> package ;
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Anormalized_slowest_queries_details_14" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #14</small></h3>
|
||
<div id="normalized_slowest_queries_details_14" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Anormalized_slowest_queries_details_14').on("shown.bs.collapse",function(){
|
||
var bars_88 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',3],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_88 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',1240],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var normalized_slowest_queries_details_14 = create_bargraph('normalized_slowest_queries_details_14', '', 'Queries', [ bars_88, lines_88 ], 'Avg. duration');
|
||
});
|
||
create_download_button(88, 'btn btn-default btn-xs');
|
||
add_download_button_event(88, 'normalized_slowest_queries_details_14');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 15</td><td>10</td><td>3</td><td>3s720ms</td><td>1s240ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Anormalized_slowest_queries_details_14">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-14">Examples</button> <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-14">User(s) involved</button></p>
|
||
|
||
<!-- Involved users list collapse -->
|
||
<div id="normalized-slowest-queries-user-involved-rank-14" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>User:</b> api - <b>Total duration:</b> 1s327ms - <b>Times executed:</b> 1 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-user-involved-rank-14">x Hide</button></p>
|
||
</div>
|
||
<!-- end of user involved collapse -->
|
||
|
||
<!-- Involved apps list collapse -->
|
||
<div id="normalized-slowest-queries-app-involved-rank-14" class="collapse">
|
||
<dl>
|
||
|
||
<pre>[ <b>Application:</b> osm_api - <b>Total duration:</b> 1s327ms - <b>Times executed:</b> 1 ]
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-app-involved-rank-14">x Hide</button></p>
|
||
</div>
|
||
<!-- end of app involved collapse -->
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="normalized-slowest-queries-examples-rank-14" class="collapse">
|
||
<dl>
|
||
|
||
<dt>
|
||
<div id="query-g-14-1" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing
|
||
<span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span>
|
||
<span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">VALUES</span> <span class="br0">(</span><span class="st0">'Jun'</span><span class="sy0">,</span>
|
||
<span class="nu0">1</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jul'</span><span class="sy0">,</span>
|
||
<span class="nu0">2</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Aug'</span><span class="sy0">,</span>
|
||
<span class="nu0">3</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Sep'</span><span class="sy0">,</span>
|
||
<span class="nu0">4</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Oct'</span><span class="sy0">,</span>
|
||
<span class="nu0">5</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Nov'</span><span class="sy0">,</span>
|
||
<span class="nu0">6</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Dec'</span><span class="sy0">,</span>
|
||
<span class="nu0">7</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jan'</span><span class="sy0">,</span>
|
||
<span class="nu0">8</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Feb'</span><span class="sy0">,</span>
|
||
<span class="nu0">9</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Mar'</span><span class="sy0">,</span>
|
||
<span class="nu0">10</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Apr'</span><span class="sy0">,</span>
|
||
<span class="nu0">11</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'May'</span><span class="sy0">,</span>
|
||
<span class="nu0">12</span><span class="br0">)</span><span class="br0">)</span> x <span class="br0">(</span>m<span class="sy0">,</span>
|
||
s<span class="br0">)</span>
|
||
<span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq
|
||
<span class="sy0">,</span>
|
||
base <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_fcpool
|
||
<span class="kw1">WHERE</span>
|
||
quota_rep_descr <span class="sy0">=</span> <span class="st0">'10032 - BRYAN HILL'</span>
|
||
<span class="kw1">AND</span> segm <span class="sy0">=</span> <span class="st0">'Greenhouse'</span>
|
||
<span class="kw1">AND</span> mod_chan <span class="sy0">=</span> <span class="st0">'DISTRIBUTOR'</span>
|
||
<span class="kw1">AND</span> bill_cust_descr <span class="sy0">=</span> <span class="st0">'BWIC0001 - BWI COMPANIES INC'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="br0">)</span><span class="sy0">,</span>
|
||
months <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
mseq<span class="sy0">.</span>s seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
base
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
s<span class="br0">)</span><span class="sy0">,</span>
|
||
mpvt <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_month<span class="sy0">,</span>
|
||
seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0">=</span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 base qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 adj qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0">=</span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 base value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 adj value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_month<span class="sy0">,</span> seq
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
seq <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> mlist <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
mseq<span class="sy0">.</span>m order_month<span class="sy0">,</span> "2019 qty"<span class="sy0">,</span> "2020 base qty"<span class="sy0">,</span> "2020 adj qty"<span class="sy0">,</span> "2020 tot qty"<span class="sy0">,</span> "2019 value_usd"<span class="sy0">,</span> "2020 base value_usd"<span class="sy0">,</span> "2020 adj value_usd"<span class="sy0">,</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
mseq
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
mseq<span class="sy0">.</span>s <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> totals <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_build_object <span class="br0">(</span><span class="st0">'months'</span><span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
months<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'mpvt'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
mlist<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'base'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
base<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'totals'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
totals<span class="br0">)</span><span class="br0">)</span> package;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 10:02:03
|
||
<b>Duration:</b> 1s327ms
|
||
<b>Database:</b> ubm
|
||
<b>User:</b> api
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Application:</b> osm_api
|
||
</pre>
|
||
<div id="query-g-explain-14-1" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Result%20%20%28cost%3D43067.02..43067.03%20rows%3D1%20width%3D32%29%20%28actual%20time%3D1322.834..1322.949%20rows%3D1%20loops%3D1%29%0A%09%20%20Buffers%3A%20shared%20hit%3D3%20read%3D15116%0A%09%20%20I%2FO%20Timings%3A%20read%3D1154.285%0A%09%20%20CTE%20mseq%0A%09%20%20%20%20-%3E%20%20Values%20Scan%20on%20%22%2AVALUES%2A%22%20%20%28cost%3D0.00..0.15%20rows%3D12%20width%3D36%29%20%28actual%20time%3D0.008..0.012%20rows%3D12%20loops%3D1%29%0A%09%20%20CTE%20base%0A%09%20%20%20%20-%3E%20%20Finalize%20GroupAggregate%20%20%28cost%3D43057.06..43060.56%20rows%3D25%20width%3D176%29%20%28actual%20time%3D1287.168..1296.146%20rows%3D1095%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20osm_fcpool.order_season%2C%20osm_fcpool.order_month%2C%20osm_fcpool.version%2C%20osm_fcpool.iter%2C%20osm_fcpool.part_descr%2C%20osm_fcpool.bill_cust_descr%2C%20osm_fcpool.ship_cust_descr%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D15116%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1154.285%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Gather%20Merge%20%20%28cost%3D43057.06..43059.75%20rows%3D20%20width%3D176%29%20%28actual%20time%3D1287.150..1294.990%20rows%3D1214%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Planned%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Workers%20Launched%3A%202%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D112%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3332.221%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Partial%20GroupAggregate%20%20%28cost%3D42057.04..42057.42%20rows%3D10%20width%3D176%29%20%28actual%20time%3D1222.013..1222.459%20rows%3D405%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20osm_fcpool.order_season%2C%20osm_fcpool.order_month%2C%20osm_fcpool.version%2C%20osm_fcpool.iter%2C%20osm_fcpool.part_descr%2C%20osm_fcpool.bill_cust_descr%2C%20osm_fcpool.ship_cust_descr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D112%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3332.221%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D42057.04..42057.07%20rows%3D10%20width%3D149%29%20%28actual%20time%3D1221.999..1222.047%20rows%3D447%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20osm_fcpool.order_season%2C%20osm_fcpool.order_month%2C%20osm_fcpool.version%2C%20osm_fcpool.iter%2C%20osm_fcpool.part_descr%2C%20osm_fcpool.ship_cust_descr%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20145kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Worker%200%3A%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20145kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Worker%201%3A%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20140kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D112%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3332.221%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm_fcpool%20%20%28cost%3D0.00..42056.88%20rows%3D10%20width%3D149%29%20%28actual%20time%3D24.365..1220.140%20rows%3D447%20loops%3D3%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28quota_rep_descr%20%3D%20%2710032%20-%20BRYAN%20HILL%27%3A%3Atext%29%20AND%20%28segm%20%3D%20%27Greenhouse%27%3A%3Atext%29%20AND%20%28mod_chan%20%3D%20%27DISTRIBUTOR%27%3A%3Atext%29%20AND%20%28bill_cust_descr%20%3D%20%27BWIC0001%20-%20BWI%20COMPANIES%20INC%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2099999%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D39543%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D3332.221%0A%09%20%20CTE%20months%0A%09%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D1.31..1.46%20rows%3D12%20width%3D152%29%20%28actual%20time%3D1297.764..1297.785%20rows%3D28%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20base.order_season%2C%20base.version%2C%20base.iter%2C%20base.order_month%2C%20mseq.s%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D15116%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1154.285%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Join%20%20%28cost%3D0.39..1.10%20rows%3D12%20width%3D148%29%20%28actual%20time%3D1287.272..1297.191%20rows%3D1095%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28base.order_month%20%3D%20mseq.m%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D15116%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1154.285%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20base%20%20%28cost%3D0.00..0.50%20rows%3D25%20width%3D144%29%20%28actual%20time%3D1287.170..1296.717%20rows%3D1095%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D15116%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1154.285%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.24..0.24%20rows%3D12%20width%3D36%29%20%28actual%20time%3D0.028..0.028%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%209kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mseq%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D36%29%20%28actual%20time%3D0.013..0.021%20rows%3D12%20loops%3D1%29%0A%09%20%20CTE%20mpvt%0A%09%20%20%20%20-%3E%20%20GroupAggregate%20%20%28cost%3D0.46..1.39%20rows%3D12%20width%3D196%29%20%28actual%20time%3D0.043..0.069%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20months.seq%2C%20months.order_month%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D0.46..0.49%20rows%3D12%20width%3D116%29%20%28actual%20time%3D0.029..0.031%20rows%3D28%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20months.seq%2C%20months.order_month%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2027kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20months%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D116%29%20%28actual%20time%3D0.001..0.006%20rows%3D28%20loops%3D1%29%0A%09%20%20CTE%20mlist%0A%09%20%20%20%20-%3E%20%20Sort%20%20%28cost%3D1.01..1.04%20rows%3D12%20width%3D196%29%20%28actual%20time%3D0.167..0.168%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Sort%20Key%3A%20mseq_1.s%0A%09%20%20%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%2026kB%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20Left%20Join%20%20%28cost%3D0.39..0.80%20rows%3D12%20width%3D196%29%20%28actual%20time%3D0.110..0.115%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Hash%20Cond%3A%20%28mseq_1.m%20%3D%20mpvt.order_month%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mseq%20mseq_1%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D36%29%20%28actual%20time%3D0.001..0.002%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20Hash%20%20%28cost%3D0.24..0.24%20rows%3D12%20width%3D192%29%20%28actual%20time%3D0.092..0.092%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buckets%3A%201024%20%20Batches%3A%201%20%20Memory%20Usage%3A%2010kB%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mpvt%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D192%29%20%28actual%20time%3D0.049..0.082%20rows%3D12%20loops%3D1%29%0A%09%20%20CTE%20totals%0A%09%20%20%20%20-%3E%20%20HashAggregate%20%20%28cost%3D0.39..0.54%20rows%3D12%20width%3D112%29%20%28actual%20time%3D0.037..0.040%20rows%3D6%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Group%20Key%3A%20months_1.order_season%2C%20months_1.version%2C%20months_1.iter%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20months%20months_1%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D112%29%20%28actual%20time%3D0.003..0.008%20rows%3D28%20loops%3D1%29%0A%09%20%20InitPlan%207%20%28returns%20%247%29%0A%09%20%20%20%20-%3E%20%20Aggregate%20%20%28cost%3D0.36..0.37%20rows%3D1%20width%3D32%29%20%28actual%20time%3D1298.799..1298.799%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D15116%0A%09%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1154.285%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20months%20months_2%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D24%29%20%28actual%20time%3D1297.953..1298.003%20rows%3D28%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D15116%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1154.285%0A%09%20%20InitPlan%208%20%28returns%20%248%29%0A%09%20%20%20%20-%3E%20%20Aggregate%20%20%28cost%3D0.36..0.37%20rows%3D1%20width%3D32%29%20%28actual%20time%3D0.466..0.467%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20mlist%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D24%29%20%28actual%20time%3D0.181..0.192%20rows%3D12%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D3%0A%09%20%20InitPlan%209%20%28returns%20%249%29%0A%09%20%20%20%20-%3E%20%20Aggregate%20%20%28cost%3D0.75..0.76%20rows%3D1%20width%3D32%29%20%28actual%20time%3D19.795..19.795%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20base%20base_1%20%20%28cost%3D0.00..0.50%20rows%3D25%20width%3D24%29%20%28actual%20time%3D0.006..0.656%20rows%3D1095%20loops%3D1%29%0A%09%20%20InitPlan%2010%20%28returns%20%2410%29%0A%09%20%20%20%20-%3E%20%20Aggregate%20%20%28cost%3D0.36..0.37%20rows%3D1%20width%3D32%29%20%28actual%20time%3D0.165..0.165%20rows%3D1%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20-%3E%20%20CTE%20Scan%20on%20totals%20%20%28cost%3D0.00..0.24%20rows%3D12%20width%3D24%29%20%28actual%20time%3D0.059..0.067%20rows%3D6%20loops%3D1%29%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Result (cost=43067.02..43067.03 rows=1 width=32) (actual time=1322.834..1322.949 rows=1 loops=1)
|
||
Buffers: shared hit=3 read=15116
|
||
I/O Timings: read=1154.285
|
||
CTE mseq
|
||
-> Values Scan on "*VALUES*" (cost=0.00..0.15 rows=12 width=36) (actual time=0.008..0.012 rows=12 loops=1)
|
||
CTE base
|
||
-> Finalize GroupAggregate (cost=43057.06..43060.56 rows=25 width=176) (actual time=1287.168..1296.146 rows=1095 loops=1)
|
||
Group Key: osm_fcpool.order_season, osm_fcpool.order_month, osm_fcpool.version, osm_fcpool.iter, osm_fcpool.part_descr, osm_fcpool.bill_cust_descr, osm_fcpool.ship_cust_descr
|
||
Buffers: shared read=15116
|
||
I/O Timings: read=1154.285
|
||
-> Gather Merge (cost=43057.06..43059.75 rows=20 width=176) (actual time=1287.150..1294.990 rows=1214 loops=1)
|
||
Workers Planned: 2
|
||
Workers Launched: 2
|
||
Buffers: shared hit=112 read=39543
|
||
I/O Timings: read=3332.221
|
||
-> Partial GroupAggregate (cost=42057.04..42057.42 rows=10 width=176) (actual time=1222.013..1222.459 rows=405 loops=3)
|
||
Group Key: osm_fcpool.order_season, osm_fcpool.order_month, osm_fcpool.version, osm_fcpool.iter, osm_fcpool.part_descr, osm_fcpool.bill_cust_descr, osm_fcpool.ship_cust_descr
|
||
Buffers: shared hit=112 read=39543
|
||
I/O Timings: read=3332.221
|
||
-> Sort (cost=42057.04..42057.07 rows=10 width=149) (actual time=1221.999..1222.047 rows=447 loops=3)
|
||
Sort Key: osm_fcpool.order_season, osm_fcpool.order_month, osm_fcpool.version, osm_fcpool.iter, osm_fcpool.part_descr, osm_fcpool.ship_cust_descr
|
||
Sort Method: quicksort Memory: 145kB
|
||
Worker 0: Sort Method: quicksort Memory: 145kB
|
||
Worker 1: Sort Method: quicksort Memory: 140kB
|
||
Buffers: shared hit=112 read=39543
|
||
I/O Timings: read=3332.221
|
||
-> Parallel Seq Scan on osm_fcpool (cost=0.00..42056.88 rows=10 width=149) (actual time=24.365..1220.140 rows=447 loops=3)
|
||
Filter: ((quota_rep_descr = '10032 - BRYAN HILL'::text) AND (segm = 'Greenhouse'::text) AND (mod_chan = 'DISTRIBUTOR'::text) AND (bill_cust_descr = 'BWIC0001 - BWI COMPANIES INC'::text))
|
||
Rows Removed by Filter: 99999
|
||
Buffers: shared read=39543
|
||
I/O Timings: read=3332.221
|
||
CTE months
|
||
-> HashAggregate (cost=1.31..1.46 rows=12 width=152) (actual time=1297.764..1297.785 rows=28 loops=1)
|
||
Group Key: base.order_season, base.version, base.iter, base.order_month, mseq.s
|
||
Buffers: shared read=15116
|
||
I/O Timings: read=1154.285
|
||
-> Hash Join (cost=0.39..1.10 rows=12 width=148) (actual time=1287.272..1297.191 rows=1095 loops=1)
|
||
Hash Cond: (base.order_month = mseq.m)
|
||
Buffers: shared read=15116
|
||
I/O Timings: read=1154.285
|
||
-> CTE Scan on base (cost=0.00..0.50 rows=25 width=144) (actual time=1287.170..1296.717 rows=1095 loops=1)
|
||
Buffers: shared read=15116
|
||
I/O Timings: read=1154.285
|
||
-> Hash (cost=0.24..0.24 rows=12 width=36) (actual time=0.028..0.028 rows=12 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 9kB
|
||
-> CTE Scan on mseq (cost=0.00..0.24 rows=12 width=36) (actual time=0.013..0.021 rows=12 loops=1)
|
||
CTE mpvt
|
||
-> GroupAggregate (cost=0.46..1.39 rows=12 width=196) (actual time=0.043..0.069 rows=12 loops=1)
|
||
Group Key: months.seq, months.order_month
|
||
-> Sort (cost=0.46..0.49 rows=12 width=116) (actual time=0.029..0.031 rows=28 loops=1)
|
||
Sort Key: months.seq, months.order_month
|
||
Sort Method: quicksort Memory: 27kB
|
||
-> CTE Scan on months (cost=0.00..0.24 rows=12 width=116) (actual time=0.001..0.006 rows=28 loops=1)
|
||
CTE mlist
|
||
-> Sort (cost=1.01..1.04 rows=12 width=196) (actual time=0.167..0.168 rows=12 loops=1)
|
||
Sort Key: mseq_1.s
|
||
Sort Method: quicksort Memory: 26kB
|
||
Buffers: shared hit=3
|
||
-> Hash Left Join (cost=0.39..0.80 rows=12 width=196) (actual time=0.110..0.115 rows=12 loops=1)
|
||
Hash Cond: (mseq_1.m = mpvt.order_month)
|
||
-> CTE Scan on mseq mseq_1 (cost=0.00..0.24 rows=12 width=36) (actual time=0.001..0.002 rows=12 loops=1)
|
||
-> Hash (cost=0.24..0.24 rows=12 width=192) (actual time=0.092..0.092 rows=12 loops=1)
|
||
Buckets: 1024 Batches: 1 Memory Usage: 10kB
|
||
-> CTE Scan on mpvt (cost=0.00..0.24 rows=12 width=192) (actual time=0.049..0.082 rows=12 loops=1)
|
||
CTE totals
|
||
-> HashAggregate (cost=0.39..0.54 rows=12 width=112) (actual time=0.037..0.040 rows=6 loops=1)
|
||
Group Key: months_1.order_season, months_1.version, months_1.iter
|
||
-> CTE Scan on months months_1 (cost=0.00..0.24 rows=12 width=112) (actual time=0.003..0.008 rows=28 loops=1)
|
||
InitPlan 7 (returns $7)
|
||
-> Aggregate (cost=0.36..0.37 rows=1 width=32) (actual time=1298.799..1298.799 rows=1 loops=1)
|
||
Buffers: shared read=15116
|
||
I/O Timings: read=1154.285
|
||
-> CTE Scan on months months_2 (cost=0.00..0.24 rows=12 width=24) (actual time=1297.953..1298.003 rows=28 loops=1)
|
||
Buffers: shared read=15116
|
||
I/O Timings: read=1154.285
|
||
InitPlan 8 (returns $8)
|
||
-> Aggregate (cost=0.36..0.37 rows=1 width=32) (actual time=0.466..0.467 rows=1 loops=1)
|
||
Buffers: shared hit=3
|
||
-> CTE Scan on mlist (cost=0.00..0.24 rows=12 width=24) (actual time=0.181..0.192 rows=12 loops=1)
|
||
Buffers: shared hit=3
|
||
InitPlan 9 (returns $9)
|
||
-> Aggregate (cost=0.75..0.76 rows=1 width=32) (actual time=19.795..19.795 rows=1 loops=1)
|
||
-> CTE Scan on base base_1 (cost=0.00..0.50 rows=25 width=24) (actual time=0.006..0.656 rows=1095 loops=1)
|
||
InitPlan 10 (returns $10)
|
||
-> Aggregate (cost=0.36..0.37 rows=1 width=32) (actual time=0.165..0.165 rows=1 loops=1)
|
||
-> CTE Scan on totals (cost=0.00..0.24 rows=12 width=24) (actual time=0.059..0.067 rows=6 loops=1)
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-g-14-2" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing
|
||
<span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span>
|
||
<span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">VALUES</span> <span class="br0">(</span><span class="st0">'Jun'</span><span class="sy0">,</span>
|
||
<span class="nu0">1</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jul'</span><span class="sy0">,</span>
|
||
<span class="nu0">2</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Aug'</span><span class="sy0">,</span>
|
||
<span class="nu0">3</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Sep'</span><span class="sy0">,</span>
|
||
<span class="nu0">4</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Oct'</span><span class="sy0">,</span>
|
||
<span class="nu0">5</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Nov'</span><span class="sy0">,</span>
|
||
<span class="nu0">6</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Dec'</span><span class="sy0">,</span>
|
||
<span class="nu0">7</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jan'</span><span class="sy0">,</span>
|
||
<span class="nu0">8</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Feb'</span><span class="sy0">,</span>
|
||
<span class="nu0">9</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Mar'</span><span class="sy0">,</span>
|
||
<span class="nu0">10</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Apr'</span><span class="sy0">,</span>
|
||
<span class="nu0">11</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'May'</span><span class="sy0">,</span>
|
||
<span class="nu0">12</span><span class="br0">)</span><span class="br0">)</span> x <span class="br0">(</span>m<span class="sy0">,</span>
|
||
s<span class="br0">)</span>
|
||
<span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq
|
||
<span class="sy0">,</span>
|
||
base <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_fcpool
|
||
<span class="kw1">WHERE</span>
|
||
quota_rep_descr <span class="sy0">=</span> <span class="st0">'10032 - BRYAN HILL'</span>
|
||
<span class="kw1">AND</span> segm <span class="sy0">=</span> <span class="st0">'Greenhouse'</span>
|
||
<span class="kw1">AND</span> mod_chan <span class="sy0">=</span> <span class="st0">'DISTRIBUTOR'</span>
|
||
<span class="kw1">AND</span> bill_cust_descr <span class="sy0">=</span> <span class="st0">'BWIC0001 - BWI COMPANIES INC'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="br0">)</span><span class="sy0">,</span>
|
||
months <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
mseq<span class="sy0">.</span>s seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
base
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
s<span class="br0">)</span><span class="sy0">,</span>
|
||
mpvt <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_month<span class="sy0">,</span>
|
||
seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0">=</span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 base qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 adj qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0">=</span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 base value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 adj value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_month<span class="sy0">,</span> seq
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
seq <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> mlist <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
mseq<span class="sy0">.</span>m order_month<span class="sy0">,</span> "2019 qty"<span class="sy0">,</span> "2020 base qty"<span class="sy0">,</span> "2020 adj qty"<span class="sy0">,</span> "2020 tot qty"<span class="sy0">,</span> "2019 value_usd"<span class="sy0">,</span> "2020 base value_usd"<span class="sy0">,</span> "2020 adj value_usd"<span class="sy0">,</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
mseq
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
mseq<span class="sy0">.</span>s <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> totals <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_build_object <span class="br0">(</span><span class="st0">'months'</span><span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
months<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'mpvt'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
mlist<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'base'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
base<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'totals'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
totals<span class="br0">)</span><span class="br0">)</span> package;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 10:02:03
|
||
<b>Duration:</b> 1s198ms
|
||
</pre>
|
||
<div id="query-g-explain-14-2" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Partial%20GroupAggregate%20%20%28cost%3D42057.04..42057.42%20rows%3D10%20width%3D176%29%20%28actual%20time%3D1191.374..1191.759%20rows%3D387%20loops%3D1%29%0A%09%20%20Group%20Key%3A%20osm_fcpool.order_season%2C%20osm_fcpool.order_month%2C%20osm_fcpool.version%2C%20osm_fcpool.iter%2C%20osm_fcpool.part_descr%2C%20osm_fcpool.bill_cust_descr%2C%20osm_fcpool.ship_cust_descr%0A%09%20%20Buffers%3A%20shared%20hit%3D56%20read%3D12331%0A%09%20%20I%2FO%20Timings%3A%20read%3D1091.338%0A%09%20%20-%3E%20%20Sort%20%20%28cost%3D42057.04..42057.07%20rows%3D10%20width%3D149%29%20%28actual%20time%3D1191.355..1191.388%20rows%3D435%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Sort%20Key%3A%20osm_fcpool.order_season%2C%20osm_fcpool.order_month%2C%20osm_fcpool.version%2C%20osm_fcpool.iter%2C%20osm_fcpool.part_descr%2C%20osm_fcpool.ship_cust_descr%0A%09%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20140kB%0A%09%20%20%20%20%20%20%20%20Worker%200%3A%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20145kB%0A%09%20%20%20%20%20%20%20%20Worker%201%3A%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20140kB%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D56%20read%3D12331%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1091.338%0A%09%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm_fcpool%20%20%28cost%3D0.00..42056.88%20rows%3D10%20width%3D149%29%20%28actual%20time%3D11.309..1189.560%20rows%3D435%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28quota_rep_descr%20%3D%20%2710032%20-%20BRYAN%20HILL%27%3A%3Atext%29%20AND%20%28segm%20%3D%20%27Greenhouse%27%3A%3Atext%29%20AND%20%28mod_chan%20%3D%20%27DISTRIBUTOR%27%3A%3Atext%29%20AND%20%28bill_cust_descr%20%3D%20%27BWIC0001%20-%20BWI%20COMPANIES%20INC%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2092425%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D12331%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1091.338%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Partial GroupAggregate (cost=42057.04..42057.42 rows=10 width=176) (actual time=1191.374..1191.759 rows=387 loops=1)
|
||
Group Key: osm_fcpool.order_season, osm_fcpool.order_month, osm_fcpool.version, osm_fcpool.iter, osm_fcpool.part_descr, osm_fcpool.bill_cust_descr, osm_fcpool.ship_cust_descr
|
||
Buffers: shared hit=56 read=12331
|
||
I/O Timings: read=1091.338
|
||
-> Sort (cost=42057.04..42057.07 rows=10 width=149) (actual time=1191.355..1191.388 rows=435 loops=1)
|
||
Sort Key: osm_fcpool.order_season, osm_fcpool.order_month, osm_fcpool.version, osm_fcpool.iter, osm_fcpool.part_descr, osm_fcpool.ship_cust_descr
|
||
Sort Method: quicksort Memory: 140kB
|
||
Worker 0: Sort Method: quicksort Memory: 145kB
|
||
Worker 1: Sort Method: quicksort Memory: 140kB
|
||
Buffers: shared hit=56 read=12331
|
||
I/O Timings: read=1091.338
|
||
-> Parallel Seq Scan on osm_fcpool (cost=0.00..42056.88 rows=10 width=149) (actual time=11.309..1189.560 rows=435 loops=1)
|
||
Filter: ((quota_rep_descr = '10032 - BRYAN HILL'::text) AND (segm = 'Greenhouse'::text) AND (mod_chan = 'DISTRIBUTOR'::text) AND (bill_cust_descr = 'BWIC0001 - BWI COMPANIES INC'::text))
|
||
Rows Removed by Filter: 92425
|
||
Buffers: shared read=12331
|
||
I/O Timings: read=1091.338
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
<dt>
|
||
<div id="query-g-14-3" class="sql sql-largesize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="sy0">-</span><span class="sy0">-</span>\timing
|
||
<span class="sy0">-</span><span class="sy0">-</span>explain <span class="br0">(</span><span class="kw1">ANALYZE</span><span class="sy0">,</span> buffers<span class="br0">)</span>
|
||
<span class="kw1">WITH</span> mseq <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
<span class="sy0">*</span>
|
||
<span class="kw1">FROM</span> <span class="br0">(</span>
|
||
<span class="kw1">VALUES</span> <span class="br0">(</span><span class="st0">'Jun'</span><span class="sy0">,</span>
|
||
<span class="nu0">1</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jul'</span><span class="sy0">,</span>
|
||
<span class="nu0">2</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Aug'</span><span class="sy0">,</span>
|
||
<span class="nu0">3</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Sep'</span><span class="sy0">,</span>
|
||
<span class="nu0">4</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Oct'</span><span class="sy0">,</span>
|
||
<span class="nu0">5</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Nov'</span><span class="sy0">,</span>
|
||
<span class="nu0">6</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Dec'</span><span class="sy0">,</span>
|
||
<span class="nu0">7</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Jan'</span><span class="sy0">,</span>
|
||
<span class="nu0">8</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Feb'</span><span class="sy0">,</span>
|
||
<span class="nu0">9</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Mar'</span><span class="sy0">,</span>
|
||
<span class="nu0">10</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'Apr'</span><span class="sy0">,</span>
|
||
<span class="nu0">11</span><span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="br0">(</span><span class="st0">'May'</span><span class="sy0">,</span>
|
||
<span class="nu0">12</span><span class="br0">)</span><span class="br0">)</span> x <span class="br0">(</span>m<span class="sy0">,</span>
|
||
s<span class="br0">)</span>
|
||
<span class="br0">)</span> <span class="sy0">-</span><span class="sy0">-</span>select <span class="sy0">*</span> <span class="kw1">FROM</span> mseq
|
||
<span class="sy0">,</span>
|
||
base <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
rlarp<span class="sy0">.</span>osm_fcpool
|
||
<span class="kw1">WHERE</span>
|
||
quota_rep_descr <span class="sy0">=</span> <span class="st0">'10032 - BRYAN HILL'</span>
|
||
<span class="kw1">AND</span> segm <span class="sy0">=</span> <span class="st0">'Greenhouse'</span>
|
||
<span class="kw1">AND</span> mod_chan <span class="sy0">=</span> <span class="st0">'DISTRIBUTOR'</span>
|
||
<span class="kw1">AND</span> bill_cust_descr <span class="sy0">=</span> <span class="st0">'BWIC0001 - BWI COMPANIES INC'</span>
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
part_descr<span class="sy0">,</span>
|
||
bill_cust_descr<span class="sy0">,</span>
|
||
ship_cust_descr<span class="br0">)</span><span class="sy0">,</span>
|
||
months <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
mseq<span class="sy0">.</span>s seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
base
|
||
<span class="kw1">INNER</span> <span class="kw1">JOIN</span> mseq <span class="kw1">ON</span> mseq<span class="sy0">.</span>m <span class="sy0">=</span> base<span class="sy0">.</span>order_month
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span>
|
||
<span class="kw2">version</span><span class="sy0">,</span>
|
||
iter<span class="sy0">,</span>
|
||
order_month<span class="sy0">,</span>
|
||
s<span class="br0">)</span><span class="sy0">,</span>
|
||
mpvt <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_month<span class="sy0">,</span>
|
||
seq<span class="sy0">,</span>
|
||
<span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0">=</span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 base qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 adj qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot qty"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2019</span><span class="br0">)</span> "2019 value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0">=</span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 base value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span>
|
||
<span class="kw1">AND</span> iter <span class="sy0"><</span><span class="sy0">></span> <span class="st0">'copy'</span><span class="br0">)</span> "2020 adj value_usd"<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> FILTER <span class="br0">(</span>
|
||
<span class="kw1">WHERE</span>
|
||
order_season <span class="sy0">=</span> <span class="nu0">2020</span><span class="br0">)</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_month<span class="sy0">,</span> seq
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
seq <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> mlist <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
mseq<span class="sy0">.</span>m order_month<span class="sy0">,</span> "2019 qty"<span class="sy0">,</span> "2020 base qty"<span class="sy0">,</span> "2020 adj qty"<span class="sy0">,</span> "2020 tot qty"<span class="sy0">,</span> "2019 value_usd"<span class="sy0">,</span> "2020 base value_usd"<span class="sy0">,</span> "2020 adj value_usd"<span class="sy0">,</span> "2020 tot value_usd"
|
||
<span class="kw1">FROM</span>
|
||
mseq
|
||
<span class="kw1">LEFT</span> <span class="kw1">OUTER</span> <span class="kw1">JOIN</span> mpvt <span class="kw1">ON</span> mpvt<span class="sy0">.</span>order_month <span class="sy0">=</span> mseq<span class="sy0">.</span>m
|
||
<span class="kw1">ORDER</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
mseq<span class="sy0">.</span>s <span class="kw1">ASC</span><span class="br0">)</span><span class="sy0">,</span> totals <span class="kw1">AS</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>units<span class="br0">)</span> units<span class="sy0">,</span> <span class="kw2">sum</span><span class="br0">(</span>value_usd<span class="br0">)</span> value_usd
|
||
<span class="kw1">FROM</span>
|
||
months
|
||
<span class="kw1">GROUP</span> <span class="kw1"><span class="kw1">BY</span></span>
|
||
order_season<span class="sy0">,</span> <span class="kw2">version</span><span class="sy0">,</span> iter
|
||
<span class="br0">)</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_build_object <span class="br0">(</span><span class="st0">'months'</span><span class="sy0">,</span> <span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>months<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
months<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'mpvt'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>mlist<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
mlist<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'base'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>base<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
base<span class="br0">)</span><span class="sy0">,</span>
|
||
<span class="st0">'totals'</span><span class="sy0">,</span>
|
||
<span class="br0">(</span>
|
||
<span class="kw1">SELECT</span>
|
||
jsonb_agg <span class="br0">(</span><span class="kw2">row_to_json</span><span class="br0">(</span>totals<span class="br0">)</span>::jsonb<span class="br0">)</span>
|
||
<span class="kw1">FROM</span>
|
||
totals<span class="br0">)</span><span class="br0">)</span> package;
|
||
|
||
</div>
|
||
</dt>
|
||
<pre><b>Date:</b> 2019-03-15 10:02:03
|
||
<b>Duration:</b> 1s194ms
|
||
</pre>
|
||
<div id="query-g-explain-14-3" class="sql sql-largesize"><a href="http://explain.depesz.com/?is_public=0&is_anon=0&plan=%09Partial%20GroupAggregate%20%20%28cost%3D42057.04..42057.42%20rows%3D10%20width%3D176%29%20%28actual%20time%3D1190.430..1190.830%20rows%3D411%20loops%3D1%29%0A%09%20%20Group%20Key%3A%20osm_fcpool.order_season%2C%20osm_fcpool.order_month%2C%20osm_fcpool.version%2C%20osm_fcpool.iter%2C%20osm_fcpool.part_descr%2C%20osm_fcpool.bill_cust_descr%2C%20osm_fcpool.ship_cust_descr%0A%09%20%20Buffers%3A%20shared%20hit%3D56%20read%3D12096%0A%09%20%20I%2FO%20Timings%3A%20read%3D1086.598%0A%09%20%20-%3E%20%20Sort%20%20%28cost%3D42057.04..42057.07%20rows%3D10%20width%3D149%29%20%28actual%20time%3D1190.420..1190.459%20rows%3D452%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20Sort%20Key%3A%20osm_fcpool.order_season%2C%20osm_fcpool.order_month%2C%20osm_fcpool.version%2C%20osm_fcpool.iter%2C%20osm_fcpool.part_descr%2C%20osm_fcpool.ship_cust_descr%0A%09%20%20%20%20%20%20%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20145kB%0A%09%20%20%20%20%20%20%20%20Worker%200%3A%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20145kB%0A%09%20%20%20%20%20%20%20%20Worker%201%3A%20%20Sort%20Method%3A%20quicksort%20%20Memory%3A%20140kB%0A%09%20%20%20%20%20%20%20%20Buffers%3A%20shared%20hit%3D56%20read%3D12096%0A%09%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1086.598%0A%09%20%20%20%20%20%20%20%20-%3E%20%20Parallel%20Seq%20Scan%20on%20osm_fcpool%20%20%28cost%3D0.00..42056.88%20rows%3D10%20width%3D149%29%20%28actual%20time%3D24.972..1188.569%20rows%3D452%20loops%3D1%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Filter%3A%20%28%28quota_rep_descr%20%3D%20%2710032%20-%20BRYAN%20HILL%27%3A%3Atext%29%20AND%20%28segm%20%3D%20%27Greenhouse%27%3A%3Atext%29%20AND%20%28mod_chan%20%3D%20%27DISTRIBUTOR%27%3A%3Atext%29%20AND%20%28bill_cust_descr%20%3D%20%27BWIC0001%20-%20BWI%20COMPANIES%20INC%27%3A%3Atext%29%29%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Rows%20Removed%20by%20Filter%3A%2091018%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buffers%3A%20shared%20read%3D12096%0A%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20I%2FO%20Timings%3A%20read%3D1086.598%0A%0A" target="explain" title="Click to beautify Explain Plan"><i class="glyphicon icon-compass"></i><b>Explain plan</b></a></div>
|
||
<div style="width:900px;overflow:auto">
|
||
<pre> Partial GroupAggregate (cost=42057.04..42057.42 rows=10 width=176) (actual time=1190.430..1190.830 rows=411 loops=1)
|
||
Group Key: osm_fcpool.order_season, osm_fcpool.order_month, osm_fcpool.version, osm_fcpool.iter, osm_fcpool.part_descr, osm_fcpool.bill_cust_descr, osm_fcpool.ship_cust_descr
|
||
Buffers: shared hit=56 read=12096
|
||
I/O Timings: read=1086.598
|
||
-> Sort (cost=42057.04..42057.07 rows=10 width=149) (actual time=1190.420..1190.459 rows=452 loops=1)
|
||
Sort Key: osm_fcpool.order_season, osm_fcpool.order_month, osm_fcpool.version, osm_fcpool.iter, osm_fcpool.part_descr, osm_fcpool.ship_cust_descr
|
||
Sort Method: quicksort Memory: 145kB
|
||
Worker 0: Sort Method: quicksort Memory: 145kB
|
||
Worker 1: Sort Method: quicksort Memory: 140kB
|
||
Buffers: shared hit=56 read=12096
|
||
I/O Timings: read=1086.598
|
||
-> Parallel Seq Scan on osm_fcpool (cost=0.00..42056.88 rows=10 width=149) (actual time=24.972..1188.569 rows=452 loops=1)
|
||
Filter: ((quota_rep_descr = '10032 - BRYAN HILL'::text) AND (segm = 'Greenhouse'::text) AND (mod_chan = 'DISTRIBUTOR'::text) AND (bill_cust_descr = 'BWIC0001 - BWI COMPANIES INC'::text))
|
||
Rows Removed by Filter: 91018
|
||
Buffers: shared read=12096
|
||
I/O Timings: read=1086.598
|
||
|
||
</pre>
|
||
</div>
|
||
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-14">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>15</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>2
|
||
<p><a href="#Anormalized_slowest_queries_details_15" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td id="normalized-slowest-queries-examples-details-rank-15">
|
||
<div id="query-g-15" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">COPY</span> lgdat<span class="sy0">.</span>pdrq <span class="br0">(</span>vcpart<span class="sy0">,</span>
|
||
"vcseq#"<span class="sy0">,</span>
|
||
vcqtyr<span class="sy0">,</span>
|
||
vcunit<span class="sy0">,</span>
|
||
vcdate<span class="sy0">,</span>
|
||
vctime<span class="sy0">,</span>
|
||
vctmzn<span class="sy0">,</span>
|
||
vcsrce<span class="sy0">,</span>
|
||
"vcref#"<span class="sy0">,</span>
|
||
vcstat<span class="sy0">,</span>
|
||
vcplnt<span class="br0">)</span>
|
||
<span class="kw1">TO</span> <span class="kw3">STDOUT</span>;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Anormalized_slowest_queries_details_15" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #15</small></h3>
|
||
<div id="normalized_slowest_queries_details_15" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Anormalized_slowest_queries_details_15').on("shown.bs.collapse",function(){
|
||
var bars_89 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',2],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_89 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var normalized_slowest_queries_details_15 = create_bargraph('normalized_slowest_queries_details_15', '', 'Queries', [ bars_89, lines_89 ], 'Avg. duration');
|
||
});
|
||
create_download_button(89, 'btn btn-default btn-xs');
|
||
add_download_button_event(89, 'normalized_slowest_queries_details_15');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Anormalized_slowest_queries_details_15">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-15">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="normalized-slowest-queries-examples-rank-15" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-15">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>16</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>2
|
||
<p><a href="#Anormalized_slowest_queries_details_16" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td id="normalized-slowest-queries-examples-details-rank-16">
|
||
<div id="query-g-16" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">LOCK</span> <span class="kw1">TABLE</span> lgdat<span class="sy0">.</span>serin <span class="kw1">IN</span> access share mode;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Anormalized_slowest_queries_details_16" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #16</small></h3>
|
||
<div id="normalized_slowest_queries_details_16" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Anormalized_slowest_queries_details_16').on("shown.bs.collapse",function(){
|
||
var bars_90 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',2],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_90 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var normalized_slowest_queries_details_16 = create_bargraph('normalized_slowest_queries_details_16', '', 'Queries', [ bars_90, lines_90 ], 'Avg. duration');
|
||
});
|
||
create_download_button(90, 'btn btn-default btn-xs');
|
||
add_download_button_event(90, 'normalized_slowest_queries_details_16');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Anormalized_slowest_queries_details_16">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-16">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="normalized-slowest-queries-examples-rank-16" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-16">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>17</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>2
|
||
<p><a href="#Anormalized_slowest_queries_details_17" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td id="normalized-slowest-queries-examples-details-rank-17">
|
||
<div id="query-g-17" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">COPY</span> lgdat<span class="sy0">.</span>vrtf <span class="br0">(</span>g7type<span class="sy0">,</span>
|
||
g7flda<span class="sy0">,</span>
|
||
g7fldn<span class="sy0">,</span>
|
||
g7fldt<span class="sy0">,</span>
|
||
g7desc<span class="br0">)</span>
|
||
<span class="kw1">TO</span> <span class="kw3">STDOUT</span>;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Anormalized_slowest_queries_details_17" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #17</small></h3>
|
||
<div id="normalized_slowest_queries_details_17" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Anormalized_slowest_queries_details_17').on("shown.bs.collapse",function(){
|
||
var bars_91 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',2],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_91 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var normalized_slowest_queries_details_17 = create_bargraph('normalized_slowest_queries_details_17', '', 'Queries', [ bars_91, lines_91 ], 'Avg. duration');
|
||
});
|
||
create_download_button(91, 'btn btn-default btn-xs');
|
||
add_download_button_event(91, 'normalized_slowest_queries_details_17');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Anormalized_slowest_queries_details_17">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-17">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="normalized-slowest-queries-examples-rank-17" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-17">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>18</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>2
|
||
<p><a href="#Anormalized_slowest_queries_details_18" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td id="normalized-slowest-queries-examples-details-rank-18">
|
||
<div id="query-g-18" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">LOCK</span> <span class="kw1">TABLE</span> lgdat<span class="sy0">.</span>altmh <span class="kw1">IN</span> access share mode;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Anormalized_slowest_queries_details_18" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #18</small></h3>
|
||
<div id="normalized_slowest_queries_details_18" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Anormalized_slowest_queries_details_18').on("shown.bs.collapse",function(){
|
||
var bars_92 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',2],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_92 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var normalized_slowest_queries_details_18 = create_bargraph('normalized_slowest_queries_details_18', '', 'Queries', [ bars_92, lines_92 ], 'Avg. duration');
|
||
});
|
||
create_download_button(92, 'btn btn-default btn-xs');
|
||
add_download_button_event(92, 'normalized_slowest_queries_details_18');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Anormalized_slowest_queries_details_18">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-18">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="normalized-slowest-queries-examples-rank-18" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-18">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>19</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>2
|
||
<p><a href="#Anormalized_slowest_queries_details_19" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td id="normalized-slowest-queries-examples-details-rank-19">
|
||
<div id="query-g-19" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">COPY</span> lgdat<span class="sy0">.</span>lbrd <span class="br0">(</span>n4btid<span class="sy0">,</span>
|
||
"n4ent#"<span class="sy0">,</span>
|
||
"n4tag#"<span class="sy0">,</span>
|
||
n4empd<span class="sy0">,</span>
|
||
n4empl<span class="sy0">,</span>
|
||
n4mode<span class="sy0">,</span>
|
||
n4dept<span class="sy0">,</span>
|
||
n4resc<span class="sy0">,</span>
|
||
n4rbtd<span class="sy0">,</span>
|
||
n4part<span class="sy0">,</span>
|
||
"n4seq#"<span class="sy0">,</span>
|
||
"n4job#"<span class="sy0">,</span>
|
||
"n4ref#"<span class="sy0">,</span>
|
||
n4indc<span class="sy0">,</span>
|
||
n4sdat<span class="sy0">,</span>
|
||
n4stim<span class="sy0">,</span>
|
||
n4edat<span class="sy0">,</span>
|
||
n4etim<span class="sy0">,</span>
|
||
n4tmzn<span class="sy0">,</span>
|
||
n4post<span class="sy0">,</span>
|
||
n4ratf<span class="sy0">,</span>
|
||
n4attc<span class="sy0">,</span>
|
||
n4cdep<span class="sy0">,</span>
|
||
n4cres<span class="sy0">,</span>
|
||
n4proc<span class="sy0">,</span>
|
||
n4rseq<span class="sy0">,</span>
|
||
n4rent<span class="sy0">,</span>
|
||
n4nhrs<span class="sy0">,</span>
|
||
n4fut01<span class="sy0">,</span>
|
||
n4fut02<span class="sy0">,</span>
|
||
n4fut03<span class="sy0">,</span>
|
||
n4fut04<span class="sy0">,</span>
|
||
n4fut05<span class="sy0">,</span>
|
||
n4fut06<span class="sy0">,</span>
|
||
n4fut07<span class="sy0">,</span>
|
||
n4fut08<span class="sy0">,</span>
|
||
n4fut09<span class="sy0">,</span>
|
||
n4fut10<span class="sy0">,</span>
|
||
n4edttm<span class="sy0">,</span>
|
||
n4inuse<span class="br0">)</span>
|
||
<span class="kw1">TO</span> <span class="kw3">STDOUT</span>;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Anormalized_slowest_queries_details_19" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #19</small></h3>
|
||
<div id="normalized_slowest_queries_details_19" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Anormalized_slowest_queries_details_19').on("shown.bs.collapse",function(){
|
||
var bars_93 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',2],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_93 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var normalized_slowest_queries_details_19 = create_bargraph('normalized_slowest_queries_details_19', '', 'Queries', [ bars_93, lines_93 ], 'Avg. duration');
|
||
});
|
||
create_download_button(93, 'btn btn-default btn-xs');
|
||
add_download_button_event(93, 'normalized_slowest_queries_details_19');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Anormalized_slowest_queries_details_19">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-19">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="normalized-slowest-queries-examples-rank-19" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-19">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>20</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>0ms</td>
|
||
<td>2
|
||
<p><a href="#Anormalized_slowest_queries_details_20" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td>0ms</td>
|
||
<td id="normalized-slowest-queries-examples-details-rank-20">
|
||
<div id="query-g-20" class="sql sql-mediumsize"><i class="glyphicon icon-copy" title="Click to select query"></i><span class="kw1">LOCK</span> <span class="kw1">TABLE</span> lgdat<span class="sy0">.</span>glcrc <span class="kw1">IN</span> access share mode;
|
||
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Anormalized_slowest_queries_details_20" class="collapse">
|
||
<h3>Times Reported <small>Time consuming queries #20</small></h3>
|
||
<div id="normalized_slowest_queries_details_20" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Anormalized_slowest_queries_details_20').on("shown.bs.collapse",function(){
|
||
var bars_94 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',2],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var lines_94 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
var normalized_slowest_queries_details_20 = create_bargraph('normalized_slowest_queries_details_20', '', 'Queries', [ bars_94, lines_94 ], 'Avg. duration');
|
||
});
|
||
create_download_button(94, 'btn btn-default btn-xs');
|
||
add_download_button_event(94, 'normalized_slowest_queries_details_20');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
<th>Duration</th>
|
||
<th>Avg duration</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr><tr><td>Mar 15</td><td>16</td><td>1</td><td>0ms</td><td>0ms</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Anormalized_slowest_queries_details_20">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-20">Examples</button> </p>
|
||
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="normalized-slowest-queries-examples-rank-20" class="collapse">
|
||
<dl>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#normalized-slowest-queries-examples-rank-20">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div><!-- end of normalized-slowest-queries -->
|
||
|
||
</li>
|
||
<li class="slide" id="events-slide">
|
||
|
||
<h1 class="page-header"><i class="glyphicon icon-bullhorn"></i> Events</h1>
|
||
|
||
<div class="analysis-item row" id="log-levels">
|
||
<h2><i class="glyphicon icon-tags"></i> Log levels</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">70,640</span> <span class="figure-label">Log entries</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div class="tabbable">
|
||
<ul class="nav nav-tabs">
|
||
<li class="active"><a href="#log-level-graph" data-toggle="tab">Chart</a></li>
|
||
<li><a href="#log-level-table" data-toggle="tab">Table</a></li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div class="tab-pane active" id="log-level-graph">
|
||
<div id="graph_logstype" class="jqplot-graph piegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var data_96 = [ ['LOG', 70521],['Sum log types < 2%', 119] ];
|
||
|
||
create_download_button(96, 'btn btn-default');
|
||
var graph_logstype = create_piechart('graph_logstype', 'Logs per type', data_96);
|
||
add_download_button_event(96, 'graph_logstype');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
<div class="tab-pane" id="log-level-table">
|
||
<table class="table table-striped table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th>Type</th>
|
||
<th>Count</th>
|
||
<th>Percentage</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>CONTEXT</td><td>21</td><td>0.03%</td></tr><tr><td>DETAIL</td><td>46</td><td>0.07%</td></tr><tr><td>ERROR</td><td>11</td><td>0.02%</td></tr><tr><td>FATAL</td><td>1</td><td>0.00%</td></tr><tr><td>HINT</td><td>4</td><td>0.01%</td></tr><tr><td>LOG</td><td>70,521</td><td>99.83%</td></tr><tr><td>STATEMENT</td><td>32</td><td>0.05%</td></tr><tr><td>WARNING</td><td>4</td><td>0.01%</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div><!-- end of event flow -->
|
||
|
||
<div class="analysis-item row" id="minutes-errors-levels">
|
||
<h2><i class="glyphicon icon-tags"></i> Events distribution</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">0</span> <span class="figure-label">PANIC entries</span></li>
|
||
<li><span class="figure">1</span> <span class="figure-label">FATAL entries</span></li>
|
||
<li><span class="figure">16</span> <span class="figure-label">ERROR entries</span></li>
|
||
<li><span class="figure">4</span> <span class="figure-label">WARNING entries</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<div id="eventspersecond_graph" class="jqplot-graph linegraph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
var eventspersecond_graph_95_d1 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552546800000, 0],[1552547100000, 0],[1552547400000, 0],[1552547700000, 0],[1552548000000, 0],[1552548300000, 0],[1552548600000, 0],[1552548900000, 0],[1552549200000, 0],[1552549500000, 0],[1552549800000, 0],[1552550100000, 0],[1552550400000, 0],[1552550700000, 0],[1552551000000, 0],[1552551300000, 0],[1552551600000, 0],[1552551900000, 0],[1552552200000, 0],[1552552500000, 0],[1552552800000, 0],[1552553100000, 0],[1552553400000, 0],[1552553700000, 0],[1552554000000, 0],[1552554300000, 0],[1552554600000, 0],[1552554900000, 0],[1552555200000, 0],[1552555500000, 0],[1552555800000, 0],[1552556100000, 0],[1552556400000, 0],[1552556700000, 0],[1552557000000, 0],[1552557300000, 0],[1552557600000, 0],[1552557900000, 0],[1552558200000, 0],[1552558500000, 0],[1552558800000, 0],[1552559100000, 0],[1552559400000, 0],[1552559700000, 0],[1552560000000, 0],[1552560300000, 0],[1552560600000, 0],[1552560900000, 0],[1552561200000, 0],[1552561500000, 0],[1552561800000, 0],[1552562100000, 0],[1552562400000, 0],[1552562700000, 0],[1552563000000, 0],[1552563300000, 0],[1552563600000, 0],[1552563900000, 0],[1552564200000, 0],[1552564500000, 0],[1552564800000, 0],[1552565100000, 0],[1552565400000, 0],[1552565700000, 0],[1552566000000, 0],[1552566300000, 0],[1552566600000, 0],[1552566900000, 0],[1552567200000, 0],[1552567500000, 0],[1552567800000, 0],[1552568100000, 0],[1552568400000, 0],[1552568700000, 0],[1552569000000, 0],[1552569300000, 0],[1552569600000, 0],[1552569900000, 0],[1552570200000, 0],[1552570500000, 0],[1552570800000, 0],[1552571100000, 0],[1552571400000, 0],[1552571700000, 0],[1552572000000, 0],[1552572300000, 0],[1552572600000, 0],[1552572900000, 0],[1552573200000, 0],[1552573500000, 0],[1552573800000, 0],[1552574100000, 0],[1552574400000, 0],[1552574700000, 0],[1552575000000, 0],[1552575300000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 0],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 0],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 0],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 0],[1552582800000, 0],[1552583100000, 0],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552586400000, 0],[1552586700000, 0],[1552587000000, 0],[1552587300000, 0],[1552587600000, 0],[1552587900000, 0],[1552588200000, 0],[1552588500000, 0],[1552588800000, 0],[1552589100000, 0],[1552589400000, 0],[1552589700000, 0],[1552590000000, 0],[1552590300000, 0],[1552590600000, 0],[1552590900000, 0],[1552591200000, 0],[1552591500000, 0],[1552591800000, 0],[1552592100000, 0],[1552592400000, 0],[1552592700000, 0],[1552593000000, 0],[1552593300000, 0],[1552593600000, 0],[1552593900000, 0],[1552594200000, 0],[1552594500000, 0],[1552594800000, 0],[1552595100000, 0],[1552595400000, 0],[1552595700000, 0],[1552596000000, 0],[1552596300000, 0],[1552596600000, 0],[1552596900000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 0],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 0],[1552601700000, 0],[1552602000000, 0],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552604400000, 0],[1552604700000, 0],[1552605000000, 0],[1552605300000, 0],[1552605600000, 0],[1552605900000, 0],[1552606200000, 0],[1552606500000, 0],[1552606800000, 0],[1552607100000, 0],[1552607400000, 0],[1552607700000, 0],[1552608000000, 0],[1552608300000, 0],[1552608600000, 0],[1552608900000, 0],[1552609200000, 0],[1552609500000, 0],[1552609800000, 0],[1552610100000, 0],[1552610400000, 0],[1552610700000, 0],[1552611000000, 0],[1552611300000, 0],[1552611600000, 0],[1552611900000, 0],[1552612200000, 0],[1552612500000, 0],[1552612800000, 0],[1552613100000, 0],[1552613400000, 0],[1552613700000, 0],[1552614000000, 0],[1552614300000, 0],[1552614600000, 0],[1552614900000, 0],[1552615200000, 0],[1552615500000, 0],[1552615800000, 0],[1552616100000, 0],[1552616400000, 0],[1552616700000, 0],[1552617000000, 0],[1552617300000, 0],[1552617600000, 0],[1552617900000, 0],[1552618200000, 0],[1552618500000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 0],[1552629000000, 0],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 0],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552633200000, 0],[1552633500000, 0],[1552633800000, 0],[1552634100000, 0],[1552634400000, 0],[1552634700000, 0],[1552635000000, 0],[1552635300000, 0],[1552635600000, 0],[1552635900000, 0],[1552636200000, 0],[1552636500000, 0],[1552636800000, 0],[1552637100000, 0],[1552637400000, 0],[1552637700000, 0],[1552638000000, 0],[1552638300000, 0],[1552638600000, 0],[1552638900000, 0],[1552639200000, 0],[1552639500000, 0],[1552639800000, 0],[1552640100000, 0],[1552640400000, 0],[1552640700000, 0],[1552641000000, 0],[1552641300000, 0],[1552641600000, 0],[1552641900000, 0],[1552642200000, 0],[1552642500000, 0],[1552642800000, 0],[1552643100000, 0],[1552643400000, 0],[1552643700000, 0],[1552644000000, 0],[1552644300000, 0],[1552644600000, 0],[1552644900000, 0],[1552645200000, 0],[1552645500000, 0],[1552645800000, 0],[1552646100000, 0],[1552646400000, 0],[1552646700000, 0],[1552647000000, 0],[1552647300000, 0],[1552647600000, 0],[1552647900000, 0],[1552648200000, 0],[1552648500000, 0],[1552648800000, 0],[1552649100000, 0],[1552649400000, 0],[1552649700000, 0],[1552650000000, 0],[1552650300000, 0],[1552650600000, 0],[1552650900000, 0],[1552651200000, 0],[1552651500000, 0],[1552651800000, 0],[1552652100000, 0],[1552652400000, 0],[1552652700000, 0],[1552653000000, 0],[1552653300000, 0],[1552653600000, 0],[1552653900000, 0],[1552654200000, 0],[1552654500000, 0],[1552654800000, 0],[1552655100000, 0],[1552655400000, 0],[1552655700000, 0],[1552656000000, 0],[1552656300000, 0],[1552656600000, 0],[1552656900000, 0],[1552657200000, 0],[1552657500000, 0],[1552657800000, 0],[1552658100000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 0],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 0],[1552677000000, 0],[1552677300000, 0],[1552677600000, 0],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 0],[1552686000000, 0],[1552686300000, 0],[1552686600000, 0],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552690800000, 0],[1552691100000, 0],[1552691400000, 0],[1552691700000, 0],[1552692000000, 0],[1552692300000, 0],[1552692600000, 0],[1552692900000, 0],[1552693200000, 0],[1552693500000, 0],[1552693800000, 0],[1552694100000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552698000000, 0],[1552698300000, 0],[1552698600000, 0],[1552698900000, 0],[1552699200000, 0],[1552699500000, 0],[1552699800000, 0],[1552700100000, 0],[1552700400000, 0],[1552700700000, 0],[1552701000000, 0],[1552701300000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552705200000, 0],[1552705500000, 0],[1552705800000, 0],[1552706100000, 0],[1552706400000, 0],[1552706700000, 0],[1552707000000, 0],[1552707300000, 0],[1552707600000, 0],[1552707900000, 0],[1552708200000, 0],[1552708500000, 0],[1552708800000, 0],[1552709100000, 0],[1552709400000, 0],[1552709700000, 0],[1552710000000, 0],[1552710300000, 0],[1552710600000, 0],[1552710900000, 0],[1552711200000, 0],[1552711500000, 0],[1552711800000, 0],[1552712100000, 0],[1552712400000, 0],[1552712700000, 0],[1552713000000, 0],[1552713300000, 0],[1552713600000, 0],[1552713900000, 0],[1552714200000, 0],[1552714500000, 0],[1552714800000, 0],[1552715100000, 0],[1552715400000, 0],[1552715700000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552723200000, 0],[1552723500000, 0],[1552723800000, 0],[1552724100000, 0],[1552724400000, 0],[1552724700000, 0],[1552725000000, 0],[1552725300000, 0],[1552725600000, 0],[1552725900000, 0],[1552726200000, 0],[1552726500000, 0],[1552726800000, 0],[1552727100000, 0],[1552727400000, 0],[1552727700000, 0],[1552728000000, 0],[1552728300000, 0],[1552728600000, 0],[1552728900000, 0],[1552729200000, 0],[1552729500000, 0],[1552729800000, 0],[1552730100000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552734000000, 0],[1552734300000, 0],[1552734600000, 0],[1552734900000, 0],[1552735200000, 0],[1552735500000, 0],[1552735800000, 0],[1552736100000, 0],[1552736400000, 0],[1552736700000, 0],[1552737000000, 0],[1552737300000, 0],[1552737600000, 0],[1552737900000, 0],[1552738200000, 0],[1552738500000, 0],[1552738800000, 0],[1552739100000, 0],[1552739400000, 0],[1552739700000, 0],[1552740000000, 0],[1552740300000, 0],[1552740600000, 0],[1552740900000, 0],[1552741200000, 0],[1552741500000, 0],[1552741800000, 0],[1552742100000, 0],[1552742400000, 0],[1552742700000, 0],[1552743000000, 0],[1552743300000, 0],[1552743600000, 0],[1552743900000, 0],[1552744200000, 0],[1552744500000, 0],[1552744800000, 0],[1552745100000, 0],[1552745400000, 0],[1552745700000, 0],[1552746000000, 0],[1552746300000, 0],[1552746600000, 0],[1552746900000, 0],[1552747200000, 0],[1552747500000, 0],[1552747800000, 0],[1552748100000, 0],[1552748400000, 0],[1552748700000, 0],[1552749000000, 0],[1552749300000, 0],[1552749600000, 0],[1552749900000, 0],[1552750200000, 0],[1552750500000, 0],[1552750800000, 0],[1552751100000, 0],[1552751400000, 0],[1552751700000, 0],[1552752000000, 0],[1552752300000, 0],[1552752600000, 0],[1552752900000, 0],[1552753200000, 0],[1552753500000, 0],[1552753800000, 0],[1552754100000, 0],[1552754400000, 0],[1552754700000, 0],[1552755000000, 0],[1552755300000, 0],[1552755600000, 0],[1552755900000, 0],[1552756200000, 0],[1552756500000, 0],[1552756800000, 0],[1552757100000, 0],[1552757400000, 0],[1552757700000, 0],[1552758000000, 0],[1552758300000, 0],[1552758600000, 0],[1552758900000, 0],[1552759200000, 0],[1552759500000, 0],[1552759800000, 0],[1552760100000, 0],[1552760400000, 0],[1552760700000, 0],[1552761000000, 0],[1552761300000, 0],[1552761600000, 0],[1552761900000, 0],[1552762200000, 0],[1552762500000, 0],[1552762800000, 0],[1552763100000, 0],[1552763400000, 0],[1552763700000, 0],[1552764000000, 0],[1552764300000, 0],[1552764600000, 0],[1552764900000, 0],[1552765200000, 0],[1552765500000, 0],[1552765800000, 0],[1552766100000, 0],[1552766400000, 0],[1552766700000, 0],[1552767000000, 0],[1552767300000, 0],[1552767600000, 0],[1552767900000, 0],[1552768200000, 0],[1552768500000, 0],[1552768800000, 0],[1552769100000, 0],[1552769400000, 0],[1552769700000, 0],[1552770000000, 0],[1552770300000, 0],[1552770600000, 0],[1552770900000, 0],[1552771200000, 0],[1552771500000, 0],[1552771800000, 0],[1552772100000, 0],[1552772400000, 0],[1552772700000, 0],[1552773000000, 0],[1552773300000, 0],[1552773600000, 0],[1552773900000, 0],[1552774200000, 0],[1552774500000, 0],[1552774800000, 0],[1552775100000, 0],[1552775400000, 0],[1552775700000, 0],[1552776000000, 0],[1552776300000, 0],[1552776600000, 0],[1552776900000, 0],[1552777200000, 0],[1552777500000, 0],[1552777800000, 0],[1552778100000, 0],[1552778400000, 0],[1552778700000, 0],[1552779000000, 0],[1552779300000, 0],[1552779600000, 0],[1552779900000, 0],[1552780200000, 0],[1552780500000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552784400000, 0],[1552784700000, 0],[1552785000000, 0],[1552785300000, 0],[1552785600000, 0],[1552785900000, 0],[1552786200000, 0],[1552786500000, 0],[1552786800000, 0],[1552787100000, 0],[1552787400000, 0],[1552787700000, 0],[1552788000000, 0],[1552788300000, 0],[1552788600000, 0],[1552788900000, 0],[1552789200000, 0],[1552789500000, 0],[1552789800000, 0],[1552790100000, 0],[1552790400000, 0],[1552790700000, 0],[1552791000000, 0],[1552791300000, 0],[1552791600000, 0],[1552791900000, 0],[1552792200000, 0],[1552792500000, 0],[1552792800000, 0],[1552793100000, 0],[1552793400000, 0],[1552793700000, 0],[1552794000000, 0],[1552794300000, 0],[1552794600000, 0],[1552794900000, 0],[1552795200000, 0],[1552795500000, 0],[1552795800000, 0],[1552796100000, 0],[1552796400000, 0],[1552796700000, 0],[1552797000000, 0],[1552797300000, 0],[1552797600000, 0],[1552797900000, 0],[1552798200000, 0],[1552798500000, 0],[1552885200000, 0],[1552885500000, 0],[1552885800000, 0],[1552886100000, 0],[1552886400000, 0],[1552886700000, 0],[1552887000000, 0],[1552887300000, 0],[1552887600000, 0],[1552887900000, 0],[1552888200000, 0],[1552888500000, 0],[1552888800000, 0],[1552889100000, 0],[1552889400000, 0],[1552889700000, 0],[1552890000000, 0],[1552890300000, 0],[1552890600000, 0],[1552890900000, 0],[1552891200000, 0],[1552891500000, 0],[1552891800000, 0],[1552892100000, 0],[1552892400000, 0],[1552892700000, 0],[1552893000000, 0],[1552893300000, 0],[1552893600000, 0],[1552893900000, 0],[1552894200000, 0],[1552894500000, 0],[1552894800000, 0],[1552895100000, 0],[1552895400000, 0],[1552895700000, 0],[1552896000000, 0],[1552896300000, 0],[1552896600000, 0],[1552896900000, 0],[1552897200000, 0],[1552897500000, 0],[1552897800000, 0],[1552898100000, 0],[1552898400000, 0],[1552898700000, 0],[1552899000000, 0],[1552899300000, 0],[1552899600000, 0],[1552899900000, 0],[1552900200000, 0],[1552900500000, 0],[1552900800000, 0],[1552901100000, 0],[1552901400000, 0],[1552901700000, 0],[1552902000000, 0],[1552902300000, 0],[1552902600000, 0],[1552902900000, 0],[1552903200000, 0],[1552903500000, 0],[1552903800000, 0],[1552904100000, 0],[1552904400000, 0],[1552904700000, 0],[1552905000000, 0],[1552905300000, 0],[1552905600000, 0],[1552905900000, 0],[1552906200000, 0],[1552906500000, 0],[1552906800000, 0],[1552907100000, 0],[1552907400000, 0],[1552907700000, 0],[1552908000000, 0],[1552908300000, 0],[1552908600000, 0],[1552908900000, 0],[1552909200000, 0],[1552909500000, 0],[1552909800000, 0],[1552910100000, 0],[1552910400000, 0],[1552910700000, 0],[1552911000000, 0],[1552911300000, 0],[1552911600000, 0],[1552911900000, 0],[1552912200000, 0],[1552912500000, 0],[1552912800000, 0],[1552913100000, 0],[1552913400000, 0],[1552913700000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 0],[1552919400000, 0],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 0],[1552920900000, 0],[1552921200000, 0],[1552921500000, 0],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 0],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
var eventspersecond_graph_95_d2 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552546800000, 0],[1552547100000, 0],[1552547400000, 0],[1552547700000, 0],[1552548000000, 0],[1552548300000, 0],[1552548600000, 0],[1552548900000, 0],[1552549200000, 0],[1552549500000, 0],[1552549800000, 0],[1552550100000, 0],[1552550400000, 0],[1552550700000, 0],[1552551000000, 0],[1552551300000, 0],[1552551600000, 0],[1552551900000, 0],[1552552200000, 0],[1552552500000, 0],[1552552800000, 0],[1552553100000, 0],[1552553400000, 0],[1552553700000, 0],[1552554000000, 0],[1552554300000, 0],[1552554600000, 0],[1552554900000, 0],[1552555200000, 0],[1552555500000, 0],[1552555800000, 0],[1552556100000, 0],[1552556400000, 0],[1552556700000, 0],[1552557000000, 0],[1552557300000, 0],[1552557600000, 0],[1552557900000, 0],[1552558200000, 0],[1552558500000, 0],[1552558800000, 0],[1552559100000, 0],[1552559400000, 0],[1552559700000, 0],[1552560000000, 0],[1552560300000, 0],[1552560600000, 0],[1552560900000, 0],[1552561200000, 0],[1552561500000, 0],[1552561800000, 0],[1552562100000, 0],[1552562400000, 0],[1552562700000, 0],[1552563000000, 0],[1552563300000, 0],[1552563600000, 0],[1552563900000, 0],[1552564200000, 0],[1552564500000, 0],[1552564800000, 0],[1552565100000, 0],[1552565400000, 0],[1552565700000, 0],[1552566000000, 0],[1552566300000, 0],[1552566600000, 0],[1552566900000, 0],[1552567200000, 0],[1552567500000, 0],[1552567800000, 0],[1552568100000, 0],[1552568400000, 0],[1552568700000, 0],[1552569000000, 0],[1552569300000, 0],[1552569600000, 0],[1552569900000, 0],[1552570200000, 0],[1552570500000, 0],[1552570800000, 0],[1552571100000, 0],[1552571400000, 0],[1552571700000, 0],[1552572000000, 0],[1552572300000, 0],[1552572600000, 0],[1552572900000, 0],[1552573200000, 0],[1552573500000, 0],[1552573800000, 0],[1552574100000, 0],[1552574400000, 0],[1552574700000, 0],[1552575000000, 0],[1552575300000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 0],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 0],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 0],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 0],[1552582800000, 0],[1552583100000, 0],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552586400000, 0],[1552586700000, 0],[1552587000000, 0],[1552587300000, 0],[1552587600000, 0],[1552587900000, 0],[1552588200000, 0],[1552588500000, 0],[1552588800000, 0],[1552589100000, 0],[1552589400000, 0],[1552589700000, 0],[1552590000000, 0],[1552590300000, 0],[1552590600000, 0],[1552590900000, 0],[1552591200000, 0],[1552591500000, 0],[1552591800000, 0],[1552592100000, 0],[1552592400000, 0],[1552592700000, 0],[1552593000000, 0],[1552593300000, 0],[1552593600000, 0],[1552593900000, 0],[1552594200000, 0],[1552594500000, 0],[1552594800000, 0],[1552595100000, 0],[1552595400000, 0],[1552595700000, 0],[1552596000000, 0],[1552596300000, 0],[1552596600000, 0],[1552596900000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 0],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 0],[1552601700000, 0],[1552602000000, 0],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552604400000, 0],[1552604700000, 0],[1552605000000, 0],[1552605300000, 0],[1552605600000, 0],[1552605900000, 0],[1552606200000, 0],[1552606500000, 0],[1552606800000, 0],[1552607100000, 0],[1552607400000, 0],[1552607700000, 0],[1552608000000, 0],[1552608300000, 0],[1552608600000, 0],[1552608900000, 0],[1552609200000, 0],[1552609500000, 0],[1552609800000, 0],[1552610100000, 0],[1552610400000, 0],[1552610700000, 0],[1552611000000, 0],[1552611300000, 0],[1552611600000, 0],[1552611900000, 0],[1552612200000, 0],[1552612500000, 0],[1552612800000, 0],[1552613100000, 0],[1552613400000, 0],[1552613700000, 0],[1552614000000, 0],[1552614300000, 0],[1552614600000, 0],[1552614900000, 0],[1552615200000, 0],[1552615500000, 0],[1552615800000, 0],[1552616100000, 0],[1552616400000, 0],[1552616700000, 0],[1552617000000, 0],[1552617300000, 0],[1552617600000, 0],[1552617900000, 0],[1552618200000, 0],[1552618500000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 0],[1552629000000, 0],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 0],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552633200000, 0],[1552633500000, 0],[1552633800000, 0],[1552634100000, 0],[1552634400000, 0],[1552634700000, 0],[1552635000000, 0],[1552635300000, 0],[1552635600000, 0],[1552635900000, 0],[1552636200000, 0],[1552636500000, 0],[1552636800000, 0],[1552637100000, 0],[1552637400000, 0],[1552637700000, 0],[1552638000000, 0],[1552638300000, 0],[1552638600000, 0],[1552638900000, 0],[1552639200000, 0],[1552639500000, 0],[1552639800000, 0],[1552640100000, 0],[1552640400000, 0],[1552640700000, 0],[1552641000000, 0],[1552641300000, 0],[1552641600000, 0],[1552641900000, 0],[1552642200000, 0],[1552642500000, 0],[1552642800000, 0],[1552643100000, 0],[1552643400000, 0],[1552643700000, 0],[1552644000000, 0],[1552644300000, 0],[1552644600000, 0],[1552644900000, 0],[1552645200000, 0],[1552645500000, 0],[1552645800000, 0],[1552646100000, 0],[1552646400000, 0],[1552646700000, 0],[1552647000000, 0],[1552647300000, 0],[1552647600000, 0],[1552647900000, 0],[1552648200000, 0],[1552648500000, 0],[1552648800000, 0],[1552649100000, 0],[1552649400000, 0],[1552649700000, 0],[1552650000000, 0],[1552650300000, 0],[1552650600000, 0],[1552650900000, 0],[1552651200000, 0],[1552651500000, 0],[1552651800000, 0],[1552652100000, 0],[1552652400000, 0],[1552652700000, 0],[1552653000000, 0],[1552653300000, 0],[1552653600000, 0],[1552653900000, 0],[1552654200000, 0],[1552654500000, 0],[1552654800000, 0],[1552655100000, 0],[1552655400000, 0],[1552655700000, 0],[1552656000000, 0],[1552656300000, 0],[1552656600000, 0],[1552656900000, 0],[1552657200000, 0],[1552657500000, 0],[1552657800000, 0],[1552658100000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 0],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 1],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 0],[1552677000000, 0],[1552677300000, 0],[1552677600000, 0],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 0],[1552686000000, 0],[1552686300000, 0],[1552686600000, 0],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552690800000, 0],[1552691100000, 0],[1552691400000, 0],[1552691700000, 0],[1552692000000, 0],[1552692300000, 0],[1552692600000, 0],[1552692900000, 0],[1552693200000, 0],[1552693500000, 0],[1552693800000, 0],[1552694100000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552698000000, 0],[1552698300000, 0],[1552698600000, 0],[1552698900000, 0],[1552699200000, 0],[1552699500000, 0],[1552699800000, 0],[1552700100000, 0],[1552700400000, 0],[1552700700000, 0],[1552701000000, 0],[1552701300000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552705200000, 0],[1552705500000, 0],[1552705800000, 0],[1552706100000, 0],[1552706400000, 0],[1552706700000, 0],[1552707000000, 0],[1552707300000, 0],[1552707600000, 0],[1552707900000, 0],[1552708200000, 0],[1552708500000, 0],[1552708800000, 0],[1552709100000, 0],[1552709400000, 0],[1552709700000, 0],[1552710000000, 0],[1552710300000, 0],[1552710600000, 0],[1552710900000, 0],[1552711200000, 0],[1552711500000, 0],[1552711800000, 0],[1552712100000, 0],[1552712400000, 0],[1552712700000, 0],[1552713000000, 0],[1552713300000, 0],[1552713600000, 0],[1552713900000, 0],[1552714200000, 0],[1552714500000, 0],[1552714800000, 0],[1552715100000, 0],[1552715400000, 0],[1552715700000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552723200000, 0],[1552723500000, 0],[1552723800000, 0],[1552724100000, 0],[1552724400000, 0],[1552724700000, 0],[1552725000000, 0],[1552725300000, 0],[1552725600000, 0],[1552725900000, 0],[1552726200000, 0],[1552726500000, 0],[1552726800000, 0],[1552727100000, 0],[1552727400000, 0],[1552727700000, 0],[1552728000000, 0],[1552728300000, 0],[1552728600000, 0],[1552728900000, 0],[1552729200000, 0],[1552729500000, 0],[1552729800000, 0],[1552730100000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552734000000, 0],[1552734300000, 0],[1552734600000, 0],[1552734900000, 0],[1552735200000, 0],[1552735500000, 0],[1552735800000, 0],[1552736100000, 0],[1552736400000, 0],[1552736700000, 0],[1552737000000, 0],[1552737300000, 0],[1552737600000, 0],[1552737900000, 0],[1552738200000, 0],[1552738500000, 0],[1552738800000, 0],[1552739100000, 0],[1552739400000, 0],[1552739700000, 0],[1552740000000, 0],[1552740300000, 0],[1552740600000, 0],[1552740900000, 0],[1552741200000, 0],[1552741500000, 0],[1552741800000, 0],[1552742100000, 0],[1552742400000, 0],[1552742700000, 0],[1552743000000, 0],[1552743300000, 0],[1552743600000, 0],[1552743900000, 0],[1552744200000, 0],[1552744500000, 0],[1552744800000, 0],[1552745100000, 0],[1552745400000, 0],[1552745700000, 0],[1552746000000, 0],[1552746300000, 0],[1552746600000, 0],[1552746900000, 0],[1552747200000, 0],[1552747500000, 0],[1552747800000, 0],[1552748100000, 0],[1552748400000, 0],[1552748700000, 0],[1552749000000, 0],[1552749300000, 0],[1552749600000, 0],[1552749900000, 0],[1552750200000, 0],[1552750500000, 0],[1552750800000, 0],[1552751100000, 0],[1552751400000, 0],[1552751700000, 0],[1552752000000, 0],[1552752300000, 0],[1552752600000, 0],[1552752900000, 0],[1552753200000, 0],[1552753500000, 0],[1552753800000, 0],[1552754100000, 0],[1552754400000, 0],[1552754700000, 0],[1552755000000, 0],[1552755300000, 0],[1552755600000, 0],[1552755900000, 0],[1552756200000, 0],[1552756500000, 0],[1552756800000, 0],[1552757100000, 0],[1552757400000, 0],[1552757700000, 0],[1552758000000, 0],[1552758300000, 0],[1552758600000, 0],[1552758900000, 0],[1552759200000, 0],[1552759500000, 0],[1552759800000, 0],[1552760100000, 0],[1552760400000, 0],[1552760700000, 0],[1552761000000, 0],[1552761300000, 0],[1552761600000, 0],[1552761900000, 0],[1552762200000, 0],[1552762500000, 0],[1552762800000, 0],[1552763100000, 0],[1552763400000, 0],[1552763700000, 0],[1552764000000, 0],[1552764300000, 0],[1552764600000, 0],[1552764900000, 0],[1552765200000, 0],[1552765500000, 0],[1552765800000, 0],[1552766100000, 0],[1552766400000, 0],[1552766700000, 0],[1552767000000, 0],[1552767300000, 0],[1552767600000, 0],[1552767900000, 0],[1552768200000, 0],[1552768500000, 0],[1552768800000, 0],[1552769100000, 0],[1552769400000, 0],[1552769700000, 0],[1552770000000, 0],[1552770300000, 0],[1552770600000, 0],[1552770900000, 0],[1552771200000, 0],[1552771500000, 0],[1552771800000, 0],[1552772100000, 0],[1552772400000, 0],[1552772700000, 0],[1552773000000, 0],[1552773300000, 0],[1552773600000, 0],[1552773900000, 0],[1552774200000, 0],[1552774500000, 0],[1552774800000, 0],[1552775100000, 0],[1552775400000, 0],[1552775700000, 0],[1552776000000, 0],[1552776300000, 0],[1552776600000, 0],[1552776900000, 0],[1552777200000, 0],[1552777500000, 0],[1552777800000, 0],[1552778100000, 0],[1552778400000, 0],[1552778700000, 0],[1552779000000, 0],[1552779300000, 0],[1552779600000, 0],[1552779900000, 0],[1552780200000, 0],[1552780500000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552784400000, 0],[1552784700000, 0],[1552785000000, 0],[1552785300000, 0],[1552785600000, 0],[1552785900000, 0],[1552786200000, 0],[1552786500000, 0],[1552786800000, 0],[1552787100000, 0],[1552787400000, 0],[1552787700000, 0],[1552788000000, 0],[1552788300000, 0],[1552788600000, 0],[1552788900000, 0],[1552789200000, 0],[1552789500000, 0],[1552789800000, 0],[1552790100000, 0],[1552790400000, 0],[1552790700000, 0],[1552791000000, 0],[1552791300000, 0],[1552791600000, 0],[1552791900000, 0],[1552792200000, 0],[1552792500000, 0],[1552792800000, 0],[1552793100000, 0],[1552793400000, 0],[1552793700000, 0],[1552794000000, 0],[1552794300000, 0],[1552794600000, 0],[1552794900000, 0],[1552795200000, 0],[1552795500000, 0],[1552795800000, 0],[1552796100000, 0],[1552796400000, 0],[1552796700000, 0],[1552797000000, 0],[1552797300000, 0],[1552797600000, 0],[1552797900000, 0],[1552798200000, 0],[1552798500000, 0],[1552885200000, 0],[1552885500000, 0],[1552885800000, 0],[1552886100000, 0],[1552886400000, 0],[1552886700000, 0],[1552887000000, 0],[1552887300000, 0],[1552887600000, 0],[1552887900000, 0],[1552888200000, 0],[1552888500000, 0],[1552888800000, 0],[1552889100000, 0],[1552889400000, 0],[1552889700000, 0],[1552890000000, 0],[1552890300000, 0],[1552890600000, 0],[1552890900000, 0],[1552891200000, 0],[1552891500000, 0],[1552891800000, 0],[1552892100000, 0],[1552892400000, 0],[1552892700000, 0],[1552893000000, 0],[1552893300000, 0],[1552893600000, 0],[1552893900000, 0],[1552894200000, 0],[1552894500000, 0],[1552894800000, 0],[1552895100000, 0],[1552895400000, 0],[1552895700000, 0],[1552896000000, 0],[1552896300000, 0],[1552896600000, 0],[1552896900000, 0],[1552897200000, 0],[1552897500000, 0],[1552897800000, 0],[1552898100000, 0],[1552898400000, 0],[1552898700000, 0],[1552899000000, 0],[1552899300000, 0],[1552899600000, 0],[1552899900000, 0],[1552900200000, 0],[1552900500000, 0],[1552900800000, 0],[1552901100000, 0],[1552901400000, 0],[1552901700000, 0],[1552902000000, 0],[1552902300000, 0],[1552902600000, 0],[1552902900000, 0],[1552903200000, 0],[1552903500000, 0],[1552903800000, 0],[1552904100000, 0],[1552904400000, 0],[1552904700000, 0],[1552905000000, 0],[1552905300000, 0],[1552905600000, 0],[1552905900000, 0],[1552906200000, 0],[1552906500000, 0],[1552906800000, 0],[1552907100000, 0],[1552907400000, 0],[1552907700000, 0],[1552908000000, 0],[1552908300000, 0],[1552908600000, 0],[1552908900000, 0],[1552909200000, 0],[1552909500000, 0],[1552909800000, 0],[1552910100000, 0],[1552910400000, 0],[1552910700000, 0],[1552911000000, 0],[1552911300000, 0],[1552911600000, 0],[1552911900000, 0],[1552912200000, 0],[1552912500000, 0],[1552912800000, 0],[1552913100000, 0],[1552913400000, 0],[1552913700000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 0],[1552919400000, 0],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 0],[1552920900000, 0],[1552921200000, 0],[1552921500000, 0],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 0],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
var eventspersecond_graph_95_d3 = [[1552544700000, 1],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552546800000, 0],[1552547100000, 0],[1552547400000, 0],[1552547700000, 0],[1552548000000, 0],[1552548300000, 0],[1552548600000, 0],[1552548900000, 0],[1552549200000, 0],[1552549500000, 0],[1552549800000, 0],[1552550100000, 0],[1552550400000, 0],[1552550700000, 0],[1552551000000, 0],[1552551300000, 0],[1552551600000, 0],[1552551900000, 0],[1552552200000, 0],[1552552500000, 0],[1552552800000, 0],[1552553100000, 0],[1552553400000, 0],[1552553700000, 0],[1552554000000, 0],[1552554300000, 0],[1552554600000, 0],[1552554900000, 0],[1552555200000, 0],[1552555500000, 0],[1552555800000, 0],[1552556100000, 0],[1552556400000, 0],[1552556700000, 0],[1552557000000, 0],[1552557300000, 0],[1552557600000, 0],[1552557900000, 0],[1552558200000, 0],[1552558500000, 0],[1552558800000, 0],[1552559100000, 0],[1552559400000, 0],[1552559700000, 0],[1552560000000, 0],[1552560300000, 0],[1552560600000, 0],[1552560900000, 0],[1552561200000, 0],[1552561500000, 0],[1552561800000, 0],[1552562100000, 0],[1552562400000, 0],[1552562700000, 0],[1552563000000, 0],[1552563300000, 0],[1552563600000, 0],[1552563900000, 0],[1552564200000, 0],[1552564500000, 0],[1552564800000, 0],[1552565100000, 0],[1552565400000, 0],[1552565700000, 0],[1552566000000, 0],[1552566300000, 0],[1552566600000, 0],[1552566900000, 0],[1552567200000, 0],[1552567500000, 0],[1552567800000, 0],[1552568100000, 0],[1552568400000, 0],[1552568700000, 0],[1552569000000, 0],[1552569300000, 0],[1552569600000, 0],[1552569900000, 0],[1552570200000, 0],[1552570500000, 0],[1552570800000, 0],[1552571100000, 0],[1552571400000, 0],[1552571700000, 0],[1552572000000, 0],[1552572300000, 0],[1552572600000, 0],[1552572900000, 0],[1552573200000, 0],[1552573500000, 0],[1552573800000, 0],[1552574100000, 0],[1552574400000, 0],[1552574700000, 0],[1552575000000, 0],[1552575300000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 5],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 0],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 0],[1552581000000, 0],[1552581300000, 1],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 0],[1552582800000, 0],[1552583100000, 1],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552586400000, 0],[1552586700000, 0],[1552587000000, 0],[1552587300000, 0],[1552587600000, 0],[1552587900000, 0],[1552588200000, 0],[1552588500000, 0],[1552588800000, 0],[1552589100000, 0],[1552589400000, 0],[1552589700000, 0],[1552590000000, 0],[1552590300000, 0],[1552590600000, 0],[1552590900000, 0],[1552591200000, 0],[1552591500000, 0],[1552591800000, 0],[1552592100000, 0],[1552592400000, 0],[1552592700000, 0],[1552593000000, 0],[1552593300000, 0],[1552593600000, 0],[1552593900000, 0],[1552594200000, 0],[1552594500000, 0],[1552594800000, 0],[1552595100000, 0],[1552595400000, 0],[1552595700000, 0],[1552596000000, 0],[1552596300000, 0],[1552596600000, 0],[1552596900000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 0],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 0],[1552601700000, 2],[1552602000000, 0],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552604400000, 0],[1552604700000, 0],[1552605000000, 0],[1552605300000, 0],[1552605600000, 0],[1552605900000, 0],[1552606200000, 0],[1552606500000, 0],[1552606800000, 0],[1552607100000, 0],[1552607400000, 0],[1552607700000, 0],[1552608000000, 0],[1552608300000, 0],[1552608600000, 0],[1552608900000, 0],[1552609200000, 0],[1552609500000, 0],[1552609800000, 0],[1552610100000, 0],[1552610400000, 0],[1552610700000, 0],[1552611000000, 0],[1552611300000, 0],[1552611600000, 0],[1552611900000, 0],[1552612200000, 0],[1552612500000, 0],[1552612800000, 0],[1552613100000, 0],[1552613400000, 0],[1552613700000, 0],[1552614000000, 0],[1552614300000, 0],[1552614600000, 0],[1552614900000, 0],[1552615200000, 0],[1552615500000, 0],[1552615800000, 0],[1552616100000, 0],[1552616400000, 0],[1552616700000, 0],[1552617000000, 0],[1552617300000, 0],[1552617600000, 0],[1552617900000, 0],[1552618200000, 0],[1552618500000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 0],[1552629000000, 0],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 1],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552633200000, 0],[1552633500000, 0],[1552633800000, 0],[1552634100000, 0],[1552634400000, 0],[1552634700000, 0],[1552635000000, 0],[1552635300000, 0],[1552635600000, 0],[1552635900000, 0],[1552636200000, 0],[1552636500000, 0],[1552636800000, 0],[1552637100000, 0],[1552637400000, 0],[1552637700000, 0],[1552638000000, 0],[1552638300000, 0],[1552638600000, 0],[1552638900000, 0],[1552639200000, 0],[1552639500000, 0],[1552639800000, 0],[1552640100000, 0],[1552640400000, 0],[1552640700000, 0],[1552641000000, 0],[1552641300000, 0],[1552641600000, 0],[1552641900000, 0],[1552642200000, 0],[1552642500000, 0],[1552642800000, 0],[1552643100000, 0],[1552643400000, 0],[1552643700000, 0],[1552644000000, 0],[1552644300000, 0],[1552644600000, 0],[1552644900000, 0],[1552645200000, 0],[1552645500000, 0],[1552645800000, 0],[1552646100000, 0],[1552646400000, 0],[1552646700000, 0],[1552647000000, 0],[1552647300000, 0],[1552647600000, 0],[1552647900000, 0],[1552648200000, 0],[1552648500000, 0],[1552648800000, 0],[1552649100000, 0],[1552649400000, 0],[1552649700000, 0],[1552650000000, 0],[1552650300000, 0],[1552650600000, 0],[1552650900000, 0],[1552651200000, 0],[1552651500000, 0],[1552651800000, 0],[1552652100000, 0],[1552652400000, 0],[1552652700000, 0],[1552653000000, 0],[1552653300000, 0],[1552653600000, 0],[1552653900000, 0],[1552654200000, 0],[1552654500000, 0],[1552654800000, 0],[1552655100000, 0],[1552655400000, 0],[1552655700000, 0],[1552656000000, 0],[1552656300000, 0],[1552656600000, 0],[1552656900000, 0],[1552657200000, 0],[1552657500000, 0],[1552657800000, 0],[1552658100000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 1],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 0],[1552677000000, 0],[1552677300000, 0],[1552677600000, 0],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 0],[1552686000000, 0],[1552686300000, 0],[1552686600000, 0],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552690800000, 0],[1552691100000, 0],[1552691400000, 0],[1552691700000, 0],[1552692000000, 0],[1552692300000, 0],[1552692600000, 0],[1552692900000, 0],[1552693200000, 0],[1552693500000, 0],[1552693800000, 0],[1552694100000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552698000000, 0],[1552698300000, 0],[1552698600000, 0],[1552698900000, 0],[1552699200000, 0],[1552699500000, 0],[1552699800000, 0],[1552700100000, 0],[1552700400000, 0],[1552700700000, 0],[1552701000000, 0],[1552701300000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552705200000, 0],[1552705500000, 0],[1552705800000, 0],[1552706100000, 0],[1552706400000, 0],[1552706700000, 0],[1552707000000, 0],[1552707300000, 0],[1552707600000, 0],[1552707900000, 0],[1552708200000, 0],[1552708500000, 0],[1552708800000, 0],[1552709100000, 0],[1552709400000, 0],[1552709700000, 0],[1552710000000, 0],[1552710300000, 0],[1552710600000, 0],[1552710900000, 0],[1552711200000, 0],[1552711500000, 0],[1552711800000, 0],[1552712100000, 0],[1552712400000, 0],[1552712700000, 0],[1552713000000, 0],[1552713300000, 0],[1552713600000, 0],[1552713900000, 0],[1552714200000, 0],[1552714500000, 0],[1552714800000, 0],[1552715100000, 0],[1552715400000, 0],[1552715700000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 1],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552723200000, 0],[1552723500000, 0],[1552723800000, 0],[1552724100000, 0],[1552724400000, 0],[1552724700000, 0],[1552725000000, 0],[1552725300000, 0],[1552725600000, 0],[1552725900000, 0],[1552726200000, 0],[1552726500000, 0],[1552726800000, 0],[1552727100000, 0],[1552727400000, 0],[1552727700000, 0],[1552728000000, 0],[1552728300000, 0],[1552728600000, 0],[1552728900000, 0],[1552729200000, 0],[1552729500000, 0],[1552729800000, 0],[1552730100000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552734000000, 0],[1552734300000, 0],[1552734600000, 0],[1552734900000, 0],[1552735200000, 0],[1552735500000, 0],[1552735800000, 0],[1552736100000, 0],[1552736400000, 0],[1552736700000, 0],[1552737000000, 0],[1552737300000, 0],[1552737600000, 0],[1552737900000, 0],[1552738200000, 0],[1552738500000, 0],[1552738800000, 0],[1552739100000, 0],[1552739400000, 0],[1552739700000, 0],[1552740000000, 0],[1552740300000, 0],[1552740600000, 0],[1552740900000, 0],[1552741200000, 0],[1552741500000, 0],[1552741800000, 0],[1552742100000, 0],[1552742400000, 0],[1552742700000, 0],[1552743000000, 0],[1552743300000, 0],[1552743600000, 0],[1552743900000, 0],[1552744200000, 0],[1552744500000, 0],[1552744800000, 0],[1552745100000, 0],[1552745400000, 0],[1552745700000, 0],[1552746000000, 0],[1552746300000, 0],[1552746600000, 0],[1552746900000, 0],[1552747200000, 0],[1552747500000, 0],[1552747800000, 0],[1552748100000, 0],[1552748400000, 0],[1552748700000, 0],[1552749000000, 0],[1552749300000, 0],[1552749600000, 0],[1552749900000, 0],[1552750200000, 0],[1552750500000, 0],[1552750800000, 0],[1552751100000, 0],[1552751400000, 0],[1552751700000, 0],[1552752000000, 0],[1552752300000, 0],[1552752600000, 0],[1552752900000, 0],[1552753200000, 0],[1552753500000, 0],[1552753800000, 0],[1552754100000, 0],[1552754400000, 0],[1552754700000, 0],[1552755000000, 0],[1552755300000, 0],[1552755600000, 0],[1552755900000, 0],[1552756200000, 0],[1552756500000, 0],[1552756800000, 0],[1552757100000, 0],[1552757400000, 0],[1552757700000, 0],[1552758000000, 0],[1552758300000, 0],[1552758600000, 0],[1552758900000, 0],[1552759200000, 0],[1552759500000, 0],[1552759800000, 0],[1552760100000, 0],[1552760400000, 0],[1552760700000, 0],[1552761000000, 0],[1552761300000, 0],[1552761600000, 0],[1552761900000, 0],[1552762200000, 0],[1552762500000, 0],[1552762800000, 0],[1552763100000, 0],[1552763400000, 0],[1552763700000, 0],[1552764000000, 0],[1552764300000, 0],[1552764600000, 0],[1552764900000, 0],[1552765200000, 0],[1552765500000, 0],[1552765800000, 0],[1552766100000, 0],[1552766400000, 0],[1552766700000, 0],[1552767000000, 0],[1552767300000, 0],[1552767600000, 0],[1552767900000, 0],[1552768200000, 0],[1552768500000, 0],[1552768800000, 0],[1552769100000, 0],[1552769400000, 0],[1552769700000, 0],[1552770000000, 0],[1552770300000, 0],[1552770600000, 0],[1552770900000, 0],[1552771200000, 0],[1552771500000, 0],[1552771800000, 0],[1552772100000, 0],[1552772400000, 0],[1552772700000, 0],[1552773000000, 0],[1552773300000, 0],[1552773600000, 0],[1552773900000, 0],[1552774200000, 0],[1552774500000, 0],[1552774800000, 0],[1552775100000, 0],[1552775400000, 0],[1552775700000, 0],[1552776000000, 0],[1552776300000, 0],[1552776600000, 0],[1552776900000, 0],[1552777200000, 0],[1552777500000, 0],[1552777800000, 0],[1552778100000, 0],[1552778400000, 0],[1552778700000, 0],[1552779000000, 0],[1552779300000, 0],[1552779600000, 0],[1552779900000, 0],[1552780200000, 0],[1552780500000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552784400000, 0],[1552784700000, 0],[1552785000000, 0],[1552785300000, 0],[1552785600000, 0],[1552785900000, 0],[1552786200000, 0],[1552786500000, 0],[1552786800000, 0],[1552787100000, 0],[1552787400000, 0],[1552787700000, 0],[1552788000000, 0],[1552788300000, 0],[1552788600000, 0],[1552788900000, 0],[1552789200000, 0],[1552789500000, 0],[1552789800000, 0],[1552790100000, 0],[1552790400000, 0],[1552790700000, 0],[1552791000000, 0],[1552791300000, 0],[1552791600000, 0],[1552791900000, 0],[1552792200000, 0],[1552792500000, 0],[1552792800000, 0],[1552793100000, 0],[1552793400000, 0],[1552793700000, 0],[1552794000000, 0],[1552794300000, 0],[1552794600000, 0],[1552794900000, 0],[1552795200000, 0],[1552795500000, 0],[1552795800000, 0],[1552796100000, 0],[1552796400000, 0],[1552796700000, 0],[1552797000000, 0],[1552797300000, 0],[1552797600000, 0],[1552797900000, 0],[1552798200000, 0],[1552798500000, 0],[1552885200000, 0],[1552885500000, 0],[1552885800000, 0],[1552886100000, 0],[1552886400000, 0],[1552886700000, 0],[1552887000000, 0],[1552887300000, 0],[1552887600000, 0],[1552887900000, 0],[1552888200000, 0],[1552888500000, 0],[1552888800000, 0],[1552889100000, 0],[1552889400000, 0],[1552889700000, 0],[1552890000000, 0],[1552890300000, 0],[1552890600000, 0],[1552890900000, 0],[1552891200000, 0],[1552891500000, 0],[1552891800000, 0],[1552892100000, 0],[1552892400000, 0],[1552892700000, 0],[1552893000000, 0],[1552893300000, 0],[1552893600000, 0],[1552893900000, 0],[1552894200000, 0],[1552894500000, 0],[1552894800000, 0],[1552895100000, 0],[1552895400000, 0],[1552895700000, 0],[1552896000000, 0],[1552896300000, 0],[1552896600000, 0],[1552896900000, 0],[1552897200000, 0],[1552897500000, 0],[1552897800000, 0],[1552898100000, 0],[1552898400000, 0],[1552898700000, 0],[1552899000000, 0],[1552899300000, 0],[1552899600000, 0],[1552899900000, 0],[1552900200000, 0],[1552900500000, 0],[1552900800000, 0],[1552901100000, 0],[1552901400000, 0],[1552901700000, 0],[1552902000000, 0],[1552902300000, 0],[1552902600000, 0],[1552902900000, 0],[1552903200000, 0],[1552903500000, 0],[1552903800000, 0],[1552904100000, 0],[1552904400000, 0],[1552904700000, 0],[1552905000000, 0],[1552905300000, 0],[1552905600000, 0],[1552905900000, 0],[1552906200000, 0],[1552906500000, 0],[1552906800000, 0],[1552907100000, 0],[1552907400000, 0],[1552907700000, 0],[1552908000000, 0],[1552908300000, 0],[1552908600000, 0],[1552908900000, 0],[1552909200000, 0],[1552909500000, 0],[1552909800000, 0],[1552910100000, 0],[1552910400000, 0],[1552910700000, 0],[1552911000000, 0],[1552911300000, 0],[1552911600000, 0],[1552911900000, 0],[1552912200000, 0],[1552912500000, 0],[1552912800000, 0],[1552913100000, 0],[1552913400000, 0],[1552913700000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 2],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 0],[1552919400000, 1],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 0],[1552920900000, 0],[1552921200000, 0],[1552921500000, 0],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 0],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
var eventspersecond_graph_95_d4 = [[1552544700000, 0],[1552545000000, 0],[1552545300000, 0],[1552545600000, 0],[1552545900000, 0],[1552546200000, 0],[1552546500000, 0],[1552546800000, 0],[1552547100000, 0],[1552547400000, 0],[1552547700000, 0],[1552548000000, 0],[1552548300000, 0],[1552548600000, 0],[1552548900000, 0],[1552549200000, 0],[1552549500000, 0],[1552549800000, 0],[1552550100000, 0],[1552550400000, 0],[1552550700000, 0],[1552551000000, 0],[1552551300000, 0],[1552551600000, 0],[1552551900000, 0],[1552552200000, 0],[1552552500000, 0],[1552552800000, 0],[1552553100000, 0],[1552553400000, 0],[1552553700000, 0],[1552554000000, 0],[1552554300000, 0],[1552554600000, 0],[1552554900000, 0],[1552555200000, 0],[1552555500000, 0],[1552555800000, 0],[1552556100000, 0],[1552556400000, 0],[1552556700000, 0],[1552557000000, 0],[1552557300000, 0],[1552557600000, 0],[1552557900000, 0],[1552558200000, 0],[1552558500000, 0],[1552558800000, 0],[1552559100000, 0],[1552559400000, 0],[1552559700000, 0],[1552560000000, 0],[1552560300000, 0],[1552560600000, 0],[1552560900000, 0],[1552561200000, 0],[1552561500000, 0],[1552561800000, 0],[1552562100000, 0],[1552562400000, 0],[1552562700000, 0],[1552563000000, 0],[1552563300000, 0],[1552563600000, 0],[1552563900000, 0],[1552564200000, 0],[1552564500000, 0],[1552564800000, 0],[1552565100000, 0],[1552565400000, 0],[1552565700000, 0],[1552566000000, 0],[1552566300000, 0],[1552566600000, 0],[1552566900000, 0],[1552567200000, 0],[1552567500000, 0],[1552567800000, 0],[1552568100000, 0],[1552568400000, 0],[1552568700000, 0],[1552569000000, 0],[1552569300000, 0],[1552569600000, 0],[1552569900000, 0],[1552570200000, 0],[1552570500000, 0],[1552570800000, 0],[1552571100000, 0],[1552571400000, 0],[1552571700000, 0],[1552572000000, 0],[1552572300000, 0],[1552572600000, 0],[1552572900000, 0],[1552573200000, 0],[1552573500000, 0],[1552573800000, 0],[1552574100000, 0],[1552574400000, 0],[1552574700000, 0],[1552575000000, 0],[1552575300000, 0],[1552575600000, 0],[1552575900000, 0],[1552576200000, 0],[1552576500000, 0],[1552576800000, 0],[1552577100000, 0],[1552577400000, 0],[1552577700000, 0],[1552578000000, 0],[1552578300000, 0],[1552578600000, 0],[1552578900000, 0],[1552579200000, 0],[1552579500000, 0],[1552579800000, 0],[1552580100000, 0],[1552580400000, 0],[1552580700000, 0],[1552581000000, 0],[1552581300000, 0],[1552581600000, 0],[1552581900000, 0],[1552582200000, 0],[1552582500000, 0],[1552582800000, 0],[1552583100000, 0],[1552583400000, 0],[1552583700000, 0],[1552584000000, 0],[1552584300000, 0],[1552584600000, 0],[1552584900000, 0],[1552585200000, 0],[1552585500000, 0],[1552585800000, 0],[1552586100000, 0],[1552586400000, 0],[1552586700000, 0],[1552587000000, 0],[1552587300000, 0],[1552587600000, 0],[1552587900000, 0],[1552588200000, 0],[1552588500000, 0],[1552588800000, 0],[1552589100000, 0],[1552589400000, 0],[1552589700000, 0],[1552590000000, 0],[1552590300000, 0],[1552590600000, 0],[1552590900000, 0],[1552591200000, 0],[1552591500000, 0],[1552591800000, 0],[1552592100000, 0],[1552592400000, 0],[1552592700000, 0],[1552593000000, 0],[1552593300000, 0],[1552593600000, 0],[1552593900000, 0],[1552594200000, 0],[1552594500000, 0],[1552594800000, 0],[1552595100000, 0],[1552595400000, 0],[1552595700000, 0],[1552596000000, 0],[1552596300000, 0],[1552596600000, 0],[1552596900000, 0],[1552597200000, 0],[1552597500000, 0],[1552597800000, 0],[1552598100000, 0],[1552598400000, 0],[1552598700000, 0],[1552599000000, 0],[1552599300000, 0],[1552599600000, 0],[1552599900000, 0],[1552600200000, 0],[1552600500000, 0],[1552600800000, 0],[1552601100000, 0],[1552601400000, 0],[1552601700000, 4],[1552602000000, 0],[1552602300000, 0],[1552602600000, 0],[1552602900000, 0],[1552603200000, 0],[1552603500000, 0],[1552603800000, 0],[1552604100000, 0],[1552604400000, 0],[1552604700000, 0],[1552605000000, 0],[1552605300000, 0],[1552605600000, 0],[1552605900000, 0],[1552606200000, 0],[1552606500000, 0],[1552606800000, 0],[1552607100000, 0],[1552607400000, 0],[1552607700000, 0],[1552608000000, 0],[1552608300000, 0],[1552608600000, 0],[1552608900000, 0],[1552609200000, 0],[1552609500000, 0],[1552609800000, 0],[1552610100000, 0],[1552610400000, 0],[1552610700000, 0],[1552611000000, 0],[1552611300000, 0],[1552611600000, 0],[1552611900000, 0],[1552612200000, 0],[1552612500000, 0],[1552612800000, 0],[1552613100000, 0],[1552613400000, 0],[1552613700000, 0],[1552614000000, 0],[1552614300000, 0],[1552614600000, 0],[1552614900000, 0],[1552615200000, 0],[1552615500000, 0],[1552615800000, 0],[1552616100000, 0],[1552616400000, 0],[1552616700000, 0],[1552617000000, 0],[1552617300000, 0],[1552617600000, 0],[1552617900000, 0],[1552618200000, 0],[1552618500000, 0],[1552618800000, 0],[1552619100000, 0],[1552619400000, 0],[1552619700000, 0],[1552620000000, 0],[1552620300000, 0],[1552620600000, 0],[1552620900000, 0],[1552621200000, 0],[1552621500000, 0],[1552621800000, 0],[1552622100000, 0],[1552622400000, 0],[1552622700000, 0],[1552623000000, 0],[1552623300000, 0],[1552623600000, 0],[1552623900000, 0],[1552624200000, 0],[1552624500000, 0],[1552624800000, 0],[1552625100000, 0],[1552625400000, 0],[1552625700000, 0],[1552626000000, 0],[1552626300000, 0],[1552626600000, 0],[1552626900000, 0],[1552627200000, 0],[1552627500000, 0],[1552627800000, 0],[1552628100000, 0],[1552628400000, 0],[1552628700000, 0],[1552629000000, 0],[1552629300000, 0],[1552629600000, 0],[1552629900000, 0],[1552630200000, 0],[1552630500000, 0],[1552630800000, 0],[1552631100000, 0],[1552631400000, 0],[1552631700000, 0],[1552632000000, 0],[1552632300000, 0],[1552632600000, 0],[1552632900000, 0],[1552633200000, 0],[1552633500000, 0],[1552633800000, 0],[1552634100000, 0],[1552634400000, 0],[1552634700000, 0],[1552635000000, 0],[1552635300000, 0],[1552635600000, 0],[1552635900000, 0],[1552636200000, 0],[1552636500000, 0],[1552636800000, 0],[1552637100000, 0],[1552637400000, 0],[1552637700000, 0],[1552638000000, 0],[1552638300000, 0],[1552638600000, 0],[1552638900000, 0],[1552639200000, 0],[1552639500000, 0],[1552639800000, 0],[1552640100000, 0],[1552640400000, 0],[1552640700000, 0],[1552641000000, 0],[1552641300000, 0],[1552641600000, 0],[1552641900000, 0],[1552642200000, 0],[1552642500000, 0],[1552642800000, 0],[1552643100000, 0],[1552643400000, 0],[1552643700000, 0],[1552644000000, 0],[1552644300000, 0],[1552644600000, 0],[1552644900000, 0],[1552645200000, 0],[1552645500000, 0],[1552645800000, 0],[1552646100000, 0],[1552646400000, 0],[1552646700000, 0],[1552647000000, 0],[1552647300000, 0],[1552647600000, 0],[1552647900000, 0],[1552648200000, 0],[1552648500000, 0],[1552648800000, 0],[1552649100000, 0],[1552649400000, 0],[1552649700000, 0],[1552650000000, 0],[1552650300000, 0],[1552650600000, 0],[1552650900000, 0],[1552651200000, 0],[1552651500000, 0],[1552651800000, 0],[1552652100000, 0],[1552652400000, 0],[1552652700000, 0],[1552653000000, 0],[1552653300000, 0],[1552653600000, 0],[1552653900000, 0],[1552654200000, 0],[1552654500000, 0],[1552654800000, 0],[1552655100000, 0],[1552655400000, 0],[1552655700000, 0],[1552656000000, 0],[1552656300000, 0],[1552656600000, 0],[1552656900000, 0],[1552657200000, 0],[1552657500000, 0],[1552657800000, 0],[1552658100000, 0],[1552658400000, 0],[1552658700000, 0],[1552659000000, 0],[1552659300000, 0],[1552659600000, 0],[1552659900000, 0],[1552660200000, 0],[1552660500000, 0],[1552660800000, 0],[1552661100000, 0],[1552661400000, 0],[1552661700000, 0],[1552662000000, 0],[1552662300000, 0],[1552662600000, 0],[1552662900000, 0],[1552663200000, 0],[1552663500000, 0],[1552663800000, 0],[1552664100000, 0],[1552664400000, 0],[1552664700000, 0],[1552665000000, 0],[1552665300000, 0],[1552665600000, 0],[1552665900000, 0],[1552666200000, 0],[1552666500000, 0],[1552666800000, 0],[1552667100000, 0],[1552667400000, 0],[1552667700000, 0],[1552668000000, 0],[1552668300000, 0],[1552668600000, 0],[1552668900000, 0],[1552669200000, 0],[1552669500000, 0],[1552669800000, 0],[1552670100000, 0],[1552670400000, 0],[1552670700000, 0],[1552671000000, 0],[1552671300000, 0],[1552671600000, 0],[1552671900000, 0],[1552672200000, 0],[1552672500000, 0],[1552672800000, 0],[1552673100000, 0],[1552673400000, 0],[1552673700000, 0],[1552674000000, 0],[1552674300000, 0],[1552674600000, 0],[1552674900000, 0],[1552675200000, 0],[1552675500000, 0],[1552675800000, 0],[1552676100000, 0],[1552676400000, 0],[1552676700000, 0],[1552677000000, 0],[1552677300000, 0],[1552677600000, 0],[1552677900000, 0],[1552678200000, 0],[1552678500000, 0],[1552678800000, 0],[1552679100000, 0],[1552679400000, 0],[1552679700000, 0],[1552680000000, 0],[1552680300000, 0],[1552680600000, 0],[1552680900000, 0],[1552681200000, 0],[1552681500000, 0],[1552681800000, 0],[1552682100000, 0],[1552682400000, 0],[1552682700000, 0],[1552683000000, 0],[1552683300000, 0],[1552683600000, 0],[1552683900000, 0],[1552684200000, 0],[1552684500000, 0],[1552684800000, 0],[1552685100000, 0],[1552685400000, 0],[1552685700000, 0],[1552686000000, 0],[1552686300000, 0],[1552686600000, 0],[1552686900000, 0],[1552687200000, 0],[1552687500000, 0],[1552687800000, 0],[1552688100000, 0],[1552688400000, 0],[1552688700000, 0],[1552689000000, 0],[1552689300000, 0],[1552689600000, 0],[1552689900000, 0],[1552690200000, 0],[1552690500000, 0],[1552690800000, 0],[1552691100000, 0],[1552691400000, 0],[1552691700000, 0],[1552692000000, 0],[1552692300000, 0],[1552692600000, 0],[1552692900000, 0],[1552693200000, 0],[1552693500000, 0],[1552693800000, 0],[1552694100000, 0],[1552694400000, 0],[1552694700000, 0],[1552695000000, 0],[1552695300000, 0],[1552695600000, 0],[1552695900000, 0],[1552696200000, 0],[1552696500000, 0],[1552696800000, 0],[1552697100000, 0],[1552697400000, 0],[1552697700000, 0],[1552698000000, 0],[1552698300000, 0],[1552698600000, 0],[1552698900000, 0],[1552699200000, 0],[1552699500000, 0],[1552699800000, 0],[1552700100000, 0],[1552700400000, 0],[1552700700000, 0],[1552701000000, 0],[1552701300000, 0],[1552701600000, 0],[1552701900000, 0],[1552702200000, 0],[1552702500000, 0],[1552702800000, 0],[1552703100000, 0],[1552703400000, 0],[1552703700000, 0],[1552704000000, 0],[1552704300000, 0],[1552704600000, 0],[1552704900000, 0],[1552705200000, 0],[1552705500000, 0],[1552705800000, 0],[1552706100000, 0],[1552706400000, 0],[1552706700000, 0],[1552707000000, 0],[1552707300000, 0],[1552707600000, 0],[1552707900000, 0],[1552708200000, 0],[1552708500000, 0],[1552708800000, 0],[1552709100000, 0],[1552709400000, 0],[1552709700000, 0],[1552710000000, 0],[1552710300000, 0],[1552710600000, 0],[1552710900000, 0],[1552711200000, 0],[1552711500000, 0],[1552711800000, 0],[1552712100000, 0],[1552712400000, 0],[1552712700000, 0],[1552713000000, 0],[1552713300000, 0],[1552713600000, 0],[1552713900000, 0],[1552714200000, 0],[1552714500000, 0],[1552714800000, 0],[1552715100000, 0],[1552715400000, 0],[1552715700000, 0],[1552716000000, 0],[1552716300000, 0],[1552716600000, 0],[1552716900000, 0],[1552717200000, 0],[1552717500000, 0],[1552717800000, 0],[1552718100000, 0],[1552718400000, 0],[1552718700000, 0],[1552719000000, 0],[1552719300000, 0],[1552719600000, 0],[1552719900000, 0],[1552720200000, 0],[1552720500000, 0],[1552720800000, 0],[1552721100000, 0],[1552721400000, 0],[1552721700000, 0],[1552722000000, 0],[1552722300000, 0],[1552722600000, 0],[1552722900000, 0],[1552723200000, 0],[1552723500000, 0],[1552723800000, 0],[1552724100000, 0],[1552724400000, 0],[1552724700000, 0],[1552725000000, 0],[1552725300000, 0],[1552725600000, 0],[1552725900000, 0],[1552726200000, 0],[1552726500000, 0],[1552726800000, 0],[1552727100000, 0],[1552727400000, 0],[1552727700000, 0],[1552728000000, 0],[1552728300000, 0],[1552728600000, 0],[1552728900000, 0],[1552729200000, 0],[1552729500000, 0],[1552729800000, 0],[1552730100000, 0],[1552730400000, 0],[1552730700000, 0],[1552731000000, 0],[1552731300000, 0],[1552731600000, 0],[1552731900000, 0],[1552732200000, 0],[1552732500000, 0],[1552732800000, 0],[1552733100000, 0],[1552733400000, 0],[1552733700000, 0],[1552734000000, 0],[1552734300000, 0],[1552734600000, 0],[1552734900000, 0],[1552735200000, 0],[1552735500000, 0],[1552735800000, 0],[1552736100000, 0],[1552736400000, 0],[1552736700000, 0],[1552737000000, 0],[1552737300000, 0],[1552737600000, 0],[1552737900000, 0],[1552738200000, 0],[1552738500000, 0],[1552738800000, 0],[1552739100000, 0],[1552739400000, 0],[1552739700000, 0],[1552740000000, 0],[1552740300000, 0],[1552740600000, 0],[1552740900000, 0],[1552741200000, 0],[1552741500000, 0],[1552741800000, 0],[1552742100000, 0],[1552742400000, 0],[1552742700000, 0],[1552743000000, 0],[1552743300000, 0],[1552743600000, 0],[1552743900000, 0],[1552744200000, 0],[1552744500000, 0],[1552744800000, 0],[1552745100000, 0],[1552745400000, 0],[1552745700000, 0],[1552746000000, 0],[1552746300000, 0],[1552746600000, 0],[1552746900000, 0],[1552747200000, 0],[1552747500000, 0],[1552747800000, 0],[1552748100000, 0],[1552748400000, 0],[1552748700000, 0],[1552749000000, 0],[1552749300000, 0],[1552749600000, 0],[1552749900000, 0],[1552750200000, 0],[1552750500000, 0],[1552750800000, 0],[1552751100000, 0],[1552751400000, 0],[1552751700000, 0],[1552752000000, 0],[1552752300000, 0],[1552752600000, 0],[1552752900000, 0],[1552753200000, 0],[1552753500000, 0],[1552753800000, 0],[1552754100000, 0],[1552754400000, 0],[1552754700000, 0],[1552755000000, 0],[1552755300000, 0],[1552755600000, 0],[1552755900000, 0],[1552756200000, 0],[1552756500000, 0],[1552756800000, 0],[1552757100000, 0],[1552757400000, 0],[1552757700000, 0],[1552758000000, 0],[1552758300000, 0],[1552758600000, 0],[1552758900000, 0],[1552759200000, 0],[1552759500000, 0],[1552759800000, 0],[1552760100000, 0],[1552760400000, 0],[1552760700000, 0],[1552761000000, 0],[1552761300000, 0],[1552761600000, 0],[1552761900000, 0],[1552762200000, 0],[1552762500000, 0],[1552762800000, 0],[1552763100000, 0],[1552763400000, 0],[1552763700000, 0],[1552764000000, 0],[1552764300000, 0],[1552764600000, 0],[1552764900000, 0],[1552765200000, 0],[1552765500000, 0],[1552765800000, 0],[1552766100000, 0],[1552766400000, 0],[1552766700000, 0],[1552767000000, 0],[1552767300000, 0],[1552767600000, 0],[1552767900000, 0],[1552768200000, 0],[1552768500000, 0],[1552768800000, 0],[1552769100000, 0],[1552769400000, 0],[1552769700000, 0],[1552770000000, 0],[1552770300000, 0],[1552770600000, 0],[1552770900000, 0],[1552771200000, 0],[1552771500000, 0],[1552771800000, 0],[1552772100000, 0],[1552772400000, 0],[1552772700000, 0],[1552773000000, 0],[1552773300000, 0],[1552773600000, 0],[1552773900000, 0],[1552774200000, 0],[1552774500000, 0],[1552774800000, 0],[1552775100000, 0],[1552775400000, 0],[1552775700000, 0],[1552776000000, 0],[1552776300000, 0],[1552776600000, 0],[1552776900000, 0],[1552777200000, 0],[1552777500000, 0],[1552777800000, 0],[1552778100000, 0],[1552778400000, 0],[1552778700000, 0],[1552779000000, 0],[1552779300000, 0],[1552779600000, 0],[1552779900000, 0],[1552780200000, 0],[1552780500000, 0],[1552780800000, 0],[1552781100000, 0],[1552781400000, 0],[1552781700000, 0],[1552782000000, 0],[1552782300000, 0],[1552782600000, 0],[1552782900000, 0],[1552783200000, 0],[1552783500000, 0],[1552783800000, 0],[1552784100000, 0],[1552784400000, 0],[1552784700000, 0],[1552785000000, 0],[1552785300000, 0],[1552785600000, 0],[1552785900000, 0],[1552786200000, 0],[1552786500000, 0],[1552786800000, 0],[1552787100000, 0],[1552787400000, 0],[1552787700000, 0],[1552788000000, 0],[1552788300000, 0],[1552788600000, 0],[1552788900000, 0],[1552789200000, 0],[1552789500000, 0],[1552789800000, 0],[1552790100000, 0],[1552790400000, 0],[1552790700000, 0],[1552791000000, 0],[1552791300000, 0],[1552791600000, 0],[1552791900000, 0],[1552792200000, 0],[1552792500000, 0],[1552792800000, 0],[1552793100000, 0],[1552793400000, 0],[1552793700000, 0],[1552794000000, 0],[1552794300000, 0],[1552794600000, 0],[1552794900000, 0],[1552795200000, 0],[1552795500000, 0],[1552795800000, 0],[1552796100000, 0],[1552796400000, 0],[1552796700000, 0],[1552797000000, 0],[1552797300000, 0],[1552797600000, 0],[1552797900000, 0],[1552798200000, 0],[1552798500000, 0],[1552885200000, 0],[1552885500000, 0],[1552885800000, 0],[1552886100000, 0],[1552886400000, 0],[1552886700000, 0],[1552887000000, 0],[1552887300000, 0],[1552887600000, 0],[1552887900000, 0],[1552888200000, 0],[1552888500000, 0],[1552888800000, 0],[1552889100000, 0],[1552889400000, 0],[1552889700000, 0],[1552890000000, 0],[1552890300000, 0],[1552890600000, 0],[1552890900000, 0],[1552891200000, 0],[1552891500000, 0],[1552891800000, 0],[1552892100000, 0],[1552892400000, 0],[1552892700000, 0],[1552893000000, 0],[1552893300000, 0],[1552893600000, 0],[1552893900000, 0],[1552894200000, 0],[1552894500000, 0],[1552894800000, 0],[1552895100000, 0],[1552895400000, 0],[1552895700000, 0],[1552896000000, 0],[1552896300000, 0],[1552896600000, 0],[1552896900000, 0],[1552897200000, 0],[1552897500000, 0],[1552897800000, 0],[1552898100000, 0],[1552898400000, 0],[1552898700000, 0],[1552899000000, 0],[1552899300000, 0],[1552899600000, 0],[1552899900000, 0],[1552900200000, 0],[1552900500000, 0],[1552900800000, 0],[1552901100000, 0],[1552901400000, 0],[1552901700000, 0],[1552902000000, 0],[1552902300000, 0],[1552902600000, 0],[1552902900000, 0],[1552903200000, 0],[1552903500000, 0],[1552903800000, 0],[1552904100000, 0],[1552904400000, 0],[1552904700000, 0],[1552905000000, 0],[1552905300000, 0],[1552905600000, 0],[1552905900000, 0],[1552906200000, 0],[1552906500000, 0],[1552906800000, 0],[1552907100000, 0],[1552907400000, 0],[1552907700000, 0],[1552908000000, 0],[1552908300000, 0],[1552908600000, 0],[1552908900000, 0],[1552909200000, 0],[1552909500000, 0],[1552909800000, 0],[1552910100000, 0],[1552910400000, 0],[1552910700000, 0],[1552911000000, 0],[1552911300000, 0],[1552911600000, 0],[1552911900000, 0],[1552912200000, 0],[1552912500000, 0],[1552912800000, 0],[1552913100000, 0],[1552913400000, 0],[1552913700000, 0],[1552914000000, 0],[1552914300000, 0],[1552914600000, 0],[1552914900000, 0],[1552915200000, 0],[1552915500000, 0],[1552915800000, 0],[1552916100000, 0],[1552916400000, 0],[1552916700000, 0],[1552917000000, 0],[1552917300000, 0],[1552917600000, 0],[1552917900000, 0],[1552918200000, 0],[1552918500000, 0],[1552918800000, 0],[1552919100000, 0],[1552919400000, 0],[1552919700000, 0],[1552920000000, 0],[1552920300000, 0],[1552920600000, 0],[1552920900000, 0],[1552921200000, 0],[1552921500000, 0],[1552921800000, 0],[1552922100000, 0],[1552922400000, 0],[1552922700000, 0],[1552923000000, 0],[1552923300000, 0],[1552923600000, 0],[1552923900000, 0],[1552924200000, 0],[1552924500000, 0],[1552924800000, 0],[1552925100000, 0],[1552925400000, 0],[1552925700000, 0],[1552926000000, 0],[1552926300000, 0],[1552926600000, 0],[1552926900000, 0],[1552927200000, 0],[1552927500000, 0],[1552927800000, 0],[1552928100000, 0],[1552928400000, 0],[1552928700000, 0],[1552929000000, 0],[1552929300000, 0],[1552929600000, 0],[1552929900000, 0],[1552930200000, 0],[1552930500000, 0],[1552930800000, 0],[1552931100000, 0],[1552931400000, 0],[1552931700000, 0],[1552932000000, 0],[1552932300000, 0],[1552932600000, 0],[1552932900000, 0],[1552933200000, 0],[1552933500000, 0],[1552933800000, 0],[1552934100000, 0],[1552934400000, 0],[1552934700000, 0],[1552935000000, 0],[1552935300000, 0],[1552935600000, 0],[1552935900000, 0],[1552936200000, 0],[1552936500000, 0],[1552936800000, 0],[1552937100000, 0],[1552937400000, 0],[1552937700000, 0],[1552938000000, 0],[1552938300000, 0],[1552938600000, 0],[1552938900000, 0],[1552939200000, 0],[1552939500000, 0],[1552939800000, 0],[1552940100000, 0],[1552940400000, 0],[1552940700000, 0],[1552941000000, 0],[1552941300000, 0],[1552941600000, 0],[1552941900000, 0],[1552942200000, 0],[1552942500000, 0],[1552942800000, 0],[1552943100000, 0]];
|
||
var series_arr = [ { label: "PANIC", color: "#6e9dc9" },{ label: "FATAL", color: "#f4ab3a" },{ label: "ERROR", color: "#ac7fa8" },{ label: "WARNING", color: "#8dbd0f" } ];
|
||
|
||
create_download_button(95, 'btn btn-default');
|
||
var eventspersecond_graph = create_linegraph('eventspersecond_graph', 'Errors per 5 minutes', 'Errors per 5 minutes', series_arr, [eventspersecond_graph_95_d1,eventspersecond_graph_95_d2,eventspersecond_graph_95_d3,eventspersecond_graph_95_d4]);
|
||
add_download_button_event(95, 'eventspersecond_graph');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
</div>
|
||
</div><!-- end of errors per minutes -->
|
||
|
||
|
||
<div class="analysis-item row" id="most-frequent-errors-events">
|
||
<h2><i class="glyphicon icon-warning-sign"></i> Most Frequent Errors/Events</h2>
|
||
<div class="col-md-3">
|
||
<h3 class="">Key values</h3>
|
||
<div class="well key-figures">
|
||
<ul>
|
||
<li><span class="figure">4</span> <span class="figure-label">Max number of times the same event was reported</span></li>
|
||
<li><span class="figure">21</span> <span class="figure-label">Total events found</span></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-9">
|
||
<table class="table table-striped" id="most-frequent-errors-events-table">
|
||
<thead>
|
||
<tr>
|
||
<th>Rank</th>
|
||
<th>Times reported</th>
|
||
<th>Error</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
|
||
<tr>
|
||
<td>1</td>
|
||
<td>4
|
||
<p><a href="#Amost_frequent_error_1" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td id="most-frequent-errors-events-examples-details-rank-1">
|
||
<div id="event-c-1" class="sql sql-mediumsize">
|
||
<p class="error-pre"><span class="text-warning">WARNING: terminating connection because of crash of another server process</span></p>
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_error_1" class="collapse">
|
||
<h3>Times Reported <small>Most Frequent Error / Event #1</small></h3>
|
||
<div id="most_frequent_error_1" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_error_1').on("shown.bs.collapse",function(){
|
||
var bars_97 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',4],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
|
||
var most_frequent_error_1 = create_bargraph('most_frequent_error_1', '', 'Events', [ bars_97 ], '');
|
||
});
|
||
create_download_button(97, 'btn btn-default btn-xs');
|
||
add_download_button_event(97, 'most_frequent_error_1');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>17</td><td>4</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_error_1">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-errors-events-examples-rank-1">Examples</button></p>
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-errors-events-examples-rank-1" class="collapse">
|
||
<dl>
|
||
|
||
<dt><span class="text-warning">WARNING: terminating connection because of crash of another server process</span></dt>
|
||
<p><b>Detail:</b> The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.<br/><b>Hint:</b> In a moment you should be able to reconnect to the database and repeat your command.<br/></p>
|
||
<pre><b>Date:</b> 2019-03-14 17:18:18
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-errors-events-examples-rank-1">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>2</td>
|
||
<td>4
|
||
<p><a href="#Amost_frequent_error_2" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td id="most-frequent-errors-events-examples-details-rank-2">
|
||
<div id="event-c-2" class="sql sql-mediumsize">
|
||
<p class="error-pre"><span class="text-success">LOG: database system was shut down at ...</span></p>
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_error_2" class="collapse">
|
||
<h3>Times Reported <small>Most Frequent Error / Event #2</small></h3>
|
||
<div id="most_frequent_error_2" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_error_2').on("shown.bs.collapse",function(){
|
||
var bars_98 = [['00:00',0],['01:00',2],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',2],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
|
||
var most_frequent_error_2 = create_bargraph('most_frequent_error_2', '', 'Events', [ bars_98 ], '');
|
||
});
|
||
create_download_button(98, 'btn btn-default btn-xs');
|
||
add_download_button_event(98, 'most_frequent_error_2');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>01</td><td>1</td></tr><tr><td>Mar 15</td><td>01</td><td>1</td></tr><tr><td>Mar 18</td><td>08</td><td>2</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_error_2">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-errors-events-examples-rank-2">Examples</button></p>
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-errors-events-examples-rank-2" class="collapse">
|
||
<dl>
|
||
|
||
<dt><span class="text-success">LOG: database system was shut down at 2019-03-14 01:27:06 EDT</span></dt>
|
||
<p></p>
|
||
<pre><b>Date:</b> 2019-03-14 01:27:06
|
||
</pre>
|
||
|
||
<dt><span class="text-success">LOG: database system was shut down at 2019-03-15 01:16:43 EDT</span></dt>
|
||
<p></p>
|
||
<pre><b>Date:</b> 2019-03-15 01:16:44
|
||
</pre>
|
||
|
||
<dt><span class="text-success">LOG: database system was shut down at 2019-03-18 08:57:22 EDT</span></dt>
|
||
<p></p>
|
||
<pre><b>Date:</b> 2019-03-18 08:57:22
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-errors-events-examples-rank-2">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>3</td>
|
||
<td>3
|
||
<p><a href="#Amost_frequent_error_3" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td id="most-frequent-errors-events-examples-details-rank-3">
|
||
<div id="event-c-3" class="sql sql-mediumsize">
|
||
<p class="error-pre"><span class="text-danger">ERROR: syntax error at or near "..."</span></p>
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_error_3" class="collapse">
|
||
<h3>Times Reported <small>Most Frequent Error / Event #3</small></h3>
|
||
<div id="most_frequent_error_3" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_error_3').on("shown.bs.collapse",function(){
|
||
var bars_99 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',1],['10:00',2],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
|
||
var most_frequent_error_3 = create_bargraph('most_frequent_error_3', '', 'Events', [ bars_99 ], '');
|
||
});
|
||
create_download_button(99, 'btn btn-default btn-xs');
|
||
add_download_button_event(99, 'most_frequent_error_3');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>10</td><td>2</td></tr><tr><td>Mar 18</td><td>09</td><td>1</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_error_3">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-errors-events-examples-rank-3">Examples</button></p>
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-errors-events-examples-rank-3" class="collapse">
|
||
<dl>
|
||
|
||
<dt><span class="text-danger">ERROR: syntax error at or near "ltree" at character 238</span></dt>
|
||
<p><b>Statement:</b> SELECT * FROM ( VALUES
|
||
('setup.forecast'),
|
||
('setup.forecast.shortship'),
|
||
('seutp.forecast.baddate'),
|
||
('setup.copy'),
|
||
('setup.copy.shortship'),
|
||
('setup.copy.baddate'),
|
||
('ui.adjust.volume'),
|
||
('ui.adjust.price')
|
||
) x("setup.actual" ltree)<br/></p>
|
||
<pre><b>Date:</b> 2019-03-14 10:21:19
|
||
<b>Database:</b> ubm
|
||
<b>Application:</b> DBeaver 5.3.5 - Main
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Code:</b>
|
||
</pre>
|
||
|
||
<dt><span class="text-danger">ERROR: syntax error at or near "as" at character 238</span></dt>
|
||
<p><b>Statement:</b> SELECT * FROM ( VALUES
|
||
('setup.forecast'),
|
||
('setup.forecast.shortship'),
|
||
('seutp.forecast.baddate'),
|
||
('setup.copy'),
|
||
('setup.copy.shortship'),
|
||
('setup.copy.baddate'),
|
||
('ui.adjust.volume'),
|
||
('ui.adjust.price')
|
||
) x("setup.actual" as ltree)<br/></p>
|
||
<pre><b>Date:</b> 2019-03-14 10:21:23
|
||
<b>Database:</b> ubm
|
||
<b>Application:</b> DBeaver 5.3.5 - Main
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Code:</b>
|
||
</pre>
|
||
|
||
<dt><span class="text-danger">ERROR: syntax error at or near "GROUP" at character 722</span></dt>
|
||
<p><b>Statement:</b> --CREATE INDEX flag ON GLD(plan, rolling);
|
||
|
||
WITH
|
||
UN AS (
|
||
SELECT
|
||
'FC' SRCE
|
||
,OD.SSYR OSEAS
|
||
,OD.SDAT ODATE
|
||
,SD.SSYR SSEAS
|
||
,SD.SDAT SDATE
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,SUM( FB_QTY ) QTY
|
||
,SUM( FB_VAL_LOC * R_RATE ) SALES
|
||
,SUM( FB_CST_LOC * C_RATE ) STDCOST
|
||
FROM
|
||
RLARP.OSMP OSM
|
||
INNER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
WHERE
|
||
SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND SUBSTR(OSM.FS_LINE,1,5) = '41010'
|
||
AND CALC_STATUS <> 'CANCELED'
|
||
AND (adj_orderdate BETWEEN '2018-06-01' AND '2018-02-28' OR FSPR BETWEEN '1901' AND '1909'
|
||
GROUP BY
|
||
OD.SSYR
|
||
,OD.SDAT
|
||
,SD.SSYR
|
||
,SD.SDAT
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
UNION ALL
|
||
SELECT
|
||
'AC' SRCE
|
||
,OD.SSYR OSEAS
|
||
,OD.SDAT ODATE
|
||
,SD.SSYR SSEAS
|
||
,SD.SDAT SDATE
|
||
,COALESCE(OD.CM,SD.CM) OM
|
||
,COALESCE(SD.CM,'F') SM
|
||
,COALESCE(OD.CY,SD.CY) OY
|
||
,COALESCE(SD.CY,'F') SY
|
||
,SUM( FB_QTY ) QTY
|
||
,SUM( FB_VAL_LOC * R_RATE ) SALES
|
||
,SUM( FB_CST_LOC * C_RATE ) STDCOST
|
||
FROM
|
||
RLARP.OSM OSM
|
||
INNER JOIN GLD OD ON
|
||
OSM.ADJ_ORDERDATE BETWEEN OD.SDAT AND OD.EDAT
|
||
LEFT OUTER JOIN GLD SD ON
|
||
OSM.FSPR = SD.FSPR
|
||
WHERE
|
||
SUBSTR(OSM.FS_LINE,1,5) = '41010'
|
||
AND SUBSTR(OSM.GLEC,1,1) <= '2'
|
||
AND CALC_STATUS <> 'CANCELED'
|
||
AND (adj_orderdate BETWEEN '2018-06-01' AND '2018-02-28' OR FSPR BETWEEN '1901' AND '1909'
|
||
GROUP BY
|
||
OD.SSYR
|
||
,OD.SDAT
|
||
,SD.SSYR
|
||
,SD.SDAT
|
||
,COALESCE(OD.CM,SD.CM)
|
||
,COALESCE(SD.CM,'F')
|
||
,COALESCE(OD.CY,SD.CY)
|
||
,COALESCE(SD.CY,'F')
|
||
)
|
||
SELECT
|
||
SRCE
|
||
,OSEAS
|
||
,ODATE
|
||
,SSEAS
|
||
,SDATE
|
||
,OM
|
||
,SM
|
||
,OY
|
||
,SY
|
||
,SUM(QTY) UNITS
|
||
,SUM(STDCOST) "cost"
|
||
,SUM(SALES) SALES
|
||
FROM
|
||
UN
|
||
GROUP BY
|
||
SRCE
|
||
,OSEAS
|
||
,ODATE
|
||
,SSEAS
|
||
,SDATE
|
||
,OM
|
||
,SM
|
||
,OY
|
||
,SY
|
||
ORDER BY
|
||
SRCE
|
||
,OSEAS
|
||
,ODATE
|
||
,SSEAS
|
||
,SDATE
|
||
,OM
|
||
,SM
|
||
,OY
|
||
,SY;
|
||
|
||
DROP TABLE gld;
|
||
--SELECT * FROM gld;<br/></p>
|
||
<pre><b>Date:</b> 2019-03-18 09:32:25
|
||
<b>Database:</b> ubm
|
||
<b>Application:</b> [unknown]
|
||
<b>User:</b> report
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Code:</b>
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-errors-events-examples-rank-3">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>4</td>
|
||
<td>2
|
||
<p><a href="#Amost_frequent_error_4" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td id="most-frequent-errors-events-examples-details-rank-4">
|
||
<div id="event-c-4" class="sql sql-mediumsize">
|
||
<p class="error-pre"><span class="text-danger">ERROR: syntax error at position 0</span></p>
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_error_4" class="collapse">
|
||
<h3>Times Reported <small>Most Frequent Error / Event #4</small></h3>
|
||
<div id="most_frequent_error_4" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_error_4').on("shown.bs.collapse",function(){
|
||
var bars_100 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',2],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
|
||
var most_frequent_error_4 = create_bargraph('most_frequent_error_4', '', 'Events', [ bars_100 ], '');
|
||
});
|
||
create_download_button(100, 'btn btn-default btn-xs');
|
||
add_download_button_event(100, 'most_frequent_error_4');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>10</td><td>2</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_error_4">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-errors-events-examples-rank-4">Examples</button></p>
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-errors-events-examples-rank-4" class="collapse">
|
||
<dl>
|
||
|
||
<dt><span class="text-danger">ERROR: syntax error at position 0 at character 442</span></dt>
|
||
<p><b>Statement:</b> with llist as (
|
||
SELECT
|
||
x.llist::ltree item
|
||
FROM
|
||
(
|
||
VALUES
|
||
('setup.actual'),
|
||
('setup.forecast'),
|
||
('setup.forecast.shortship'),
|
||
('seutp.forecast.baddate'),
|
||
('setup.copy'),
|
||
('setup.copy.shortship'),
|
||
('setup.copy.baddate'),
|
||
('ui.adjust.volume'),
|
||
('ui.adjust.price')
|
||
) x("llist")
|
||
)
|
||
select
|
||
item
|
||
from
|
||
llist
|
||
where
|
||
item <@ '*.volume.*'<br/></p>
|
||
<pre><b>Date:</b> 2019-03-14 10:23:50
|
||
<b>Database:</b> ubm
|
||
<b>Application:</b> DBeaver 5.3.5 - Main
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Code:</b>
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-errors-events-examples-rank-4">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>5</td>
|
||
<td>2
|
||
<p><a href="#Amost_frequent_error_5" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td id="most-frequent-errors-events-examples-details-rank-5">
|
||
<div id="event-c-5" class="sql sql-mediumsize">
|
||
<p class="error-pre"><span class="text-danger">ERROR: division by zero</span></p>
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_error_5" class="collapse">
|
||
<h3>Times Reported <small>Most Frequent Error / Event #5</small></h3>
|
||
<div id="most_frequent_error_5" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_error_5').on("shown.bs.collapse",function(){
|
||
var bars_101 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',1],['12:00',1],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
|
||
var most_frequent_error_5 = create_bargraph('most_frequent_error_5', '', 'Events', [ bars_101 ], '');
|
||
});
|
||
create_download_button(101, 'btn btn-default btn-xs');
|
||
add_download_button_event(101, 'most_frequent_error_5');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>11</td><td>1</td></tr><tr><td></td><td>12</td><td>1</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_error_5">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-errors-events-examples-rank-5">Examples</button></p>
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-errors-events-examples-rank-5" class="collapse">
|
||
<dl>
|
||
|
||
<dt><span class="text-danger">ERROR: division by zero</span></dt>
|
||
<p><b>Statement:</b> WITH
|
||
/*
|
||
the volume must be expressed in terms of units, since that is what it will be scaling
|
||
*/
|
||
target AS (select 0 vincr, -1561.8281112 pincr)
|
||
,GLD AS (
|
||
SELECT
|
||
N1COMP COMP
|
||
,N1CCYY FSYR
|
||
,KPMAXP PERDS
|
||
,N1FSPP PERD
|
||
,to_char(N1FSYP,'FM0000') FSPR
|
||
,N1SD01 SDAT
|
||
,N1ED01 EDAT
|
||
,to_char(N1ED01,'yymm') CAPR
|
||
,N1ED01 - N1SD01 +1 NDAYS
|
||
,CASE WHEN EXTRACT(MONTH FROM N1ED01) >= 6 THEN EXTRACT(YEAR FROM N1ED01) + 1 ELSE EXTRACT(YEAR FROM N1ED01) END SSYR
|
||
,to_char(CASE WHEN EXTRACT(MONTH FROM N1ED01) >= 6 THEN EXTRACT(MONTH FROM N1ED01) -5 ELSE EXTRACT(MONTH FROM N1ED01) +7 END,'00') SSPR
|
||
FROM
|
||
LGDAT.GLDATREF
|
||
INNER JOIN LGDAT.GLDATE ON
|
||
KPCOMP = N1COMP AND
|
||
KPCCYY = N1CCYY
|
||
WHERE
|
||
N1COMP = 93
|
||
--AND DIGITS(N1FSYP) = '1901'
|
||
)
|
||
,mseq AS (
|
||
SELECT * FROM
|
||
(
|
||
VALUES
|
||
('Jun',1,6,-1)
|
||
,('Jul',2,7,-1)
|
||
,('Aug',3,8,-1)
|
||
,('Sep',4,9,-1)
|
||
,('Oct',5,10,-1)
|
||
,('Nov',6,11,-1)
|
||
,('Dec',7,12,-1)
|
||
,('Jan',8,1,0)
|
||
,('Feb',9,2,0)
|
||
,('Mar',10,3,0)
|
||
,('Apr',11,4,0)
|
||
,('May',12,5,0)
|
||
) x(m,s,cal,yr)
|
||
)
|
||
,alldates AS (
|
||
SELECT
|
||
promo
|
||
,terms
|
||
,order_month
|
||
,mseq.s seq
|
||
,orderdate
|
||
,requestdate
|
||
,shipdate
|
||
,sum(value_usd) value_usd
|
||
FROM
|
||
rlarp.osm_fcpool
|
||
LEFT OUTER JOIN mseq ON
|
||
mseq.m = order_month
|
||
WHERE
|
||
-----------------scenario----------------------------
|
||
quota_rep_descr = '10032 - BRYAN HILL'
|
||
AND segm = 'Greenhouse'
|
||
AND mod_chan = 'DIRECT'
|
||
AND shipto_group = 'FRIENDSHIP FOLIAGE'
|
||
AND part_descr = 'STG06000B66B146 - 06.00 STD TW 300GN @14625 BULK'
|
||
AND version = 'b20'
|
||
AND iter IN ('copy','adj volume','adj price')
|
||
-----------------additional params-------------------
|
||
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
||
AND adj_orderdate <= adj_shipdate
|
||
GROUP BY
|
||
promo
|
||
,terms
|
||
,order_month
|
||
,mseq.s
|
||
,orderdate
|
||
,requestdate
|
||
,shipdate
|
||
HAVING
|
||
sum(value_usd) <> 0
|
||
)
|
||
--select * from alldates
|
||
,dom AS (
|
||
SELECT
|
||
extract(day FROM orderdate) DOM
|
||
,sum(value_usd) value_usd
|
||
FROM
|
||
alldates
|
||
GROUP BY
|
||
extract(day FROM orderdate)
|
||
)
|
||
---------------------may want ot look at a top-5 mix solution in the future facilitated by sum() over (order by sales desc)---------------
|
||
,mmix AS (
|
||
SELECT
|
||
to_char(orderdate,'Mon') _month
|
||
,seq
|
||
,promo
|
||
,sum(extract(day from orderdate)*value_usd) dom_wa
|
||
--,requestdate-orderdate rlag
|
||
,sum((requestdate-orderdate)*(value_usd)) rlag_wa
|
||
--,shipdate - requestdate slag
|
||
,sum((shipdate - requestdate)*(value_usd)) slag_wa
|
||
,sum(value_usd) value_usd
|
||
FROM
|
||
alldates
|
||
GROUP BY
|
||
to_char(orderdate,'Mon')
|
||
,seq
|
||
,promo
|
||
--,extract(day from orderdate)
|
||
--,requestdate-orderdate
|
||
--,shipdate - requestdate
|
||
)
|
||
,targm AS (select s, m from mseq where m = 'Apr' )
|
||
,mmixp AS (
|
||
SELECT
|
||
_month
|
||
,seq
|
||
,promo
|
||
,round((dom_wa/value_usd)::numeric,0)::int odom
|
||
,round((rlag_wa/value_usd)::numeric,0)::int rlag
|
||
,round((slag_wa/value_usd)::numeric,0)::int slag
|
||
,value_usd/sum(value_usd) over (partition by _month) momix
|
||
--,value_usd/SUM(value_usd) over (PARTITION BY _month) vperc
|
||
FROM
|
||
mmix
|
||
)
|
||
,closest AS (
|
||
SELECT
|
||
_month, targm.s, m
|
||
FROM
|
||
mmixp
|
||
CROSS JOIN targm
|
||
ORDER BY
|
||
abs(seq - targm.s) ASC
|
||
LIMIT 1
|
||
)
|
||
--SELECT * FROM mmixp order by seq asc, vperc desc
|
||
,basemix AS (
|
||
SELECT
|
||
plnt ---master data
|
||
,0::numeric(11,0) "ddord#" --0
|
||
,0::numeric(11,0) "dditm#" --0
|
||
,0::numeric(11,0) "fgbol#" --0
|
||
,0::numeric(11,0) "fgent#" --0
|
||
,0::numeric(9,0) "diinv#" --0
|
||
,0::numeric(3,0) "dilin#" --0
|
||
,null::text promo --history date mix
|
||
,null::text return_reas --0
|
||
,terms
|
||
,''::text custpo --0
|
||
,'I' dhincr --0
|
||
,sum(diext) diext
|
||
,sum(ditdis) ditdis
|
||
,null::date dcodat --calculated date mix
|
||
,null::date ddqdat --calculated date mix
|
||
,null::date dcmdat --calculated date mix
|
||
,null::date dhidat --calculated date mix
|
||
,null::text fspr --calculated date mix
|
||
,remit_to --master data
|
||
,bill_class --master data
|
||
,bill_cust --history cust mix
|
||
,bill_rep --master data
|
||
,bill_terr --master data
|
||
,ship_class --master data
|
||
,ship_cust --history cust mix
|
||
,ship_rep --master data
|
||
,ship_terr --master data
|
||
,quota_rep --master data
|
||
,account --master data
|
||
,shipgrp --master data
|
||
,geo --master data
|
||
,chan --master data
|
||
,orig_ctry --master data
|
||
,orig_prov --master data
|
||
,orig_post --master data
|
||
,dest_ctry --master data
|
||
,dest_prov --master data
|
||
,dest_post --master data
|
||
,part --history part mix
|
||
,ord_gldc --master data
|
||
,majg --master data
|
||
,ming --master data
|
||
,majs --master data
|
||
,mins --master data
|
||
,gldc --master data
|
||
,glec --master data
|
||
,harm --master data
|
||
,clss --master data
|
||
,brand --master data
|
||
,assc --master data
|
||
,fs_line --master data
|
||
,r_currency --history cust mix
|
||
,r_rate --master data
|
||
,c_currency --master data
|
||
,c_rate --master data
|
||
,0::numeric(15,5) ddqtoi --0
|
||
,0::numeric(15,5) ddqtsi --0
|
||
,0::numeric(15,5) fgqshp --0
|
||
,0::numeric(15,5) diqtsh --0
|
||
,sum(coalesce(fb_qty,0)) fb_qty --history value
|
||
,sum(coalesce(fb_cst_loc,0)) fb_cst_loc --history part mix
|
||
,sum(coalesce(fb_cst_loc_cur,0)) fb_cst_loc_cur --master data
|
||
,sum(coalesce(fb_cst_loc_fut,0)) fb_cst_loc_fut --master data
|
||
,sum(coalesce(fb_val_loc,0)) fb_val_loc --history value
|
||
,sum(coalesce(fb_val_loc_pl,0)) fb_val_loc_pl --0
|
||
,calc_status --0
|
||
,flag --0
|
||
,null::date orderdate --history date mix
|
||
,null::date requestdate --history date mix
|
||
,null::date shipdate --history date mix
|
||
,null::date adj_orderdate --history
|
||
,null::date adj_requestdate --history
|
||
,null::date adj_shipdate --history
|
||
,'b20' "version" --calculated
|
||
,'adjustment' iter --calculated
|
||
---------------ui columns-------------------------
|
||
,null::numeric order_season
|
||
,null::text order_month
|
||
,null::numeric ship_season
|
||
,null::text ship_month
|
||
,null::numeric request_season
|
||
,null::text request_month
|
||
,part_descr
|
||
,part_family
|
||
,part_group
|
||
,branding
|
||
,color
|
||
,segm
|
||
,bill_cust_descr
|
||
,billto_group
|
||
,ship_cust_descr
|
||
,shipto_group
|
||
,majg_descr
|
||
,ming_descr
|
||
,majs_descr
|
||
,mins_descr
|
||
,mod_chan
|
||
,mod_chansub
|
||
,quota_rep_descr
|
||
,director_descr
|
||
,null value_loc
|
||
,null value_usd
|
||
,null cost_loc
|
||
,null cost_usd
|
||
,null units
|
||
FROM
|
||
rlarp.osm_fcpool
|
||
WHERE
|
||
-----------------scenario----------------------------
|
||
quota_rep_descr = '10032 - BRYAN HILL'
|
||
AND segm = 'Greenhouse'
|
||
AND mod_chan = 'DIRECT'
|
||
AND shipto_group = 'FRIENDSHIP FOLIAGE'
|
||
AND part_descr = 'STG06000B66B146 - 06.00 STD TW 300GN @14625 BULK'
|
||
AND version = 'b20'
|
||
AND iter IN ('copy','adj volume','adj price')
|
||
-----------------additional params-------------------
|
||
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
||
AND adj_orderdate <= adj_shipdate
|
||
GROUP BY
|
||
plnt ---master data
|
||
,terms
|
||
,remit_to --master data
|
||
,bill_class --master data
|
||
,bill_cust --history cust mix
|
||
,bill_rep --master data
|
||
,bill_terr --master data
|
||
,ship_class --master data
|
||
,ship_cust --history cust mix
|
||
,ship_rep --master data
|
||
,ship_terr --master data
|
||
,quota_rep --master data
|
||
,account --master data
|
||
,shipgrp --master data
|
||
,geo --master data
|
||
,chan --master data
|
||
,orig_ctry --master data
|
||
,orig_prov --master data
|
||
,orig_post --master data
|
||
,dest_ctry --master data
|
||
,dest_prov --master data
|
||
,dest_post --master data
|
||
,part --history part mix
|
||
,ord_gldc --master data
|
||
,majg --master data
|
||
,ming --master data
|
||
,majs --master data
|
||
,mins --master data
|
||
,gldc --master data
|
||
,glec --master data
|
||
,harm --master data
|
||
,clss --master data
|
||
,brand --master data
|
||
,assc --master data
|
||
,fs_line --master data
|
||
,r_currency --history cust mix
|
||
,r_rate --master data
|
||
,c_currency --master data
|
||
,c_rate --master data
|
||
,calc_status
|
||
,flag
|
||
,part_descr
|
||
,part_family
|
||
,part_group
|
||
,branding
|
||
,color
|
||
,segm
|
||
,bill_cust_descr
|
||
,billto_group
|
||
,ship_cust_descr
|
||
,shipto_group
|
||
,majg_descr
|
||
,ming_descr
|
||
,majs_descr
|
||
,mins_descr
|
||
,mod_chan
|
||
,mod_chansub
|
||
,quota_rep_descr
|
||
,director_descr
|
||
)
|
||
,vscale AS (
|
||
SELECT
|
||
(SELECT vincr::numeric FROM target) incr
|
||
,(SELECT sum(fb_qty) FROM basemix) base
|
||
,(SELECT vincr::numeric FROM target)/(SELECT sum(fb_qty) FROM basemix) factor
|
||
)
|
||
--select * from SCALE
|
||
,volume AS (
|
||
SELECT
|
||
b.plnt --master data
|
||
,b."ddord#" --0
|
||
,b."dditm#" --0
|
||
,b."fgbol#" --0
|
||
,b."fgent#" --0
|
||
,b."diinv#" --0
|
||
,b."dilin#" --0
|
||
,b.promo --history date mix
|
||
,b.return_reas --0
|
||
,b.terms --history cust mix
|
||
,b.custpo --0
|
||
,b.dhincr --0
|
||
,b.diext --0
|
||
,b.ditdis --0
|
||
,b.dcodat --calculated date mix
|
||
,b.ddqdat --calculated date mix
|
||
,b.dcmdat --calculated date mix
|
||
,b.dhidat --calculated date mix
|
||
,b.fspr --calculated date mix
|
||
,b.remit_to --master data
|
||
,b.bill_class --master data
|
||
,b.bill_cust --history cust mix
|
||
,b.bill_rep --master data
|
||
,b.bill_terr --master data
|
||
,b.ship_class --master data
|
||
,b.ship_cust --history cust mix
|
||
,b.ship_rep --master data
|
||
,b.ship_terr --master data
|
||
,b.quota_rep --master data
|
||
,b.account --master data
|
||
,b.shipgrp --master data
|
||
,b.geo --master data
|
||
,b.chan --master data
|
||
,b.orig_ctry --master data
|
||
,b.orig_prov --master data
|
||
,b.orig_post --master data
|
||
,b.dest_ctry --master data
|
||
,b.dest_prov --master data
|
||
,b.dest_post --master data
|
||
,b.part --history part mix
|
||
,b.ord_gldc --master data
|
||
,b.majg --master data
|
||
,b.ming --master data
|
||
,b.majs --master data
|
||
,b.mins --master data
|
||
,b.gldc --master data
|
||
,b.glec --master data
|
||
,b.harm --master data
|
||
,b.clss --master data
|
||
,b.brand --master data
|
||
,b.assc --master data
|
||
,b.fs_line --master data
|
||
,b.r_currency --history cust mix
|
||
,b.r_rate --master data
|
||
,b.c_currency --master data
|
||
,b.c_rate --master data
|
||
,b.ddqtoi --0
|
||
,b.ddqtsi --0
|
||
,b.fgqshp --0
|
||
,b.diqtsh --0
|
||
,b.fb_qty*s.factor*m.momix fb_qty
|
||
,b.fb_cst_loc*s.factor*m.momix fb_cst_loc
|
||
,b.fb_cst_loc_cur*s.factor*m.momix fb_cst_loc_cur
|
||
,b.fb_cst_loc_fut*s.factor*m.momix fb_cst_loc_fut
|
||
,b.fb_val_loc*s.factor*m.momix fb_val_loc
|
||
,b.fb_val_loc_pl*s.factor*m.momix fb_val_loc_pl
|
||
,b.calc_status --0
|
||
,b.flag --0
|
||
,make_date(mseq.yr + 2020,mseq.cal,m.odom) orderdate
|
||
,make_date(mseq.yr + 2020,mseq.cal,m.odom) + rlag requestdate
|
||
,make_date(mseq.yr + 2020,mseq.cal,m.odom) + rlag + slag shipdate
|
||
,make_date(mseq.yr + 2020,mseq.cal,m.odom) adj_orderdate
|
||
,make_date(mseq.yr + 2020,mseq.cal,m.odom) + rlag adj_requestdate
|
||
,make_date(mseq.yr + 2020,mseq.cal,m.odom) + rlag + slag adj_shipdate
|
||
,'b20' "version" --calculated
|
||
,'adj'||' volume' iter
|
||
-----------------------ui columns--------------------------------
|
||
,'replace_iterdet' iterdet
|
||
,$${"scenario":{"quota_rep_descr":"10032 - BRYAN HILL","segm":"Greenhouse","mod_chan":"DIRECT","shipto_group":"FRIENDSHIP FOLIAGE","part_descr":"STG06000B66B146 - 06.00 STD TW 300GN @14625 BULK","version":"b20","iter":["copy","adj volume","adj price"]},"stamp":"2019-03-14 11:39:23","user":"Trowbridge, Paul","source":"adj","type":"addmonth_vp","month":"Apr","qty":0,"amount":-1561.8281112}$$::jsonb iterdef
|
||
,od.ssyr order_season
|
||
,to_char(make_date(mseq.yr + 2020,mseq.cal,m.odom),'Mon') order_month
|
||
,sd.ssyr ship_season
|
||
,to_char(make_date(mseq.yr + 2020,mseq.cal,m.odom) + rlag + slag,'Mon') ship_month
|
||
,rd.ssyr request_season
|
||
,to_char(make_date(mseq.yr + 2020,mseq.cal,m.odom) + rlag,'Mon') request_month
|
||
,b.part_descr
|
||
,b.part_family
|
||
,b.part_group
|
||
,b.branding
|
||
,b.color
|
||
,b.segm
|
||
,b.bill_cust_descr
|
||
,b.billto_group
|
||
,b.ship_cust_descr
|
||
,b.shipto_group
|
||
,b.majg_descr
|
||
,b.ming_descr
|
||
,b.majs_descr
|
||
,b.mins_descr
|
||
,b.mod_chan
|
||
,b.mod_chansub
|
||
,b.quota_rep_descr
|
||
,b.director_descr
|
||
,b.fb_val_loc*s.factor*m.momix value_loc
|
||
,b.fb_val_loc*s.factor*m.momix*r_rate value_usd
|
||
,b.fb_cst_loc*s.factor*m.momix cost_loc
|
||
,b.fb_cst_loc*s.factor*m.momix*c_rate cost_usd
|
||
,(b.fb_qty*s.factor*m.momix) units
|
||
FROM
|
||
basemix b
|
||
CROSS JOIN vscale s
|
||
CROSS JOIN mmixp m
|
||
CROSS JOIN closest
|
||
LEFT OUTER JOIN mseq ON
|
||
mseq.m = closest.m
|
||
LEFT OUTER JOIN gld od ON
|
||
make_date(mseq.yr + 2020,mseq.cal,m.odom) BETWEEN od.sdat AND od.edat
|
||
LEFT OUTER JOIN gld rd ON
|
||
make_date(mseq.yr + 2020,mseq.cal,m.odom) + rlag BETWEEN rd.sdat AND rd.edat
|
||
LEFT OUTER JOIN gld sd ON
|
||
make_date(mseq.yr + 2020,mseq.cal,m.odom) + rlag + slag BETWEEN sd.sdat AND sd.edat
|
||
WHERE
|
||
m._month = (SELECT _month FROM closest)
|
||
)
|
||
,pscale AS (
|
||
SELECT
|
||
(SELECT pincr::numeric FROM target) incr
|
||
,(SELECT sum(fb_val_loc * r_rate) FROM volume) base
|
||
,(SELECT pincr::numeric FROM target)/(SELECT sum(fb_val_loc) FROM volume) factor
|
||
)
|
||
,price AS (
|
||
SELECT
|
||
b.plnt --master data
|
||
,b."ddord#" --0
|
||
,b."dditm#" --0
|
||
,b."fgbol#" --0
|
||
,b."fgent#" --0
|
||
,b."diinv#" --0
|
||
,b."dilin#" --0
|
||
,b.promo --history date mix
|
||
,b.return_reas --0
|
||
,b.terms --history cust mix
|
||
,b.custpo --0
|
||
,b.dhincr --0
|
||
,b.diext --0
|
||
,b.ditdis --0
|
||
,b.dcodat --calculated date mix
|
||
,b.ddqdat --calculated date mix
|
||
,b.dcmdat --calculated date mix
|
||
,b.dhidat --calculated date mix
|
||
,b.fspr --calculated date mix
|
||
,b.remit_to --master data
|
||
,b.bill_class --master data
|
||
,b.bill_cust --history cust mix
|
||
,b.bill_rep --master data
|
||
,b.bill_terr --master data
|
||
,b.ship_class --master data
|
||
,b.ship_cust --history cust mix
|
||
,b.ship_rep --master data
|
||
,b.ship_terr --master data
|
||
,b.quota_rep --master data
|
||
,b.account --master data
|
||
,b.shipgrp --master data
|
||
,b.geo --master data
|
||
,b.chan --master data
|
||
,b.orig_ctry --master data
|
||
,b.orig_prov --master data
|
||
,b.orig_post --master data
|
||
,b.dest_ctry --master data
|
||
,b.dest_prov --master data
|
||
,b.dest_post --master data
|
||
,b.part --history part mix
|
||
,b.ord_gldc --master data
|
||
,b.majg --master data
|
||
,b.ming --master data
|
||
,b.majs --master data
|
||
,b.mins --master data
|
||
,b.gldc --master data
|
||
,b.glec --master data
|
||
,b.harm --master data
|
||
,b.clss --master data
|
||
,b.brand --master data
|
||
,b.assc --master data
|
||
,b.fs_line --master data
|
||
,b.r_currency --history cust mix
|
||
,b.r_rate --master data
|
||
,b.c_currency --master data
|
||
,b.c_rate --master data
|
||
,b.ddqtoi --0
|
||
,b.ddqtsi --0
|
||
,b.fgqshp --0
|
||
,b.diqtsh --0
|
||
,0 fb_qty
|
||
,0 fb_cst_loc
|
||
,0 fb_cst_loc_cur
|
||
,0 fb_cst_loc_fut
|
||
,b.fb_val_loc*p.factor fb_val_loc
|
||
,b.fb_val_loc_pl*p.factor fb_val_loc_pl
|
||
,b.calc_status --0
|
||
,b.flag --0
|
||
,b.orderdate
|
||
,b.requestdate
|
||
,b.shipdate
|
||
,b.adj_orderdate
|
||
,b.adj_requestdate
|
||
,b.adj_shipdate
|
||
,'b20' "version" --calculated
|
||
,'adj'||' price' iter --calculateds
|
||
,'replace_iterdet' iterdet
|
||
,$${"scenario":{"quota_rep_descr":"10032 - BRYAN HILL","segm":"Greenhouse","mod_chan":"DIRECT","shipto_group":"FRIENDSHIP FOLIAGE","part_descr":"STG06000B66B146 - 06.00 STD TW 300GN @14625 BULK","version":"b20","iter":["copy","adj volume","adj price"]},"stamp":"2019-03-14 11:39:23","user":"Trowbridge, Paul","source":"adj","type":"addmonth_vp","month":"Apr","qty":0,"amount":-1561.8281112}$$::jsonb iterdef
|
||
,b.order_season
|
||
,b.order_month
|
||
,b.ship_season
|
||
,b.ship_month
|
||
,b.request_season
|
||
,b.request_month
|
||
,b.part_descr
|
||
,b.part_family
|
||
,b.part_group
|
||
,b.branding
|
||
,b.color
|
||
,b.segm
|
||
,b.bill_cust_descr
|
||
,b.billto_group
|
||
,b.ship_cust_descr
|
||
,b.shipto_group
|
||
,b.majg_descr
|
||
,b.ming_descr
|
||
,b.majs_descr
|
||
,b.mins_descr
|
||
,b.mod_chan
|
||
,b.mod_chansub
|
||
,b.quota_rep_descr
|
||
,b.director_descr
|
||
,b.fb_val_loc*p.factor value_loc
|
||
,b.fb_val_loc*p.factor*r_rate value_usd
|
||
,0 cost_loc
|
||
,0 cost_usd
|
||
,0 units
|
||
FROM
|
||
volume b
|
||
CROSS JOIN pscale p
|
||
)
|
||
, ins AS (
|
||
INSERT INTO rlarp.osm_fcpool (SELECT * FROM price UNION ALL SELECT * FROM volume) RETURNING *
|
||
)
|
||
,insagg AS (
|
||
SELECT
|
||
bill_cust_descr
|
||
,billto_group
|
||
,ship_cust_descr
|
||
,shipto_group
|
||
,quota_rep_descr
|
||
,director_descr
|
||
,segm
|
||
,mod_chan
|
||
,mod_chansub
|
||
,majg_descr
|
||
,ming_descr
|
||
,majs_descr
|
||
,mins_descr
|
||
,brand
|
||
,part_family
|
||
,part_group
|
||
,branding
|
||
,color
|
||
,part_descr
|
||
,order_season
|
||
,order_month
|
||
,ship_season
|
||
,ship_month
|
||
,request_season
|
||
,request_month
|
||
,promo
|
||
,version
|
||
,iter
|
||
,sum(value_loc) value_loc
|
||
,sum(value_usd) value_usd
|
||
,sum(cost_loc) cost_loc
|
||
,sum(cost_usd) cost_usd
|
||
,sum(units) units
|
||
FROM
|
||
ins
|
||
GROUP BY
|
||
bill_cust_descr
|
||
,billto_group
|
||
,ship_cust_descr
|
||
,shipto_group
|
||
,quota_rep_descr
|
||
,director_descr
|
||
,segm
|
||
,mod_chan
|
||
,mod_chansub
|
||
,majg_descr
|
||
,ming_descr
|
||
,majs_descr
|
||
,mins_descr
|
||
,brand
|
||
,part_family
|
||
,part_group
|
||
,branding
|
||
,color
|
||
,part_descr
|
||
,order_season
|
||
,order_month
|
||
,ship_season
|
||
,ship_month
|
||
,request_season
|
||
,request_month
|
||
,promo
|
||
,version
|
||
,iter
|
||
)
|
||
--SELECT * FROM insagg
|
||
SELECT json_agg(row_to_json(insagg)) x from insagg
|
||
<br/></p>
|
||
<pre><b>Date:</b> 2019-03-14 11:39:37
|
||
<b>Database:</b> ubm
|
||
<b>Application:</b> osm_api
|
||
<b>User:</b> api
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Code:</b>
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-errors-events-examples-rank-5">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>6</td>
|
||
<td>1
|
||
<p><a href="#Amost_frequent_error_6" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td id="most-frequent-errors-events-examples-details-rank-6">
|
||
<div id="event-c-6" class="sql sql-mediumsize">
|
||
<p class="error-pre"><span class="text-danger">ERROR: pg_stat_statements must be loaded via shared_preload_libraries</span></p>
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_error_6" class="collapse">
|
||
<h3>Times Reported <small>Most Frequent Error / Event #6</small></h3>
|
||
<div id="most_frequent_error_6" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_error_6').on("shown.bs.collapse",function(){
|
||
var bars_102 = [['00:00',0],['01:00',1],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
|
||
var most_frequent_error_6 = create_bargraph('most_frequent_error_6', '', 'Events', [ bars_102 ], '');
|
||
});
|
||
create_download_button(102, 'btn btn-default btn-xs');
|
||
add_download_button_event(102, 'most_frequent_error_6');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 16</td><td>01</td><td>1</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_error_6">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-errors-events-examples-rank-6">Examples</button></p>
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-errors-events-examples-rank-6" class="collapse">
|
||
<dl>
|
||
|
||
<dt><span class="text-danger">ERROR: pg_stat_statements must be loaded via shared_preload_libraries</span></dt>
|
||
<p><b>Statement:</b> select * from pg_stat_statements<br/></p>
|
||
<pre><b>Date:</b> 2019-03-16 01:28:18
|
||
<b>Database:</b> ubm
|
||
<b>Application:</b> psql
|
||
<b>User:</b> ptrowbridge
|
||
<b>Remote:</b> ubreport
|
||
<b>Code:</b>
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-errors-events-examples-rank-6">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>7</td>
|
||
<td>1
|
||
<p><a href="#Amost_frequent_error_7" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td id="most-frequent-errors-events-examples-details-rank-7">
|
||
<div id="event-c-7" class="sql sql-mediumsize">
|
||
<p class="error-pre"><span class="text-danger">ERROR: relation "..." does not exist</span></p>
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_error_7" class="collapse">
|
||
<h3>Times Reported <small>Most Frequent Error / Event #7</small></h3>
|
||
<div id="most_frequent_error_7" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_error_7').on("shown.bs.collapse",function(){
|
||
var bars_103 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',1],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
|
||
var most_frequent_error_7 = create_bargraph('most_frequent_error_7', '', 'Events', [ bars_103 ], '');
|
||
});
|
||
create_download_button(103, 'btn btn-default btn-xs');
|
||
add_download_button_event(103, 'most_frequent_error_7');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 15</td><td>09</td><td>1</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_error_7">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-errors-events-examples-rank-7">Examples</button></p>
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-errors-events-examples-rank-7" class="collapse">
|
||
<dl>
|
||
|
||
<dt><span class="text-danger">ERROR: relation "pg_stat_acticity" does not exist at character 15</span></dt>
|
||
<p><b>Statement:</b> select * from pg_stat_acticity<br/></p>
|
||
<pre><b>Date:</b> 2019-03-15 09:53:17
|
||
<b>Database:</b> ubm
|
||
<b>Application:</b> psql
|
||
<b>User:</b> ptrowbridge
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Code:</b>
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-errors-events-examples-rank-7">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>8</td>
|
||
<td>1
|
||
<p><a href="#Amost_frequent_error_8" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td id="most-frequent-errors-events-examples-details-rank-8">
|
||
<div id="event-c-8" class="sql sql-mediumsize">
|
||
<p class="error-pre"><span class="text-success">LOG: database system was not properly shut down; automatic recovery in progress</span></p>
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_error_8" class="collapse">
|
||
<h3>Times Reported <small>Most Frequent Error / Event #8</small></h3>
|
||
<div id="most_frequent_error_8" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_error_8').on("shown.bs.collapse",function(){
|
||
var bars_104 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',1],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
|
||
var most_frequent_error_8 = create_bargraph('most_frequent_error_8', '', 'Events', [ bars_104 ], '');
|
||
});
|
||
create_download_button(104, 'btn btn-default btn-xs');
|
||
add_download_button_event(104, 'most_frequent_error_8');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>17</td><td>1</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_error_8">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-errors-events-examples-rank-8">Examples</button></p>
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-errors-events-examples-rank-8" class="collapse">
|
||
<dl>
|
||
|
||
<dt><span class="text-success">LOG: database system was not properly shut down; automatic recovery in progress</span></dt>
|
||
<p></p>
|
||
<pre><b>Date:</b> 2019-03-14 17:18:21
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-errors-events-examples-rank-8">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>9</td>
|
||
<td>1
|
||
<p><a href="#Amost_frequent_error_9" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td id="most-frequent-errors-events-examples-details-rank-9">
|
||
<div id="event-c-9" class="sql sql-mediumsize">
|
||
<p class="error-pre"><span class="text-fatal">FATAL: password authentication failed for user "..."</span></p>
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_error_9" class="collapse">
|
||
<h3>Times Reported <small>Most Frequent Error / Event #9</small></h3>
|
||
<div id="most_frequent_error_9" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_error_9').on("shown.bs.collapse",function(){
|
||
var bars_105 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',1],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
|
||
var most_frequent_error_9 = create_bargraph('most_frequent_error_9', '', 'Events', [ bars_105 ], '');
|
||
});
|
||
create_download_button(105, 'btn btn-default btn-xs');
|
||
add_download_button_event(105, 'most_frequent_error_9');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 15</td><td>13</td><td>1</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_error_9">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-errors-events-examples-rank-9">Examples</button></p>
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-errors-events-examples-rank-9" class="collapse">
|
||
<dl>
|
||
|
||
<dt><span class="text-fatal">FATAL: password authentication failed for user "ptrowbridge"</span></dt>
|
||
<p><b>Detail:</b> Connection matched pg_hba.conf line 102: " host all all 0.0.0.0/0 scram-sha-256"<br/></p>
|
||
<pre><b>Date:</b> 2019-03-15 13:23:45
|
||
<b>Database:</b> ubm
|
||
<b>Application:</b> [unknown]
|
||
<b>User:</b> ptrowbridge
|
||
<b>Remote:</b> ubreport
|
||
<b>Code:</b>
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-errors-events-examples-rank-9">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>10</td>
|
||
<td>1
|
||
<p><a href="#Amost_frequent_error_10" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td id="most-frequent-errors-events-examples-details-rank-10">
|
||
<div id="event-c-10" class="sql sql-mediumsize">
|
||
<p class="error-pre"><span class="text-success">LOG: database system was interrupted; last known up at ...</span></p>
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_error_10" class="collapse">
|
||
<h3>Times Reported <small>Most Frequent Error / Event #10</small></h3>
|
||
<div id="most_frequent_error_10" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_error_10').on("shown.bs.collapse",function(){
|
||
var bars_106 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',0],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',1],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
|
||
var most_frequent_error_10 = create_bargraph('most_frequent_error_10', '', 'Events', [ bars_106 ], '');
|
||
});
|
||
create_download_button(106, 'btn btn-default btn-xs');
|
||
add_download_button_event(106, 'most_frequent_error_10');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>17</td><td>1</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_error_10">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-errors-events-examples-rank-10">Examples</button></p>
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-errors-events-examples-rank-10" class="collapse">
|
||
<dl>
|
||
|
||
<dt><span class="text-success">LOG: database system was interrupted; last known up at 2019-03-14 17:13:48 EDT</span></dt>
|
||
<p></p>
|
||
<pre><b>Date:</b> 2019-03-14 17:18:19
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-errors-events-examples-rank-10">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>11</td>
|
||
<td>1
|
||
<p><a href="#Amost_frequent_error_11" class="btn btn-default btn-xs" data-toggle="collapse">Details</a></p>
|
||
</td>
|
||
<td id="most-frequent-errors-events-examples-details-rank-11">
|
||
<div id="event-c-11" class="sql sql-mediumsize">
|
||
<p class="error-pre"><span class="text-danger">ERROR: current transaction is aborted, commands ignored until end of transaction block</span></p>
|
||
</div>
|
||
<!-- Details collapse -->
|
||
<div id="Amost_frequent_error_11" class="collapse">
|
||
<h3>Times Reported <small>Most Frequent Error / Event #11</small></h3>
|
||
<div id="most_frequent_error_11" class="jqplot-graph histo-graph"></div>
|
||
<script type="text/javascript">
|
||
/* <![CDATA[ */
|
||
$('#Amost_frequent_error_11').on("shown.bs.collapse",function(){
|
||
var bars_107 = [['00:00',0],['01:00',0],['02:00',0],['03:00',0],['04:00',0],['05:00',0],['06:00',0],['07:00',0],['08:00',0],['09:00',0],['10:00',1],['11:00',0],['12:00',0],['13:00',0],['14:00',0],['15:00',0],['16:00',0],['17:00',0],['18:00',0],['19:00',0],['20:00',0],['21:00',0],['22:00',0],['23:00',0]];
|
||
|
||
var most_frequent_error_11 = create_bargraph('most_frequent_error_11', '', 'Events', [ bars_107 ], '');
|
||
});
|
||
create_download_button(107, 'btn btn-default btn-xs');
|
||
add_download_button_event(107, 'most_frequent_error_11');
|
||
/* ]]> */
|
||
</script>
|
||
|
||
<table class="table table-stripped table-condensed">
|
||
<thead>
|
||
<tr>
|
||
<th>Day</th>
|
||
<th>Hour</th>
|
||
<th>Count</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr><td>Mar 14</td><td>10</td><td>1</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#Amost_frequent_error_11">x Hide</button></p>
|
||
</div><!-- end of details collapse -->
|
||
|
||
<p><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-errors-events-examples-rank-11">Examples</button></p>
|
||
|
||
<!-- Examples collapse -->
|
||
<div id="most-frequent-errors-events-examples-rank-11" class="collapse">
|
||
<dl>
|
||
|
||
<dt><span class="text-danger">ERROR: current transaction is aborted, commands ignored until end of transaction block</span></dt>
|
||
<p><b>Statement:</b> SELECT
|
||
x.llist::ltree
|
||
FROM
|
||
(
|
||
VALUES
|
||
('setup.actual'),
|
||
('setup.forecast'),
|
||
('setup.forecast.shortship'),
|
||
('seutp.forecast.baddate'),
|
||
('setup.copy'),
|
||
('setup.copy.shortship'),
|
||
('setup.copy.baddate'),
|
||
('ui.adjust.volume'),
|
||
('ui.adjust.price')
|
||
) x("llist")<br/></p>
|
||
<pre><b>Date:</b> 2019-03-14 10:22:08
|
||
<b>Database:</b> ubm
|
||
<b>Application:</b> DBeaver 5.3.5 - Main
|
||
<b>User:</b> ptrowbridge_md5
|
||
<b>Remote:</b> USHCC10107.GBL.HC-companies.com
|
||
<b>Code:</b>
|
||
</pre>
|
||
|
||
</dl>
|
||
<p class="pull-right"><button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#most-frequent-errors-events-examples-rank-11">x Hide</button></p>
|
||
</div>
|
||
<!-- end of details collapse -->
|
||
</td>
|
||
</tr>
|
||
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div><!-- end of most-frequent-errors-events -->
|
||
|
||
</li>
|
||
</ul> <!-- end of slides -->
|
||
|
||
<!-- Modal -->
|
||
<div class="modal fade" id="pgbadgerModal">
|
||
<div class="modal-dialog">
|
||
|
||
<!-- Modal content-->
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||
<h4 class="modal-title">Right click + "Save image as ..." to save the graph as PNG image</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<img src="" />
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
</div> <!-- End of main-container -->
|
||
|
||
<footer>
|
||
<div class="">
|
||
<small class="pull-right">Report generated by <a href="http://pgbadger.darold.net/" target="_new">pgBadger 10.3.</a></small>
|
||
</div>
|
||
</footer>
|
||
|
||
<div id="littleToc">
|
||
<div id="littleTocTitle"><a href="#top"> ^ </a></div>
|
||
</div>
|
||
|
||
</body>
|
||
</html>
|