Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id AFDB8475E2C for ; Tue, 17 Sep 2002 11:07:21 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 68BE94767D8 for ; Tue, 17 Sep 2002 11:07:19 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g8HF5O5D024104; Tue, 17 Sep 2002 11:05:24 -0400 (EDT) To: "Ross J. Reedstrom" Cc: Bruce Momjian , Roland Roberts , Yudie , pgsql-sql@postgresql.org Subject: Re: How to select and result row number?? In-reply-to: <20020917144635.GB6538@rice.edu> References: <001301c25b5a$2ef0ea40$8a01a8c0@yudie> <001301c25b5a$2ef0ea40$8a01a8c0@yudie> <200209170312.g8H3C6s16543@candle.pha.pa.us> <20020917144635.GB6538@rice.edu> Comments: In-reply-to "Ross J. Reedstrom" message dated "Tue, 17 Sep 2002 09:46:35 -0500" Date: Tue, 17 Sep 2002 11:05:24 -0400 Message-ID: <24103.1032275124@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/194 X-Sequence-Number: 9471 "Ross J. Reedstrom" writes: > Hmm, with the new dependency code, is the auto-sequence from a SERIAL > in a temp table also a temp sequence? It get's put in the temp schema, > right? Seems we have a workaround for those wanting numbered result > sets. That's the hard way; just do CREATE TEMP SEQUENCE ... works in prior releases too ... regards, tom lane