paresh masani <masaniparesh@xxxxxxxxx> writes: > Below function doesn't work: (I tried each combination mentioned with > # but none of them working.) I haven't tried it, but a look at the code makes me think that spi_prepare wants each type name to appear as a separate argument. It definitely won't work to smash them all into one string like that. You're going to have the same problem at spi_exec_prepared --- it thinks each actual value should be a separate argument. I'm not much of a Perl hacker, but I seem to recall that it's possible to pass an array to a function in a way that will make the array elements look like separate arguments. If you really need a dynamic list of types and values, maybe there's some solution in that direction. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general