Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mPk3M-0006UW-U6 for pgsql-general@arkaria.postgresql.org; Mon, 13 Sep 2021 11:23:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mPk3L-0004Ee-SV for pgsql-general@arkaria.postgresql.org; Mon, 13 Sep 2021 11:23:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mPk3L-0004Du-JV for pgsql-general@lists.postgresql.org; Mon, 13 Sep 2021 11:23:11 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mPk3J-0002Z1-N3 for pgsql-general@lists.postgresql.org; Mon, 13 Sep 2021 11:23:10 +0000 Received: by mail-ed1-x530.google.com with SMTP id c21so5984300edj.0 for ; Mon, 13 Sep 2021 04:23:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=pX6RU/neOSaQSVARwGV7l4hk2NY9z8xdd8jox7TxoI0=; b=hHiIETObddJbWhv+sSHveRoV+6CBWHD97ts6Y3AK26x1+C56zxhfdMrZjx29HJVBmt hK4JbvCp9G7jRybADbp2PCYeVCyyvfP7Jb2lkxwtGsdB8bpTYyZCqEyk+A7lWOJq6bep spb/ldN74pNUyIwPHgaKqVpeXOq0mvcxADAYL5yRQKPpHVGsqcg4Fj3bVHyK6/sqN/Hq 193TcVYD0QZ3qIq1NAxeZMnPjBtHv1DOO2NkM0kjl8MEB/AKFmBjfcQtlh1RAFecmjcH w0oftzj1jNtJw/mhrGQTINFdXBqkLjTfmQpH59DSH1wJyJ5B33ZUeQuU4SjlEoJXsVn3 TXNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=pX6RU/neOSaQSVARwGV7l4hk2NY9z8xdd8jox7TxoI0=; b=zGrEtpxs8+OuZJykvHePRt+GIh3u0DPW7K52OPV312ffvMpOMqBPgZhFYIODOF9t+r CYTJd9BZ5nbwq56OQjRiVfBh66/rwKbGNyERnxMFS+jZQKfw/VmQQcHypOoQXqu7kEyg msnve276fYM4ILmzQLTyzHebckXZK84xywDw4mQqdO5oD+HK6wB5KnADCLNeTrgTZSzq ol3cfbnt/bsqEGTpLQC1rJVxKSZ4Dy3721jmXMWn5a8qyxPdx9p2MudUurDNAY0UrjQ0 zr/A/sWizLHGaZ8/ZBjXMnjcDra0e3W82oSx0rgn3mkL5Fr2Bkni0Jnd/DNXYsGK1Xy0 Y8Wg== X-Gm-Message-State: AOAM5328H4m8TpB3iTj1De46ze2GKRcUQP9pQwMO5KjYUJzP3YGQ7wRe bFD9TF9koEC2o13xORACwIQy9MtJT1k= X-Google-Smtp-Source: ABdhPJwttfN61/bZt2jW3p0fm0blUPTpWMOj5heDt+0xSI5iSzCyqDF56x09DzOfNlB8L+to7E7V+w== X-Received: by 2002:aa7:c744:: with SMTP id c4mr12729148eds.0.1631532187475; Mon, 13 Sep 2021 04:23:07 -0700 (PDT) Received: from [192.168.178.48] ([213.219.163.134]) by smtp.gmail.com with ESMTPSA id ba29sm2329608edb.5.2021.09.13.04.23.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 Sep 2021 04:23:06 -0700 (PDT) To: pgsql-general@lists.postgresql.org From: Herwig Goemans Subject: ERROR: control reached end of function without RETURN, except, it is not a function it is a procedure or a nameless block. Message-ID: <868ae948-e3ca-c7ec-95a6-83cfc08ef750@gmail.com> Date: Mon, 13 Sep 2021 13:23:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: nl-BE List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Support, I get an error in a stored procedure - not a stored function mind you - control reached end of function without RETURN The error occurs when doing an exit