Re: Migration from DB2 to PostgreSQL

From: Chris Angelico <rosuav(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Migration from DB2 to PostgreSQL
Date: 2013-06-20 01:27:08
Message-ID: CAPTjJmrMSFXjWDpj2HLxMAj87+N9zZcp8dMAjkoBinugdhH1tQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Jun 20, 2013 at 11:10 AM, Amit Langote <amitlangote09(at)gmail(dot)com> wrote:
> If this particular function is to be used repeatedly in a single
> query, would the cost of having a wrapper function around the original
> function be too large? For example, if this function appears in a
> WHERE clause against a table containing millions of rows.

If your wrapper function is written in SQL and is trivial (eg ignore
the third parameter and pass the other two on), the planner should be
able to optimize right through it. Best way to find out is with
EXPLAIN, which I've been using a good bit lately. The optimizer's
pretty smart.

ChrisA

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Amit Langote 2013-06-20 01:35:22 Re: Migration from DB2 to PostgreSQL
Previous Message Amit Langote 2013-06-20 01:10:05 Re: Migration from DB2 to PostgreSQL