Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fR0OK-0006hV-Jo for pgsql-general@arkaria.postgresql.org; Thu, 07 Jun 2018 19:16:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fR0OJ-0003ap-CH for pgsql-general@arkaria.postgresql.org; Thu, 07 Jun 2018 19:16:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fR0OJ-0003af-4P for pgsql-general@lists.postgresql.org; Thu, 07 Jun 2018 19:16:11 +0000 Received: from mail-pl0-x242.google.com ([2607:f8b0:400e:c01::242]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fR0OG-0007vD-35 for pgsql-general@lists.postgresql.org; Thu, 07 Jun 2018 19:16:10 +0000 Received: by mail-pl0-x242.google.com with SMTP id i5-v6so6732086plt.2 for ; Thu, 07 Jun 2018 12:16:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=1ilgcpXlp3BlgXZDv+2ybogCoG3fiG6NpaDtPHydq7E=; b=LesF77Lt0+TO51HJqD251T5JjmUkoWLsqJ1xASc7u5adFnFXXOgN8XvMjgguEJVVVH PMAsUX/g6VfJFPHUAAGk4bfrjlXdPUuCIefyk3apvLa4wc8tSWNGhTDj9loEpC6o+8v9 /eKx9fUbPV4whZ7YTY+TS2EKxGGJOP0flL247BTmWe1EGm53gRV9ojTiAy5hnS88Y/T4 hwKUlZxxal0qd7ISqcxm7n8aD2TRDeKd7iyKzye/fjtN/cuc26wYci2hrUWvSYq9niD4 b6YnARSMEoa35nkM9+62RIpJkN8QVXlV/H49iHipXqTAkDdrDL16IizHE9T4WI/W7LGZ dCgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=1ilgcpXlp3BlgXZDv+2ybogCoG3fiG6NpaDtPHydq7E=; b=efVyR4sATW+NT1/0wh5BtFFDBdQbc1Z7kEpMqBlNZv7MtLbMqB+u/eGI1JdybPKjbF 4qnqUoifqVLyOXqhaYlVk5pzboekHn7m9XBKz5Fdi05ZtqvIR2CxbOpRPRq5SZZb22Qo u3DbCxLQrtBKeOmTrYICbfQHYYkkYE0TiA0X3UOXkuBAOsJ019rGJlOwgw5K+zMMVQkf QpUghTc8RPVf3eH6AesCxak2ruDCaI5ggQEhQqrSAWYSfN16eN1Uv/dmyT0cmEEff4Iw HtvQ2jxjjMfAshhtLzNJdcRQlKdJN3L688DaCS1wfzYehlCSwrhpo0otVpBJAmF7v0W8 op5Q== X-Gm-Message-State: APt69E3bQwX3iH7++n7oxkTmdLLTlO4b0YirLBDvpqxqhI9CThONGBhv tagWA85xbkA22K9zvNGEw7m9lzS8 X-Google-Smtp-Source: ADUXVKKi5XDkp62ase4Zcckb9F9ZqeFDlUyV0DbxbgDEehZ16dPWY+GlnXsXvsmKNumuX/ESWADtUA== X-Received: by 2002:a17:902:343:: with SMTP id 61-v6mr3358315pld.39.1528398965651; Thu, 07 Jun 2018 12:16:05 -0700 (PDT) Received: from [10.104.134.14] ([155.100.47.6]) by smtp.gmail.com with ESMTPSA id q69-v6sm77809353pfl.16.2018.06.07.12.16.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Jun 2018 12:16:05 -0700 (PDT) Subject: Re: Query hitting empty tables taking 48 minutes To: Adrian Klaver , pgsql-general@lists.postgresql.org References: <186A2F70-5953-4FE4-9586-BF3F114AF1CC@logicalchaos.org> <3f0ce0f4-1103-bce8-7398-c77c7ef8c739@gmail.com> <658df6fd-c0c6-0e27-c78d-ed4c470a43d8@aklaver.com> From: Rob Sargent Message-ID: Date: Thu, 7 Jun 2018 13:16:04 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <658df6fd-c0c6-0e27-c78d-ed4c470a43d8@aklaver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 06/07/2018 01:13 PM, Adrian Klaver wrote: > On 06/07/2018 12:11 PM, Rob Sargent wrote: >> > >>> >> What's the url doing in "blob_id = ds3.blob.id > I have run into this before, it is an email artifact. > OK, thanks. The code presented is just a generalized sql executor.  Might need to see the code generating the sql.  A complete definition of the stack might be in order too.  Might explain the "fetch" remark.