Re: pl/perl problem

From: "Sean Davis" <sdavis2(at)mail(dot)nih(dot)gov>
To: "FERREIRA William (COFRAMI)" <william(dot)ferreira(at)airbus(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: pl/perl problem
Date: 2005-03-21 15:46:00
Message-ID: 005701c52e2d$14ff7860$1f6df345@WATSON
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

RE: [GENERAL] Convert Cursor to array
----- Original Message -----
From: FERREIRA William (COFRAMI)
To: 'pgsql-general(at)postgresql(dot)org'
Sent: Monday, March 21, 2005 9:22 AM
Subject: [GENERAL] pl/perl problem

hi

i wrote a store procedure using the pl/perlU language, and the comportment is strange.
my procedure do a select on my database and some traitments too and write the result in a file;

when i run the procedure a first time, it works fine, the file is create and data are in. but when i run my procedure a second time, the file is create but the data aren't write in it. where is the problem ?

Can you show the function?

i had an other problem the past week, but i not able to reproduce it. it was a very simple funtion who store a string into a variable and display it on the screen : something like this :
my $toto = '->';
$toto.='titi';
elog NOTICE, $toto;

Again, can you show the whole function? And do you 'use strict' when coding?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2005-03-21 15:50:32 Re: Time Stamp
Previous Message Asger Petersen 2005-03-21 15:44:48 Extremely slow queries