Re: prepare() - Mailing list pgsql-general

From Stuart Cooper
Subject Re: prepare()
Date
Msg-id 7fc8628a0705291817q366d94cdq9f2ca36b756b213a@mail.gmail.com
Whole thread Raw
In response to Re: prepare()  ("Stuart Cooper" <stuart.cooper@gmail.com>)
Responses Re: prepare()
Re: prepare()
List pgsql-general
> The pg_prepared_statments view will give you information on prepared statments
> currently resident in the database backend. I suggest you run your progam
> (with a couple of "Enter to continue" breakpoints in the code) and, in another
> session, select from pg_prepared_statements and see if the prepared statement
> is still there.

> I'll be trying this myself a bit later once I stabilise my system, so
> watch this space!

My system is stabilised and I'm looking at this now. I'm not getting a lot from
pg_prepared_statements yet: perhaps this view only reports on statements you've
prepared using PostgreSQL's PREPARE through their SQL interface, and not
DBI's DBD::Pg $dbh->prepare().

I know that a few versions back PostgreSQL's DBD driver didn't support prepared
statements (the operation was still there, it just wasn't doing the
whole magic),
I imagine that it does today but will investigate further.

Cheers,
Stuart.

pgsql-general by date:

Previous
From: "Stuart Cooper"
Date:
Subject: Re: prepare()
Next
From: "Stuart Cooper"
Date:
Subject: Re: prepare()