Re: Problem with the semantics of "select into" in a plpgsql function
От
David Johnston
Тема
Re: Problem with the semantics of "select into" in a plpgsql function
Дата
Msg-id
11328EFB-13C4-4A22-AE0C-F7575FBDCA00@yahoo.com
Ответ на
Список
Дерево обсуждения
Problem with the semantics of "select into" in a plpgsql function Seref Arikan <serefarikan@kurumsalteknoloji.com>
Re: Problem with the semantics of "select into" in a plpgsql function David Johnston <polobo@yahoo.com>
Re: Problem with the semantics of "select into" in a
plpgsql function Seref Arikan <serefarikan@kurumsalteknoloji.com>
Re: Problem with the semantics of "select into" in a plpgsql function "David Johnston" <polobo@yahoo.com>
Re: Problem with the semantics of "select into" in a plpgsql function Tom Lane <tgl@sss.pgh.pa.us>
Re: Problem with the semantics of "select into" in a
plpgsql function Seref Arikan <serefarikan@kurumsalteknoloji.com>
Re: Problem with the semantics of "select into" in a plpgsql
function Adrian Klaver <adrian.klaver@gmail.com>
The documentation for "select into" covers this and provides your alternatives. http://www.postgresql.org/docs/9.2/interactive/sql-selectinto.html David J. On Dec 25, 2012, at 10:20, Seref Arikan wrote: > Greetings, > I have a plpython function that returns a set of records. I loop over them to insert them into a temp table created by another function. > I wanted to test > select into temp_eav_table (column) select a.column from tbl as a where.... > approach to see if it performs better than the loop. However, I'm not able to compile the function due to an error that says "temp_eav_table is not a known variable" > > So the context assumes this is supposed to be a variable. If I try execute '...', then I have trouble passing a bytea parameter to the python function. This is what I have at the moment: > > SELECT INTO temp_eav_table (valstring, > featuremappingid, > featurename, > rmtypename, > actualrmtypename, > path, > pathstring) > select selected_node.valstring, > selected_node.featuremappingid, > selected_node.featurename, > selected_node.rmtypename, > selected_node.actualrmtypename, > selected_node.path, > selected_node.pathstring > from py_get_eav_rows_from_pb(payload ) as selected_node; > > any thoughts? > > Best regards > Seref >
В списке pgsql-general по дате отправления
От: Seref Arikan
Дата:
От: Seref Arikan
Дата: