Re: Prepared Statements

2020-10-07 Thread Patrick REED
"A prepared statement has a name and a CachedPlanSource. They are stored in a hash table. See StorePreparedStatement() function. If you grep for callers of StorePreparedStatement(), you'll see that there are two: one in processing an EXECUTE statement, and one in handling the Extended Query Protoco

Re: Prepared Statements

2020-10-04 Thread Heikki Linnakangas
On 02/10/2020 23:10, Patrick REED wrote: Hi, I am having a hard time pinning down which function creates a prepared statement. Say in some language I create a Prepared Statement and send it off. Before the first time I execute the prepared statement, which function is the one that 'creates' t

Re: Prepared Statements

2020-10-02 Thread David G. Johnston
On Fri, Oct 2, 2020 at 1:14 PM Patrick REED wrote: > Hi, > > I am having a hard time pinning down which function creates a prepared > statement. > ... > e.g. > In your favorite language: > This doesn't seem like the correct list for this question. Ponder the following and consider sending any