Re: Function query plan - Mailing list pgsql-general

From Douglas McNaught
Subject Re: Function query plan
Date
Msg-id 87slno91dl.fsf@suzuka.mcnaught.org
Whole thread Raw
In response to Function query plan  ("Paul Mackay" <mackaypaul@gmail.com>)
Responses Re: Function query plan
List pgsql-general
"Paul Mackay" <mackaypaul@gmail.com> writes:

> I understand that the query plan of a function is determined at
> CREATION and remains the same whatever the parameter(s) value. I
> suppose then that this plan is stored somewhere in a system table ?

You are misinformed.  It's determined the first time that function is
executed in a given backend, and stored in backend-local memory.
There's no way that I know of to look at it.

-Doug

pgsql-general by date:

Previous
From: Rich Doughty
Date:
Subject: Re: Adding ON UPDATE CASCADE to an existing foreign key
Next
From: "Arjan Vroege"
Date:
Subject: ERROR: more than one row returned by a subquery used as an expression