Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1YEF-000082-Im for pgsql-general@arkaria.postgresql.org; Wed, 06 Mar 2019 15:13:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h1YEE-0004KV-CO for pgsql-general@arkaria.postgresql.org; Wed, 06 Mar 2019 15:13:06 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1YEE-0004KN-25 for pgsql-general@lists.postgresql.org; Wed, 06 Mar 2019 15:13:06 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1YEC-0001Ky-3T for pgsql-general@lists.postgresql.org; Wed, 06 Mar 2019 15:13:05 +0000 Received: by mail-pg1-x543.google.com with SMTP id l11so8642732pgq.10 for ; Wed, 06 Mar 2019 07:13:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=CwNiaFK+eulQ4jpK4Wy32DNZb8+euhoAiTmqAomaR3k=; b=EqcjNpl/LE0o3341PP9jHHbL61nFcfvfaZ2bOAvZmLNjFEnooTulkE4uV8U4uZoLLe ECk7sGXd1LZKn1GbfDhdgTOgEFnwSe//SMC3chzbTt+SkJoC9fAKsphcCtjf3/DmdhI2 ISuvzGjICDMmvrn+xadchiiMSvK9V+hj+ckDtRw01Kv/p9dQKQ66EyiXDyoYgdJMo3Xf Q99AN5XvN4yt9nohADX7w2e82HB/IRj4tlsRxonhYB+Zq1Oc9gYasgPTpTJg8h8iLK8N yW2RgqYBP38TXEWudO3PPQ7CLqRI9wiglnteLY3UyRpDwGPJNT2nkLoSZejbMM9oxXJ2 kbTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=CwNiaFK+eulQ4jpK4Wy32DNZb8+euhoAiTmqAomaR3k=; b=Am8lev8e8ZKgqouCT7S13eZZoapidQCzvDa4YtMhpJbQf15ZNYcHDn9hrwC4/bkIhA LCWbOG4APyLVjPcGAiQauQsapvn3Zp6huYizJf4Ef93ib3j649LMB16J7H43dc9L3yQw BXpZzrwWNFr9ZYJ/qB6LPcQu7mHm/APTRF6eCTHc8Z/fpTmpmS+cSICetU1WoikVcW27 mGh9S/qP2IUq64u/HZb24M6DfeweACkFUkkU8WbcDGEolRDV0Xg6TX9ZiH/etGm2Ct2k NBkzWwpkMSy1O71rwKB/xwNzMWdI3AXsH2JAz1XlBBUYG4PZkiLCyRdz8H56D9QbV2Ag iWeQ== X-Gm-Message-State: APjAAAVlgl7nNDecDB+5Lqrkr8+HagZ/Z3XtBUMHbC/y0ZcG38d66iOH 43h5dIi5RkcA3r/UngNosWE= X-Google-Smtp-Source: APXvYqxWdG+Hq2H9Nn8wX56qZM0Xa8ByFzrdUDZn12aFN66qzLYXBiCrKlVROUCHiExVUCxiS3tx+w== X-Received: by 2002:a63:c242:: with SMTP id l2mr1203034pgg.138.1551885181631; Wed, 06 Mar 2019 07:13:01 -0800 (PST) Received: from [192.168.1.71] (d207-6-152-227.bchsia.telus.net. [207.6.152.227]) by smtp.gmail.com with ESMTPSA id i72sm4932426pfj.147.2019.03.06.07.13.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Mar 2019 07:13:00 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: query has no destination for result data From: Rob Sargent In-Reply-To: <56fdbfbb-c0ed-3aa0-3815-eef3545e5419@gmail.com> Date: Wed, 6 Mar 2019 07:12:53 -0800 Cc: pgsql-general@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <56fdbfbb-c0ed-3aa0-3815-eef3545e5419@gmail.com> To: Ron X-Mailer: Apple Mail (2.3445.102.3) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Mar 6, 2019, at 6:32 AM, Ron wrote: >=20 > On 3/6/19 1:45 AM, Rob Sargent wrote: > [snip] >> This construct had been working until recent changes but I cannot = relate the message to any deformity in the current schema or code. >> Any pointers appreciated. >=20 > What were the recent changes? >=20 > --=20 > Angular momentum makes the world go 'round. >=20 diff optimalMonoPed.sql = optimalMonoPed.sql.~20359ea9e67ddf009db89b94140f67988862f247~ 13,14d12 < imkr int; < jmkr int; 53c51 < -- --- > -- =20 67,68d64 < select imkr=3Dmin(ordinal), jmkr=3Dmax(ordinal) from mrkidx where = ordinal between segp.firstmarker and segp.lastmarker; < raise notice 'seg % start=3D% i=3D% end=3D% j=3D%', segp.id, = segp.firstmarker, imkr, segp.lastmarker, jmkr; In other words two variables dropped along with the select which set = them for their only use in a NOTICE, plus white space on a comment line. So yes the problem must be in the caller. A not on line numbers: Using \ef on this function presents a slight = variation of my code: it rearranges the =E2=80=9Clanguage plpgsql=E2=80=9D= from after the final END; (old style I guess) to before the AS. So = line 65 is actually what I thought was line 64. Still not the real problem of course. (I=E2=80=99ll update my ways re: = coding functions)