pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: DAVID ROTH <adaptron@comcast.net>
Cc: Thomas Kellerer <shammat@gmx.net>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: General Performance Question
Date: Thu, 18 Nov 2021 10:36:31 -0500
Message-ID: <2915805.1637249791@sss.pgh.pa.us> (raw)
In-Reply-To: <966668681.565028.1637246920878@connect.xfinity.com>
References: <CAEKkz87s6c9BL4s2p3Je_y2iCZy0-2mLdV7_YFJ79iOFvRZdkw@mail.gmail.com>
	<CAFj8pRDR3E7KNe0tiGekH6wQQ06fBs9E6K3r0h=oTU4FbGMbgA@mail.gmail.com>
	<1653563957.563818.1637244913291@connect.xfinity.com>
	<f46ec353-b131-a78e-1e14-1514818581e6@gmx.net>
	<966668681.565028.1637246920878@connect.xfinity.com>

DAVID ROTH <adaptron@comcast.net> writes:
> The code I am migrating uses the EXECUTE immediate form for almost everything.  The path of least resistance for me is to just copy the code to Postgres and change "EXECUTE IMMEDIATE" to "EXECUTE".
> I am asking about performance differences to see if it is worth converting code that does not have any dynamic elements.

Yes, absolutely.  (I would've imagined that that habit is pretty awful
for performance on Oracle, too.)

Having said that, the golden rule in such things is to get it to work
first, and make it fast later.  I wouldn't worry about cleaning up
unnecessary EXECUTE usage till you have a working port.

			regards, tom lane





view thread (4+ messages)

Message-ID: <2915805.1637249791@sss.pgh.pa.us>
Permalink:  ../2915805.1637249791@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2915805.1637249791@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, adaptron@comcast.net, shammat@gmx.net
  Subject: Re: General Performance Question
  In-Reply-To: <2915805.1637249791@sss.pgh.pa.us>
  References: <CAEKkz87s6c9BL4s2p3Je_y2iCZy0-2mLdV7_YFJ79iOFvRZdkw@mail.gmail.com> <CAFj8pRDR3E7KNe0tiGekH6wQQ06fBs9E6K3r0h=oTU4FbGMbgA@mail.gmail.com> <1653563957.563818.1637244913291@connect.xfinity.com> <f46ec353-b131-a78e-1e14-1514818581e6@gmx.net> <966668681.565028.1637246920878@connect.xfinity.com> <2915805.1637249791@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox