usage of spi_prepare from PL/Perl - Mailing list pgsql-novice

From paresh masani
Subject usage of spi_prepare from PL/Perl
Date
Msg-id a9d94e070910020444r3a9b863bt85eaced2843b6db1@mail.gmail.com
Whole thread Raw
List pgsql-novice
Hi, I am new to PostgreSQL. I have started learning and written
triggers and they are working fine. Currently I am using spi_exe_query
to insert/update my log table when primary table updated. Could any
one please give me an example of spi_prepare and spi_execute_plan
usage in  PL/Perl that I can use in my trigger. I couldn't find any
example in documentation.

Basically, I want to prepare a plan and want to store it in %_SHARED
hash so that I can use whenever I want. Moreover, if table definition
changed then I should purge the cache.

any suggestion would be much appreciated.

Thanks,
Paresh

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Connect to database with php pg_connect, cannot find table even though it shows up on psql connection
Next
From: Robert Haas
Date:
Subject: Re: [BUGS] Databse installation problem