From: Marko Kreen Date: Thu, 1 Aug 2013 20:15:31 +0000 (+0300) Subject: Fix deallocate_all() in FAQ X-Git-Tag: pgbouncer_1_6_rc1~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa7e72f94227bd3be219e2be579c0c1d406432cd;p=pgbouncer Fix deallocate_all() in FAQ 8.1 requires loop var to be record. Reported-by: Christopher Causer --- diff --git a/doc/faq.txt b/doc/faq.txt index 2d54c5b..2765165 100644 --- a/doc/faq.txt +++ b/doc/faq.txt @@ -55,13 +55,13 @@ following function can be created: CREATE OR REPLACE FUNCTION deallocate_all() RETURNS void AS $$ DECLARE - sql text; + sql record; BEGIN FOR sql IN - SELECT 'deallocate ' || quote_ident(name) + SELECT 'deallocate ' || quote_ident(name) as stmt FROM pg_catalog.pg_prepared_statements LOOP - EXECUTE sql; + EXECUTE sql.stmt; END LOOP; END; $$ LANGUAGE plpgsql;