| From: | Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl> |
|---|---|
| To: | "Jim C(dot) Nasby" <decibel(at)decibel(dot)org> |
| Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bo Lorentsen <bl(at)netgroup(dot)dk>, pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Index optimization ? |
| Date: | 2005-01-15 21:34:11 |
| Message-ID: | 20050115213411.GB26259@dcc.uchile.cl |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Sat, Jan 15, 2005 at 03:11:22PM -0600, Jim C. Nasby wrote:
> Would it make sense to have a version of currval that will only return
> one value in a statement/transaction? So the first time it's called it
> remembers what currval for that sequence is and always returns the same
> value?
What would nextval() do in that case? Return the nextval on the first
call, and act like currval() from then until the end of the transaction?
--
Alvaro Herrera (<alvherre[(at)]dcc(dot)uchile(dot)cl>)
"Porque francamente, si para saber manejarse a uno mismo hubiera que
rendir examen... Quin es el machito que tendra carnet?" (Mafalda)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alvaro Herrera | 2005-01-15 21:36:20 | Re: OID Usage |
| Previous Message | Tom Lane | 2005-01-15 21:21:24 | Re: OID Usage |