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 1m1vE6-0001zQ-F4 for pgsql-general@arkaria.postgresql.org; Fri, 09 Jul 2021 18:27:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m1vE4-0004gK-Kb for pgsql-general@arkaria.postgresql.org; Fri, 09 Jul 2021 18:27:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m1vE4-0004gB-BZ for pgsql-general@lists.postgresql.org; Fri, 09 Jul 2021 18:27:48 +0000 Received: from aart.rice.edu ([168.7.56.48]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m1vE0-00059r-Mx for pgsql-general@lists.postgresql.org; Fri, 09 Jul 2021 18:27:47 +0000 Received: by aart.rice.edu (Postfix, from userid 18612) id 0FC0D427F281; Fri, 9 Jul 2021 13:27:43 -0500 (CDT) Date: Fri, 9 Jul 2021 13:27:43 -0500 From: Kenneth Marshall To: rob stone Cc: Atul Kumar , pgsql-general Subject: Re: optimization issue Message-ID: <20210709182743.GG31867@aart.rice.edu> References: <9f75cdf5e2a33988c54f24fd04e8de486a3e3a49.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9f75cdf5e2a33988c54f24fd04e8de486a3e3a49.camel@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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