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 1m281m-00064P-33 for pgsql-general@arkaria.postgresql.org; Sat, 10 Jul 2021 08:07:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m281i-00062m-Lx for pgsql-general@arkaria.postgresql.org; Sat, 10 Jul 2021 08:07:54 +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 1m281i-00062d-Ax for pgsql-general@lists.postgresql.org; Sat, 10 Jul 2021 08:07:54 +0000 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m281d-0000r2-4n for pgsql-general@lists.postgresql.org; Sat, 10 Jul 2021 08:07:53 +0000 Received: by mail-pf1-x42f.google.com with SMTP id f17so10993520pfj.8 for ; Sat, 10 Jul 2021 01:07:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=hXE+/NGMRdWfifM9cPvJLNBAPxrieAMKVQxLlmdVUqI=; b=LW2C8fBYlAWl+27IO5QAaQeyESpyHKU7ph3IcIZ/G0avpbDAdHnIWGWvfQu917XYA1 W9QzR4hrP+E0H3pYlXUyR1zFvCz1qopJ2kBIFN2feY8UwOJiZmdKMO1AX1WMSMrUAf/z 4wJHnY7z0V31lhZjaXVVNDauU/kQ2BEeGuAkzAj0GimqvrJN2SesR/qNC5c7mg3BSQf1 FGuUqgdVQDe/ukvDTZIX5J1mZFv+3BWMJqB2CN7u9PHKZiACcpQQjZb9Rt2cHgw2TLvV qQwEyhY33x0q+xhrC6CP5xEsmSGW5tY+AJlhxeedp9uISbVug/wDANEq/ykX5odKaBWL XVOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=hXE+/NGMRdWfifM9cPvJLNBAPxrieAMKVQxLlmdVUqI=; b=fid5QnH32PlA9xUvBZFzAcK1hnorcfRNu4gaP441gD+k5j8SoV18v8YKTkVLpOx0i5 116TZHWMyt4vP6DIuxc+HoOBbgTxGytIIZMs5gQ92nBI4owz4Bk/picqOhMJhGxsLSNu fHamzNf1/3GtH/4obEDtE3gpqX/1PWZjyBtNOpGDUQauMdQSmLjSO2LcSd3JinbI/Dyc LuJvwr1vd6zaqJEBL5myC1hRsjnfcQe4EhCShQWafBafQvPmi+SoiNyFcxUlRDWKqoQM apsPuMkVxm5YfgeQUIrA4ecjhFanf8a4EYqocbWnngVT712TdObXyp7IMvLZjcMLOows TIkw== X-Gm-Message-State: AOAM531XI30C6wF6Sr3C97UEp7LZKecj+UG5T9+uFyNcgOfpqbeeL2NG 0Dn2k/BwxeF1dcioiTmX3jg= X-Google-Smtp-Source: ABdhPJx3wcIEFwz0LZhMoIcKY0lAKIBL86QBQe7bB6u/n83IIoWcCPyHVtcI8wxrZxKnbMLZDqCTjw== X-Received: by 2002:a63:fe51:: with SMTP id x17mr42173673pgj.58.1625904467694; Sat, 10 Jul 2021 01:07:47 -0700 (PDT) Received: from 192-168-1-102.tpgi.com.au ([124.170.34.107]) by smtp.gmail.com with ESMTPSA id z6sm1247290pjn.12.2021.07.10.01.07.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Jul 2021 01:07:46 -0700 (PDT) Message-ID: Subject: Re: optimization issue From: rob stone To: Kenneth Marshall Cc: Atul Kumar , pgsql-general Date: Sat, 10 Jul 2021 18:07:43 +1000 In-Reply-To: <20210709182743.GG31867@aart.rice.edu> References: <9f75cdf5e2a33988c54f24fd04e8de486a3e3a49.camel@gmail.com> <20210709182743.GG31867@aart.rice.edu> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello Ken, On Fri, 2021-07-09 at 13:27 -0500, Kenneth Marshall wrote: > On Fri, Jul 09, 2021 at 01:16:16PM +1000, rob stone wrote: > > Hello, > > > > I am curious. > > > > NVL, DECODE and SELECT FROM dual are Oracle methods and these > > appear in > > your code. > > > > How did you make these work in Postgres?  > > > > Cheers, > > Rob > > Hi Rob, > > At a guess, they are using the Orafce PostgreSQL extension. It > provides > a lot of compatibility functions. > > Regards, > Ken Thanks. Found it on github. Regards, Rob