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 1nKNlR-0003Fv-Ru for pgsql-general@arkaria.postgresql.org; Wed, 16 Feb 2022 17:06:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nKNlP-0002Yc-Td for pgsql-general@arkaria.postgresql.org; Wed, 16 Feb 2022 17:06:47 +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 1nKNlP-0002YT-GW for pgsql-general@lists.postgresql.org; Wed, 16 Feb 2022 17:06:47 +0000 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nKNlJ-0000Zl-Uk for pgsql-general@postgresql.org; Wed, 16 Feb 2022 17:06:46 +0000 Received: by mail-ed1-x531.google.com with SMTP id y17so5000247edd.10 for ; Wed, 16 Feb 2022 09:06:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=QQvBgqO5bk0kdrsfsZ9RvUjv97jOSEC/8FX93XFCFGE=; b=eL1CuAWNckOp2Ml5cHaRXeyGXQMUqfQRK8w5pVqmM6sbDHSOT6cMFoCOtaJqfayJ++ VY73DiIziXvKgrvzXuS1EgQnqjbvXh6ktymPtKrRQeBnjDmFNqs09qGjWoN3TPhAR0oX kDS7gQArO43lcSNAbUjEIl7ZQIcN6hjBqys9+mdSBQAmINWpU3C0mq31jRX18vHFN9g7 Gdt+UPlReNXjdCHZJz6N8IHuDhdAurukaDcwjD0vN1Ky+Afp1rpZS9Vrd7cGOHypHX5v RW7B/4TcvbniVmRnhifGGeb28ZnkCvZqmUu3gzp3T2XJ7UJAydOiR0soMgNoy4WWcDEF t5wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=QQvBgqO5bk0kdrsfsZ9RvUjv97jOSEC/8FX93XFCFGE=; b=hsMOM4chfzwExM0ejIIt8yHvRdoBli2sfDasyQ3RgpbBIVeb0sObpGQP4AbmaUl/Vk 9j3VBrLhkd2Ls4aJgPGmuP5bRFsuRipLXo5rxQx2ubHcb6SkhTcrlzmyePzZQq+ilW6w 2b7F2zwdjag6ikfrcuLNDw+4hdytlcRxESbE/8HoVCMWtIymH51HjYf1e+Ttvi5ojU2k yEX91iiBypZ9ho1dZmuMAh8CMGQOAVhKLj+SbMoTxRL9TlwmB/UCj3o4xxHAwHoO0yZU Tz5Scze1iqu1tgqG20DbB3lRMuCCsAHoPQes+Dt1Es34Pi7QBWKwemTNUlpDskLrMNnp zYAQ== X-Gm-Message-State: AOAM532MRjFkBlvO5tQLgvWPtOZWMygXfbbJ+pHDxp6TbiRO/lImFmLR K8oTcIBELONT2PDrb1jWb8ZxNKjKvrWT7Q== X-Google-Smtp-Source: ABdhPJzJa6kimxd4phbphKv7z9Quz+SeMN4lSbitCipobmFhL8ihJP6xYVaxWxoCQrzDbfT55YpCwQ== X-Received: by 2002:a05:6402:2744:b0:404:ba60:fec6 with SMTP id z4-20020a056402274400b00404ba60fec6mr4015011edd.235.1645031199798; Wed, 16 Feb 2022 09:06:39 -0800 (PST) Received: from localhost.localdomain (62-47-150-247.adsl.highway.telekom.at. [62.47.150.247]) by smtp.gmail.com with ESMTPSA id e26sm110673ejl.139.2022.02.16.09.06.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 09:06:39 -0800 (PST) Message-ID: <45c68bd56c1b0cdcd4b7e67739a45243196bd2af.camel@cybertec.at> Subject: Re: if not exists (SELECT 1... UNION SELECT 1...) From: Laurenz Albe To: Alexander Farber Cc: pgsql-general Date: Wed, 16 Feb 2022 18:06:38 +0100 In-Reply-To: References: <09dbff99faf9a57526ea042aa24ef46d7db263ff.camel@cybertec.at> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-2.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2022-02-16 at 14:36 +0100, Alexander Farber wrote: > Ah, I have to do > >     RETURN '___WRONG___'; > > and not > >         out_text := '___WRONG___' >         RETURN; Yes. As I said, a trivial error. Yours, Laurenz Albe