Re: [PATCHES] EXECUTE USING for plpgsql (for 8.4)

2007-10-23 Thread Heikki Linnakangas
Pavel Stehule wrote: Hello this patch add USING clause into plpgsql EXECUTE statements. Proposal: http://archives.postgresql.org/pgsql-hackers/2007-10/msg00790.php I found, so dynamics statements are little bit faster with parameters, because we don't need call lot of in out/in

Re: [PATCHES] EXECUTE USING for plpgsql (for 8.4)

2007-10-23 Thread Pavel Stehule
This doesn't work: create function exc_using(varchar) returns varchar as $$ declare v varchar; begin execute 'select upper($1)' into v using ('aa'); it cannot work. Your parameter is row. But into v using 'aaa' doesn't work too :( ERROR: failed to find conversion function from

Re: [PATCHES] EXECUTE USING for plpgsql (for 8.4)

2007-10-23 Thread Heikki Linnakangas
Pavel Stehule wrote: This doesn't work: create function exc_using(varchar) returns varchar as $$ declare v varchar; begin execute 'select upper($1)' into v using ('aa'); it cannot work. Your parameter is row. Really? execute 'select upper($1)' into v using ('aa'::varchar); works, as

Re: [PATCHES] EXECUTE USING for plpgsql (for 8.4)

2007-10-23 Thread Pavel Stehule
2007/10/23, Heikki Linnakangas [EMAIL PROTECTED]: Pavel Stehule wrote: This doesn't work: create function exc_using(varchar) returns varchar as $$ declare v varchar; begin execute 'select upper($1)' into v using ('aa'); it cannot work. Your parameter is row. Really? execute

Re: [PATCHES] EXECUTE USING for plpgsql (for 8.4)

2007-10-22 Thread Bruce Momjian
This has been saved for the 8.4 release: http://momjian.postgresql.org/cgi-bin/pgpatches_hold --- Pavel Stehule wrote: Hello this patch add USING clause into plpgsql EXECUTE statements. Proposal: