From: | "Jasbinder Singh Bali" <jsbali(at)gmail(dot)com> |
---|---|
To: | "Alvaro Herrera" <alvherre(at)commandprompt(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Atomicity in DB transactions (Rollback related) |
Date: | 2007-06-18 15:57:55 |
Message-ID: | a47902760706180857n1673ca93me1601407ea29072d@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Could you please give me some quick and helpful pointers for SPI programing
in pl/perl?
Thanks,
Jas
On 6/18/07, Alvaro Herrera <alvherre(at)commandprompt(dot)com> wrote:
>
> Jasbinder Singh Bali escribió:
> > Hi,
> > I have a Pl/Perlu function in which I have a statement like this:
> >
> > *******************
> > my $query_tbl_l_header = $dbh->prepare("SELECT
> > sp_insert_tbl_l_header(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
> >
> > my $exec_l_from
> >
> =$query_tbl_l_header->execute($unmask_id,$from,$to,$sender,$subject,$replyto,$cc,$bcc,$messageid,$inreplyto,$reference,$mversion,$con_type,$con_id,$con_des,$con_enc,$con_length,$con_dis);
> > *******************
>
> You have a PL/PerlU opening an independent transaction via DBI? That's
> a bad idea and the explanation to your problem. You should be using SPI
> instead; there are methods for this in PL/Perl.
>
> --
> Alvaro Herrera
> http://www.advogato.org/person/alvherre
> "Hay que recordar que la existencia en el cosmos, y particularmente la
> elaboración de civilizaciones dentro de él no son, por desgracia,
> nada idílicas" (Ijon Tichy)
>
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2007-06-18 15:59:24 | Re: Atomicity in DB transactions (Rollback related) |
Previous Message | David Tokmatchi | 2007-06-18 15:55:00 | Postgres VS Oracle |