Re: BUG #3662: Seems that more than one run of a functions causes an error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Robins Tharakan" <tharakan(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3662: Seems that more than one run of a functions causes an error
Date: 2007-10-11 00:12:17
Message-ID: 28005.1192061537@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Oh, there's another solution I forgot to mention: you could write the
nextval call as
nextval('s'::text)
which would force a runtime lookup of 's' on each call. On the whole
though, numbering the rows yourself with a local counter is going to
run a lot faster.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message huanghongdong 2007-10-11 00:31:57 BUG #3669: cann't use UTF8 as server side encoding
Previous Message Tom Lane 2007-10-11 00:00:18 Re: BUG #3662: Seems that more than one run of a functions causes an error